.radio {
  --y: #fcee0a;
  --c: #00f0ff;
  --m: #ff2a6d;
  --panel: #0c0c16;
  --panel-2: #11111f;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --cut: 18px;
  padding-top: 72px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 42, 109, .16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(0, 240, 255, .10), transparent 60%),
    var(--bg);
}
.mono { font-family: var(--mono); letter-spacing: .04em; }

/* шапка */
.r-head { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) 32px; }
.r-kicker { color: var(--y); font-family: var(--mono); letter-spacing: .12em; text-transform: none; font-size: 14px; }
.glitch {
  position: relative; margin: 0 0 22px; display: inline-block;
  font: 700 clamp(52px, 11vw, 150px)/.95 var(--display); letter-spacing: -.02em; color: var(--y);
  text-shadow: 0 0 24px rgba(252, 238, 10, .35);
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--c); transform: translate(-3px, 0); clip-path: inset(0 0 60% 0); mix-blend-mode: screen; animation: glitch-a 3.2s infinite steps(1); }
.glitch::after { color: var(--m); transform: translate(3px, 0); clip-path: inset(55% 0 0 0); mix-blend-mode: screen; animation: glitch-b 2.7s infinite steps(1); }
@keyframes glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  87% { clip-path: inset(10% 0 62% 0); transform: translate(-6px, -2px); }
  90% { clip-path: inset(48% 0 30% 0); transform: translate(5px, 1px); }
  93% { clip-path: inset(75% 0 5% 0); transform: translate(-4px, 0); }
}
@keyframes glitch-b {
  0%, 80%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  82% { clip-path: inset(62% 0 18% 0); transform: translate(6px, 2px); }
  86% { clip-path: inset(20% 0 66% 0); transform: translate(-5px, -1px); }
}

/* дека */
.deck { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.deck-frame {
  position: relative; padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  clip-path: polygon(0 0, calc(100% - var(--cut) * 2) 0, 100% calc(var(--cut) * 2), 100% 100%, calc(var(--cut) * 2) 100%, 0 calc(100% - var(--cut) * 2));
  box-shadow: inset 0 0 0 1px rgba(252, 238, 10, .35);
}
.deck-frame::before { /* жёлтая метка в углу */
  content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 4px; background: var(--y);
}
.deck-frame::after { /* развёртка CRT */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.deck-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font: 13px/1 var(--mono); letter-spacing: .1em; color: var(--c); border: 1px solid rgba(0, 240, 255, .35); background: rgba(0, 240, 255, .05); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.is-live .live-dot { background: var(--m); box-shadow: 0 0 10px var(--m); animation: blink 1.2s infinite; }
.is-buffering .live-dot { background: var(--y); animation: blink .4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.display { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.lcd {
  position: relative; padding: 18px 20px; background: #05060a; border: 1px solid rgba(252, 238, 10, .25);
  box-shadow: inset 0 0 40px rgba(252, 238, 10, .06); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.lcd-row { display: flex; align-items: baseline; gap: 12px; }
.lcd-ch { color: var(--m); font-size: 18px; text-shadow: 0 0 10px var(--m); }
.lcd-freq { font-size: clamp(48px, 6vw, 68px); line-height: 1; color: var(--y); text-shadow: 0 0 6px var(--y), 0 0 22px rgba(252, 238, 10, .55); }
.lcd-unit { color: rgba(252, 238, 10, .6); font-size: 16px; }
.lcd-name { font: 700 22px/1.2 var(--display); color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.lcd-now { display: flex; gap: 10px; align-items: center; min-width: 0; color: var(--c); font-size: 15px; }
.lcd-label { color: var(--c); opacity: .7; flex: none; }
.marquee { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee span { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; }
.marquee.static span { padding-left: 0; animation: none; }
@keyframes ticker { to { transform: translateX(-100%); } }
#viz { width: 100%; height: 100%; min-height: 180px; background: #05060a; border: 1px solid rgba(0, 240, 255, .2); display: block; }

.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.ctl {
  display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .06);
  color: var(--c); cursor: pointer; transition: background .2s, box-shadow .2s, transform .1s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.ctl:hover { background: rgba(0, 240, 255, .16); box-shadow: 0 0 22px rgba(0, 240, 255, .4); }
.ctl:active { transform: scale(.96); }
.ctl svg { width: 24px; height: 24px; fill: currentColor; }
.ctl.play { width: 84px; height: 84px; color: #0a0a12; background: var(--y); border-color: var(--y); box-shadow: 0 0 30px rgba(252, 238, 10, .35); }
.ctl.play:hover { background: #fff35a; box-shadow: 0 0 44px rgba(252, 238, 10, .6); }
.ctl.play svg { width: 34px; height: 34px; }
.ctl.small { width: 44px; height: 44px; }
.i-pause, .i-mute { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.is-muted .i-vol { display: none; }
.is-muted .i-mute { display: block; }
.vol { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 220px; }
.vol-val { width: 32px; color: var(--c); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; background: linear-gradient(90deg, var(--c) var(--p, 80%), rgba(255, 255, 255, .12) var(--p, 80%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--y); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 0; background: var(--y); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); cursor: pointer; }
input[type=range]:focus-visible { outline: 2px solid var(--c); outline-offset: 6px; }
.hint { margin: 18px 0 0; font-size: 13px; color: #6d6a86; }

/* станции */
.stations { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(72px, 9vw, 120px); }
.r-sec-head { margin-bottom: 32px; }
.r-sec-head .kicker { color: var(--y); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.st {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ch eq" "name name" "genre genre" "freq freq";
  gap: 4px; text-align: left; padding: 18px 18px 16px; cursor: pointer; color: var(--text);
  background: var(--panel); border: 1px solid rgba(255, 255, 255, .08);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color .2s, background .2s, transform .2s;
  font: inherit;
}
.st:hover { border-color: rgba(0, 240, 255, .5); background: #10101d; transform: translateY(-2px); }
.st:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.st-ch { grid-area: ch; font: 13px/1 var(--mono); color: var(--m); letter-spacing: .1em; }
.st-name { grid-area: name; font: 700 18px/1.25 var(--display); margin-top: 8px; }
.st-genre { grid-area: genre; font-size: 14px; color: var(--muted); }
.st-freq { grid-area: freq; font: 22px/1 var(--mono); color: var(--c); margin-top: 10px; }
.st-freq small { font-size: 12px; opacity: .6; }
.st-eq { grid-area: eq; display: flex; align-items: flex-end; gap: 3px; height: 16px; opacity: 0; }
.st-eq i { width: 3px; height: 30%; background: var(--y); }
.st.active { border-color: var(--y); background: linear-gradient(160deg, rgba(252, 238, 10, .09), var(--panel) 60%); }
.st.active .st-name { color: var(--y); }
.st.active .st-eq { opacity: 1; }
.is-playing .st.active .st-eq i { animation: eq .9s ease-in-out infinite alternate; }
.st-eq i:nth-child(2) { animation-delay: .2s !important; }
.st-eq i:nth-child(3) { animation-delay: .45s !important; }
.st-eq i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.credits { margin-top: 28px; font-size: 14px; }
.credits a { color: var(--c); }

@media (max-width: 860px) {
  .display { grid-template-columns: 1fr; }
  #viz { min-height: 150px; }
  .vol { margin-left: 0; width: 100%; min-width: 0; }
}
@media (max-width: 760px) {
  .radio { padding-top: 56px; }
  .ctl.play { width: 72px; height: 72px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
  .marquee span { padding-left: 0; }
}

/* мини-плеер на первом экране главной */
.radio-mini {
  --y: #fcee0a; --c: #00f0ff; --m: #ff2a6d; --panel: #0c0c16; --panel-2: #11111f;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  position: relative; width: 100%; max-width: 440px; justify-self: end; align-self: end;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, rgba(17, 17, 31, .88), rgba(12, 12, 22, .92));
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: inset 0 0 0 1px rgba(252, 238, 10, .35);
}
.radio-mini::before { content: ""; position: absolute; top: 0; left: 0; width: 96px; height: 3px; background: var(--y); }
.radio-mini::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.rm-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rm-link { color: var(--y); border-color: rgba(252, 238, 10, .35); background: rgba(252, 238, 10, .05); transition: background .2s; }
.rm-link:hover { background: rgba(252, 238, 10, .15); }
.radio-mini .lcd { padding: 14px 16px; gap: 8px; }
.radio-mini .lcd-freq { font-size: 46px; }
.radio-mini .lcd-name { font-size: 18px; }
.radio-mini #viz { min-height: 0; height: 96px; }
.radio-mini .controls { margin-top: 0; gap: 10px; }
.radio-mini .ctl { width: 48px; height: 48px; }
.radio-mini .ctl.play { width: 64px; height: 64px; }
.radio-mini .ctl.play svg { width: 28px; height: 28px; }
.radio-mini .ctl.small { width: 40px; height: 40px; }
.radio-mini .vol { margin-left: 0; min-width: 0; flex: 1; }

.hero-grid {
  position: relative; max-width: var(--max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: end;
  padding: 96px clamp(16px, 4vw, 48px) clamp(64px, 12vh, 120px);
}
.hero-grid .hero-inner { padding: 0; margin: 0; max-width: none; }
.hero-grid .neon-title { font-size: clamp(60px, 10vw, 150px); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 110px; }
  .radio-mini { justify-self: stretch; max-width: none; }
}
@media (max-width: 420px) {
  .radio-mini .vol { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .hero-grid { padding-top: 84px; gap: 22px; }
  .hero-grid .hero-lead { margin-bottom: 22px; font-size: 16px; }
  .hero-grid .neon-title { margin-bottom: 18px; }
  .hero-grid .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-grid .hero-cta .btn { height: 44px; padding: 0 18px; font-size: 12px; }
  .radio-mini { padding: 14px; gap: 12px; }
  .radio-mini .lcd-freq { font-size: 38px; }
}
