/* ===========================================================
   DR. SHOCKTOPUS — RECALIBRATE
   black water · wet concrete · gold · red drip · acid bolts
   =========================================================== */
:root {
  --water: #05080a;
  --deep: #0a1216;
  --concrete: #8c959a;
  --bone: #e8ecec;
  --muted: #7d888d;
  --gold: #d9ab45;
  --gold-hi: #f5d27a;
  --red: #e3263e;
  --magenta: #d6338a;
  --acid: #e7f23c;
  --accent: var(--gold);
  --bg: var(--water);
  --amp: 0;

  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-spray: "Rubik Wet Paint", "Anton", sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-ar: "Cairo", "Noto Kufi Arabic", "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --player-h: 88px;
}

body[data-theme="hero"],
body[data-theme="ink"]     { --bg: #05080a; --accent: #d9ab45; }
body[data-theme="intro"]   { --bg: #0a0708; --accent: #ff3b52; }
body[data-theme="octo"]    { --bg: #040b10; --accent: #7fd8ef; }
body[data-theme="bones"]   { --bg: #07090a; --accent: #e7f23c; }
body[data-theme="fishhh"]  { --bg: #0b0710; --accent: #ff7ac0; }
body[data-theme="wok"]     { --bg: #0c0806; --accent: #ff8a2a; }
body[data-theme="morgana"] { --bg: #06100d; --accent: #f0a25a; }
body[data-theme="meduse"]  { --bg: #0a0614; --accent: #c483ff; }
body[data-theme="origin"]  { --bg: #050a12; --accent: #57b2ff; }
body[data-theme="dark"]    { --bg: #020203; --accent: #d02a34; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--bone);
  font-family: var(--f-body); font-size: 18px; line-height: 1.6;
  transition: background-color 1.2s var(--ease);
  overflow-x: hidden; padding-bottom: var(--player-h);
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }

/* ---------- ambient layers ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; mix-blend-mode: screen; }
.scan {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* depth gauge */
.depth {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 11px;
  transition: color 1.2s;
}
.depth-val { font-size: 15px; color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; transition: color 1.2s; }
.depth-unit { margin-top: -4px; }
.depth-track { width: 2px; height: 140px; background: rgba(232, 236, 236, .14); position: relative; margin-top: 6px; }
.depth-track i { position: absolute; left: -2px; width: 6px; height: 6px; background: var(--accent); top: 0; box-shadow: 0 0 10px var(--accent); transition: background 1.2s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 22px; text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #9c7425); color: #120d02; }
.btn-gold:hover { filter: brightness(1.1); }
.btn-line { box-shadow: inset 0 0 0 1px rgba(232, 236, 236, .5); background: rgba(255, 255, 255, .03); }
.btn-line:hover { background: rgba(255, 255, 255, .08); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 72px 24px 110px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 75% 30%, rgba(60, 110, 130, .22), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(217, 171, 69, .10), transparent 70%),
    linear-gradient(180deg, #0b1418 0%, #05080a 100%);
}
.hero-inner {
  position: relative; z-index: 3; width: min(1240px, 100%);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 90px); align-items: center;
}
.kicker { display: flex; align-items: center; gap: .7em; color: var(--muted); margin: 0 0 26px; opacity: 0; animation: up .9s .2s var(--ease) forwards; }
.blip { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.spray {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-spray); font-size: clamp(30px, 4.2vw, 58px); line-height: 1;
  color: var(--red); margin: 0 0 6px; transform: rotate(-3deg); transform-origin: left;
  text-shadow: 0 0 22px rgba(227, 38, 62, .35);
  opacity: 0; animation: spray 1.2s .5s var(--ease) forwards;
}
@keyframes spray { from { opacity: 0; filter: blur(8px); transform: rotate(-3deg) scale(1.08); } to { opacity: 1; filter: none; transform: rotate(-3deg); } }
.bolts { width: clamp(38px, 4vw, 56px); height: auto; fill: var(--acid); filter: drop-shadow(0 0 10px rgba(231, 242, 60, .6)); animation: zap 3.2s 2s infinite; }
@keyframes zap { 0%, 88%, 100% { opacity: 1; } 90% { opacity: .2; } 92% { opacity: 1; } 94% { opacity: .4; } }

.title {
  position: relative; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(64px, 11.6vw, 184px); line-height: .86; letter-spacing: .01em;
  margin: 0 0 28px; color: var(--bone);
  text-shadow: 0 2px 0 #3a4347, 0 18px 40px rgba(0, 0, 0, .6);
  opacity: 0; animation: up 1.2s .7s var(--ease) forwards;
}
.title::before, .title::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  color: transparent; text-shadow: none;
  opacity: calc(var(--amp) * 1.2);
}
.title::before { -webkit-text-stroke: 1px var(--red); transform: translate(calc(var(--amp) * -6px), 0); }
.title::after { -webkit-text-stroke: 1px #3ff0ff; transform: translate(calc(var(--amp) * 6px), 0); }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: #c4ccce; max-width: 40ch; margin: 0 0 14px; opacity: 0; animation: up 1s 1.1s var(--ease) forwards; }
.motto { color: var(--gold); margin: 0 0 36px; opacity: 0; animation: up 1s 1.3s var(--ease) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: up 1s 1.5s var(--ease) forwards; }

.booth { margin: 0; justify-self: end; width: min(400px, 100%); opacity: 0; animation: up 1.4s .9s var(--ease) forwards; }
.booth-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000;
  border: 10px solid #1a2023; outline: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 0 0 1px #000, 0 50px 100px rgba(0, 0, 0, .7),
    0 0 calc(40px + var(--amp) * 80px) rgba(217, 171, 69, calc(.08 + var(--amp) * .25));
}
.booth-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.booth-glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .12) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, .05) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(5, 8, 10, .8), transparent 60%);
}
/* tower rising out of the sea (built from a still, animated in CSS + canvas) */
.tower-scene { position: absolute; inset: 0; overflow: hidden; background: #03070a; }
.tower-img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform-origin: 50% 100%;
  animation: rise 7s .6s cubic-bezier(.16, .8, .2, 1) both, sway 9s 7.6s ease-in-out infinite;
  filter: brightness(.9) contrast(1.08);
}
@keyframes rise {
  from { transform: translateY(46%) scale(1.06); filter: brightness(.35) contrast(1.1) blur(2px); }
  60%  { filter: brightness(.8) contrast(1.08) blur(0); }
  to   { transform: translateY(0) scale(1.06); filter: brightness(.9) contrast(1.08); }
}
@keyframes sway { 50% { transform: translateY(-1.2%) scale(1.06); } 0%, 100% { transform: translateY(0) scale(1.06); } }
.sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.flash { position: absolute; inset: 0; background: #dfe9ff; mix-blend-mode: overlay; opacity: 0; pointer-events: none; }

.hud { position: absolute; font-size: 11px; color: rgba(232, 236, 236, .75); text-shadow: 0 1px 2px #000; }
.hud.tl { top: 10px; left: 12px; color: var(--red); }
.hud.tr { top: 10px; right: 12px; }
.hud.bl { bottom: 10px; left: 12px; font-variant-numeric: tabular-nums; }
.hud.br { bottom: 10px; right: 12px; color: var(--gold); }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--muted); text-decoration: none; opacity: 0; animation: up 1s 2s var(--ease) forwards; }
.scroll-cue span { display: inline-block; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ===========================================================
   TRANSMISSION + TRACKLIST
   =========================================================== */
.transmission { position: relative; z-index: 3; padding: clamp(90px, 13vw, 170px) 24px; }
.tx-grid { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.eyebrow { color: var(--gold); margin: 0 0 22px; }
.tx-text p:not(.eyebrow):not(.tx-tags) { color: #b9c2c5; margin: 0 0 1.1em; max-width: 46ch; }
.tx-text em { color: #ff7ac0; font-style: normal; }
.tx-tags { color: var(--muted); line-height: 2; margin-top: 2em; }

.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(232, 236, 236, .12); counter-reset: t; }
.tl-item {
  position: relative; display: grid; grid-template-columns: 54px 52px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 8px; border-bottom: 1px solid rgba(232, 236, 236, .12);
  cursor: pointer; transition: background .3s, padding .4s var(--ease);
}
.tl-item:hover { background: rgba(255, 255, 255, .03); padding-left: 16px; }
.tl-item::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--c, var(--gold));
  transition: width .5s var(--ease);
}
.tl-item:hover::after, .tl-item.is-playing::after { width: 100%; }
.tl-num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.tl-thumb { width: 52px; height: 52px; object-fit: cover; filter: grayscale(.6) brightness(.8); transition: filter .3s; }
.tl-item:hover .tl-thumb, .tl-item.is-playing .tl-thumb { filter: none; }
.tl-title { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.tl-title[lang="ar"] { font-family: var(--f-ar); font-weight: 600; text-transform: none; }
.tl-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tl-sub b { color: var(--c, var(--gold)); font-weight: 500; }
.tl-dur { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.tl-item.is-playing .tl-num { color: var(--c); }
.tl-item.is-playing .tl-num::before { content: "▶ "; }

/* ===========================================================
   CHAPTERS
   =========================================================== */
.chapter { position: relative; z-index: 3; padding: clamp(80px, 11vw, 150px) 24px; overflow: clip; }
.ch-backdrop {
  position: absolute; inset: -10%; z-index: -1; background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.3) brightness(.32); opacity: calc(.45 + var(--local-amp, 0) * .4); transform: scale(1.1);
}
.chapter::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}
.ch-grid { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.chapter:nth-child(even) .ch-grid { grid-template-columns: 1.05fr 1fr; }
.chapter:nth-child(even) .ch-art { order: 2; }

.ch-art { position: sticky; top: 40px; margin: 0; }
.ch-art-frame {
  position: relative; overflow: hidden; background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 calc(var(--local-amp, 0) * 70px) color-mix(in srgb, var(--accent) 35%, transparent);
  transition: box-shadow .1s linear;
}
.ch-art-frame img, .ch-art-frame video {
  width: 100%; height: auto; max-height: calc(100svh - var(--player-h) - 90px); object-fit: cover;
  transform: scale(calc(1.03 + var(--local-amp, 0) * .04)); transition: transform .12s linear;
}
.ch-art-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); z-index: 2; transition: border-color 1.2s; }
.corner.a { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.b { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.c { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.d { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.ch-art figcaption { margin-top: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }

.ch-num { color: var(--accent); margin: 0 0 16px; display: flex; gap: 14px; align-items: center; }
.ch-num .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); max-width: 160px; }
.ch-title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 6.6vw, 104px); line-height: .9; margin: 0 0 10px; letter-spacing: .005em;
  transition: text-shadow .08s, transform .08s;
}
.ch-title[lang="ar"] { font-family: var(--f-ar); font-weight: 600; text-transform: none; line-height: 1.2; }
.ch-aka { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.guest {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #000; background: var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 9px; border: 1px solid rgba(232, 236, 236, .16); color: #aeb8bb;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin: 0 0 32px; background: rgba(232, 236, 236, .1); border: 1px solid rgba(232, 236, 236, .1); }
.stat { background: var(--bg); padding: 13px 15px; transition: background 1.2s; }
.stat dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat dd { margin: 0; font-family: var(--f-display); font-size: 26px; line-height: 1; letter-spacing: .02em; }

.ch-play { display: flex; align-items: center; gap: 18px; margin: 0 0 14px; }
.big-play {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: #000; display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.big-play::before, .big-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: 0;
}
.chapter.is-playing .big-play::before { animation: ping 2s infinite; }
.chapter.is-playing .big-play::after { animation: ping 2s 1s infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }
.big-play:hover { transform: scale(1.06); }
.big-play svg { width: 26px; height: 26px; fill: currentColor; }
.big-play .ic-pause { display: none; }
.chapter.is-playing .big-play .ic-play { display: none; }
.chapter.is-playing .big-play .ic-pause { display: block; }
.ch-wave-wrap { flex: 1; min-width: 0; }
.ch-wave-wrap .wave { width: 100%; height: 56px; }
.ch-time { display: flex; justify-content: space-between; color: var(--muted); margin-top: 6px; font-size: 11px; }
.ch-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 18px; }
.lyrics-toggle, .sc-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid rgba(232, 236, 236, .3); text-decoration: none; color: var(--bone);
}
.sc-link { color: var(--muted); border-color: transparent; }
.sc-link:hover { color: var(--bone); }
.lyrics-toggle .chev { transition: transform .4s var(--ease); }
.lyrics-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lyrics { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.lyrics.open { grid-template-rows: 1fr; }
.lyrics > div { overflow: hidden; }
.lyrics-body { padding: 28px 0 8px; font-size: 18px; line-height: 1.6; color: #dfe5e6; }
.lyrics-body[dir="rtl"] { font-family: var(--f-ar); font-size: 21px; line-height: 1.9; }
.stanza { margin: 0 0 1.2em; }
.ln { display: block; }
.sec { display: block; margin: 1.3em 0 .35em; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.sec:first-child { margin-top: 0; }
.cue { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin: .2em 0 .4em; text-transform: lowercase; }
.echo { color: color-mix(in srgb, var(--accent) 75%, #888); font-style: italic; }
.pun { color: var(--accent); font-weight: 500; }
.aka-line { display: block; font-family: var(--f-display); font-size: 26px; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }

body.surge .chapter.is-playing .ch-title { text-shadow: -3px 0 var(--red), 3px 0 #3ff0ff; transform: translateX(calc((var(--amp) - .5) * 5px)); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   FOOTER
   =========================================================== */
.foot { position: relative; z-index: 3; padding: 140px 24px 120px; text-align: center; display: grid; justify-items: center; gap: 18px; border-top: 1px solid rgba(232, 236, 236, .08); }
.foot-spray { animation: none; opacity: 1; transform: rotate(-3deg); }
.foot-title { font-family: var(--f-display); font-size: clamp(60px, 11vw, 160px); line-height: .85; margin: 0; color: #66737a; }
.foot-meta { color: var(--muted); margin: 0 0 10px; }
.credits { color: #aab3b6; max-width: 46ch; margin: 24px 0 0; }
.foot-tiny { color: var(--gold); margin: 0; }
.foot-made { text-transform: none; color: var(--muted); text-decoration: none; margin-top: 28px; padding: 6px 2px; border-bottom: 1px solid rgba(232, 236, 236, .18); transition: color .2s, border-color .2s; }
.foot-made:hover, .foot-made:focus-visible { color: var(--gold-hi); border-color: var(--gold-hi); }

/* ===========================================================
   PLAYER
   =========================================================== */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  height: calc(var(--player-h) - 12px);
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.6fr) minmax(150px, .7fr); align-items: center; gap: 22px;
  padding: 0 18px 0 10px;
  background: rgba(8, 12, 14, .76); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transform: translateY(140%); animation: slideup 1s 1.8s var(--ease) forwards;
}
.player::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: var(--prog, 0%); background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: background 1.2s; }
@keyframes slideup { to { transform: none; } }
.p-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-thumb { width: 54px; height: 54px; object-fit: cover; flex: none; }
.p-meta { min-width: 0; }
.p-title { margin: 0; font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { margin: 4px 0 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-center { display: grid; gap: 4px; }
.p-controls { display: flex; justify-content: center; gap: 10px; }
.p-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; opacity: .8; transition: opacity .2s, transform .2s; }
.p-btn:hover { opacity: 1; transform: scale(1.08); }
.p-btn svg { width: 16px; height: 16px; fill: currentColor; }
.p-main { background: var(--gold); color: #000; opacity: 1; }
.p-main .ic-pause { display: none; }
.player.is-playing .p-main .ic-play { display: none; }
.player.is-playing .p-main .ic-pause { display: block; }
.p-seek { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; }
.p-time { font-size: 11px; letter-spacing: .04em; color: var(--muted); text-align: center; }
.wave { display: block; width: 100%; height: 26px; cursor: pointer; touch-action: none; }
.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.scope { width: 120px; height: 40px; }
#pVol { width: 84px; accent-color: var(--gold); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1360px) { .depth { display: none; } }
@media (max-width: 960px) {
  body { font-size: 17px; }
  .hero-inner { grid-template-columns: 1fr; }
  .booth { justify-self: center; width: min(300px, 70vw); }
  .kicker { flex-wrap: wrap; row-gap: 4px; }
  .hero { padding-top: 48px; }
  .tx-grid, .ch-grid, .chapter:nth-child(even) .ch-grid { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .ch-art { order: 0; }
  .ch-art { position: relative; top: 0; }
  .ch-art-frame img, .ch-art-frame video { max-height: 70svh; }
  .depth { display: none; }
  :root { --player-h: 112px; }
  .player { grid-template-columns: 1fr auto; gap: 10px; height: auto; padding: 10px 12px; row-gap: 6px; }
  .p-center { display: contents; }
  .p-controls { grid-column: 2; grid-row: 1; }
  .p-controls .p-btn:not(.p-main) { display: none; }
  .p-seek { grid-column: 1 / -1; grid-row: 2; }
  .p-right { display: none; }
}
@media (max-width: 520px) {
  .tl-item { grid-template-columns: 28px 44px 1fr auto; gap: 12px; }
  .tl-thumb { width: 44px; height: 44px; }
  .title { font-size: 18.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

.tl-item > span:nth-of-type(2) { min-width: 0; }
