:root {
  --primary: #e91e8c;
  --secondary: #a855f7;
  --bg: #0a0a0f;
  --surface: #17121d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 22%, transparent), transparent 34rem),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 36rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

textarea {
  font: inherit;
}

.portal-shell,
.station-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.portal-hero {
  padding: 72px 0 34px;
  text-align: center;
}

.brand-mark,
.brand-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 50px color-mix(in srgb, var(--primary) 32%, transparent);
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 34px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 0 70px;
}

.station-card,
.hero-panel,
.about-card,
.queue-card,
.feature-card {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
}

.station-card {
  overflow: hidden;
  border-radius: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.station-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 58%, #fff 8%);
}

.station-card-link {
  display: block;
}

.station-art {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 42%, #000), color-mix(in srgb, var(--secondary) 28%, #000));
}

.station-art img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: screen;
  transform: scale(1.04);
}

.live-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-pill i {
  color: #888;
  font-size: 8px;
}

.live-pill.is-online i {
  color: #34d399;
}

.station-card-body {
  padding: 22px;
}

.station-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.station-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.station-card p {
  color: var(--muted);
  line-height: 1.45;
}

.station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 12px;
}

.station-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.now-line {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 16px;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-family: Consolas, monospace;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.top-nav a:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.top-nav a.is-active {
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.station-shell {
  padding: 44px 0 128px;
}

.station-shell.is-soft-loading {
  opacity: .62;
  transition: opacity .18s ease;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  min-height: 590px;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 36px;
  overflow: hidden;
}

.hero-copy h1 {
  background: linear-gradient(135deg, var(--text), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.now-playing-card {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 620px;
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.065);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.12);
}

.status-dot.is-offline {
  background: #f59e0b;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.13);
}

.status-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 680px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.status-banner.is-hidden {
  display: none;
}

.status-banner i {
  color: var(--primary);
  font-size: 20px;
}

.status-banner strong {
  display: block;
  margin-bottom: 5px;
}

.status-banner p,
.status-banner small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-banner.is-warning {
  border-color: rgba(245, 158, 11, 0.44);
}

.status-banner.is-warning i {
  color: #f59e0b;
}

.status-banner.is-critical {
  border-color: rgba(248, 113, 113, 0.5);
}

.status-banner.is-critical i {
  color: #f87171;
}

.maintenance-shell {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.maintenance-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid color-mix(in srgb, var(--primary), transparent 45%);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--primary), transparent 70%), transparent 32%),
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--secondary), transparent 76%), transparent 30%),
    linear-gradient(140deg, color-mix(in srgb, var(--surface), #000 18%), rgba(12, 10, 16, .96));
  box-shadow: 0 28px 120px rgba(0, 0, 0, .46);
}

.maintenance-brand {
  margin-bottom: 42px;
}

.maintenance-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, .12);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
}

.maintenance-status.is-critical {
  border-color: rgba(248, 113, 113, .42);
  color: #fca5a5;
  background: rgba(248, 113, 113, .12);
}

.maintenance-panel h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .92;
}

.maintenance-panel .lead {
  max-width: 760px;
}

.maintenance-countdown {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 28px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
}

.maintenance-countdown small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.maintenance-countdown strong {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: .04em;
}

.now-playing-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.now-playing-card strong {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.home-panel,
.home-news-strip {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.home-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}

.home-panel h2,
.home-news-strip h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.035em;
}

.home-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-list {
  display: grid;
  gap: 10px;
}

.home-list a,
.home-news-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 17px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.16);
}

.home-list a:hover,
.home-news-list a:hover {
  border-color: color-mix(in srgb, var(--primary) 44%, #fff 8%);
}

.home-list small,
.home-news-list small {
  color: var(--muted);
  line-height: 1.35;
}

.home-list.is-ranked a {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.home-list.is-ranked span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.home-list.is-ranked strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
  padding: 22px;
}

.home-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.play-button,
.ghost-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 17px;
  cursor: pointer;
}

.play-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 45px color-mix(in srgb, var(--primary) 34%, transparent);
  font-weight: 900;
}

.play-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.ghost-button {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.ghost-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  color: var(--muted);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.hero-visual {
  position: relative;
}

.hero-visual img,
.cover-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.cover-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
}

.cover-frame img {
  min-height: 320px;
}

.cover-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.cover-caption small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-caption strong {
  display: block;
  margin-top: 4px;
}

.audio-visualizer {
  display: grid;
  grid-template-columns: repeat(12, minmax(8px, 1fr));
  gap: 5px;
  align-items: end;
  margin-top: 18px;
  min-height: 116px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 12px),
    color-mix(in srgb, var(--surface) 82%, #000 18%);
  overflow: hidden;
}

.audio-visualizer span {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: clamp(8px, var(--level), 100%);
  min-height: 8px;
  transform-origin: bottom;
  transition: height 55ms linear, filter 55ms linear;
}

.audio-visualizer i {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 43%;
  font-size: 10px;
  transform: translateX(-50%) scale(var(--peak-scale, 0.72));
  color: color-mix(in srgb, #fff 88%, var(--primary) 12%);
  opacity: var(--peak-opacity, 0.38);
  pointer-events: none;
  transition: opacity 80ms ease-out, transform 140ms ease-out;
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 64%, transparent))
    drop-shadow(0 0 10px color-mix(in srgb, var(--secondary) 28%, transparent));
}

.audio-visualizer i.is-switching {
  opacity: 0;
  transform: translateX(-50%) scale(0.48);
}

.visualizer-women span {
  border-radius: 6px 6px 3px 3px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.58) 0 8%, transparent 9% 30%, rgba(255,255,255,0.24) 31% 38%, transparent 39%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.24) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #fff5fb 0%, #ff9bd0 16%, #ff5fb1 42%, #d9419c 68%, color-mix(in srgb, var(--secondary) 78%, #31ddff 22%) 100%);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--primary) 28%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.22),
    inset 0 -8px 14px rgba(77, 5, 58, 0.22);
}

.visualizer-women span::before,
.visualizer-women span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.visualizer-women span::before {
  inset: 3px 2px;
  border-radius: inherit;
  background:
    linear-gradient(45deg, transparent 0 38%, rgba(255,255,255,0.28) 39% 42%, transparent 43%),
    linear-gradient(-45deg, transparent 0 38%, rgba(255,255,255,0.18) 39% 42%, transparent 43%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.visualizer-women span::after {
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background:
    linear-gradient(135deg, #fff 0 18%, #ffd7f0 19% 44%, #ff69bd 45% 72%, #b63191 73% 100%);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--primary) 56%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.38);
  transform: translateX(-50%) rotate(45deg) scale(calc(0.74 + var(--peak-scale, 0.72) * 0.22));
  opacity: var(--peak-opacity, 0.45);
}

.visualizer-men span {
  border-radius: 5px 5px 2px 2px;
  background:
    linear-gradient(180deg, #ffbf66 0%, #ff7b22 28%, color-mix(in srgb, var(--secondary) 70%, #0f2c58 30%) 58%, color-mix(in srgb, var(--primary) 70%, #061327) 100%);
  box-shadow:
    0 0 11px color-mix(in srgb, var(--secondary) 28%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.visualizer-men span:nth-child(2n) {
  filter: brightness(0.82);
}

.visualizer-men i {
  color: color-mix(in srgb, #ffd19a 78%, #8fc7ff 22%);
}

.duet-wave {
  display: grid;
  gap: 0;
  margin-top: 18px;
  min-height: 138px;
  padding: 18px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 42%),
    radial-gradient(circle at 70% 100%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 84%, #000 16%);
  overflow: hidden;
}

.duet-wave-row {
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  gap: 2px;
  align-items: end;
  min-height: 50px;
}

.duet-wave-row span {
  height: clamp(8px, var(--level), 100%);
  border-radius: 7px;
  background: linear-gradient(180deg, #ff79c4 0%, color-mix(in srgb, var(--primary) 55%, var(--secondary) 45%) 52%, #2ed8ff 100%);
  box-shadow:
    0 0 13px color-mix(in srgb, var(--primary) 26%, transparent),
    0 0 13px color-mix(in srgb, var(--secondary) 24%, transparent);
  transition: height 55ms linear;
}

.duet-wave-mirror-x .duet-wave-row {
  grid-template-columns: repeat(24, minmax(5px, 1fr));
}

.duet-wave-mirror-x .duet-wave-row span:nth-child(n+13) {
  opacity: 0.9;
}

.duet-wave-top {
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.duet-wave-bottom {
  transform: scaleY(-1);
  opacity: 0.78;
}

.duet-wave.is-live span {
  filter: saturate(1.22) brightness(1.06);
}

.duet-wave.is-fallback span {
  animation: visualizer-idle 1.7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -70ms);
}

.audio-visualizer.is-live span {
  filter: saturate(1.2) brightness(1.06);
}

.audio-visualizer.is-fallback span {
  animation: visualizer-idle 1.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -90ms);
}

.audio-visualizer span:nth-child(1) { --i: 1; }
.audio-visualizer span:nth-child(2) { --i: 2; }
.audio-visualizer span:nth-child(3) { --i: 3; }
.audio-visualizer span:nth-child(4) { --i: 4; }
.audio-visualizer span:nth-child(5) { --i: 5; }
.audio-visualizer span:nth-child(6) { --i: 6; }
.audio-visualizer span:nth-child(7) { --i: 7; }
.audio-visualizer span:nth-child(8) { --i: 8; }
.audio-visualizer span:nth-child(9) { --i: 9; }
.audio-visualizer span:nth-child(10) { --i: 10; }
.audio-visualizer span:nth-child(11) { --i: 11; }
.audio-visualizer span:nth-child(12) { --i: 12; }
.audio-visualizer span:nth-child(13) { --i: 13; }
.audio-visualizer span:nth-child(14) { --i: 14; }
.audio-visualizer span:nth-child(15) { --i: 15; }
.audio-visualizer span:nth-child(16) { --i: 16; }
.duet-wave span:nth-child(1) { --i: 1; }
.duet-wave span:nth-child(2) { --i: 2; }
.duet-wave span:nth-child(3) { --i: 3; }
.duet-wave span:nth-child(4) { --i: 4; }
.duet-wave span:nth-child(5) { --i: 5; }
.duet-wave span:nth-child(6) { --i: 6; }
.duet-wave span:nth-child(7) { --i: 7; }
.duet-wave span:nth-child(8) { --i: 8; }
.duet-wave span:nth-child(9) { --i: 9; }
.duet-wave span:nth-child(10) { --i: 10; }
.duet-wave span:nth-child(11) { --i: 11; }
.duet-wave span:nth-child(12) { --i: 12; }
.duet-wave span:nth-child(13) { --i: 13; }
.duet-wave span:nth-child(14) { --i: 14; }
.duet-wave span:nth-child(15) { --i: 15; }
.duet-wave span:nth-child(16) { --i: 16; }
.duet-wave span:nth-child(17) { --i: 17; }
.duet-wave span:nth-child(18) { --i: 18; }
.duet-wave span:nth-child(19) { --i: 19; }
.duet-wave span:nth-child(20) { --i: 20; }
.duet-wave span:nth-child(21) { --i: 21; }
.duet-wave span:nth-child(22) { --i: 22; }
.duet-wave span:nth-child(23) { --i: 23; }
.duet-wave span:nth-child(24) { --i: 24; }
.duet-wave span:nth-child(25) { --i: 25; }
.duet-wave span:nth-child(26) { --i: 26; }
.duet-wave span:nth-child(27) { --i: 27; }
.duet-wave span:nth-child(28) { --i: 28; }
.duet-wave span:nth-child(29) { --i: 29; }
.duet-wave span:nth-child(30) { --i: 30; }
.duet-wave span:nth-child(31) { --i: 31; }
.duet-wave span:nth-child(32) { --i: 32; }

@keyframes visualizer-idle {
  from { height: 22%; }
  to { height: calc(34% + var(--i) * 2.5%); }
}

.cover-listeners {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  font-size: 13px;
  z-index: 4;
}

.cover-listeners i {
  color: color-mix(in srgb, var(--primary) 72%, #fff 28%);
}

.cover-listeners b {
  font-variant-numeric: tabular-nums;
}

.content-grid,
.feature-grid,
.request-panel,
.widget-grid {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.content-grid {
  grid-template-columns: 1fr 1fr;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.widget-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-panel {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--secondary) 8%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
}

.request-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.request-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.request-window-info {
  display: grid;
  gap: 6px;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.request-window-info strong {
  font-size: 18px;
}

.request-window-info small {
  color: var(--muted);
}

.request-window-state {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.request-window-state.is-open {
  border-color: rgba(52, 211, 153, 0.38);
  color: #34d399;
  background: rgba(52, 211, 153, 0.10);
}

.request-form {
  display: grid;
  gap: 12px;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.request-form input {
  min-height: 48px;
  padding: 0 15px;
}

.request-form textarea {
  min-height: 92px;
  resize: vertical;
  padding: 13px 15px;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 58%, #fff 8%);
}

.request-form button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  font-weight: 900;
}

.request-form.is-disabled {
  opacity: 0.68;
}

.request-form :disabled {
  cursor: not-allowed;
}

.request-result {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.request-result.is-ok {
  color: #34d399;
}

.request-result.is-error {
  color: #f87171;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-form {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-panel,
.chart-card {
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 91%, transparent), color-mix(in srgb, var(--primary) 7%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
}

.page-panel {
  padding: clamp(26px, 5vw, 54px);
}

.page-panel h1 {
  margin-bottom: 18px;
}

.air-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.now-playing-card.is-large {
  max-width: none;
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reaction-row button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.reaction-row button:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, #fff 8%);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.report-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, #000 18%);
}

.report-form strong {
  display: block;
  margin-top: 3px;
}

.report-options,
.report-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-options label {
  cursor: pointer;
}

.report-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-options span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.045);
}

.report-options input:checked + span {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 58%, #fff 8%);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.report-row input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.055);
  outline: none;
}

.report-row button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, #f97316 28%), var(--secondary));
  cursor: pointer;
}

.chart-card {
  padding: 24px;
}

.chart-card ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chart-card li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.chart-card li b,
.chart-score {
  color: var(--primary);
}

.chart-score {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  text-align: center;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  font-size: 12px;
}

.chart-rank {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #fff;
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  font-weight: 900;
}

.chart-title {
  min-width: 0;
  flex: 1 1 auto;
}

.chart-trend {
  color: var(--muted);
}

.chart-trend.up {
  color: #86efac;
}

.chart-trend.down {
  color: #fca5a5;
}

.chart-trend.new {
  color: var(--primary);
}

.chart-preview {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chart-preview.is-playing {
  color: #fff;
  background: var(--primary);
}

.chart-footnote-mark {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.chart-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.news-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.news-card:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, #fff 8%);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.news-card i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.news-card h3 {
  margin: 0 0 6px;
}

.news-card small,
.news-card p,
.news-meta,
.back-link {
  color: var(--muted);
}

.news-card p {
  margin: 9px 0 0;
  line-height: 1.5;
}

.news-article {
  max-width: 920px;
  margin-inline: auto;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.news-meta span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.news-body {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 17px;
  line-height: 1.75;
}

.news-source-link {
  margin-top: 22px;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 800;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 24px 0 18px;
}

.archive-filter label {
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.archive-filter input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.archive-filter button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, #f97316 28%), var(--secondary));
  cursor: pointer;
}

.archive-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.archive-summary span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.archive-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 17%, transparent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.archive-list time {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  color: #fff;
  background: color-mix(in srgb, var(--primary) 28%, transparent);
  font-weight: 900;
}

.archive-list strong,
.archive-list small {
  display: block;
}

.archive-list small,
.archive-meta {
  color: var(--muted);
}

.archive-meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.soft-note {
  color: var(--muted);
  font-size: 13px;
}

.about-card,
.queue-card,
.feature-card {
  border-radius: 26px;
  padding: 26px;
}

.about-card p,
.queue-card dd,
.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.queue-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.queue-card dt {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-card dd {
  margin: 0;
  word-break: break-word;
}

.feature-card i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.schedule-day {
  min-height: 260px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.schedule-day-head span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-day-head b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.schedule-slots {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.schedule-slot {
  min-height: 128px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.schedule-slot.is-empty {
  border-style: dashed;
  opacity: 0.72;
}

.schedule-slot.has-requests {
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary) 76%, #22c55e 24%);
}

.schedule-time {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.schedule-slot h3 {
  margin: 0 0 8px;
}

.schedule-slot p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-request {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, #22c55e 38%, transparent);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.player-bar {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.player-track {
  min-width: 0;
}

.player-track small {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.player-track strong {
  display: block;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volume-control {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.volume-control input {
  accent-color: var(--primary);
}

@media (max-width: 900px) {
  .station-grid,
  .hero-panel,
  .home-dashboard,
  .home-news-strip,
  .home-news-list,
  .content-grid,
  .feature-grid,
  .request-panel,
  .widget-grid,
  .air-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .top-nav {
    display: none;
  }

  .player-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .portal-shell,
  .station-shell,
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .portal-hero {
    padding-top: 42px;
  }

  .station-art,
  .station-art img {
    min-height: 190px;
    height: 190px;
  }

  .archive-filter label,
  .archive-filter button,
  .archive-filter .ghost-button {
    width: 100%;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .archive-list time {
    width: 72px;
  }

  .news-card {
    grid-template-columns: 1fr;
  }
}
