/* Theme for the Shining samples page, a k0sNgin /audio player page.
   Ported from the hand-built index.html of 2026-10-18 (retired 2026-10-28).
   Order and captions live in index.ini; the intro in shining-intro.html. */
:root {
  --ink: #efe6d8;
  --dim: #b3a691;
  --blood: #b3261e;
  --amber: #e8a33d;
  --night: #140d0b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.5 Georgia, "Times New Roman", serif;
  /* The fragment from /include comes first in the body; reorder so the
     heading sits between the carpet and the intro, as on the old page. */
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}
body > :not(.carpet) {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.2rem;
}
.carpet { order: -2; }
.parent-nav, h1 { order: -1; }
/* The Overlook's hexagon carpet, drawn as an SVG tile. */
.carpet {
  height: 120px;
  background-color: #8a2a12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'><g fill='none' stroke-linejoin='round'><path d='M30 4 L52 17 L52 43 L30 56 L8 43 L8 17 Z' stroke='%233b1608' stroke-width='7'/><path d='M30 4 L52 17 L52 43 L30 56 L8 43 L8 17 Z' stroke='%23d9652a' stroke-width='2.5'/><path d='M30 20 L40 26 L40 34 L30 40 L20 34 L20 26 Z' fill='%23d9652a' stroke='%233b1608' stroke-width='3'/><path d='M30 56 L30 104 M0 30 L8 17 M0 30 L8 43 M60 30 L52 17 M60 30 L52 43' stroke='%233b1608' stroke-width='7'/><path d='M30 56 L30 104' stroke='%23d9652a' stroke-width='2.5'/></g></svg>");
  background-size: 60px 104px;
  border-bottom: 4px solid #3b1608;
  box-shadow: inset 0 -40px 60px -20px rgba(0,0,0,0.6);
}
.parent-nav { margin-top: 1rem; font-size: 0.9rem; }
h1 {
  font-weight: normal;
  letter-spacing: 0.02em;
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}
.sub { color: var(--dim); margin-top: 0; margin-bottom: 0.4rem; }
.sub a, .player-m3u a, .parent-nav a { color: var(--amber); }
.player-cover { display: none; }
.player-controls:not([hidden]) { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
button {
  font: inherit;
  color: var(--night);
  background: var(--amber);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
[data-action=prev], [data-action=next], [data-action=stop] {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dim);
}
.player-audio:not([hidden]) { display: block; width: 100%; margin: 0.4rem 0 1rem; }
.playlist { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.playlist li {
  counter-increment: n;
  position: relative;
  padding: 0.8rem 0.8rem 0.8rem 3rem;
  border-top: 1px solid #2c201b;
  cursor: pointer;
  transition: background 0.3s;
}
.playlist li::before {
  content: counter(n);
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  color: var(--dim);
  font-variant-numeric: oldstyle-nums;
}
.playlist li:hover { background: #1f1512; }
.playlist li.now { background: #2a1410; font-weight: normal; }
.playlist li.now::before { content: "▶"; color: var(--blood); }
.playlist .track-title { color: var(--ink); text-decoration: none; display: block; }
.track-description { display: block; color: var(--dim); font-size: 0.9rem; font-style: italic; opacity: 1; }
.player-m3u { color: var(--dim); font-size: 0.85rem; margin-top: 2rem; }
