/**
 * Static King — epic radio UI polish (Agent E)
 * Layered on top of radio.css. Does not change DOM/API.
 * DNA: molten amber on-air · crown-lime brand · glass dial · vault gold
 */

/* ── Tokens (local to polish layer) ── */
.af-radio-root {
  --sk-amber: #ff6a2a;
  --sk-amber-hot: #ff8a40;
  --sk-amber-glow: rgba(255, 90, 30, 0.85);
  --sk-lime: #b8ff00;
  --sk-lime-soft: rgba(184, 255, 0, 0.45);
  --sk-vault-gold: #fbbf24;
  --sk-glass: rgba(255, 220, 160, 0.08);
  --sk-touch-min: 44px;
}

/* ══════════════════════════════════════
   Glass dial — specular + depth
   ══════════════════════════════════════ */
.af-radio-dial-wrap {
  background:
    linear-gradient(165deg, rgba(255, 140, 60, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #1f1410 0%, #0a0806 55%, #060504 100%) !important;
  border-color: rgba(255, 150, 70, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.12),
    inset 0 2px 14px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 8px 24px -12px rgba(255, 80, 20, 0.25) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.af-radio-dial-wrap::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 160, 80, 0.12), transparent 60%);
  z-index: 0;
  opacity: 0.9;
}

.af-radio-dial-wrap > * {
  position: relative;
  z-index: 1;
}

.af-radio-glass {
  background:
    radial-gradient(ellipse 100% 80% at 50% 30%, #120c0a 0%, #050403 70%) !important;
  border: 1px solid rgba(255, 200, 120, 0.16) !important;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 220, 160, 0.08);
}

/* Specular top edge on glass */
.af-radio-glass::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 230, 180, 0.35) 30%,
    rgba(255, 230, 180, 0.55) 50%,
    rgba(255, 230, 180, 0.35) 70%,
    transparent
  );
  z-index: 4;
  opacity: 0.7;
}

.af-radio-dial-wrap.is-on-air .af-radio-glass {
  border-color: rgba(255, 140, 50, 0.45) !important;
  box-shadow:
    inset 0 0 24px rgba(255, 60, 10, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.65),
    0 0 20px -6px rgba(255, 90, 20, 0.4);
}

.af-radio-needle {
  width: 2.5px !important;
  margin-left: -1.25px !important;
  background: linear-gradient(180deg, #ffc48a, #ff6a2a 35%, #ff3b1f 70%, #ff8a2a) !important;
  border-radius: 1px;
  box-shadow:
    0 0 12px 2px rgba(255, 90, 30, 0.85),
    0 0 4px 1px rgba(255, 200, 120, 0.65),
    0 0 28px 4px rgba(255, 60, 10, 0.35) !important;
}

.af-radio-dial-wrap.is-on-air .af-radio-needle {
  box-shadow:
    0 0 18px 3px rgba(255, 90, 30, 1),
    0 0 6px 2px rgba(255, 220, 160, 0.9),
    0 0 36px 6px rgba(255, 50, 10, 0.45) !important;
}

.af-radio-mhz {
  letter-spacing: 0.06em !important;
  font-weight: 900 !important;
}

.af-radio-dial-wrap.is-on-air .af-radio-mhz {
  color: #fff7ed !important;
  text-shadow:
    0 0 14px rgba(255, 120, 40, 0.95),
    0 0 32px rgba(255, 70, 15, 0.75),
    0 0 4px rgba(255, 200, 120, 0.5) !important;
}

/* Larger dial thumb for touch */
.af-radio-dial::-webkit-slider-thumb {
  width: 1.35rem !important;
  height: 1.35rem !important;
  margin-top: -0.45rem !important;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(255, 90, 30, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.af-radio-dial::-moz-range-thumb {
  width: 1.35rem !important;
  height: 1.35rem !important;
}

/* ══════════════════════════════════════
   Molten on-air LED
   ══════════════════════════════════════ */
.af-radio-btn-led.is-on {
  background: radial-gradient(circle at 35% 30%, #ffb380, #ff6a2a 55%, #c2410c) !important;
  box-shadow:
    0 0 6px 2px rgba(255, 90, 30, 1),
    0 0 16px 4px rgba(255, 60, 10, 0.7),
    0 0 28px 6px rgba(255, 40, 5, 0.35) !important;
  animation: sk-led-molten 1.6s ease-in-out infinite;
}

.af-radio-btn.is-on-air .af-radio-btn-glow {
  opacity: 1 !important;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 100, 30, 0.55),
    rgba(255, 60, 10, 0.2) 45%,
    transparent 72%
  ) !important;
  animation: sk-glow-breathe 2.2s ease-in-out infinite;
}

.af-radio-root.is-on-air .af-radio-cabinet {
  border-color: rgba(255, 120, 45, 0.85) !important;
  box-shadow:
    0 28px 60px -18px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 150, 70, 0.28),
    0 0 64px -8px rgba(255, 70, 15, 0.85),
    inset 0 0 48px -10px rgba(255, 80, 20, 0.28) !important;
}

.af-radio-now.is-on-air {
  border-color: rgba(255, 120, 40, 0.7) !important;
  background:
    linear-gradient(135deg, rgba(255, 80, 20, 0.16), rgba(255, 40, 10, 0.06)),
    rgba(0, 0, 0, 0.4) !important;
  box-shadow:
    0 0 28px -6px rgba(255, 80, 20, 0.65),
    inset 0 1px 0 rgba(255, 200, 140, 0.1) !important;
}

.af-radio-now.is-on-air .af-radio-now-label {
  color: #fb923c !important;
  letter-spacing: 0.2em !important;
  text-shadow: 0 0 12px rgba(255, 100, 30, 0.75) !important;
}

@keyframes sk-led-molten {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 6px 2px rgba(255, 90, 30, 0.95),
      0 0 14px 3px rgba(255, 60, 10, 0.6);
  }
  50% {
    filter: brightness(1.25) saturate(1.2);
    box-shadow:
      0 0 10px 3px rgba(255, 110, 40, 1),
      0 0 22px 5px rgba(255, 50, 10, 0.8);
  }
}

@keyframes sk-glow-breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* ══════════════════════════════════════
   Premium power button
   ══════════════════════════════════════ */
/* Android / app-only: always-on — hide PWR */
.sk-app-only .af-radio-power,
.sk-always-on .af-radio-power {
  display: none !important;
}

.af-radio-power {
  min-height: var(--sk-touch-min);
  min-width: 4.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem !important;
  border-radius: 0.55rem !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(40, 36, 34, 0.95), rgba(12, 10, 10, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.45) !important;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease !important;
}

.af-radio-power:hover {
  border-color: rgba(255, 150, 70, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.12),
    0 0 16px -4px rgba(255, 100, 30, 0.4) !important;
}

.af-radio-power:active {
  transform: scale(0.94) !important;
}

.af-radio-power-ring {
  width: 0.7rem !important;
  height: 0.7rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

.af-radio-power.is-on {
  color: #fff7ed !important;
  border-color: rgba(255, 120, 40, 0.85) !important;
  background:
    linear-gradient(145deg, rgba(255, 90, 30, 0.45), rgba(100, 25, 8, 0.75)),
    linear-gradient(180deg, #2a1208, #100806) !important;
  box-shadow:
    0 0 0 1px rgba(255, 140, 50, 0.3),
    0 0 20px -2px rgba(255, 80, 20, 0.75),
    inset 0 1px 0 rgba(255, 200, 140, 0.2) !important;
}

.af-radio-power.is-on .af-radio-power-ring {
  background: radial-gradient(circle at 35% 30%, #ffc48a, #ff6a2a 60%, #9a3412) !important;
  border-color: rgba(255, 200, 140, 0.4);
  box-shadow:
    0 0 10px 2px rgba(255, 90, 30, 1),
    0 0 18px 4px rgba(255, 60, 10, 0.6) !important;
  animation: sk-led-molten 1.8s ease-in-out infinite;
}

.af-radio-power.is-live {
  animation: sk-pwr-live 1.8s ease-in-out infinite !important;
}

.af-radio-power.is-armed:not(.is-live) .af-radio-power-ring {
  background: radial-gradient(circle at 35% 30%, #fde68a, #fbbf24 60%, #b45309) !important;
  box-shadow: 0 0 10px 2px rgba(251, 191, 36, 0.85) !important;
}

@keyframes sk-pwr-live {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(255, 140, 50, 0.3),
      0 0 18px -2px rgba(255, 80, 20, 0.7);
  }
  50% {
    filter: brightness(1.12);
    box-shadow:
      0 0 0 1px rgba(255, 160, 70, 0.45),
      0 0 28px 0 rgba(255, 90, 20, 0.9);
  }
}

/* ══════════════════════════════════════
   Genre / Name tiles — pro grid (no bubble pills)
   ══════════════════════════════════════ */
.af-radio-genre-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.42rem !important;
  overflow: visible !important;
}

/* Section label when browsing genres / name presets */
.af-radio-root.is-genre-mode .af-radio-genre-bar:not([hidden])::before,
.af-radio-root.is-name-mode .af-radio-genre-bar:not([hidden])::before {
  content: "Browse";
  grid-column: 1 / -1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78716c;
  padding: 0.1rem 0.05rem 0.05rem;
  line-height: 1.2;
}

.af-radio-root.is-genre-mode .af-radio-genre-bar:not([hidden])::before {
  content: "Genres";
}

.af-radio-root.is-name-mode .af-radio-genre-bar:not([hidden])::before {
  content: "Quick finds";
}

.af-radio-gchip {
  min-height: max(2.45rem, calc(var(--sk-touch-min) - 4px)) !important;
  padding: 0.5rem 0.45rem !important;
  border-radius: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  text-transform: capitalize !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(165deg, rgba(32, 24, 20, 0.96), rgba(10, 9, 8, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.4) !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.16s ease,
    transform 0.1s ease !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-gchip:hover {
  border-color: rgba(255, 150, 70, 0.42) !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.1),
    0 6px 16px -8px rgba(255, 90, 30, 0.4) !important;
}

.af-radio-gchip:active {
  transform: scale(0.98) !important;
}

.af-radio-gchip.is-active {
  color: #fffaf5 !important;
  border-color: rgba(255, 130, 45, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(255, 140, 55, 0.24) 0%, transparent 52%),
    linear-gradient(145deg, rgba(95, 38, 14, 0.96), rgba(26, 12, 8, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.14),
    0 0 0 1px rgba(255, 120, 40, 0.12),
    0 8px 20px -12px rgba(255, 80, 20, 0.55) !important;
}

/* Selected rail always reads as molten amber (wins over genre tints) */
.af-radio-gchip.is-active::before {
  top: 12% !important;
  bottom: 12% !important;
  width: 3px !important;
  background: linear-gradient(180deg, #ffc48a, #ff6a2a 50%, #ff3b1f) !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(255, 90, 30, 0.65) !important;
}

.af-radio-gchip.is-hot:not(.is-active) {
  border-color: rgba(251, 191, 36, 0.42) !important;
  color: #fde68a !important;
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.08),
    0 2px 8px -4px rgba(251, 191, 36, 0.25) !important;
}

/* Soft genre tints — quiet identity without candy bubbles */
.af-radio-gchip[data-genre-chip="country"]::before { background: #d97706; }
.af-radio-gchip[data-genre-chip="classic rock"]::before,
.af-radio-gchip[data-genre-chip="rock"]::before { background: #ef4444; }
.af-radio-gchip[data-genre-chip="news"]::before { background: #38bdf8; }
.af-radio-gchip[data-genre-chip="talk"]::before { background: #a78bfa; }
.af-radio-gchip[data-genre-chip="sports"]::before { background: #22c55e; }
.af-radio-gchip[data-genre-chip="pop"]::before { background: #f472b6; }
.af-radio-gchip[data-genre-chip="jazz"]::before { background: #c084fc; }
.af-radio-gchip[data-genre-chip="classical"]::before { background: #fbbf24; }
.af-radio-gchip[data-genre-chip="hip hop"]::before { background: #fb923c; }
.af-radio-gchip[data-genre-chip="electronic"]::before { background: #22d3ee; }
.af-radio-gchip[data-genre-chip="oldies"]::before { background: #f59e0b; }
.af-radio-gchip[data-genre-chip="public"]::before { background: #60a5fa; }
.af-radio-gchip[data-genre-chip="weather"]::before { background: #67e8f9; }
.af-radio-gchip[data-genre-chip="christian"]::before { background: #a3e635; }

/* ══════════════════════════════════════
   Search modes (ZIP / Genre / Artist / Name)
   ══════════════════════════════════════ */
.af-radio-mode-btn {
  min-height: max(2.35rem, calc(var(--sk-touch-min) - 6px));
  min-width: 0;
  padding: 0.4rem 0.35rem !important;
  border-radius: 0.48rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.16s ease,
    transform 0.1s ease !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-mode-btn:hover {
  color: #ffedd5 !important;
  background: rgba(255, 90, 30, 0.1) !important;
}

.af-radio-mode-btn:active {
  transform: scale(0.97);
}

.af-radio-mode-btn.is-active {
  color: #fffaf5 !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 150, 70, 0.3) 0%, rgba(255, 90, 30, 0.18) 100%),
    rgba(48, 20, 10, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

.af-radio-root.is-genre-mode .af-radio-mode-btn[data-search-mode="genre"],
.af-radio-root.is-song-mode .af-radio-mode-btn[data-search-mode="song"],
.af-radio-root.is-name-mode .af-radio-mode-btn[data-search-mode="name"] {
  /* reinforce active mode from root class when present */
}

.af-radio-zip,
.af-radio-genre-search {
  min-height: var(--sk-touch-min);
  font-size: 16px !important; /* iOS zoom guard */
  border-radius: 0.6rem !important;
  transition: border-color 0.15s ease, box-shadow 0.18s ease !important;
}

.af-radio-zip:focus,
.af-radio-genre-search:focus {
  border-color: rgba(255, 140, 50, 0.75) !important;
  box-shadow:
    0 0 0 3px rgba(255, 90, 30, 0.22),
    0 0 16px -4px rgba(255, 100, 30, 0.4) !important;
}

.af-radio-tune-btn,
.af-radio-scan-btn {
  min-height: var(--sk-touch-min);
  min-width: var(--sk-touch-min);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════
   Drag grip — premium handle
   ══════════════════════════════════════ */
.af-radio-drag-grip {
  width: 0.85rem !important;
  gap: 3px !important;
  opacity: 0.65 !important;
  padding: 0.35rem 0.15rem;
}

.af-radio-drag-grip i {
  height: 2.5px !important;
  background: linear-gradient(
    90deg,
    rgba(184, 255, 0, 0.15),
    rgba(251, 146, 60, 0.95),
    rgba(184, 255, 0, 0.15)
  ) !important;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.45) !important;
}

.af-radio-top:hover .af-radio-drag-grip {
  opacity: 1 !important;
}

.af-radio-panel.is-dragging .af-radio-drag-grip i {
  background: linear-gradient(
    90deg,
    rgba(184, 255, 0, 0.35),
    #b8ff00,
    rgba(184, 255, 0, 0.35)
  ) !important;
  box-shadow: 0 0 10px rgba(184, 255, 0, 0.55) !important;
}

/* ══════════════════════════════════════
   Vault star / save — gold jewel
   ══════════════════════════════════════ */
.af-radio-vault {
  min-height: var(--sk-touch-min);
  min-width: var(--sk-touch-min);
  padding: 0.35rem 0.7rem !important;
  border-radius: 0.55rem !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  background:
    linear-gradient(180deg, rgba(50, 40, 15, 0.75), rgba(12, 10, 8, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(253, 230, 138, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease !important;
  touch-action: manipulation;
}

.af-radio-vault:hover {
  border-color: rgba(251, 191, 36, 0.65) !important;
  box-shadow:
    0 0 16px -4px rgba(251, 191, 36, 0.55),
    inset 0 1px 0 rgba(253, 230, 138, 0.15) !important;
}

.af-radio-vault.is-active {
  border-color: rgba(251, 191, 36, 0.9) !important;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.35), rgba(80, 50, 10, 0.7)) !important;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.3),
    0 0 20px -2px rgba(251, 191, 36, 0.65),
    inset 0 1px 0 rgba(253, 230, 138, 0.2) !important;
  color: #fef3c7 !important;
}

.af-radio-vault-count {
  font-variant-numeric: tabular-nums;
  font-weight: 850 !important;
}

/* Vault mark is a plain "V" letter — no star glyphs */
.af-radio-vault-ico {
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

/* Tool chrome: short ASCII words only */
.af-radio-tool-btn,
.af-radio-mute,
.af-radio-save-btn {
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.af-radio-star {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem !important;
  /* Plain text ON/OFF — never decorative glyphs */
  font-size: 0.62rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease, text-shadow 0.15s ease !important;
  touch-action: manipulation;
}

.af-radio-star:hover {
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.14) !important;
  transform: scale(1.08);
}

.af-radio-star.is-on {
  color: #fbbf24 !important;
  text-shadow:
    0 0 12px rgba(251, 191, 36, 0.85),
    0 0 24px rgba(245, 158, 11, 0.45) !important;
  animation: sk-star-pop 0.35s ease-out;
}

.af-radio-save-btn {
  min-height: 2.25rem;
  min-height: max(2.25rem, calc(var(--sk-touch-min) - 4px));
  padding: 0.3rem 0.7rem !important;
  touch-action: manipulation;
}

.af-radio-save-btn.is-saved {
  border-color: rgba(251, 191, 36, 0.8) !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(80, 50, 10, 0.5)) !important;
  box-shadow: 0 0 14px -2px rgba(251, 191, 36, 0.55) !important;
  color: #fef3c7 !important;
}

.af-radio-rack-chip {
  min-height: 2.25rem;
  touch-action: manipulation;
}

.af-radio-rack-chip.is-active {
  border-color: rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 0 14px -3px rgba(251, 191, 36, 0.55) !important;
}

@keyframes sk-star-pop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* Full-app: never show × that leaves an empty page */
html.sk-app-only .af-radio-close,
html[data-sk-app="1"] .af-radio-close,
body.sk-app-only .af-radio-close {
  display: none !important;
  pointer-events: none !important;
}

/* Pro brand mark — photoreal dial+crown, pops next to title */
.af-radio-brand-mark,
img.af-radio-brand-mark {
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem !important;
  min-height: 2.15rem !important;
  max-width: 2.15rem !important;
  max-height: 2.15rem !important;
  border-radius: 0.55rem !important; /* match app-icon squircle */
  object-fit: cover !important;
  object-position: center !important;
  flex-shrink: 0 !important;
  box-shadow:
    0 0 0 1.5px rgba(251, 191, 36, 0.55),
    0 0 0 3px rgba(255, 90, 20, 0.22),
    0 0 18px rgba(255, 90, 20, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.7) !important;
  background: #0a0604 !important;
  pointer-events: none !important;
}

/* Toolbar: logo + STATIC KING always visible + actions free */
.af-radio-top {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  isolation: isolate;
  z-index: 30 !important;
}

.af-radio-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

/* Wordmark — always on, crown-lime AAA title */
.af-radio-brand-name {
  display: inline-block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: min(11rem, 42vw) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  /* Solid fallback for WebViews that skip gradient text */
  color: #c8ff2a !important;
  text-shadow:
    0 0 12px rgba(184, 255, 0, 0.55),
    0 0 4px rgba(255, 140, 40, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.65) !important;
  line-height: 1.15 !important;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .af-radio-brand-name {
    background: linear-gradient(
      105deg,
      #f8ffe0 0%,
      #b8ff00 38%,
      #fbbf24 72%,
      #ff8a2a 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 10px rgba(184, 255, 0, 0.5))
      drop-shadow(0 0 2px rgba(255, 140, 40, 0.35)) !important;
  }
}

.af-radio-top .af-radio-power,
.af-radio-top .af-radio-vault {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 40 !important;
  pointer-events: auto !important;
}

@media (max-width: 900px) {
  .af-radio-brand-mark,
  img.af-radio-brand-mark {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    max-width: 2.35rem !important;
    max-height: 2.35rem !important;
    border-radius: 0.6rem !important;
  }
  /* Always show Static King on phone full-app — never hide the wordmark */
  .af-radio-brand-name,
  html.sk-app-only .af-radio-brand-name,
  body.sk-app-only .af-radio-brand-name {
    display: inline-block !important;
    max-width: min(12.5rem, 48vw) !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.01em !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.ad-brand-mark {
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 0.85rem !important;
  object-fit: cover !important;
  object-position: center !important;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.55),
    0 0 32px rgba(255, 90, 20, 0.5) !important;
}

/* ══════════════════════════════════════
   Vault mode — pro list, nothing blocked
   ══════════════════════════════════════ */

/* Cabinet is a strict column: chrome fixed, list scrolls alone */
.af-radio-cabinet {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
}

/* Dial unused in vault — remove fully so rows can't sit under it */
.af-radio-root.is-vault .af-radio-dial-wrap {
  display: none !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.af-radio-root.is-vault .af-radio-dial-tools,
.af-radio-root.is-vault .af-radio-freq-readout,
.af-radio-root.is-vault .af-radio-search-block {
  display: none !important;
  pointer-events: none !important;
}

.af-radio-root.is-vault .af-radio-place {
  flex-shrink: 0 !important;
  font-size: 0.7rem !important;
  color: #fde68a !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 0.1rem 0.15rem 0.2rem !important;
  min-height: 0 !important;
  max-height: 2.4rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 12 !important;
}

/* Genre racks — solid bar, never under rows, always tappable */
.af-radio-vault-racks {
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 3.15rem !important;
  z-index: 40 !important;
  background: linear-gradient(
    180deg,
    rgba(16, 12, 8, 1) 0%,
    rgba(16, 12, 8, 0.98) 100%
  ) !important;
  padding: 0.3rem 0.1rem 0.4rem !important;
  margin: 0 0 0.2rem !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22) !important;
  gap: 0.35rem !important;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.9) !important;
}

.af-radio-rack-chip {
  position: relative !important;
  z-index: 41 !important;
  pointer-events: auto !important;
  min-height: 2.15rem !important;
  padding: 0.35rem 0.72rem !important;
  flex: 0 0 auto !important;
}

/* ── Station rows: [fav][freq][body…][★] — chips only inside body ── */
.af-radio-row {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 2.75rem !important;
  padding: 0.4rem 0.35rem !important;
  isolation: isolate;
}

.af-radio-row > * {
  max-width: 100%;
}

.af-radio-row-fav,
.af-radio-row-fav--empty {
  width: 1.15rem !important;
  height: 1.15rem !important;
  border-radius: 0.28rem !important;
  flex: 0 0 1.15rem !important;
  margin: 0 !important;
}

.af-radio-row-freq {
  flex: 0 0 auto !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
  min-width: 2.35rem !important;
  max-width: 2.8rem !important;
}

.af-radio-row-body {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
  pointer-events: auto !important;
}

.af-radio-row-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  max-width: 100% !important;
}

.af-radio-row-meta,
.af-radio-row-song {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

/* Chips under name — wrap inside body only; never share row with ★ */
.af-radio-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.22rem !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 0.08rem !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.af-radio-row-actions .af-radio-zip-badge,
.af-radio-row-actions .af-radio-br-pill,
.af-radio-row-actions .af-radio-row-em,
.af-radio-row-actions .af-radio-row-live {
  flex: 0 1 auto !important;
  position: static !important;
  z-index: auto !important;
  pointer-events: auto !important;
  font-size: 0.5rem !important;
  padding: 0.18rem 0.34rem !important;
  max-width: 100% !important;
  line-height: 1.2 !important;
}

.af-radio-br-pill,
.af-radio-zip-badge {
  flex: 0 1 auto !important;
  max-width: 5.5rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: static !important;
}

.af-radio-row.is-vault-row .af-radio-zip-badge {
  font-size: 0.5rem !important;
  padding: 0.2rem 0.36rem !important;
}

/* Pin star — dedicated right column; nothing can sit on top of it */
.af-radio-row > .af-radio-star,
.af-radio-star {
  flex: 0 0 2.5rem !important;
  order: 99 !important;
  position: relative !important;
  z-index: 6 !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
  margin: 0 !important;
  margin-left: 0.1rem !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  border-radius: 0.5rem !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(253, 230, 138, 0.08) !important;
  /* Keep hit target clear of neighbors */
  isolation: isolate;
}

.af-radio-row-em,
.af-radio-row-live {
  flex: 0 0 auto !important;
  position: static !important;
  font-size: 0.48rem !important;
}

.af-radio-rack-head {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  pointer-events: none !important;
  padding: 0.5rem 0.2rem 0.22rem !important;
  background: transparent !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

/* Phone sheet: multi-line vault rows OK; star stays centered, not giant */
.af-radio-panel.is-phone-sheet .af-radio-row {
  min-height: 2.85rem !important;
  align-items: center !important;
  padding-top: 0.42rem !important;
  padding-bottom: 0.42rem !important;
}

.af-radio-panel.is-phone-sheet .af-radio-row.is-vault-row {
  align-items: flex-start !important;
  min-height: 3.1rem !important;
  padding-top: 0.48rem !important;
  padding-bottom: 0.48rem !important;
}

.af-radio-panel.is-phone-sheet .af-radio-row .af-radio-star,
.af-radio-panel.is-phone-sheet .af-radio-star {
  align-self: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
}

/* List scrolls under sticky chrome; never stacks above toolbar */
.af-radio-root.is-vault .af-radio-list {
  flex: 1 1 auto !important;
  min-height: 10rem !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0.2rem 0.15rem 1.25rem !important;
  position: relative !important;
  z-index: 1 !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.af-radio-root.is-vault .af-radio-list-filter-row {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 20 !important;
  background: rgba(12, 10, 8, 0.98) !important;
  padding: 0.2rem 0 !important;
}

.af-radio-root.is-vault .af-radio-now {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 18 !important;
  overflow: hidden !important;
  max-width: 100% !important;
}

.af-radio-root.is-vault .af-radio-vol-row,
.af-radio-root.is-vault .af-radio-recents,
.af-radio-root.is-vault .af-radio-sort-bar {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 16 !important;
  max-width: 100% !important;
}

/* Epic equalizer volume: vault + search share identical control chrome */
.af-radio-vol-row {
  padding: 0.2rem 0.1rem !important;
}

.af-radio-now-status {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.25rem !important;
  max-width: 100% !important;
}

.af-radio-vol-onair-wrap {
  flex: 1 1 5rem !important;
  min-width: 5rem !important;
  max-width: 11rem !important;
}

/* Keep twin sliders readable on phone vault + area */
.af-radio-panel.is-phone-sheet .af-radio-vol-onair-wrap {
  max-width: min(46vw, 10rem) !important;
}

.af-radio-vol.is-hot {
  filter: saturate(1.12);
}

.af-radio-now-tools {
  flex-wrap: wrap !important;
  max-width: 100% !important;
  gap: 0.3rem !important;
  position: relative !important;
  z-index: 19 !important;
  justify-content: flex-end !important;
}

.af-radio-now-head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 0.35rem !important;
  max-width: 100% !important;
}

.af-radio-save-btn {
  position: relative !important;
  z-index: 20 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}

.af-radio-now-name {
  overflow: hidden !important;
  max-width: 100% !important;
}

.af-radio-now-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  min-width: 0 !important;
  width: 100% !important;
}

.af-radio-now-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.22rem !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.af-radio-now-mainline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.28rem 0.4rem !important;
  white-space: normal !important;
}

.af-radio-now-song {
  display: block !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.15rem !important;
}

/* Sticky top: opaque bar so vault rows never cover PWR / Vault / logo */
.af-radio-top,
.af-radio-panel.is-phone-sheet .af-radio-top,
html.sk-app-only .af-radio-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  flex-shrink: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(14, 10, 8, 1) 0%,
    rgba(14, 10, 8, 0.99) 88%,
    rgba(14, 10, 8, 0.95) 100%
  ) !important;
  box-shadow:
    0 1px 0 rgba(251, 191, 36, 0.12),
    0 10px 18px -12px rgba(0, 0, 0, 0.95) !important;
  margin: 0 0 0.3rem !important;
  padding: 0.4rem 0.2rem 0.45rem !important;
  overflow: visible !important;
}

.af-radio-top .af-radio-power,
.af-radio-top .af-radio-vault,
.af-radio-top .af-radio-close {
  position: relative !important;
  z-index: 62 !important;
  pointer-events: auto !important;
  flex: 0 0 auto !important;
}

/* ══════════════════════════════════════
   Stacking — panel always above shell chrome
   ══════════════════════════════════════ */
.af-radio-root {
  z-index: 200 !important;
}

.af-radio-panel {
  z-index: 210 !important;
}

.af-radio-panel.is-open {
  z-index: 220 !important;
}

.af-radio-panel.is-dragging {
  z-index: 240 !important;
}

/* ══════════════════════════════════════
   Phone sheet — safe areas + touch
   Full-bleed pro radio (header collapsed while open)
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .af-radio-panel.is-phone-sheet.is-open {
    left: 0 !important;
    right: 0 !important;
    top: env(safe-area-inset-top, 0px) !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: calc(
      100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    ) !important;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: none !important;
    border-radius: 0;
  }

  .af-radio-panel.is-phone-sheet .af-radio-cabinet {
    padding:
      0.7rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 0 0.85rem 0.85rem !important;
    min-height: calc(
      100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4px
    );
    max-height: inherit !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-top {
    min-height: var(--sk-touch-min);
    padding-top: 0.35rem !important;
    gap: 0.4rem !important;
    /* Sticky + opaque — vault pins never cover PWR / Vault */
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    background: linear-gradient(
      180deg,
      rgba(14, 10, 8, 1) 0%,
      rgba(14, 10, 8, 0.99) 90%,
      rgba(14, 10, 8, 0.96) 100%
    ) !important;
    margin: 0 0 0.3rem !important;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
    border-radius: 0.5rem;
    box-shadow:
      0 1px 0 rgba(251, 191, 36, 0.1),
      0 10px 18px -12px rgba(0, 0, 0, 0.95) !important;
  }

  /* Touch targets on chrome — NOT on full station rows (chips stack under name) */
  .af-radio-panel.is-phone-sheet .af-radio-power,
  .af-radio-panel.is-phone-sheet .af-radio-vault,
  .af-radio-panel.is-phone-sheet .af-radio-close,
  .af-radio-panel.is-phone-sheet .af-radio-mode-btn,
  .af-radio-panel.is-phone-sheet .af-radio-gchip,
  .af-radio-panel.is-phone-sheet .af-radio-tune-btn,
  .af-radio-panel.is-phone-sheet .af-radio-scan-btn,
  .af-radio-panel.is-phone-sheet .af-radio-sort-btn,
  .af-radio-panel.is-phone-sheet .af-radio-ch,
  .af-radio-panel.is-phone-sheet .af-radio-save-btn,
  .af-radio-panel.is-phone-sheet .af-radio-rack-chip {
    min-height: var(--sk-touch-min);
  }

  .af-radio-panel.is-phone-sheet .af-radio-close {
    min-width: var(--sk-touch-min);
    min-height: var(--sk-touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Star: solid 40px column — do NOT expand to 44px and crush neighbors */
  .af-radio-panel.is-phone-sheet .af-radio-star {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
    flex: 0 0 2.5rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-row {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    min-height: 2.85rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-dial-wrap {
    /* keep glass readable; base already scales slightly */
    box-shadow:
      inset 0 1px 0 rgba(255, 220, 180, 0.14),
      inset 0 2px 12px rgba(0, 0, 0, 0.7),
      0 0 20px -8px rgba(255, 90, 30, 0.35) !important;
  }

  .af-radio-panel.is-phone-sheet.is-open {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Titlebar radio CTA — easier thumb target */
  .af-radio-btn {
    min-height: var(--sk-touch-min);
    min-width: var(--sk-touch-min);
    padding: 0.4rem 0.55rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Genre tiles: 2-col on very narrow phones so labels breathe */
  @media (max-width: 360px) {
    .af-radio-panel.is-phone-sheet .af-radio-genre-bar,
    .af-radio-genre-bar {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  .af-radio-panel.is-phone-sheet .af-radio-search-block {
    gap: 0.5rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-mode-row {
    padding: 0.16rem !important;
    border-radius: 0.7rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-now {
    padding: 0.6rem 0.7rem !important;
    border-radius: 0.7rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-mute-onair {
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.45rem !important;
    font-size: 0.58rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-tool-btn,
  .af-radio-panel.is-phone-sheet .af-radio-save-btn {
    min-height: 2.5rem !important;
    min-width: 2.5rem;
  }
}

/* Notched phones — extra top breathing room when sheet open */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 900px) {
    html.af-radio-phone-open .af-radio-panel.is-phone-sheet .af-radio-cabinet {
      padding-top: max(0.65rem, calc(0.35rem + env(safe-area-inset-top, 0px) * 0.25)) !important;
    }
  }
}

/* ══════════════════════════════════════
   Station list / rows polish
   ══════════════════════════════════════ */
.af-radio-row {
  border-radius: 0.55rem;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.15s ease;
}

.af-radio-row:hover {
  background: rgba(255, 90, 30, 0.08);
}

.af-radio-row.is-air,
.af-radio-row.is-playing {
  border-color: rgba(255, 120, 40, 0.45);
  box-shadow: 0 0 16px -6px rgba(255, 90, 30, 0.45);
}

.af-radio-sort-btn {
  min-height: 2.25rem;
  touch-action: manipulation;
}

.af-radio-sort-btn.is-active {
  border-color: rgba(255, 140, 50, 0.7) !important;
  box-shadow: 0 0 12px -3px rgba(255, 90, 30, 0.5) !important;
}

/* Cabinet polish — lime crown accent under grill */
.af-radio-cabinet {
  border-radius: 1.05rem 1.2rem 1.15rem 0.9rem !important;
}

/* Wordmark glow kept via gradient + filter above — no solid fill override */

.af-radio-brand-mark {
  box-shadow:
    0 0 0 1.5px rgba(251, 191, 36, 0.55),
    0 0 0 3px rgba(255, 90, 20, 0.2),
    0 0 16px -2px rgba(255, 90, 20, 0.55) !important;
}

/* ══════════════════════════════════════
   Reduced motion — respect user preference
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .af-radio-btn-led.is-on,
  .af-radio-btn.is-on-air .af-radio-btn-glow,
  .af-radio-power.is-on .af-radio-power-ring,
  .af-radio-power.is-live,
  .af-radio-star.is-on,
  .af-radio-dial-wrap.is-on-air,
  .af-radio-btn.is-on-air .af-radio-word,
  .af-radio-genre--emergency,
  .af-radio-row.is-air .af-radio-genre {
    animation: none !important;
  }

  .af-radio-gchip:hover,
  .af-radio-star:hover,
  .af-radio-power:active,
  .af-radio-mode-btn:active {
    transform: none !important;
  }

  .af-radio-gchip,
  .af-radio-mode-btn,
  .af-radio-power,
  .af-radio-vault,
  .af-radio-star,
  .af-radio-row {
    transition: none !important;
  }
}

/* ══════════════════════════════════════
   FINAL LOCK — vault pins never block chrome
   (last rules win cascade over radio.css + media)
   ══════════════════════════════════════ */
.af-radio-root.is-vault .af-radio-dial-wrap {
  display: none !important;
}

.af-radio-list .af-radio-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.af-radio-list .af-radio-row-body {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.af-radio-list .af-radio-row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ★ is always the last flex child, reserved width */
.af-radio-list .af-radio-row > .af-radio-star {
  flex: 0 0 2.5rem !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
  margin: 0 0 0 0.1rem !important;
  position: relative !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}

/* Toolbar always above list content */
.af-radio-top {
  z-index: 60 !important;
  position: sticky !important;
  top: 0 !important;
}

.af-radio-top .af-radio-power,
.af-radio-top .af-radio-vault {
  z-index: 62 !important;
  pointer-events: auto !important;
  flex-shrink: 0 !important;
}

/* Genre chips in name ellipsis cleanly */
.af-radio-row-name .af-radio-genre {
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Vault racks stay tappable over scrolled rows */
.af-radio-root.is-vault .af-radio-vault-racks {
  z-index: 40 !important;
  position: sticky !important;
  background: rgba(14, 10, 8, 0.99) !important;
}

@media (max-width: 900px) {
  .af-radio-panel.is-phone-sheet .af-radio-list .af-radio-row > .af-radio-star,
  .af-radio-panel.is-phone-sheet .af-radio-star {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
    flex: 0 0 2.5rem !important;
  }

  .af-radio-panel.is-phone-sheet .af-radio-top {
    z-index: 60 !important;
    position: sticky !important;
    top: 0 !important;
    background: rgba(14, 10, 8, 1) !important;
  }

  .af-radio-root.is-vault .af-radio-vault-racks {
    top: 3.1rem !important;
  }
}
