/* Пантера — премиум-каталог интернет-радио.
   Слои: рельс / каталог / эфир + закреплённый плеер.
   Дизайн: глубокий ночной фон со свечениями, дисплейный гротеск,
   стеклянные поверхности, микроанимации входа. */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg:        #0a0908;
  --bg-deep:   #060504;
  --surface:   rgba(28, 25, 22, .58);
  --surface-solid: #16130f;
  --raised:    rgba(38, 34, 29, .6);
  --hover:     rgba(48, 43, 36, .7);
  --line:      rgba(255, 240, 220, .09);
  --line-2:    rgba(255, 240, 220, .14);
  --ink:       #f7f2e9;
  --ink-dim:   #bcb3a5;
  --ink-mute:  #8a8175;
  --accent:    #f0a94e;
  --accent-2:  #e8804a;
  --accent-ink:#1a1105;
  --live:      #66e6a6;
  --danger:    #f5836b;
  --c:         var(--accent);

  --glow-a: 240, 169, 78;    /* warm amber */
  --glow-b: 232, 128, 74;    /* ember      */
  --glow-c: 120, 96, 180;    /* cool violet accent for depth */

  --r-sm: 10px;  --r-md: 16px;  --r-lg: 22px;  --r-xl: 30px;
  --rail-w: 256px;  --aside-w: 336px;  --player-h: 88px;
  --blur: saturate(1.6) blur(22px);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 30px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.8);
  --shadow-glow: 0 20px 60px -18px rgba(var(--glow-a), .35);
  --ease: cubic-bezier(.2,.7,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg:        #f1ebe1;
  --bg-deep:   #e7ded1;
  --surface:   rgba(255, 253, 249, .72);
  --surface-solid: #fffdf9;
  --raised:    rgba(251, 247, 240, .8);
  --hover:     rgba(240, 233, 223, .85);
  --line:      rgba(60, 45, 25, .12);
  --line-2:    rgba(60, 45, 25, .2);
  --ink:       #17130f;
  --ink-dim:   #574f45;
  --ink-mute:  #857b6d;
  --accent:    #b4661b;
  --accent-2:  #c2542a;
  --accent-ink:#fffdf9;
  --live:      #1c8a54;
  --danger:    #b3402a;
  --glow-a: 180, 102, 27;
  --glow-b: 194, 84, 42;
  --glow-c: 120, 96, 180;
  --shadow-glow: 0 20px 60px -20px rgba(180,102,27,.25);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
  position: relative;
  min-height: 100vh;
}
/* ambient depth: fixed colour glows + faint grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(var(--glow-a), .16) 0%, transparent 60%),
    radial-gradient(55% 45% at 100% 10%, rgba(var(--glow-b), .13) 0%, transparent 55%),
    radial-gradient(50% 60% at 85% 100%, rgba(var(--glow-c), .10) 0%, transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
}
html[data-theme="light"] body::after { opacity: .35; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-family: var(--font-display); }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* entrance animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glowIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: fadeUp .6s var(--ease-out) forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .tile { animation: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- layout ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--aside-w);
  min-height: 100vh; max-width: 1720px; margin: 0 auto;
}

/* ---------- left rail ---------- */
.rail {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  padding: 24px 16px calc(var(--player-h) + 16px);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,240,220,.02), transparent 40%);
  backdrop-filter: var(--blur);
  overflow-y: auto; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -8px rgba(var(--glow-a),.5); }
.brand b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.brand span { display: block; font-size: 11.5px; color: var(--ink-mute); letter-spacing: .01em; }

.rail__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-mute); font-weight: 600; padding: 0 10px; margin: 22px 0 8px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-dim); font-size: 14.5px; font-weight: 500;
  position: relative; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; transition: opacity .18s; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.is-on { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.nav a.is-on::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(var(--glow-a),.7); }
.nav a.is-on svg { color: var(--accent); opacity: 1; }

.rail__foot { margin-top: auto; padding: 16px 10px 0; }
.rail__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-mute); }
.rail__note a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- main column ---------- */
.main { min-width: 0; padding: 24px 32px 44px; }

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.search { flex: 1; position: relative; max-width: 540px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-mute); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; backdrop-filter: var(--blur);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.search input::placeholder { color: var(--ink-mute); }
.search input:focus { outline: none; border-color: rgba(var(--glow-a),.55); box-shadow: 0 0 0 4px rgba(var(--glow-a),.12); }

.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer; color: var(--ink-dim); backdrop-filter: var(--blur);
  transition: background .18s, color .18s, transform .18s var(--ease);
}
.icon-btn:hover { background: var(--hover); color: var(--ink); transform: rotate(-8deg); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 38px; }
.hero__main {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  padding: 30px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; box-shadow: var(--shadow-lg);
  animation: glowIn .7s var(--ease-out) both;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; transform: scale(1.08); filter: saturate(1.1); transition: transform 1.2s var(--ease-out); }
.hero__main:hover .hero__bg { transform: scale(1.13); }
.hero__main::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 380px; height: 380px; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-a),.35), transparent 65%); filter: blur(20px); }
.hero__main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,5,4,.15) 0%, rgba(6,5,4,.72) 55%, rgba(6,5,4,.96) 100%); }
html[data-theme="light"] .hero__main::after { background: linear-gradient(180deg, rgba(10,8,6,.12) 0%, rgba(10,8,6,.6) 55%, rgba(10,8,6,.9) 100%); }
.hero__main, .hero__main h1, .hero__main p { color: #f9f4ec; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--ink-dim); margin-bottom: 14px; }
.hero__main .kicker { color: rgba(249,244,236,.8); }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; margin-bottom: 10px; letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero__by { font-size: 14.5px; color: rgba(249,244,236,.82); margin-bottom: 22px; }
.hero__by a { text-decoration: underline; text-underline-offset: 3px; }
.hero__cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.stat {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: var(--blur);
  padding: 22px 24px; display: flex; flex-direction: column; justify-content: center;
  animation: fadeUp .6s var(--ease-out) both;
}
.stat:nth-child(2) { animation-delay: .08s; }
.stat::before { content: ""; position: absolute; inset: auto auto -40% -20%; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-a),.14), transparent 70%); pointer-events: none; }
.stat b { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.stat span { font-size: 13px; color: var(--ink-mute); margin-top: 8px; }
.stat--live b { background: linear-gradient(120deg, var(--live), #a8f0cd); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(var(--glow-a),.6);
  transition: transform .14s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 16px 40px -12px rgba(var(--glow-a),.75); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 15px; height: 15px; }
.btn--ghost { background: rgba(255,255,255,.1); color: #f9f4ec; border-color: rgba(255,255,255,.24); backdrop-filter: blur(8px); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.18); box-shadow: none; }

/* ---------- section head + chips ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-head h2 { font-size: 23px; font-weight: 600; }
.section-head a { font-size: 13.5px; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.section-head a:hover { color: var(--ink); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); backdrop-filter: var(--blur);
  color: var(--ink-dim); font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s, transform .15s;
}
.chip:hover { background: var(--hover); color: var(--ink); transform: translateY(-1px); }
.chip.is-on { background: linear-gradient(120deg, var(--ink), #3a332b); color: var(--bg); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
html[data-theme="light"] .chip.is-on { background: linear-gradient(120deg, var(--ink), #4a4038); color: #fff; }

/* ---------- catalog grid ---------- */
.grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
.tile { min-width: 0; animation: fadeUp .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.tile__art {
  position: relative; aspect-ratio: 1; margin-bottom: 13px;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--raised); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.tile:hover .tile__art { transform: translateY(-6px); box-shadow: 0 26px 50px -18px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 18px 50px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), filter .35s; }
.tile:hover .tile__art img { transform: scale(1.06); filter: brightness(.68); }
.tile__play {
  position: absolute; right: 11px; bottom: 11px;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(130deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 12px 28px -8px rgba(var(--glow-a),.7);
  opacity: 0; transform: translateY(10px) scale(.85);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), filter .15s;
}
.tile__play svg { width: 16px; height: 16px; }
.tile__play:hover { filter: brightness(1.08); }
.tile:hover .tile__play, .tile__play:focus-visible { opacity: 1; transform: none; }
.tile.is-playing .tile__play { opacity: 1; transform: none; }

.tile__ext {
  position: absolute; right: 11px; top: 11px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; color: #f7f2e9;
  background: rgba(8,6,4,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), background .15s;
}
.tile__ext svg { width: 15px; height: 15px; }
.tile__ext:hover { background: rgba(8,6,4,.8); }
.tile:hover .tile__ext, .tile__ext:focus-visible { opacity: 1; transform: none; }

.tile__tag {
  position: absolute; left: 11px; top: 11px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(8,6,4,.6); backdrop-filter: blur(10px);
  color: #f7f2e9; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.1);
}
.tile h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.02em; }
.tile__src { font-size: 12.5px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__src a { text-decoration: underline; text-underline-offset: 2px; }
.tile__src a:hover { color: var(--ink-dim); }
.tile__meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-mute); margin-top: 7px; }
.tile.is-playing h3 { color: var(--accent); }

.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; box-shadow: 0 0 0 0 var(--live); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(102,230,166,.5); } 70% { box-shadow: 0 0 0 7px rgba(102,230,166,0); } 100% { box-shadow: 0 0 0 0 rgba(102,230,166,0); } }

/* ---------- right rail ---------- */
.aside {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; scrollbar-width: thin;
  padding: 24px 20px calc(var(--player-h) + 16px);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,240,220,.02), transparent 40%);
  backdrop-filter: var(--blur);
}
.aside h2 { font-family: var(--font-display); font-size: 14px; letter-spacing: -.01em; margin-bottom: 14px; }
.aside__block { margin-bottom: 30px; }
.feed { display: flex; flex-direction: column; gap: 3px; }
.feed__row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px; border-radius: var(--r-sm); border: none; background: none; cursor: pointer; text-align: left;
  transition: background .18s var(--ease);
}
.feed__row:hover { background: var(--hover); }
.feed__row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.feed__txt { min-width: 0; flex: 1; }
.feed__txt b { display: block; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__txt small { display: block; font-size: 11.5px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__row.is-playing b { color: var(--accent); }

.support { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); backdrop-filter: var(--blur); padding: 16px; }
.support p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.55; }
.support a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: var(--player-h);
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 20px; padding: 0 24px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  backdrop-filter: saturate(1.7) blur(28px);
  border-top: 1px solid var(--line-2);
}
.player::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--glow-a),.5), transparent); opacity: 0; transition: opacity .4s; }
.player.is-live::before { opacity: 1; }
@supports not (backdrop-filter: blur(4px)) { .player { background: var(--surface-solid); } }

.np { display: flex; align-items: center; gap: 13px; min-width: 0; }
.np img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.np__txt { min-width: 0; }
.np__title { font-size: 13.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np__sub { font-size: 11.5px; color: var(--ink-mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.status.is-err { color: var(--danger); }
.status.is-wait { color: var(--accent); }
.status.is-live { color: var(--live); }

.transport { display: flex; align-items: center; gap: 7px; }
.tbtn { display: grid; place-items: center; width: 38px; height: 38px; border: none; background: none; border-radius: 50%; color: var(--ink-dim); cursor: pointer; transition: color .15s, background .15s, transform .15s var(--ease); }
.tbtn:hover { color: var(--ink); background: var(--hover); transform: scale(1.06); }
.tbtn svg { width: 17px; height: 17px; }
.tbtn--main { width: 50px; height: 50px; background: linear-gradient(130deg, var(--ink), #3a332b); color: var(--bg); box-shadow: var(--shadow-md); }
html[data-theme="light"] .tbtn--main { background: linear-gradient(130deg, var(--ink), #4a4038); color: #fff; }
.tbtn--main:hover { filter: brightness(1.08); transform: scale(1.05); }
.tbtn--main svg { width: 18px; height: 18px; }

.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 22px; }
.eq i { width: 3px; border-radius: 2px; background: var(--ink-mute); height: 30%; transform-origin: bottom; }
.player.is-live .eq i { background: linear-gradient(var(--accent), var(--accent-2)); animation: eq .9s ease-in-out infinite alternate; }
.player.is-live .eq i:nth-child(2) { animation-delay: .12s; }
.player.is-live .eq i:nth-child(3) { animation-delay: .26s; }
.player.is-live .eq i:nth-child(4) { animation-delay: .38s; }
.player.is-live .eq i:nth-child(5) { animation-delay: .5s; }
@keyframes eq { from { height: 22%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .player.is-live .eq i { animation: none; height: 60%; } .live-dot { animation: none; } }

.player__right { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.clock { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100px; height: 4px; border-radius: 2px; background: var(--line-2); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: none; box-shadow: 0 0 0 3px transparent; transition: box-shadow .15s; }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--glow-a),.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: none; }

/* ---------- article pages ---------- */
.prose { max-width: 680px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; letter-spacing: -.035em; }
.prose h2 { font-family: var(--font-display); font-size: 20px; margin: 32px 0 10px; }
.prose p { color: var(--ink-dim); margin-bottom: 13px; line-height: 1.68; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { color: var(--ink-dim); padding-left: 20px; margin: 0 0 13px; line-height: 1.68; }
.prose li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); backdrop-filter: var(--blur); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 540px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--hover); }
td a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-mute); font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

.foot { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-mute); line-height: 1.75; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--ink-dim); }

/* ---------- skeleton ---------- */
.sk { background: var(--raised); border-radius: var(--r-md); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 8%, transparent), transparent); animation: sweep 1.4s infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.sk--tile { aspect-ratio: 1; margin-bottom: 13px; }
.sk--line { height: 12px; margin-bottom: 6px; }
.sk--line.w60 { width: 60%; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .aside { display: none; }
}
@media (max-width: 940px) {
  :root { --player-h: 78px; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand { padding: 0 12px 0 0; flex: none; }
  .rail__label, .rail__foot { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav a { padding: 9px 12px; white-space: nowrap; }
  .nav a.is-on::before { display: none; }
  .nav a span { display: none; }
  .nav a svg { width: 20px; height: 20px; }
  .main { padding: 20px 16px 34px; }
  .hero { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 18px 14px; }
  .player { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 0 14px; }
  .player__right { display: none; }
  .np img { width: 46px; height: 46px; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__side { grid-template-columns: 1fr; }
  .hero__side .stat:last-child { display: none; }
}
