:root {
  color-scheme: dark;
  --bg: #07050d;
  --bg-soft: #0c0817;
  --bg-elevated: #120c21;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(168, 85, 247, 0.38);
  --text: #f7f3ff;
  --muted: #a9a0bd;
  --muted-strong: #c8c0d9;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --violet-soft: #c084fc;
  --pink: #e879f9;
  --blue: #60a5fa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --cyan: #22d3ee;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% -10%,
      rgba(124, 58, 237, 0.28),
      transparent 34rem
    ),
    radial-gradient(
      circle at 88% 6%,
      rgba(232, 121, 249, 0.12),
      transparent 28rem
    ),
    linear-gradient(180deg, #08050f 0%, #07050d 45%, #06040b 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 65%);
  content: '';
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.radio-player {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: color-mix(in srgb, var(--radio-primary) 12%, #08050f);
}
.radio-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--radio-primary) 24%, transparent),
      rgba(8, 5, 15, 0.78)
    ),
    radial-gradient(
      circle at 18% 24%,
      color-mix(in srgb, var(--radio-primary) 55%, transparent),
      transparent 38%
    ),
    radial-gradient(
      circle at 84% 78%,
      color-mix(in srgb, var(--radio-secondary) 30%, transparent),
      transparent 34%
    ),
    url('/assets/radio-landscapes/brazil-sunset.png') center/cover,
    linear-gradient(135deg, #08050f, #120b22);
  animation: radio-landscape 18s ease-in-out infinite alternate;
}
.radio-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(58deg) scale(1.5);
  transform-origin: center bottom;
}
.radio-orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.52;
  animation: radio-drift 12s ease-in-out infinite alternate;
}
.radio-orb-a {
  background: var(--radio-primary);
  left: -12vw;
  top: 12vh;
}
.radio-orb-b {
  background: var(--radio-secondary);
  right: -14vw;
  bottom: 2vh;
  animation-delay: -5s;
}
.radio-bars {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10%;
  height: 35%;
  display: flex;
  align-items: end;
  gap: 1.2%;
  opacity: 0.7;
}
.radio-bars i {
  flex: 1;
  min-height: 8%;
  height: 30%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(var(--radio-secondary), var(--radio-primary));
  box-shadow: 0 0 22px color-mix(in srgb, var(--radio-primary) 55%, transparent);
  transition: height 0.25s ease;
}
.radio-panel {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.radio-back {
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}
.radio-logo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--radio-secondary) 50%, white 20%);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--radio-primary) 35%, black);
  background: #151021;
}
.radio-live {
  color: var(--radio-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 24px 0 10px;
}
.radio-panel h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.4);
}
.radio-slogan {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}
.radio-about {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}
.radio-panel audio {
  width: min(560px, 100%);
  margin-top: 30px;
  accent-color: var(--radio-secondary);
}
@keyframes radio-drift {
  from {
    transform: translate3d(-4%, -3%, 0) scale(0.92);
  }
  to {
    transform: translate3d(6%, 5%, 0) scale(1.12);
  }
}
@keyframes radio-landscape {
  from {
    background-position: center center;
  }
  to {
    background-position: 52% 48%;
  }
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.92em;
}

.shell {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(7, 5, 13, 0.76);
  backdrop-filter: blur(18px);
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.site-header:hover,
.site-header:focus-within {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 160ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 8px 26px rgba(30, 215, 96, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.11em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  background: rgba(168, 85, 247, 0.12);
  color: var(--text);
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
  box-shadow:
    0 14px 34px rgba(124, 58, 237, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-primary:hover {
  box-shadow:
    0 18px 42px rgba(124, 58, 237, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(168, 85, 247, 0.1);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 25px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  min-height: min(760px, calc(100vh - 78px));
  padding-block: clamp(60px, 9vw, 110px) clamp(50px, 7vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--violet-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow:
    0 0 0 5px rgba(168, 85, 247, 0.13),
    0 0 18px rgba(168, 85, 247, 0.8);
}

.gradient-text {
  background: linear-gradient(
    100deg,
    #fff 4%,
    var(--violet-soft) 46%,
    var(--pink) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 17px;
  height: 17px;
  color: var(--violet-soft);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  isolation: isolate;
}

.hero-grid-pattern {
  position: absolute;
  inset: 8% 2%;
  z-index: -1;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85), transparent 68%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(18px);
}

.hero-glow--one {
  width: 280px;
  height: 280px;
  background: rgba(124, 58, 237, 0.32);
  top: 10%;
  right: 6%;
}

.hero-glow--two {
  width: 220px;
  height: 220px;
  background: rgba(232, 121, 249, 0.16);
  bottom: 8%;
  left: 2%;
}

.player-card {
  position: relative;
  width: min(100%, 360px);
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.025) 45%
    ),
    rgba(13, 9, 24, 0.92);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(-2deg);
}

.player-card::after {
  position: absolute;
  top: -45%;
  left: -20%;
  width: 140%;
  height: 60%;
  background: radial-gradient(
    ellipse,
    rgba(192, 132, 252, 0.18),
    transparent 68%
  );
  content: '';
  pointer-events: none;
}

.player-topline,
.player-info,
.player-controls {
  position: relative;
  z-index: 1;
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

.player-signal {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.player-art {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 180px;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(168, 85, 247, 0.28),
      transparent 55%
    ),
    linear-gradient(160deg, rgba(124, 58, 237, 0.32), rgba(12, 8, 23, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.player-art img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
}

.equalizer span {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  animation: equalize 1.1s ease-in-out infinite alternate;
}

.equalizer span:nth-child(1) {
  height: 32%;
  animation-delay: -0.2s;
}
.equalizer span:nth-child(2) {
  height: 78%;
  animation-delay: -0.5s;
}
.equalizer span:nth-child(3) {
  height: 52%;
  animation-delay: -0.1s;
}
.equalizer span:nth-child(4) {
  height: 96%;
  animation-delay: -0.7s;
}
.equalizer span:nth-child(5) {
  height: 44%;
  animation-delay: -0.35s;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
}

.player-kicker {
  color: var(--violet-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-info strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.player-tags {
  color: var(--muted);
  font-size: 0.76rem;
}

.player-progress {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.player-progress span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 0.72rem;
}

.play-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding-left: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.42);
  color: #fff;
  font-size: 0.8rem;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 10, 27, 0.86);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 0.76rem;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.64rem;
}

.floating-card--one {
  top: 12%;
  left: -2%;
}

.floating-card--two {
  right: -3%;
  bottom: 11%;
  animation-delay: -3.4s;
}

.floating-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.floating-icon svg {
  width: 16px;
  height: 16px;
}

/* Tone helpers */

.tone-violet {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
}
.tone-indigo {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}
.tone-blue {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}
.tone-green {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}
.tone-amber {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}
.tone-rose {
  background: rgba(244, 114, 182, 0.15);
  color: #f9a8d4;
}
.tone-orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fdba74;
}
.tone-red {
  background: rgba(251, 113, 133, 0.15);
  color: #fda4af;
}
.tone-cyan {
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
}
.tone-pink {
  background: rgba(232, 121, 249, 0.15);
  color: #f0abfc;
}
.tone-teal {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
}
.tone-slate {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

/* Stats */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05),
    rgba(168, 85, 247, 0.06)
  );
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Sections */

.section {
  padding-block: clamp(70px, 9vw, 116px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-head h2 {
  max-width: 650px;
}

.section-head > p {
  max-width: 390px;
  font-size: 0.92rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 178px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.collection-card::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.17),
    transparent 70%
  );
  content: '';
  opacity: 0;
  transition: opacity 200ms ease;
}

.collection-card:hover {
  border-color: var(--border-strong);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.08),
    rgba(168, 85, 247, 0.06)
  );
  transform: translateY(-4px);
}

.collection-card:hover::after {
  opacity: 1;
}

.collection-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.collection-icon svg {
  width: 21px;
  height: 21px;
}

.collection-copy h3 {
  margin-bottom: 7px;
}

.collection-copy p {
  font-size: 0.78rem;
  line-height: 1.55;
}

.collection-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.collection-card:hover .collection-arrow {
  color: var(--violet-soft);
  transform: translate(2px, -2px);
}

/* How it works */

.how-it-works {
  padding-top: 10px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
}

.step-number {
  display: block;
  margin-bottom: 28px;
  color: var(--violet-soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-card h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.step-card p {
  font-size: 0.85rem;
}

/* About */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.about-copy h2 {
  max-width: 620px;
  margin-bottom: 22px;
}

.about-copy p {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.text-link {
  color: var(--violet-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.about-card {
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(168, 85, 247, 0.18),
      transparent 50%
    ),
    rgba(255, 255, 255, 0.035);
}

.about-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.16);
  color: var(--violet-soft);
}

.about-card-icon svg {
  width: 22px;
  height: 22px;
}

.about-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.about-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.about-card li {
  position: relative;
  padding-left: 20px;
}

.about-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  content: '';
}

/* CTA */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(70px, 9vw, 110px);
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(232, 121, 249, 0.18),
      transparent 36%
    ),
    radial-gradient(
      circle at 0 100%,
      rgba(124, 58, 237, 0.22),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.035);
}

.cta-band h2 {
  max-width: 650px;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 0.92rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 3, 10, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr 1.2fr;
  gap: 36px;
  padding-block: 56px 40px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 0.8rem;
}

.brand--footer img {
  width: 40px;
  height: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8rem;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--violet-soft);
}

.footer-column span,
.footer-note p {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
}

/* Config intro */

.config-intro {
  padding-block: clamp(54px, 7vw, 84px) 42px;
}

.config-intro h1 {
  max-width: 900px;
}

.config-intro p {
  max-width: 720px;
  margin-top: 20px;
  font-size: 1.05rem;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

/* Stepper */

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  list-style: none;
}

.stepper li {
  position: relative;
}

.stepper li:not(:last-child)::after {
  pointer-events: none;
  position: absolute;
  top: 17px;
  right: 10px;
  left: 54px;
  height: 1px;
  background: var(--border);
  content: '';
}

.step-button {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-direction: column;
  scroll-margin-top: 100px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.step-button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.step-button small {
  font-size: 0.72rem;
  font-weight: 600;
}

.step-button.is-active,
.step-button[aria-current='step'] {
  color: var(--text);
}

.step-button.is-active span,
.step-button[aria-current='step'] span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.36);
  color: #fff;
}

.step-button:hover span {
  border-color: var(--border-strong);
}

/* Wizard */

.wizard {
  min-width: 0;
}

.wizard-step {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(168, 85, 247, 0.08),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.028);
}

.step-heading {
  margin-bottom: 26px;
}

.step-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--violet-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.step-heading p {
  max-width: 680px;
  font-size: 0.9rem;
}

.step-note {
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 0 10px 10px 0;
  background: rgba(168, 85, 247, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.step-note strong {
  color: var(--muted-strong);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Option cards */

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.option-card:hover .option-body {
  border-color: var(--border-strong);
  background: rgba(168, 85, 247, 0.055);
  transform: translateY(-1px);
}

.option-card input:checked + .option-body {
  border-color: rgba(192, 132, 252, 0.52);
  background: linear-gradient(
    150deg,
    rgba(168, 85, 247, 0.14),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.12);
}

.option-card input:focus-visible + .option-body {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
}

.option-icon svg {
  width: 20px;
  height: 20px;
}

.option-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.option-copy strong {
  font-size: 0.9rem;
}

.option-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.switch {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9d2e8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  content: '';
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.option-card input:checked + .option-body .switch,
.toggle-row input:checked + .switch {
  border-color: rgba(192, 132, 252, 0.5);
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-deep));
}

.option-card input:checked + .option-body .switch::after,
.toggle-row input:checked + .switch::after {
  background: #fff;
  transform: translateX(16px);
}

/* Chips */

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.text-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--violet-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.text-button--muted {
  color: var(--muted);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.chip:hover span {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.chip input:checked + span {
  border-color: rgba(192, 132, 252, 0.55);
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.24),
    rgba(124, 58, 237, 0.16)
  );
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.12);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

/* Toggles */

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

.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.toggle-row:hover {
  border-color: var(--border-strong);
  background: rgba(168, 85, 247, 0.045);
}

.toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-row strong {
  font-size: 0.9rem;
}

.toggle-row small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.toggle-row input:focus-visible + .switch {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.toggle-row--large {
  padding: 20px 22px;
  border-color: rgba(192, 132, 252, 0.26);
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.1),
    rgba(255, 255, 255, 0.025)
  );
}

/* States */

.state-regions {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.state-region {
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.state-region legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.state-chip {
  position: relative;
  cursor: pointer;
}

.state-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.state-chip span {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.state-chip:hover span {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.state-chip input:checked + span {
  border-color: rgba(192, 132, 252, 0.55);
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.25),
    rgba(124, 58, 237, 0.16)
  );
  color: #fff;
}

.state-chip input:focus-visible + span {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}

.state-chip input:disabled + span {
  cursor: not-allowed;
  opacity: 0.38;
}

.state-chip input:disabled + span:hover {
  border-color: var(--border);
  color: var(--muted-strong);
  transform: none;
}

/* Included categories */

.included-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.included-card h3 {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.included-card p {
  margin-top: 12px;
  font-size: 0.74rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}

.chip-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(192, 132, 252, 0.24);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.09);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 600;
}

.chip-cloud .chip-empty {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

/* Review */

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

.review-block {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.022);
}

.review-block h3 {
  margin-bottom: 10px;
  color: var(--violet-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.review-list span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.review-list .review-empty {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-left: 0;
}

.review-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.08);
}

.review-count strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.review-count span,
.review-count {
  color: var(--muted);
  font-size: 0.76rem;
}

.review-warnings {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.74rem;
}

.review-warnings code {
  color: var(--muted-strong);
}

/* Alerts */

.alert {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.alert-error {
  border: 1px solid rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

/* Summary */

.summary-card {
  position: sticky;
  top: 98px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(232, 121, 249, 0.13),
      transparent 42%
    ),
    linear-gradient(160deg, rgba(168, 85, 247, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.summary-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--violet-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-head h2 {
  font-size: 1.5rem;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 20px 0;
}

.summary-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.summary-list > div:last-child {
  border-bottom: 0;
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.summary-list dd {
  max-width: 175px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.summary-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
}

.summary-count strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.06em;
}

.summary-count small {
  color: var(--muted);
  font-size: 0.7rem;
}

.summary-warning {
  min-height: 18px;
  margin-bottom: 12px;
  color: #fecdd3;
  font-size: 0.72rem;
}

.summary-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

/* Result */

.result-panel {
  margin-bottom: clamp(70px, 9vw, 110px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.1), transparent 38%),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.02)
    );
  box-shadow: var(--shadow);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.result-head h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.result-head p {
  max-width: 640px;
  font-size: 0.88rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.result-badge svg {
  width: 14px;
  height: 14px;
}

.url-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
}

.url-box input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.76rem;
}

.url-box input:focus {
  outline: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.manifest-preview {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
}

.manifest-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.manifest-preview-head h3 {
  font-size: 0.82rem;
}

.manifest-preview-head span {
  color: var(--muted);
  font-size: 0.66rem;
}

.manifest-preview pre {
  max-height: 360px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #d8d0e8;
  font-size: 0.72rem;
  line-height: 1.6;
}

.manifest-preview code {
  font-size: inherit;
}

.install-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.install-help > div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.022);
}

.install-help h3 {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.install-help ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 0.76rem;
}

.result-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.result-note a {
  color: var(--violet-soft);
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 36px;
  }

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

  .wizard-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .player-card {
    transform: rotate(0deg);
  }

  .floating-card--one {
    left: 0;
  }

  .floating-card--two {
    right: 0;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .steps-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
    order: 2;
  }

  .stepper {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(116px, 1fr));
  }

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

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .result-head {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, var(--max-width));
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-block: 40px 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 8px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .floating-card {
    display: none;
  }

  .player-card {
    width: min(100%, 330px);
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 18px;
  }

  .stat strong {
    font-size: 1.5rem;
  }

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

  .collection-card {
    min-height: 164px;
    padding: 18px;
  }

  .collection-copy p {
    display: none;
  }

  .option-grid,
  .review-grid,
  .install-help {
    grid-template-columns: 1fr;
  }

  .wizard-step {
    padding: 20px;
  }

  .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step-actions .btn {
    width: 100%;
  }

  .step-actions > span:empty {
    display: none;
  }

  .url-box {
    flex-direction: column;
  }

  .url-box input {
    min-height: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Radio portal */
.portal-main {
  padding-bottom: 32px;
}
body:has(.global-player:not([hidden])) .portal-main {
  padding-bottom: 130px;
}
.portal-main > section {
  scroll-margin-top: 92px;
}
.portal-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  min-height: 430px;
  padding-block: 72px 54px;
}
.portal-hero h1 {
  max-width: 700px;
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}
.portal-hero p {
  max-width: 560px;
  margin-bottom: 26px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.portal-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(192, 132, 252, 0.25),
      transparent 52%
    ),
    linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(14, 116, 144, 0.08));
}
.portal-orb {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.75;
}
.portal-orb--one {
  top: -90px;
  right: -30px;
  background: #7c3aed;
}
.portal-orb--two {
  bottom: -110px;
  left: -70px;
  background: #0e7490;
}
.portal-art-card {
  position: relative;
  display: grid;
  gap: 7px;
  width: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(9, 6, 18, 0.78);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  transform: rotate(-5deg);
}
.portal-art-card img {
  width: 112px;
  height: 112px;
  margin: 0 auto 6px;
  object-fit: contain;
  border-radius: 22px;
}
.portal-art-card span {
  color: #86efac;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.portal-art-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.portal-art-card small {
  color: var(--muted);
  font-size: 0.7rem;
}
.portal-equalizer {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 30px;
  margin-top: 8px;
}
.portal-equalizer i {
  width: 5px;
  height: 55%;
  border-radius: 4px;
  background: linear-gradient(#c084fc, #22d3ee);
  animation: equalize 900ms ease-in-out infinite alternate;
}
.portal-equalizer i:nth-child(2n) {
  animation-delay: 160ms;
  height: 85%;
}
.portal-equalizer i:nth-child(3n) {
  animation-delay: 310ms;
  height: 42%;
}
.portal-search {
  margin-bottom: 42px;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.portal-search-heading {
  margin-bottom: 18px;
}
.portal-search h2 {
  margin-top: 7px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.portal-search .station-search-form {
  max-width: none;
}
.station-filter {
  min-width: 150px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #171127;
  color: var(--text);
  font: inherit;
}
.portal-section {
  margin-bottom: 72px;
}
.portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.portal-section-head h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
}
.section-caption {
  color: var(--muted);
  font-size: 0.78rem;
}
.portal-section-stack {
  display: grid;
  gap: 30px;
}
.portal-subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.portal-subsection-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.radio-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portal-main .radio-grid {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  background-image: none;
}
.radio-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 105px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  scroll-margin-top: 100px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.radio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(255, 255, 255, 0.065);
}
.radio-card-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.36),
    rgba(34, 211, 238, 0.2)
  );
  color: #c084fc;
  font-size: 1.35rem;
}
.radio-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.radio-card-copy {
  min-width: 0;
  padding-right: 24px;
}
.radio-card-copy strong,
.radio-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radio-card-copy strong {
  font-size: 0.82rem;
}
.radio-card-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
}
.radio-card-play {
  grid-column: 1 / -1;
  min-height: 31px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.18);
  color: #eee7ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}
.radio-card-play:hover {
  background: rgba(124, 58, 237, 0.4);
}
.radio-card-favorite {
  position: absolute;
  top: 11px;
  right: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.12rem;
}
.radio-card-favorite.is-favorite {
  color: #fbbf24;
}
.portal-empty,
.portal-loading {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.portal-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 24px;
  background: linear-gradient(
    120deg,
    rgba(124, 58, 237, 0.16),
    rgba(34, 211, 238, 0.06)
  );
}
.portal-addon h2 {
  margin: 7px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.portal-addon p {
  color: var(--muted);
}
.global-player {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 48px minmax(160px, 1fr) minmax(260px, 420px) 34px 30px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 18px;
  background: rgba(18, 12, 35, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}
.global-player-art {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}
.global-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.global-player-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.global-player-info strong,
.global-player-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-player-info strong {
  margin-top: 3px;
  font-size: 0.85rem;
}
.global-player-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}
.global-player-live {
  color: #86efac;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.global-player-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #4ade80;
}
.global-player audio {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 34px;
}
.player-favorite,
.player-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted-strong);
  font-size: 1.35rem;
}
.global-player-volume {
  grid-column: 4;
  grid-row: 1;
}
.player-favorite {
  grid-column: 5;
  grid-row: 1;
}
.player-close {
  grid-column: 6;
  grid-row: 1;
}
.player-minimize {
  grid-column: 7;
  grid-row: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.player-minimize:hover {
  color: var(--text);
}
.global-player.is-minimized {
  grid-template-columns: 48px minmax(0, 1fr) 30px 30px;
}
.global-player.is-minimized audio,
.global-player.is-minimized .global-player-volume,
.global-player.is-minimized .player-favorite {
  display: none;
}
.global-player.is-minimized .player-close {
  grid-column: 3;
}
.global-player.is-minimized .player-minimize {
  grid-column: 4;
}
.player-favorite[aria-pressed='true'] {
  color: #fbbf24;
}
.player-close {
  color: var(--muted);
  font-size: 1.6rem;
}
.global-player[hidden] {
  display: none !important;
}
html,
body {
  overflow-x: hidden;
}
@media (max-width: 1040px) {
  .radio-grid,
  .radio-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .global-player {
    grid-template-columns: 48px minmax(140px, 1fr) minmax(200px, 1fr) 30px 24px;
  }
}
@media (max-width: 760px) {
  .portal-hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }
  .portal-hero-art {
    min-height: 280px;
  }
  .portal-search .station-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .portal-search .station-search {
    grid-column: 1 / -1;
  }
  .portal-search .btn {
    width: 100%;
  }
  .radio-grid,
  .radio-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-addon {
    align-items: flex-start;
    flex-direction: column;
  }
  .global-player {
    grid-template-columns: 42px minmax(0, 1fr) 28px 22px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 10px;
  }
  .global-player-art {
    width: 42px;
    height: 42px;
  }
  .global-player audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .player-favorite,
  .player-close {
    grid-row: 1;
  }
}
@media (max-width: 480px) {
  .portal-hero h1 {
    font-size: 2.65rem;
  }
  .portal-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .radio-grid,
  .radio-grid--compact {
    grid-template-columns: 1fr;
  }
  .portal-search {
    padding: 20px 16px;
  }
  .portal-search .station-search-form {
    grid-template-columns: 1fr;
  }
  .portal-search .station-search {
    grid-column: auto;
  }
  .station-filter {
    min-height: 45px;
  }
  .portal-addon {
    padding: 22px 18px;
  }
  .global-player {
    grid-template-columns: 40px minmax(0, 1fr) 24px 20px;
  }
  .global-player-info strong {
    font-size: 0.75rem;
  }
  .global-player-meta {
    font-size: 0.6rem !important;
  }
}

/* Compact genre and region cards */
.portal-section-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.portal-subsection {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
.portal-subsection.is-open {
  grid-column: 1 / -1;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.portal-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.portal-section-toggle span {
  display: grid;
  gap: 4px;
}
.portal-section-toggle strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.portal-section-toggle small {
  color: var(--muted);
  font-size: 0.68rem;
}
.portal-section-toggle i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--violet-soft);
  font-size: 1.2rem;
  font-style: normal;
  line-height: 1;
}
.portal-section-toggle[aria-expanded='true'] i {
  transform: rotate(45deg);
}
.portal-subsection-content {
  padding: 0 16px 16px;
}
.portal-subsection-content .radio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.global-player {
  grid-template-columns:
    48px minmax(160px, 1fr) minmax(240px, 420px) minmax(120px, 170px)
    34px 30px 30px;
}
.global-player-volume {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.global-player-volume button {
  width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 1rem;
}
.global-player-volume input {
  width: 100%;
  min-width: 0;
  accent-color: var(--violet-soft);
}
@media (max-width: 1040px) {
  .portal-section-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .global-player {
    grid-template-columns:
      48px minmax(140px, 1fr) minmax(180px, 1fr) minmax(100px, 140px)
      30px 24px 24px;
  }
}
@media (max-width: 760px) {
  .portal-section-stack {
    grid-template-columns: 1fr;
  }
  .portal-subsection.is-open {
    grid-column: auto;
  }
  .portal-subsection-content .radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .global-player {
    grid-template-columns: 42px minmax(0, 1fr) 28px 22px 22px;
  }
  .global-player audio {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .global-player-volume {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .player-favorite {
    grid-column: 3;
    grid-row: 1;
  }
  .player-close {
    grid-column: 4;
    grid-row: 1;
  }
  .player-minimize {
    grid-column: 5;
    grid-row: 1;
  }
  .global-player.is-minimized {
    grid-template-columns: 42px minmax(0, 1fr) 22px 22px;
  }
  .global-player.is-minimized .player-close {
    grid-column: 3;
  }
  .global-player.is-minimized .player-minimize {
    grid-column: 4;
  }
}
@media (max-width: 480px) {
  .portal-subsection-content .radio-grid {
    grid-template-columns: 1fr;
  }
}

/* The active player is a full-width dock, matching the portal reference. */
.global-player {
  right: 0;
  bottom: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

@media (max-width: 420px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    padding: 12px;
  }

  .step-button small {
    display: none;
  }

  .step-button span {
    width: 30px;
    height: 30px;
  }

  .stepper li:not(:last-child)::after {
    top: 15px;
    left: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* RADIO BR design.md: compact nocturnal radio command center. */
:root {
  --bg: #000000;
  --bg-soft: #121212;
  --bg-elevated: #1f1f1f;
  --surface: #121212;
  --surface-strong: #1f1f1f;
  --border: #333333;
  --border-strong: rgba(30, 215, 96, 0.48);
  --text: #ffffff;
  --muted: #b3b3b3;
  --muted-strong: #c5c5c5;
  --violet: #1ed760;
  --violet-deep: #169c45;
  --violet-soft: #1ed760;
  --pink: #75f0a0;
  --blue: #75f0a0;
  --green: #1ed760;
  --shadow: rgba(0, 0, 0, 0.35) 0 4px 18px;
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 6px;
  --radius-xl: 6px;
  --font-display: var(--font-body);
}

body {
  background: #000000;
}

body::before {
  display: none;
}

.site-header {
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: #1f1f1f;
}

.btn-primary,
.radio-card-play {
  border-color: #1ed760;
  background: #1ed760;
  color: #000000;
}

.btn-primary:hover,
.radio-card-play:hover {
  border-color: #75f0a0;
  background: #75f0a0;
  color: #000000;
}

.portal-search,
.portal-addon,
.radio-card,
.portal-subsection,
.station-results .radio-card {
  border-color: #333333;
  border-radius: 6px;
  background: #121212;
  box-shadow: none;
}

.radio-card:hover,
.portal-subsection:hover {
  border-color: #535353;
  background: #1f1f1f;
}

.radio-card-art,
.radio-card-art img {
  border-radius: 6px;
}

.station-search,
.station-filter {
  border-color: #333333;
  border-radius: 500px;
  background: #1f1f1f;
}

.portal-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.portal-section,
.portal-addon {
  margin-bottom: 40px;
}

.portal-addon {
  padding: 24px;
  background: #121212;
}

.portal-subsection {
  border-radius: 6px;
}

.portal-section-toggle {
  min-height: 68px;
  padding: 12px 16px;
}

.portal-section-toggle i {
  border-color: #535353;
  color: #1ed760;
}

.global-player {
  border-top-color: #333333;
  background: #121212;
  box-shadow: rgba(0, 0, 0, 0.5) 0 -8px 24px;
  backdrop-filter: none;
}

.global-player-live,
.global-player-live i {
  color: #1ed760;
  background-color: #1ed760;
}

.global-player-volume input {
  accent-color: #1ed760;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@keyframes equalize {
  0% {
    transform: scaleY(0.35);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.station-discovery {
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.035);
}

.station-search-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
}

.station-search {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  padding: 14px 16px;
  font: inherit;
}

.station-search:focus-visible,
.favorite-station:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.5);
  outline-offset: 3px;
}

.station-search-status {
  min-height: 24px;
  color: var(--muted, #aaa);
}

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

.station-result {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.station-result:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

.station-result-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  color: #22d3ee;
  font-size: 24px;
}

.station-result-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-result strong,
.station-result small {
  display: block;
}

.station-result small {
  margin-top: 4px;
  color: var(--muted, #aaa);
}

.favorite-station {
  border: 1px solid color-mix(in srgb, var(--radio-secondary), transparent 40%);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 620px) {
  .station-search-form,
  .station-results {
    grid-template-columns: 1fr;
  }

  .station-search-form {
    display: grid;
  }
}

/* Final design.md surface overrides for the radio portal. */
.portal-main .station-search {
  border-color: #333333;
  border-radius: 500px;
  background: #1f1f1f;
}

.portal-main .station-filter {
  border-color: #333333;
  border-radius: 500px;
  background: #1f1f1f;
}

/* Playback dock refinement inspired by the reference player. */
.global-player {
  min-height: 86px;
  gap: 16px;
  padding: 14px 22px 14px 16px;
}

.global-player-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
}

.global-player-info strong {
  font-size: 0.9rem;
}

.global-player-info small {
  font-size: 0.72rem;
}

.global-player audio {
  height: 38px;
  accent-color: #1ed760;
}

.global-player-center {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-play-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1ed760;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 800;
}

.player-play-toggle:hover {
  background: #75f0a0;
}

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

.player-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-bottom: 3px;
  opacity: 0.38;
}

.player-wave i {
  flex: 1;
  height: var(--wave-height);
  min-width: 2px;
  border-radius: 999px;
  background: #1ed760;
  transform-origin: center;
}

.global-player.is-playing .player-wave i {
  animation: player-wave 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--wave-height) * -8ms);
}

.global-player-center audio {
  display: block;
  width: 100%;
}

.player-favorite,
.player-close,
.player-minimize {
  min-width: 28px;
  min-height: 28px;
  border-radius: 9999px;
}

.player-favorite:hover,
.player-close:hover,
.player-minimize:hover {
  background: #292929;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .global-player-art {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 760px) {
  .global-player {
    min-height: 82px;
    padding: 10px;
  }

  .global-player-art {
    width: 42px;
    height: 42px;
  }

  .global-player-center {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-player audio {
    grid-column: auto;
    grid-row: auto;
  }
}

@keyframes player-wave {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

/* Single playback interface: audio is only the playback engine. */
.global-player {
  grid-template-columns:
    56px minmax(150px, 240px) clamp(280px, 30vw, 420px)
    clamp(96px, 12vw, 140px) 32px 32px 32px;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
}
.global-player audio { display: none !important; }
.global-player-live { background: transparent; color: #1ed760; }
.global-player-center { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
.player-play-toggle { width: 44px; height: 44px; font-size: 16px; }
.player-wave { height: 40px; margin: 0; gap: 3px; opacity: .5; }
.player-wave i { height: 25%; animation-delay: 0ms; }
.player-wave i:nth-child(3n) { height: 70%; }
.player-wave i:nth-child(4n) { height: 45%; }
.player-wave i:nth-child(5n) { height: 95%; }
.global-player.is-playing .player-wave { opacity: 1; }
.global-player.is-playing .player-wave i { animation-delay: -200ms; }
.global-player.is-playing .player-wave i:nth-child(3n) { animation-delay: -600ms; }
.global-player.is-minimized { grid-template-columns: 36px minmax(0, 1fr) 32px 32px; min-height: 56px; padding: 8px 16px; }
.global-player.is-minimized .global-player-art { width: 36px; height: 36px; }
.global-player.is-minimized .global-player-center { display: none; }
.global-player.is-minimized .global-player-info small { display: none; }
.global-player {
  background: #141414;
  border-top: 1px solid #303030;
  box-shadow: 0 -8px 32px #0006;
}
.global-player-art { border-radius: 10px; }
.global-player button { display: grid; place-items: center; }
.global-player button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.global-player .player-minimize { background: #252525; width: 32px; height: 32px; }
.player-wave { height: 28px; max-width: 440px; gap: 4px; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.player-wave i { border-radius: 3px; background: #73d694; }
.global-player.is-playing .player-wave { opacity: .7; }
.global-player.is-minimized {
  left: auto;
  right: 20px;
  bottom: 20px;
  width: min(390px, calc(100vw - 24px));
  grid-template-columns: 40px minmax(0, 1fr) 40px 32px;
  gap: 12px;
  padding: 12px;
  border: 1px solid #3c3c3c;
  border-radius: 16px;
  box-shadow: 0 12px 40px #0009;
}
.global-player.is-minimized .global-player-art { width: 40px; height: 40px; }
.global-player.is-minimized .global-player-center { display: flex; grid-column: 3; grid-row: 1; }
.global-player.is-minimized .player-play-toggle { width: 38px; height: 38px; }
.global-player.is-minimized .player-track,
.global-player.is-minimized .player-close { display: none; }
.global-player.is-minimized .player-minimize { grid-column: 4; grid-row: 1; }
body:has(.global-player.is-minimized:not([hidden])) .portal-main { padding-bottom: 32px; }
@media (max-width: 760px) {
  .global-player { grid-template-columns: 42px minmax(0, 1fr) 32px 32px 32px; gap: 10px; padding: 12px; }
  .global-player-center { grid-column: 1 / 4; grid-row: 2; }
  .global-player-volume { grid-column: 4 / 6; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .global-player.is-playing .player-wave i { animation: none; }
}
