/* VKS-Radio Replay: studio look. Black desk, cream paper, signal red, amber LCD. */
:root {
  --ink: #0f0e0d;
  --desk: #171614;
  --panel: #1f1d1a;
  --panel-2: #26231f;
  --line: #34302a;
  --cream: #f1e9d8;
  --paper: #e9dfc9;
  --muted: #9b9384;
  --red: #e5322b;
  --red-dark: #a8211c;
  --amber: #ffb22e;
  --lcd-bg: #1b1406;
  --sans: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --cond: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue Condensed', 'Franklin Gothic Medium', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--ink); color: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* Header */
.top { background: #000; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: stretch; text-decoration: none; font-family: var(--cond); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.25rem; line-height: 1; }
.logo .a { background: var(--cream); color: #000; padding: 8px 10px; }
.logo .b { border: 2px solid var(--cream); padding: 6px 10px; border-left: 0; }
.logo small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); align-self: center; margin-left: 12px; font-weight: 400; }
.top-right { display: flex; align-items: center; gap: 14px; }
.onair { font-family: var(--cond); font-weight: 900; letter-spacing: 0.14em; font-size: 0.9rem; padding: 6px 12px; border: 2px solid #3a1210; color: #4a1714; background: #1a0807; border-radius: 4px; transition: all 0.3s; user-select: none; }
.onair.live { color: #fff; background: var(--red); border-color: #ff6a5f; box-shadow: 0 0 18px rgba(229, 50, 43, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.3); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); min-height: 34px; }
.lang button[aria-pressed='true'] { background: var(--cream); color: #000; font-weight: 700; }

/* Hero: tuner */
.hero { background: var(--desk); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: end; }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.hero h1 { font-family: var(--cond); text-transform: uppercase; font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.92; letter-spacing: -0.01em; margin: 12px 0 18px; color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 33em; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 4px; border: 0; font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; font-size: 0.95rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn-red:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.btn-line { border: 2px solid var(--cream); color: var(--cream); background: transparent; }
.btn-line:hover { background: var(--cream); color: #000; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.tuner { background: linear-gradient(#2a2723, #1c1a17); border: 1px solid #3d3832; border-radius: 10px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -20px #000; }
.dial { position: relative; height: 74px; background: var(--paper); border-radius: 4px; overflow: hidden; color: #2b2620; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 6px 14px rgba(0, 0, 0, 0.25); }
.dial .ticks { position: absolute; inset: 0 10px; background: repeating-linear-gradient(90deg, #2b2620 0 1px, transparent 1px 100%) 0 0 / 2.5% 14px no-repeat repeat-x, repeating-linear-gradient(90deg, #2b2620 0 2px, transparent 2px 100%) 0 0 / 12.5% 24px repeat-x; }
.dial .nums { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; }
.dial .band { position: absolute; left: 12px; top: 30px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; }
.needle { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--red); left: 62%; box-shadow: 0 0 6px rgba(229, 50, 43, 0.6); transition: left 1.2s cubic-bezier(0.3, 1.4, 0.5, 1); }
.lcd { margin-top: 14px; background: var(--lcd-bg); border-radius: 4px; padding: 12px 14px; font-family: var(--mono); color: var(--amber); text-shadow: 0 0 8px rgba(255, 178, 46, 0.55); box-shadow: inset 0 0 0 1px #3b2c0c, inset 0 4px 12px rgba(0, 0, 0, 0.6); min-height: 76px; }
.lcd .l1 { font-size: 0.7rem; letter-spacing: 0.2em; opacity: 0.75; }
.lcd .l2 { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.knobs { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.knob { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a453e, #1a1815 70%); border: 1px solid #000; position: relative; box-shadow: 0 3px 6px #000; }
.knob::after { content: ''; position: absolute; width: 3px; height: 12px; background: var(--cream); left: 50%; top: 5px; transform: translateX(-50%); border-radius: 2px; }
.knob.r::after { transform: translateX(-50%) rotate(0deg); }
.grille { flex: 1; height: 34px; margin: 0 16px; background: radial-gradient(circle, #0b0a09 1.6px, transparent 2px) 0 0 / 8px 8px; opacity: 0.9; }
.stats { display: flex; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.stats div { padding: 14px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--cream); }
.stats span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }

/* Log (list of replays) */
.log { padding: 40px 0 20px; }
.toolbar { display: flex; gap: 14px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar h2 { margin: 0; font-family: var(--cond); text-transform: uppercase; font-weight: 900; font-size: 2rem; letter-spacing: 0.01em; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.input { height: 46px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); padding: 0 14px; }
.search { width: min(300px, 80vw); }
.month { margin: 30px 0 0; padding: 8px 0; border-bottom: 2px solid var(--cream); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--cream); }
.month span { color: var(--muted); }
.row { display: grid; grid-template-columns: 84px 1fr auto 58px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover { background: linear-gradient(90deg, transparent, rgba(241, 233, 216, 0.035), transparent); }
.date { text-align: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); }
.date .wd { background: var(--cream); color: #000; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 0; }
.date .d { font-family: var(--cond); font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.date .m { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.info { min-width: 0; }
.info h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.info p { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info .heard { margin-top: 8px; height: 3px; background: var(--line); max-width: 260px; }
.info .heard i { display: block; height: 100%; background: var(--amber); }
.len { font-family: var(--mono); font-size: 0.88rem; color: var(--amber); background: var(--lcd-bg); padding: 4px 8px; border-radius: 3px; white-space: nowrap; }
.pbtn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; display: grid; place-items: center; color: var(--cream); transition: background 0.15s, color 0.15s; }
.row:hover .pbtn, .row.on .pbtn { background: var(--red); border-color: var(--red); color: #fff; }
.row.on h3 { color: var(--red); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); margin-top: 24px; font-family: var(--mono); }
.empty b { display: block; color: var(--cream); font-family: var(--cond); text-transform: uppercase; font-size: 1.4rem; margin-bottom: 4px; }
footer { color: var(--muted); font-size: 0.8rem; padding: 40px 0 150px; text-align: center; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* Player: the deck */
.deck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: linear-gradient(#2b2824, #1a1815); border-top: 3px solid var(--red); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6); transform: translateY(110%); transition: transform 0.3s ease-out; }
.deck.show { transform: none; }
.deck .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.4fr) auto; gap: 18px; align-items: center; padding: 12px 0; }
.deck .lcd { margin: 0; min-height: 0; padding: 8px 12px; }
.deck .lcd .l2 { font-size: 0.95rem; }
.btns { display: flex; align-items: center; gap: 8px; }
.hw { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #000; background: linear-gradient(#45403a, #2a2723); color: var(--cream); display: grid; place-items: center; box-shadow: 0 3px 0 #000; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; }
.hw:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.hw.main { width: 56px; height: 52px; background: linear-gradient(#f0473f, var(--red)); border-color: #5a120f; color: #fff; box-shadow: 0 3px 0 #5a120f; }
.seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 0.8rem; color: var(--amber); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) var(--p, 0%), #0d0c0b var(--p, 0%)); box-shadow: inset 0 1px 2px #000; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; border-radius: 2px; background: linear-gradient(#f1e9d8, #b9b09d); border: 1px solid #000; }
input[type='range']::-moz-range-thumb { width: 14px; height: 22px; border-radius: 2px; background: #f1e9d8; border: 1px solid #000; }
.vu { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.vu i { width: 6px; height: 100%; background: linear-gradient(to top, #3fae4a 0 55%, var(--amber) 55% 80%, var(--red) 80%); transform-origin: bottom; transform: scaleY(0.08); opacity: 0.85; }
.deck.playing .vu i { animation: vu 0.9s ease-in-out infinite alternate; }
.vu i:nth-child(2) { animation-duration: 0.7s !important; } .vu i:nth-child(3) { animation-duration: 1.1s !important; } .vu i:nth-child(4) { animation-duration: 0.6s !important; }
.vu i:nth-child(5) { animation-duration: 0.95s !important; } .vu i:nth-child(6) { animation-duration: 0.75s !important; }
@keyframes vu { 0% { transform: scaleY(0.15); } 40% { transform: scaleY(0.7); } 70% { transform: scaleY(0.45); } 100% { transform: scaleY(0.9); } }
.extra { display: flex; align-items: center; gap: 10px; }
.extra .vol { width: 90px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .tuner { order: -1; }
  .logo small, .onair { display: none; }
  .row { grid-template-columns: 64px 1fr 50px; gap: 12px; }
  .row .len { display: none; }
  .date .d { font-size: 1.5rem; }
  .pbtn { width: 46px; height: 46px; }
  .deck .wrap { grid-template-columns: 1fr auto; grid-template-areas: 'lcd btns' 'seek seek'; gap: 8px 10px; padding: 10px 0; }
  .deck .lcd { grid-area: lcd; }
  .deck .btns { grid-area: btns; }
  .deck .seek { grid-area: seek; }
  .deck .extra { display: none; }
  .hw.skip { display: none; }
}

/* Admin */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.panel h2 { margin: 0 0 18px; font-family: var(--cond); text-transform: uppercase; font-weight: 900; font-size: 1.5rem; }
.admin-main { padding: 36px 0 80px; display: grid; gap: 24px; }
.auth { max-width: 440px; margin: 9vh auto; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { background: var(--desk); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; min-height: 46px; }
.field textarea { min-height: 90px; resize: vertical; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.drop { border: 2px dashed #4a453d; border-radius: 6px; padding: 32px 20px; text-align: center; color: var(--muted); margin-bottom: 16px; display: block; cursor: pointer; background: var(--desk); }
.drop.over, .drop:hover { border-color: var(--amber); }
.drop b { color: var(--cream); display: block; font-size: 1.05rem; }
.bar { height: 12px; border-radius: 2px; background: #0d0c0b; overflow: hidden; margin: 14px 0 6px; box-shadow: inset 0 1px 2px #000; }
.bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.2s; }
.msg { font-size: 0.92rem; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; }
.msg.err { color: #ff8a80; }
.msg.ok { color: #8fd694; }
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item b { display: block; }
.item span { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 0.8rem; }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line); color: var(--cream); }
.btn-danger { background: transparent; border: 1px solid var(--red); color: #ff8a80; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px 0; font-size: 0.9rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.tag.on { background: #183a1c; color: #8fd694; }
.tag.wait { background: #3a2c0c; color: var(--amber); }
.tag.me { background: var(--cream); color: #000; }
.inline { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 220px; }
dialog { background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 24px; width: min(520px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
@media (max-width: 600px) { .cols { grid-template-columns: 1fr; } .item { grid-template-columns: 1fr; } }
.hero .wrap > * { min-width: 0; }

/* ===== Smooth layer: same red/black identity, softer edges and motion ===== */
:root {
  --ink: #0b0b0c; --desk: #111113; --panel: #17171a; --panel-2: #1e1e22; --line: rgba(255, 255, 255, 0.08);
  --cream: #f4efe6; --muted: #9a958c; --red: #ff3b30; --red-dark: #b3261e;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
body { background: var(--ink); }
.top { background: rgba(8, 8, 9, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent); opacity: 0.9; }
.logo .a { border-radius: 6px 0 0 6px; }
.logo .b { border-radius: 0 6px 6px 0; }
.onair { border-radius: 6px; transition: all 0.4s var(--ease); }
.lang { border-radius: 8px; border-color: var(--line); }
.lang button { transition: background 0.2s, color 0.2s; }

.hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 85% 20%, rgba(255, 59, 48, 0.16), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(255, 59, 48, 0.07), transparent 60%), var(--desk); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.hero h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 0.9; }
.hero h1 em { background: linear-gradient(90deg, #ff3b30, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.host { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.host .mic { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgba(255, 59, 48, 0.6); }
.host span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.host b { font-family: var(--cond); font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream); margin-left: 2px; }
.btn { border-radius: 10px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s; }
.btn-red { background: linear-gradient(180deg, #ff4d42, #e8322a); box-shadow: 0 10px 24px -10px rgba(255, 59, 48, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 59, 48, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-red:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(255, 59, 48, 0.8); }
.btn-line { border: 1px solid rgba(244, 239, 230, 0.35); }
.btn-line:hover { background: var(--cream); color: #000; border-color: var(--cream); }
.stats { border-top: 1px solid var(--line); }
.stats div { border-right: 1px solid var(--line); }

.tuner { border-radius: 18px; background: linear-gradient(160deg, #222226, #141416); border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 30px 60px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.dial { border-radius: 10px; }
.needle { transition: left 1.4s var(--ease); }
.lcd { border-radius: 10px; }
.knob { transition: transform 0.8s var(--ease); }

.input { border-radius: 10px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { outline: none; border-color: rgba(255, 59, 48, 0.6); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12); }
.month { border-bottom: 1px solid rgba(244, 239, 230, 0.25); margin-top: 36px; }
.month span { color: var(--red); }
.row { border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 14px; padding: 14px 14px; margin: 4px 0; transition: background 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease); animation: rise 0.5s var(--ease) both; }
.row:hover { background: var(--panel); border-color: var(--line); transform: translateX(4px); }
.row.on { background: linear-gradient(90deg, rgba(255, 59, 48, 0.12), rgba(255, 59, 48, 0.02) 60%, transparent); border-color: rgba(255, 59, 48, 0.25); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.date { border-radius: 10px; border: 1px solid var(--line); }
.date .wd { background: var(--red); color: #fff; }
.info h3 { transition: color 0.2s; }
.len { border-radius: 6px; }
.pbtn { border: 1px solid rgba(244, 239, 230, 0.4); transition: all 0.25s var(--ease); }
.row:hover .pbtn, .row.on .pbtn { transform: scale(1.06); box-shadow: 0 8px 20px -6px rgba(255, 59, 48, 0.7); }
.info .heard { border-radius: 3px; overflow: hidden; }
.info .heard i { background: var(--red); }
.empty { border-radius: 16px; }

.deck { background: rgba(14, 14, 16, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); box-shadow: 0 -20px 40px -10px rgba(0, 0, 0, 0.7); transition: transform 0.45s var(--ease); }
.deck::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.deck .lcd { border-radius: 10px; }
.hw { border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #2a2a2f, #1c1c20); box-shadow: 0 4px 10px -4px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: transform 0.15s, background 0.2s; }
.hw:hover { background: linear-gradient(180deg, #34343a, #222227); }
.hw:active { transform: scale(0.96); box-shadow: none; }
.hw.main { border-radius: 50%; width: 54px; height: 54px; background: linear-gradient(180deg, #ff4d42, #e8322a); border: 0; box-shadow: 0 10px 24px -8px rgba(255, 59, 48, 0.9); }
input[type='range'] { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 0%), rgba(255, 255, 255, 0.12) var(--p, 0%)); box-shadow: none; }
input[type='range']::-webkit-slider-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.seek { color: var(--cream); opacity: 0.8; }
.vu i { border-radius: 2px; background: linear-gradient(to top, #ff3b30 0 60%, #ff8a3d 60% 85%, #ffd0a0 85%); }

.panel { border-radius: 16px; border: 1px solid var(--line); }
.field input, .field textarea { border-radius: 10px; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 59, 48, 0.6); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12); }
.drop { border-radius: 14px; border: 2px dashed rgba(255, 255, 255, 0.14); transition: border-color 0.2s, background 0.2s; }
.drop.over, .drop:hover { border-color: var(--red); background: rgba(255, 59, 48, 0.05); }
.bar { border-radius: 6px; } .bar i { background: linear-gradient(90deg, #ff3b30, #ff6a3d); }
.btn-ghost { border: 1px solid var(--line); }
.tag { border-radius: 4px; }
dialog { border-radius: 16px; }
footer b { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .row, .deck, .needle, .knob { animation: none !important; transition: none !important; } }

/* Twitch widget */
.hero .host { margin-bottom: 12px; }
.twitch { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 0 22px; padding: 8px 10px 8px 8px; border-radius: 16px; text-decoration: none; color: var(--cream); background: linear-gradient(180deg, rgba(145, 70, 255, 0.14), rgba(145, 70, 255, 0.06)); border: 1px solid rgba(145, 70, 255, 0.35); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.twitch:hover { transform: translateY(-1px); border-color: rgba(145, 70, 255, 0.8); box-shadow: 0 10px 28px -12px rgba(145, 70, 255, 0.8); }
.tw-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #9146ff; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(145, 70, 255, 0.9); }
.tw-main { display: flex; flex-direction: column; min-width: 0; }
.tw-top { display: flex; align-items: center; gap: 10px; }
.tw-top b { font-family: var(--cond); font-size: 1.05rem; letter-spacing: 0.02em; }
.tw-state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tw-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6660; }
.tw-sub { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch; }
.tw-count { flex: none; display: inline-flex; align-items: baseline; gap: 5px; margin-left: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.72rem; color: var(--muted); }
.tw-count b { font-family: var(--cond); font-size: 0.95rem; color: var(--cream); font-variant-numeric: tabular-nums; }
.twitch.is-live { border-color: rgba(145, 70, 255, 0.9); box-shadow: 0 0 0 1px rgba(145, 70, 255, 0.4), 0 12px 32px -12px rgba(145, 70, 255, 0.9); }
.twitch.is-live .tw-state { color: #fff; }
.twitch.is-live .tw-state .dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: twpulse 1.6s infinite; }
.twitch.is-live .tw-sub { color: var(--cream); }
@keyframes twpulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.onair.tw { color: #fff; background: var(--red); border-color: #ff6a5f; box-shadow: 0 0 18px rgba(229, 50, 43, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.3); }
@media (max-width: 560px) { .tw-sub { max-width: 22ch; } .tw-count span { display: none; } }
@media (prefers-reduced-motion: reduce) { .twitch.is-live .tw-state .dot { animation: none; } }
.tw-count[hidden], .tw-state[hidden] { display: none; }

/* Desktop: Twitch card in the empty top-right corner of the hero, above the tuner */
@media (min-width: 881px) {
  .hero .wrap { position: relative; }
  .twitch { position: absolute; top: 0; right: 0; width: 290px; margin: 0; padding: 16px; border-radius: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'ico main' 'count count'; gap: 12px 12px; align-items: start; background: linear-gradient(160deg, rgba(145, 70, 255, 0.2), rgba(20, 20, 24, 0.85) 70%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .tw-ico { grid-area: ico; width: 44px; height: 44px; border-radius: 12px; }
  .tw-ico svg { width: 22px; height: 22px; }
  .tw-main { grid-area: main; gap: 3px; }
  .tw-top { flex-wrap: wrap; gap: 4px 10px; }
  .tw-top b { font-size: 1.15rem; }
  .tw-sub { max-width: none; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
  .tw-count { grid-area: count; margin: 0; justify-self: start; }
  .twitch.is-live { animation: twfloat 5s var(--ease) infinite; }
  .twitch:hover { transform: translateY(-2px); animation: none; }
}
@keyframes twfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .twitch.is-live { animation: none; } }
.twitch { flex-wrap: wrap; }
@media (min-width: 881px) { .hero .host { margin-bottom: 22px; } }
.hero .quote { margin: -4px 0 20px; max-width: 34em; font-size: 0.95rem; font-style: italic; color: rgba(244, 239, 230, 0.6); }
.hero .quote span { padding-left: 12px; border-left: 2px solid var(--red); display: inline-block; }
