/* Static King radio CSS — synced from App-Factory app.css (build 6) */

.af-radio-root {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none; /* never block Music / titlebar when closed */
  font-family: inherit;
}

.af-radio-root > .af-radio-panel.is-open {
  pointer-events: auto;
}

.af-radio-btn {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0.28rem 0.42rem 0.26rem;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0.45rem;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  isolation: isolate;
  overflow: visible;
  max-width: 4.8rem;
  z-index: 26;
}

.af-radio-word {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: "Arial Black", "Impact", "Haettenschweiler", "Franklin Gothic Heavy", system-ui, sans-serif;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fb923c;
  text-shadow:
    1px 0 0 #7c2d12,
    0 1px 0 #7c2d12,
    1px 1px 0 #9a3412,
    2px 2px 0 #431407,
    3px 3px 0 rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 90, 30, 0.35);
  transition: color 0.15s, text-shadow 0.15s, transform 0.1s;
}

.af-radio-btn-led {
  position: absolute;
  right: 0.28rem;
  top: 0.28rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #3f3f46;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.55);
  z-index: 3;
  transition: background 0.2s, box-shadow 0.2s;
}

.af-radio-btn-led.is-on {
  background: #ff6a2a;
  box-shadow:
    0 0 8px 2px rgba(255, 90, 30, 0.9),
    0 0 18px 3px rgba(255, 60, 10, 0.5);
}

.af-radio-btn-glow {
  position: absolute;
  inset: -4px;
  border-radius: 0.55rem;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 30, 0.4), transparent 70%);
  transition: opacity 0.3s ease;
  z-index: 0;
}

.af-radio-btn:hover {
  background: rgba(255, 90, 40, 0.12);
}

.af-radio-btn:hover .af-radio-word {
  color: #fdba74;
  text-shadow:
    1px 0 0 #9a3412,
    0 1px 0 #9a3412,
    2px 2px 0 #7c2d12,
    3px 3px 0 rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 120, 40, 0.55);
}

.af-radio-btn:active {
  transform: scale(0.96);
}

.af-radio-btn.is-open {
  background: rgba(255, 80, 20, 0.14);
}

.af-radio-btn.is-on-air .af-radio-word {
  color: #ffedd5;
  text-shadow:
    1px 0 0 #c2410c,
    0 1px 0 #c2410c,
    2px 2px 0 #9a3412,
    3px 3px 0 #431407,
    0 0 14px rgba(255, 100, 30, 0.95),
    0 0 28px rgba(255, 60, 10, 0.7);
  animation: af-radio-pulse 2.2s ease-in-out infinite;
}

.af-radio-btn.is-on-air .af-radio-btn-glow {
  opacity: 1;
}

@keyframes af-radio-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

.af-radio-panel {
  position: fixed;
  left: 50%;
  top: 4.5rem;
  width: min(22.5rem, calc(100vw - 1rem));
  max-height: min(78vh, 42rem);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    visibility 0.22s;
  pointer-events: none;
  visibility: hidden;
  z-index: 97;
  /* Never chain wheel/touch past the panel into the dashboard */
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.af-radio-panel.is-open {
  opacity: 1;
  /* JS sets left/top in px — don't keep -50% translate or drag breaks */
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.af-radio-panel.is-dragging {
  transition: none !important;
  cursor: grabbing;
  user-select: none;
  z-index: 140;
}

.af-radio-panel.is-user-placed {
  /* free position; ignore any CSS left:50% centering */
  transform: none;
}

body.af-radio-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

body.af-radio-dragging iframe,
body.af-radio-dragging * {
  cursor: grabbing !important;
}

.af-radio-cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 0.75rem;
  max-height: inherit;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 1rem 1.15rem 1.15rem 0.85rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 80, 20, 0.18), transparent 55%),
    linear-gradient(165deg, #1c1210 0%, #0c0a0c 48%, #08060a 100%);
  border: 1px solid rgba(255, 100, 40, 0.42);
  box-shadow:
    0 28px 60px -18px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 48px -16px rgba(255, 60, 15, 0.45),
    inset 0 1px 0 rgba(255, 200, 140, 0.08);
  max-height: inherit;
}

.af-radio-root.is-on-air .af-radio-cabinet {
  border-color: rgba(255, 110, 40, 0.75);
  box-shadow:
    0 28px 60px -18px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 140, 60, 0.2),
    0 0 56px -10px rgba(255, 70, 15, 0.75),
    inset 0 0 40px -12px rgba(255, 80, 20, 0.25);
}

.af-radio-grill {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 3px,
      rgba(255, 160, 80, 0.35) 3px,
      rgba(255, 160, 80, 0.35) 4px
    );
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.af-radio-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  margin: -0.15rem -0.15rem 0;
  padding: 0.2rem 0.15rem 0.25rem;
  border-radius: 0.65rem;
}

.af-radio-top:active,
.af-radio-panel.is-dragging .af-radio-top {
  cursor: grabbing;
}

.af-radio-drag-grip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 0.7rem;
  flex-shrink: 0;
  opacity: 0.55;
  pointer-events: none;
}

.af-radio-drag-grip i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.35), rgba(253, 186, 116, 0.95), rgba(251, 146, 60, 0.35));
  box-shadow: 0 0 6px rgba(251, 146, 60, 0.35);
}

.af-radio-top:hover .af-radio-drag-grip {
  opacity: 0.9;
}

.af-radio-top .af-radio-power,
.af-radio-top .af-radio-vault,
.af-radio-top .af-radio-close {
  cursor: pointer;
  touch-action: manipulation;
}

/* Android / app-only shell: always-on radio — hide PWR */
.sk-app-only .af-radio-power,
.sk-always-on .af-radio-power,
html.sk-app-only .af-radio-power,
html.sk-always-on .af-radio-power {
  display: none !important;
}

.af-radio-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  pointer-events: none; /* brand is part of drag surface */
}

.af-radio-brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  background: #050505;
  box-shadow: 0 0 14px -2px rgba(184, 255, 0, 0.55);
}

.af-radio-brand-name {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #b8ff00;
  text-shadow: 0 0 18px rgba(184, 255, 0, 0.4);
  text-transform: none;
  white-space: nowrap;
}

.af-radio-power {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  color: #a8a29e;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  padding: 0.32rem 0.7rem 0.32rem 0.45rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.af-radio-power:hover {
  color: #e7e5e4;
  border-color: rgba(255, 140, 60, 0.4);
  background: rgba(40, 20, 12, 0.75);
}

.af-radio-power:active {
  transform: scale(0.96);
}

.af-radio-power-ring {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: #3f3f46;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: background 0.15s ease, box-shadow 0.2s ease;
}

.af-radio-power-label {
  line-height: 1;
  min-width: 1.6rem;
  text-align: center;
}

.af-radio-power.is-on {
  color: #ffedd5;
  border-color: rgba(255, 110, 30, 0.75);
  background: linear-gradient(135deg, rgba(255, 70, 15, 0.35), rgba(120, 30, 8, 0.55));
  box-shadow:
    0 0 0 1px rgba(255, 120, 40, 0.25),
    0 0 16px -2px rgba(255, 80, 20, 0.65);
}

.af-radio-power.is-on .af-radio-power-ring {
  background: #ff6a2a;
  box-shadow:
    0 0 8px 2px rgba(255, 90, 30, 0.95),
    0 0 16px 3px rgba(255, 60, 10, 0.55);
}

.af-radio-power.is-live {
  animation: af-radio-pwr-pulse 1.8s ease-in-out infinite;
}

.af-radio-power.is-armed:not(.is-live) .af-radio-power-ring {
  background: #fbbf24;
  box-shadow: 0 0 8px 2px rgba(251, 191, 36, 0.75);
}

.af-radio-power.is-armed:not(.is-live) {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

@keyframes af-radio-pwr-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.af-radio-vault {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fde68a;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem 0.3rem 0.42rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, color 0.15s;
}

.af-radio-vault:hover {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(120, 60, 10, 0.35);
  color: #fff7ed;
}

.af-radio-vault.is-active {
  color: #1c1005;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #ea580c);
  border-color: rgba(255, 220, 140, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 180, 60, 0.25),
    0 0 18px -2px rgba(251, 146, 60, 0.65);
}

.af-radio-vault-ico {
  font-size: 0.72rem;
  line-height: 1;
}

.af-radio-vault-word {
  line-height: 1;
}

.af-radio-vault-count {
  min-width: 1rem;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
  color: #ffedd5;
}

.af-radio-vault.is-active .af-radio-vault-count {
  background: rgba(0, 0, 0, 0.28);
  color: #fff7ed;
}

.af-radio-vault-racks {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding: 0.15rem 0.05rem 0.25rem;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
}

.af-radio-vault-racks[hidden] {
  display: none !important;
}

.af-radio-rack-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(0, 0, 0, 0.42);
  color: #e7e5e4;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-rack-chip:hover {
  border-color: rgba(255, 140, 60, 0.4);
  color: #ffedd5;
  background: rgba(255, 90, 30, 0.1);
  transform: translateY(-1px);
}

.af-radio-rack-chip.is-active {
  border-color: rgba(255, 130, 50, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 140, 50, 0.22), transparent 55%),
    rgba(70, 28, 12, 0.85);
  color: #fff7ed;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.12),
    0 0 0 1px rgba(255, 120, 40, 0.1);
  text-shadow: none;
}

.af-radio-rack-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0.5rem 0.35rem 0.28rem;
  pointer-events: none;
}

.af-radio-rack-head .af-radio-genre {
  font-size: 0.58rem;
  padding: 0.18rem 0.5rem 0.18rem 0.42rem;
}

.af-radio-rack-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 140, 60, 0.55),
    rgba(255, 100, 40, 0.15),
    transparent
  );
}

.af-radio-root.is-vault .af-radio-dial-wrap.is-compact {
  opacity: 0.72;
  transform: scale(0.98);
  transform-origin: top center;
}

.af-radio-close {
  border: 0;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: #a8a29e;
  font-size: 1rem;
  line-height: 1;
  width: 1.65rem;
  height: 1.65rem;
  cursor: pointer;
  font-family: inherit;
}

.af-radio-close:hover {
  background: rgba(255, 80, 40, 0.35);
  color: #fff;
}

.af-radio-search-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.af-radio-mode-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.14rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 50%),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.af-radio-mode-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0.48rem;
  background: transparent;
  color: #a8a29e;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.38rem 0.2rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.1s ease,
    color 0.1s ease,
    box-shadow 0.1s ease,
    transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-mode-btn:active {
  transform: scale(0.97);
}

.af-radio-mode-btn:hover {
  color: #fdba74;
  background: rgba(255, 90, 30, 0.08);
}

.af-radio-mode-btn.is-active {
  color: #fffaf5;
  background:
    linear-gradient(180deg, rgba(255, 150, 70, 0.28) 0%, rgba(255, 90, 30, 0.18) 100%),
    rgba(50, 22, 10, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.af-radio-zip-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.af-radio-zip-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #a8a29e;
  min-width: 2.6rem;
}

.af-radio-root.is-genre-mode .af-radio-zip-label {
  letter-spacing: 0.06em;
  font-size: 0.55rem;
}

.af-radio-zip {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 120, 50, 0.28);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fef3c7;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.55rem;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.af-radio-zip.is-genre-input,
.af-radio-root.is-genre-mode .af-radio-zip {
  font-family: inherit;
  font-variant-numeric: normal;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  font-weight: 650;
  text-transform: none;
}

.af-radio-zip:focus {
  border-color: rgba(255, 130, 50, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 90, 30, 0.2);
}

.af-radio-genre-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: stretch;
  overflow: visible;
  overscroll-behavior: contain;
  padding: 0.2rem 0 0.15rem;
  max-width: 100%;
}

.af-radio-genre-bar[hidden] {
  display: none !important;
}

/* Pro genre / name tiles — not bubble pills */
.af-radio-gchip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    linear-gradient(165deg, rgba(28, 22, 18, 0.96), rgba(10, 9, 8, 0.98));
  color: #e7e5e4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.14s cubic-bezier(0.2, 0.9, 0.2, 1),
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hairline accent rail (idle) */
.af-radio-gchip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: rgba(255, 140, 60, 0.28);
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease, top 0.15s ease, bottom 0.15s ease;
}

.af-radio-gchip:hover {
  color: #fff7ed;
  border-color: rgba(255, 150, 80, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 180, 100, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, rgba(40, 28, 20, 0.98), rgba(14, 11, 10, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.08),
    0 4px 14px -8px rgba(255, 90, 30, 0.35);
  transform: translateY(-1px);
}

.af-radio-gchip:hover::before {
  background: rgba(255, 150, 70, 0.75);
  opacity: 1;
}

.af-radio-gchip:active {
  transform: scale(0.96);
  transition-duration: 0.06s;
}

.af-radio-gchip.is-active {
  color: #fffaf5;
  border-color: rgba(255, 130, 50, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 140, 60, 0.22) 0%, transparent 55%),
    linear-gradient(145deg, rgba(90, 35, 14, 0.95), rgba(28, 14, 8, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.14),
    0 0 0 1px rgba(255, 120, 40, 0.12),
    0 6px 18px -10px rgba(255, 80, 20, 0.55);
  text-shadow: none;
}

.af-radio-gchip.is-active::before {
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, #ffb347, #ff5a1f 55%, #ff3b1f);
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 90, 30, 0.65);
}

.af-radio-gchip.is-hot:not(.is-active) {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.af-radio-gchip.is-hot:not(.is-active)::before {
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  opacity: 1;
}

.af-radio-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.af-radio-sort-bar[hidden] {
  display: none !important;
}

.af-radio-sort-label {
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78716c;
  margin-right: 0.1rem;
}

.af-radio-sort-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 50%),
    rgba(0, 0, 0, 0.38);
  color: #a8a29e;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-sort-btn:hover {
  color: #ffedd5;
  border-color: rgba(255, 140, 60, 0.4);
  background: rgba(255, 90, 30, 0.1);
}

.af-radio-sort-btn.is-active {
  color: #fff7ed;
  border-color: rgba(255, 130, 50, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 140, 50, 0.2), transparent 60%),
    rgba(60, 24, 10, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 200, 140, 0.1);
}

.af-radio-row-fav {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.28rem;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.af-radio-row-fav.is-broken,
.af-radio-row-fav--empty {
  display: inline-block;
  background: linear-gradient(145deg, rgba(255, 120, 40, 0.25), rgba(0, 0, 0, 0.4));
}

.af-radio-row-fav.is-broken {
  opacity: 0.35;
}

.af-radio-br-pill {
  flex-shrink: 0;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #fdba74;
  background: rgba(255, 100, 30, 0.15);
  border: 1px solid rgba(255, 140, 60, 0.28);
  border-radius: 999px;
  padding: 0.12rem 0.32rem;
  font-variant-numeric: tabular-nums;
}

.af-radio-now-fav {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 8px rgba(255, 90, 30, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.af-radio-now-fav--empty {
  display: block;
  background:
    linear-gradient(145deg, rgba(255, 120, 40, 0.22), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 140, 60, 0.2);
}

.af-radio-tune-btn {
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #ff3b1f 0%, #ff5a1f 45%, #ff8a2a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px -8px rgba(255, 50, 10, 0.7);
}

.af-radio-tune-btn:hover {
  filter: brightness(1.08);
}

.af-radio-scan-btn {
  border: 1px solid rgba(255, 140, 60, 0.45);
  border-radius: 0.5rem;
  background: rgba(255, 90, 30, 0.12);
  color: #fdba74;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
}

.af-radio-scan-btn:hover {
  background: rgba(255, 90, 30, 0.28);
  color: #ffedd5;
}

.af-radio-now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.af-radio-now-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-shrink: 1;
}

.af-radio-now-head .af-radio-now-label {
  margin-bottom: 0;
}

.af-radio-mute-onair {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  height: 2.5rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 140, 60, 0.35) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.42) !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  padding: 0 0.4rem !important;
  opacity: 1 !important;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-mute-onair:hover {
  background: rgba(255, 100, 30, 0.28) !important;
  border-color: rgba(251, 146, 60, 0.65) !important;
  transform: scale(1.06);
}

.af-radio-mute-onair.is-muted {
  border-color: rgba(148, 163, 184, 0.45) !important;
  background: rgba(30, 41, 59, 0.55) !important;
  box-shadow: none;
  filter: none;
  opacity: 0.95 !important;
}

.af-radio-now.is-on-air .af-radio-mute-onair {
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 0 14px -2px rgba(255, 90, 20, 0.55);
}

.af-radio-save-btn {
  border: 1px solid rgba(255, 180, 80, 0.35);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 220, 140, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.38);
  color: #fde68a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.af-radio-save-btn:hover {
  background: rgba(255, 120, 40, 0.25);
  color: #fff7ed;
}

.af-radio-save-btn.is-saved {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  box-shadow: 0 0 12px -2px rgba(251, 191, 36, 0.45);
}

.af-radio-star {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #78716c;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 0.3rem;
}

.af-radio-star:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.af-radio-star.is-on {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}

.af-radio-place {
  font-size: 0.68rem;
  color: #a8a29e;
  line-height: 1.4;
  min-height: 1.1rem;
  position: relative;
  z-index: 1;
  padding: 0.15rem 0.1rem 0.05rem;
  letter-spacing: 0.01em;
}

.af-radio-dial-wrap {
  position: relative;
  z-index: 1;
  border-radius: 0.75rem;
  padding: 0.45rem 0.5rem 0.35rem;
  background:
    linear-gradient(180deg, #1a100c 0%, #0a0806 100%);
  border: 1px solid rgba(255, 140, 60, 0.25);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.af-radio-dial-wrap.is-on-air {
  border-color: rgba(255, 110, 30, 0.75);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.55),
    0 0 28px -4px rgba(255, 70, 15, 0.75),
    0 0 0 1px rgba(255, 120, 40, 0.35);
  animation: af-radio-dial-glow 2.4s ease-in-out infinite;
}

.af-radio-dial-wrap.is-staticy {
  border-color: rgba(180, 160, 140, 0.35);
}

@keyframes af-radio-dial-glow {
  0%, 100% { box-shadow: inset 0 2px 12px rgba(0,0,0,0.55), 0 0 24px -4px rgba(255,70,15,0.65), 0 0 0 1px rgba(255,120,40,0.3); }
  50% { box-shadow: inset 0 2px 12px rgba(0,0,0,0.55), 0 0 40px -2px rgba(255,90,20,0.9), 0 0 0 1px rgba(255,160,60,0.5); }
}

.af-radio-glass {
  position: relative;
  height: 3.5rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #060504;
  border: 1px solid rgba(255, 200, 120, 0.12);
}

.af-radio-noise-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

.af-radio-static-fx {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 220, 180, 0.04) 1px,
      rgba(255, 220, 180, 0.04) 2px
    );
  mix-blend-mode: screen;
  transition: opacity 0.12s linear;
}

.af-radio-scale {
  position: absolute;
  inset: 0.35rem 0.4rem 0.85rem;
  z-index: 2;
  pointer-events: none;
}

.af-radio-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  text-align: center;
}

.af-radio-tick i {
  display: block;
  width: 1px;
  height: 0.45rem;
  margin: 0 auto;
  background: rgba(253, 230, 138, 0.45);
}

.af-radio-tick.is-major i {
  height: 0.7rem;
  width: 1.5px;
  background: rgba(253, 230, 138, 0.85);
}

.af-radio-tick b {
  display: block;
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(253, 230, 138, 0.7);
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}

.af-radio-station-dot {
  position: absolute;
  top: 0.15rem;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 999px;
  background: rgba(255, 140, 60, 0.55);
  box-shadow: 0 0 6px rgba(255, 100, 30, 0.5);
}

.af-radio-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  z-index: 3;
  background: linear-gradient(180deg, #ff8a2a, #ff3b1f 40%, #ff8a2a);
  box-shadow:
    0 0 10px 2px rgba(255, 90, 30, 0.75),
    0 0 2px 1px rgba(255, 200, 120, 0.5);
  pointer-events: none;
  transition: left 0.05s linear;
}

.af-radio-dial-wrap.is-on-air .af-radio-needle {
  box-shadow:
    0 0 16px 3px rgba(255, 90, 30, 0.95),
    0 0 4px 1px rgba(255, 220, 160, 0.8);
}

.af-radio-recent-zips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  position: relative;
  z-index: 1;
}

.af-radio-recent-zips[hidden] {
  display: none !important;
}

.af-radio-zip-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%),
    rgba(0, 0, 0, 0.38);
  color: #fdba74;
  font-size: 0.62rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.af-radio-zip-chip:hover {
  background: rgba(255, 90, 30, 0.16);
  border-color: rgba(255, 140, 60, 0.4);
  color: #ffedd5;
}

.af-radio-dial-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.3rem 0 0.1rem;
}

.af-radio-ch {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fdba74;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
}

.af-radio-ch:hover {
  border-color: rgba(255, 120, 40, 0.5);
  color: #ffedd5;
  background: rgba(255, 80, 20, 0.18);
}

.af-radio-dial {
  flex: 1;
  width: auto;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 1.1rem;
  background: transparent;
  cursor: ew-resize;
}

.af-radio-now-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.af-radio-tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.38);
  color: #e7e5e4;
  font-size: 0.58rem;
  line-height: 1;
  min-width: 2.5rem;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0 0.4rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 750;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-tool-btn:hover {
  border-color: rgba(255, 140, 60, 0.45);
  color: #ffedd5;
}

.af-radio-tool-btn.is-armed {
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  background: rgba(14, 116, 144, 0.35);
  box-shadow: 0 0 12px -2px rgba(56, 189, 248, 0.45);
  font-size: 0.52rem;
  font-weight: 800;
  width: auto;
  min-width: 1.65rem;
  padding: 0 0.35rem;
  letter-spacing: 0.02em;
}

.af-radio-mute {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(0, 0, 0, 0.38);
  color: #e7e5e4;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.4rem;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.af-radio-mute:hover {
  border-color: rgba(255, 140, 60, 0.4);
  color: #ffedd5;
}

.af-radio-mute.is-muted {
  filter: none;
  opacity: 0.9;
  border-color: rgba(148, 163, 184, 0.35);
  color: #a8a29e;
}

.af-radio-genre-search-row {
  position: relative;
  z-index: 1;
}

.af-radio-genre-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 140, 60, 0.28);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #f5f2f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  outline: none;
  font-family: inherit;
}

.af-radio-genre-search::placeholder {
  color: #78716c;
  font-weight: 500;
}

.af-radio-genre-search:focus {
  border-color: rgba(255, 130, 50, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 90, 30, 0.18);
}

.af-radio-onair-genre {
  color: #fdba74;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.af-radio-now-name .af-radio-genre {
  margin-right: 0.4rem;
  vertical-align: middle;
  font-size: 0.58rem;
  padding: 0.18rem 0.48rem;
  transform: translateY(-1px);
}

.af-radio-now-title-text {
  vertical-align: middle;
}

.af-radio-zip-mark {
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #78716c;
  vertical-align: middle;
  margin-left: 0.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.af-radio-row-meta .af-radio-zip-mark {
  font-size: 0.55rem;
  opacity: 0.9;
}

.af-radio-now-name .af-radio-zip-mark {
  font-size: 0.62rem;
  color: #a8a29e;
}

.af-radio-zip-badge {
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  color: #a8a29e;
  font-size: 0.55rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.35rem;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.2;
}

.af-radio-zip-badge.is-vault {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(120, 70, 10, 0.55), rgba(40, 20, 5, 0.7));
  color: #fde68a;
  font-size: 0.6rem;
  font-weight: 850;
  padding: 0.22rem 0.42rem;
  box-shadow: 0 0 10px -4px rgba(251, 191, 36, 0.45);
}

.af-radio-zip-badge.is-vault:hover {
  border-color: rgba(253, 224, 71, 0.75);
  color: #fffbeb;
  background: linear-gradient(135deg, rgba(180, 100, 15, 0.65), rgba(80, 40, 8, 0.75));
}

.af-radio-zip-badge.is-missing {
  border-style: dashed;
  border-color: rgba(120, 113, 108, 0.45);
  color: #78716c;
  cursor: default;
  background: transparent;
}

.af-radio-row.is-vault-row {
  gap: 0.35rem;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.af-radio-row.is-vault-row .af-radio-row-body {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

/* Chips under name only — never share flex row with pin ★ */
.af-radio-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.af-radio-row > .af-radio-star {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin-left: 0.1rem;
}

.af-radio-recents {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.af-radio-recents[hidden] {
  display: none !important;
}

.af-radio-recents-label {
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78716c;
}

.af-radio-recents-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  padding-bottom: 0.1rem;
}

.af-radio-recent-chip {
  flex: 0 0 auto;
  max-width: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.32);
  color: #e7e5e4;
  font-size: 0.62rem;
  font-weight: 650;
  padding: 0.28rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.af-radio-recent-chip:hover {
  border-color: rgba(255, 140, 60, 0.4);
  background: rgba(255, 80, 20, 0.12);
}

.af-radio-dial::-webkit-slider-runnable-track {
  height: 0.45rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 80, 20, 0.25),
      rgba(255, 140, 40, 0.45) 50%,
      rgba(255, 80, 20, 0.25));
  border: 1px solid rgba(255, 160, 80, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.af-radio-dial::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: -0.38rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #fff7ed, #ff8a2a 45%, #9a3412);
  border: 1px solid rgba(255, 220, 180, 0.5);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(255, 90, 30, 0.55);
  cursor: grab;
}

.af-radio-dial::-moz-range-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 120, 40, 0.35);
  border: 1px solid rgba(255, 160, 80, 0.25);
}

.af-radio-dial::-moz-range-thumb {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #ff6a2a;
  border: 1px solid rgba(255, 220, 180, 0.5);
  cursor: grab;
}

.af-radio-freq-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.af-radio-mhz {
  font-size: 1.35rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fdba74;
  text-shadow: 0 0 16px rgba(255, 100, 30, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.af-radio-dial-wrap.is-on-air .af-radio-mhz {
  color: #ffedd5;
  text-shadow:
    0 0 12px rgba(255, 120, 40, 0.9),
    0 0 28px rgba(255, 70, 15, 0.7);
}

.af-radio-mhz-unit {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: #78716c;
}

.af-radio-now {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.af-radio-now.is-on-air {
  border-color: rgba(255, 110, 40, 0.55);
  background: rgba(255, 60, 15, 0.1);
  box-shadow: 0 0 24px -8px rgba(255, 80, 20, 0.55);
}

.af-radio-now-label {
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  color: #78716c;
  margin-bottom: 0.15rem;
}

.af-radio-now.is-on-air .af-radio-now-label {
  color: #fb923c;
  text-shadow: 0 0 10px rgba(255, 100, 30, 0.6);
}

.af-radio-now-name {
  font-size: 0.82rem;
  font-weight: 750;
  color: #f5f2f0;
  overflow: hidden;
  min-width: 0;
}

.af-radio-now-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
}

.af-radio-now-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.af-radio-now-mainline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.4rem;
  min-width: 0;
  line-height: 1.25;
}

.af-radio-now-title-text {
  min-width: 0;
  font-weight: 750;
  color: #fafaf9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.af-radio-now-song {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fdba74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding-top: 0.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.05rem;
}

.af-radio-now-song.is-muted {
  color: #78716c;
  font-weight: 550;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.af-radio-now-meta {
  font-size: 0.65rem;
  color: #a8a29e;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-radio-now-meta.is-err {
  color: #fca5a5;
}

.af-radio-vol-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.af-radio-vol-ico {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Twin on-air volume (same state as main bar) */
.af-radio-vol-onair-wrap {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 4.5rem;
  max-width: 9rem;
  margin-left: 0.25rem;
}

.af-radio-vol-onair {
  width: 100%;
  min-width: 4rem;
}

.af-radio-vol-boost-tag {
  display: none;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  color: #fdba74;
  opacity: 0.9;
  flex-shrink: 0;
}

.af-radio-vol-row.is-boost .af-radio-vol-boost-tag,
.af-radio-vol-row.is-hot .af-radio-vol-boost-tag {
  display: inline;
}

.af-radio-vol-row.is-hot .af-radio-vol-boost-tag {
  color: #fb923c;
  text-shadow: 0 0 8px rgba(255, 120, 40, 0.55);
}

.af-radio-vol {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 0.42rem;
  border-radius: 999px;
  /* Quiet -> loud -> boost zone (amber/orange) */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(74, 222, 128, 0.35) 42%,
    rgba(250, 204, 21, 0.45) 68%,
    rgba(255, 106, 42, 0.72) 100%
  );
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.af-radio-vol.is-boost {
  box-shadow:
    inset 0 0 0 1px rgba(255, 160, 80, 0.22),
    0 0 10px rgba(255, 106, 42, 0.18);
}

.af-radio-vol.is-hot {
  box-shadow:
    inset 0 0 0 1px rgba(255, 140, 60, 0.35),
    0 0 14px rgba(255, 90, 30, 0.32);
}

.af-radio-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb07a 0%, #ff6a2a 55%, #e8481a 100%);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 90, 30, 0.55);
  border: 1px solid rgba(255, 220, 180, 0.35);
}

.af-radio-vol.is-hot::-webkit-slider-thumb {
  box-shadow:
    0 0 0 2px rgba(255, 140, 60, 0.25),
    0 0 14px rgba(255, 90, 30, 0.7);
}

.af-radio-vol::-moz-range-thumb {
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb07a 0%, #ff6a2a 55%, #e8481a 100%);
  cursor: pointer;
  border: 1px solid rgba(255, 220, 180, 0.35);
  box-shadow: 0 0 10px rgba(255, 90, 30, 0.55);
}

.af-radio-vol::-moz-range-track {
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(74, 222, 128, 0.35) 42%,
    rgba(250, 204, 21, 0.45) 68%,
    rgba(255, 106, 42, 0.72) 100%
  );
}

.af-radio-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  /* Taller so top-50 genre lists are easy to scroll through */
  max-height: min(18rem, 38vh);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex: 1 1 auto;
  min-height: 5rem;
  -webkit-overflow-scrolling: touch;
}

.af-radio-root.is-genre-mode .af-radio-list {
  max-height: min(20rem, 42vh);
}

.af-radio-list-filter-row {
  position: relative;
  z-index: 1;
}

.af-radio-empty {
  padding: 0.85rem 0.65rem;
  text-align: center;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.45;
}

.af-radio-empty--loading {
  color: #fdba74;
  font-weight: 650;
  letter-spacing: 0.02em;
  animation: sk-find-pulse 1.1s ease-in-out infinite;
}

@keyframes sk-find-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.af-radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.5rem;
  border-radius: 0.48rem;
  cursor: pointer;
  transition:
    background 0.1s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border: 1px solid transparent;
}

.af-radio-row:hover {
  background: rgba(255, 90, 30, 0.12);
  border-color: rgba(255, 120, 40, 0.12);
}

.af-radio-row:active {
  transform: scale(0.992);
  background: rgba(255, 90, 30, 0.18);
}

.af-radio-row.is-active {
  background: rgba(255, 90, 30, 0.16);
  border-color: rgba(255, 130, 50, 0.2);
}

.af-radio-row.is-air {
  background: rgba(255, 70, 15, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 120, 40, 0.4),
    0 0 16px -8px rgba(255, 90, 30, 0.45);
  border-color: rgba(255, 140, 60, 0.28);
}

.af-radio-row.is-emergency {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.28), rgba(255, 80, 20, 0.12));
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.af-radio-row.is-emergency .af-radio-row-freq {
  color: #fca5a5;
}

.af-radio-row-em {
  flex-shrink: 0;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: #fef2f2;
  background: rgba(185, 28, 28, 0.75);
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
}

/* Pre-roll ad stream — always sorted to bottom of every shelf */
.af-radio-row-ad {
  flex-shrink: 0;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #fef3c7;
  background: rgba(120, 80, 10, 0.75);
  padding: 0.12rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.af-radio-genre {
  --g-glow: rgba(255, 140, 60, 0.45);
  --g-edge: rgba(255, 200, 140, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.16rem 0.45rem 0.16rem 0.38rem;
  vertical-align: middle;
  margin-right: 0.28rem;
  line-height: 1.15;
  color: #fff8f0;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--g-edge);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(135deg, #ff6a2a 0%, #ff3b1f 55%, #c2410c 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 12px -1px var(--g-glow),
    0 3px 8px -3px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  transition:
    transform 0.16s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.af-radio-genre::before {
  content: "";
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: currentColor;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 6px 1px var(--g-glow);
  opacity: 0.95;
}

.af-radio-genre::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 38%,
    transparent 52%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.af-radio-row:hover .af-radio-genre,
.af-radio-row.is-active .af-radio-genre,
.af-radio-row.is-air .af-radio-genre {
  filter: brightness(1.08) saturate(1.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 18px 0 var(--g-glow),
    0 4px 10px -2px rgba(0, 0, 0, 0.5);
}

.af-radio-row.is-air .af-radio-genre {
  animation: af-radio-genre-pulse 1.8s ease-in-out infinite;
}

@keyframes af-radio-genre-pulse {
  0%,
  100% {
    filter: brightness(1.05) saturate(1.1);
  }
  50% {
    filter: brightness(1.18) saturate(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-radio-row.is-air .af-radio-genre,
  .af-radio-genre--emergency {
    animation: none;
  }
}

.af-radio-genre--emergency {
  --g-glow: rgba(255, 50, 40, 0.75);
  --g-edge: rgba(255, 140, 120, 0.55);
  color: #fff5f5;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
    linear-gradient(135deg, #ff2d2d 0%, #dc2626 45%, #7f1d1d 100%);
  animation: af-radio-genre-alert 1.1s ease-in-out infinite;
}

@keyframes af-radio-genre-alert {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.3) inset,
      0 1px 0 rgba(255, 255, 255, 0.2) inset,
      0 0 10px -1px rgba(255, 40, 30, 0.55),
      0 3px 8px -3px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.3) inset,
      0 1px 0 rgba(255, 255, 255, 0.25) inset,
      0 0 22px 2px rgba(255, 50, 30, 0.85),
      0 3px 8px -3px rgba(0, 0, 0, 0.55);
  }
}

.af-radio-genre--weather {
  --g-glow: rgba(56, 189, 248, 0.7);
  --g-edge: rgba(125, 211, 252, 0.55);
  color: #ecfeff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%);
}

.af-radio-genre--news {
  --g-glow: rgba(59, 130, 246, 0.65);
  --g-edge: rgba(147, 197, 253, 0.5);
  color: #eff6ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, transparent 42%),
    linear-gradient(135deg, #60a5fa 0%, #2563eb 52%, #1e3a8a 100%);
}

.af-radio-genre--talk {
  --g-glow: rgba(167, 139, 250, 0.7);
  --g-edge: rgba(196, 181, 253, 0.55);
  color: #f5f3ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, transparent 42%),
    linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #4c1d95 100%);
}

.af-radio-genre--sports {
  --g-glow: rgba(74, 222, 128, 0.65);
  --g-edge: rgba(134, 239, 172, 0.5);
  color: #f0fdf4;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(135deg, #4ade80 0%, #16a34a 50%, #14532d 100%);
}

.af-radio-genre--traffic {
  --g-glow: rgba(251, 191, 36, 0.7);
  --g-edge: rgba(253, 224, 71, 0.55);
  color: #1c1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%),
    linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #b45309 100%);
}

.af-radio-genre--public {
  --g-glow: rgba(45, 212, 191, 0.65);
  --g-edge: rgba(94, 234, 212, 0.5);
  color: #f0fdfa;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, transparent 42%),
    linear-gradient(135deg, #2dd4bf 0%, #0d9488 52%, #115e59 100%);
}

.af-radio-genre--college {
  --g-glow: rgba(129, 140, 248, 0.7);
  --g-edge: rgba(165, 180, 252, 0.55);
  color: #eef2ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, transparent 42%),
    linear-gradient(135deg, #818cf8 0%, #4f46e5 50%, #312e81 100%);
}

.af-radio-genre--religious {
  --g-glow: rgba(250, 204, 21, 0.55);
  --g-edge: rgba(253, 224, 71, 0.45);
  color: #fffbeb;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0%, transparent 42%),
    linear-gradient(135deg, #eab308 0%, #a16207 52%, #713f12 100%);
}

.af-radio-genre--classical {
  --g-glow: rgba(192, 132, 252, 0.7);
  --g-edge: rgba(216, 180, 254, 0.55);
  color: #faf5ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #c084fc 0%, #7c3aed 48%, #4c1d95 100%);
}

.af-radio-genre--jazz {
  /* Molten amber — on-theme with the radio cabinet */
  --g-glow: rgba(255, 120, 40, 0.75);
  --g-edge: rgba(255, 190, 120, 0.55);
  color: #fff7ed;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, transparent 42%),
    linear-gradient(135deg, #ff8a2a 0%, #ea580c 48%, #9a3412 100%);
}

.af-radio-genre--country {
  --g-glow: rgba(251, 191, 36, 0.7);
  --g-edge: rgba(253, 230, 138, 0.55);
  color: #1c1000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, transparent 42%),
    linear-gradient(135deg, #fde68a 0%, #f59e0b 48%, #b45309 100%);
}

.af-radio-genre--classicrock {
  color: #fdba74;
  background: rgba(234, 88, 12, 0.18);
  border-color: rgba(251, 146, 60, 0.4);
}

.af-radio-genre--rock {
  --g-glow: rgba(244, 63, 94, 0.75);
  --g-edge: rgba(251, 113, 133, 0.55);
  color: #fff1f2;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    linear-gradient(135deg, #fb7185 0%, #e11d48 48%, #881337 100%);
}

.af-radio-genre--pop {
  --g-glow: rgba(236, 72, 153, 0.75);
  --g-edge: rgba(249, 168, 212, 0.55);
  color: #fdf2f8;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #f472b6 0%, #db2777 50%, #9d174d 100%);
}

.af-radio-genre--hiphop {
  --g-glow: rgba(250, 250, 250, 0.35);
  --g-edge: rgba(255, 255, 255, 0.28);
  color: #fafafa;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
    linear-gradient(135deg, #525252 0%, #171717 55%, #000 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 14px -1px rgba(255, 90, 30, 0.35),
    0 3px 8px -3px rgba(0, 0, 0, 0.7);
}

.af-radio-genre--electronic {
  --g-glow: rgba(34, 211, 238, 0.75);
  --g-edge: rgba(103, 232, 249, 0.55);
  color: #ecfeff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #22d3ee 0%, #06b6d4 40%, #a855f7 100%);
}

.af-radio-genre--oldies {
  --g-glow: rgba(251, 146, 60, 0.7);
  --g-edge: rgba(253, 186, 116, 0.55);
  color: #1c0a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.4) 0%, transparent 42%),
    linear-gradient(135deg, #fdba74 0%, #f97316 50%, #c2410c 100%);
}

.af-radio-genre--spanish {
  --g-glow: rgba(249, 115, 22, 0.75);
  --g-edge: rgba(253, 186, 116, 0.55);
  color: #fff7ed;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, transparent 42%),
    linear-gradient(135deg, #fb923c 0%, #ea580c 45%, #9a3412 100%);
}

.af-radio-genre--kids {
  --g-glow: rgba(232, 121, 249, 0.75);
  --g-edge: rgba(240, 171, 252, 0.55);
  color: #fdf4ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #e879f9 0%, #d946ef 45%, #a21caf 100%);
}

.af-radio-genre--comedy {
  --g-glow: rgba(250, 204, 21, 0.75);
  --g-edge: rgba(253, 224, 71, 0.6);
  color: #1c1400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.5) 0%, transparent 42%),
    linear-gradient(135deg, #fde047 0%, #facc15 50%, #ca8a04 100%);
}

.af-radio-genre--folk {
  --g-glow: rgba(163, 230, 53, 0.65);
  --g-edge: rgba(190, 242, 100, 0.5);
  color: #0a1a00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #bef264 0%, #65a30d 52%, #3f6212 100%);
}

.af-radio-genre--world {
  --g-glow: rgba(6, 182, 212, 0.7);
  --g-edge: rgba(103, 232, 249, 0.55);
  color: #ecfeff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, transparent 42%),
    linear-gradient(135deg, #22d3ee 0%, #0891b2 48%, #155e75 100%);
}

.af-radio-genre--easy {
  --g-glow: rgba(165, 180, 252, 0.65);
  --g-edge: rgba(199, 210, 254, 0.5);
  color: #eef2ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #3730a3 100%);
}

.af-radio-genre--local {
  --g-glow: rgba(255, 140, 60, 0.55);
  --g-edge: rgba(255, 200, 150, 0.4);
  color: #fff7ed;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0%, transparent 42%),
    linear-gradient(135deg, #a8a29e 0%, #57534e 50%, #292524 100%);
}

.af-radio-genre--variety {
  --g-glow: rgba(255, 120, 40, 0.5);
  --g-edge: rgba(255, 180, 120, 0.4);
  color: #fffaf5;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, transparent 42%),
    linear-gradient(135deg, #d6d3d1 0%, #78716c 45%, #44403c 100%);
}

html[data-theme="light"] .af-radio-genre {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 0 14px -2px var(--g-glow),
    0 2px 6px -2px rgba(0, 0, 0, 0.18);
}

.af-radio-row.is-dead {
  opacity: 0.45;
}

.af-radio-station-dot.is-dead {
  background: rgba(120, 113, 108, 0.5);
  box-shadow: none;
}

.af-radio-station-dot.is-emergency {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: #ef4444;
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.85);
}

.af-radio-row-freq {
  flex-shrink: 0;
  width: 2.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fdba74;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.af-radio-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.af-radio-row-name {
  font-size: 0.72rem;
  font-weight: 650;
  color: #e7e5e4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-radio-row-song {
  font-size: 0.6rem;
  font-weight: 600;
  color: #fdba74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.af-radio-row-meta {
  font-size: 0.58rem;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-radio-row-live {
  flex-shrink: 0;
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: #ffedd5;
  background: rgba(255, 70, 15, 0.55);
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 80, 20, 0.5);
}

.af-radio-hint {
  margin: 0.15rem 0 0;
  font-size: 0.58rem;
  color: #57534e;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .af-radio-word {
    font-size: 0.88rem;
  }
}

@media (max-width: 900px) {
  html.af-radio-phone-open {
    overflow: hidden;
    touch-action: none;
  }
  html.af-radio-phone-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .af-radio-panel.is-phone-sheet,
  .af-radio-panel.is-open.is-phone-sheet {
    max-width: none !important;
    /* height driven by JS (visualViewport); keep a sane floor */
    min-height: 18rem;
    z-index: 130 !important;
    /* left/top/width set by JS (top-center + drag) — no forced full-width pin */
  }
  .af-radio-panel.is-phone-sheet:not(.is-user-placed):not(.is-dragging) {
    /* default phone open still uses JS left/top; width is panelWidth() */
  }
  .af-radio-panel.is-phone-sheet .af-radio-cabinet {
    display: flex !important;
    flex-direction: column !important;
    max-height: inherit !important;
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.65rem 0.7rem 0.85rem !important;
    gap: 0.4rem !important;
  }
  /* Mode segmented control + genre tile grid (phone thumbs) */
  .af-radio-panel.is-phone-sheet .af-radio-mode-btn {
    min-height: 2.35rem;
    padding: 0.45rem 0.35rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-gchip {
    min-height: 2.55rem;
    padding: 0.5rem 0.4rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 0.6rem !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-genre-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.42rem !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0.25rem 0 0.2rem !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-sort-btn {
    min-height: 2rem;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.62rem !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-tool-btn {
    min-width: 2.55rem;
    min-height: 2.5rem;
    height: 2.5rem;
    font-size: 0.58rem !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-mute:not(.af-radio-mute-onair) {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  .af-radio-panel.is-phone-sheet .af-radio-now-card {
    gap: 0.6rem;
  }
  .af-radio-panel.is-phone-sheet .af-radio-now-fav {
    width: 2.15rem;
    height: 2.15rem;
  }
  .af-radio-panel.is-phone-sheet .af-radio-power {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem 0.4rem 0.55rem !important;
  }
  /* Shrink decorative dial so list has room */
  .af-radio-panel.is-phone-sheet .af-radio-dial-wrap {
    flex-shrink: 0;
    transform: scale(0.92);
    transform-origin: top center;
    margin-bottom: -0.15rem;
  }
  .af-radio-panel.is-phone-sheet .af-radio-glass {
    min-height: 2.4rem !important;
    height: 2.6rem !important;
  }
  /* Station list grows and scrolls inside the sheet */
  .af-radio-panel.is-phone-sheet .af-radio-list {
    flex: 1 1 auto !important;
    min-height: 10rem !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .af-radio-panel.is-phone-sheet.is-open {
    /* ensure list rows are tappable above keyboard chrome */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .af-radio-panel.is-phone-sheet .af-radio-row {
    min-height: 2.85rem;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
  .af-radio-panel.is-phone-sheet .af-radio-row-name {
    font-size: 0.82rem !important;
  }
}

html[data-theme="light"] .af-radio-cabinet {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 55%),
    linear-gradient(165deg, #fff7ed 0%, #fff 50%, #f8fafc 100%);
  border-color: rgba(234, 88, 12, 0.35);
}

html[data-theme="light"] .af-radio-brand-name {
  color: #4d7c0f;
  text-shadow: none;
}

html[data-theme="light"] .af-radio-word {
  color: #c2410c;
  text-shadow:
    1px 0 0 #fed7aa,
    0 1px 0 #fed7aa,
    2px 2px 0 #fdba74,
    3px 3px 0 rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .af-radio-zip {
  background: #fff;
  color: #9a3412;
}

html[data-theme="light"] .af-radio-now-name,
html[data-theme="light"] .af-radio-row-name {
  color: #1c1917;
}

html[data-theme="light"] .af-radio-row-meta {
  color: #57534e;
}

html[data-theme="light"] .af-radio-row-freq {
  color: #c2410c;
}

html[data-theme="light"] .af-radio-hint {
  color: #57534e;
}

html[data-theme="light"] .af-radio-row-live {
  color: #fff7ed;
}

@media (max-width: 1100px) {
  .af-terminal-gate-word { font-size: 0.62rem; }
  .af-terminal-gate-sub { display: none !important; }
  .af-terminal-gate-btn { max-width: 4.4rem; padding: 0.16rem 0.28rem 0.16rem 0.2rem; min-height: 1.95rem; }
  .af-mail-btn { max-width: 4.6rem; padding: 0.28rem 0.38rem 0.26rem 0.3rem; }
  .af-radio-btn { max-width: 4.5rem; padding: 0.28rem 0.4rem 0.26rem; }
  .af-radio-word { font-size: 0.88rem; }
  .af-titlebar-center { gap: 0.2rem; max-width: min(78vw, 42rem); }
}

@media (max-width: 1100px) {
  .af-mail-word { font-size: 0.82rem; }
  .af-radio-word { font-size: 0.92rem; }
  .af-titlebar-center { gap: 0.28rem; max-width: min(48vw, 28rem); }
}

@media (max-width: 900px) {
  .af-titlebar {
    /* Safe area for notched phones */
    padding-top: env(safe-area-inset-top, 0px);
  }
  .af-titlebar-inner {
    /* Drop the 3-col grid that collapses controls into each other */
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem 0.5rem !important;
    padding: 0.5rem 0.65rem 0.55rem !important;
    min-height: 0 !important;
    max-width: 100% !important;
  }

  /* Row 1: brand (left) + account tools (right) */
  .af-titlebar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 7.5rem) !important;
    gap: 0.5rem !important;
  }
  .af-titlebar-left .af-logo-header {
    width: 2.35rem !important;
    height: 2.35rem !important;
  }
  .af-titlebar-left h1 {
    font-size: 1rem !important;
    line-height: 1.15 !important;
  }
  .af-titlebar-left .af-chip {
    font-size: 0.58rem !important;
    padding: 0.1rem 0.35rem !important;
  }
  .af-titlebar-left .af-status-pill {
    font-size: 0.62rem !important;
    padding: 0.12rem 0.4rem !important;
  }
  .af-titlebar-left .text-\[11px\] {
    font-size: 0.62rem !important;
  }

  .af-titlebar-right {
    order: 2 !important;
    flex: 0 1 auto !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.28rem !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  /* Compact music / refresh / theme / profile / logout on phone */
  .af-titlebar-right .af-music-btn {
    max-width: 4.2rem !important;
    padding: 0.2rem 0.32rem !important;
  }
  .af-titlebar-right .af-music-btn-label {
    font-size: 0.62rem !important;
  }
  .af-titlebar-right .af-music-dock {
    max-width: min(100vw - 2rem, 16rem) !important;
  }
  .af-titlebar-right .af-icon-3d-btn {
    width: 1.85rem !important;
    height: 1.85rem !important;
    min-width: 1.85rem !important;
  }
  .af-titlebar-right .af-refresh-orb {
    width: 1.7rem !important;
    height: 1.7rem !important;
  }
  .af-titlebar-right .af-refresh-glyph {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }
  .af-titlebar-right .af-user-btn {
    padding: 0.15rem !important;
  }
  .af-titlebar-right .af-btn-ghost,
  .af-titlebar-right a.af-btn {
    padding: 0.28rem 0.45rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap !important;
  }
  .af-titlebar-right #af-open-live {
    font-size: 0.68rem !important;
    padding: 0.28rem 0.5rem !important;
  }

  /* Row 2: phone control dock — professional, not a jumbled mix */
  .af-titlebar-center {
    order: 3 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: stretch !important;
    justify-self: stretch !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0.15rem 0 0.05rem !important;
    scrollbar-width: none;
  }
  .af-titlebar-center > * {
    flex-shrink: 0 !important;
  }

  /*
   * Phone rail layout (DOM order unchanged on desktop):
   *  1) Firebase Ready — full-width primary CTA
   *  2) Tool row under it — only visible slots (empty ones collapse)
   */
  .af-titlebar-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 0.4rem 0.32rem !important;
    width: 100% !important;
    padding: 0.42rem 0.4rem 0.48rem !important;
    border-radius: 1rem !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
      rgba(6, 8, 14, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 28px -18px rgba(0, 0, 0, 0.75) !important;
  }
  html[data-theme="light"] .af-titlebar-rail {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88)) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 8px 20px -16px rgba(15, 23, 42, 0.2) !important;
  }

  /* Primary: Firebase Ready alone on top — easy thumb target */
  #af-titlebar-item-firebase {
    order: -20 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }
  #af-titlebar-item-firebase .af-firebase-ready-wrap {
    width: 100% !important;
    margin: 0 !important;
    justify-content: stretch !important;
  }
  .af-titlebar-rail .af-firebase-ready-btn,
  #af-titlebar-item-firebase .af-firebase-ready-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 3.05rem !important;
    padding: 0.55rem 0.85rem 0.7rem !important;
    border-radius: 0.9rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    transform: none !important;
    perspective: none !important;
    animation: none !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-word {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 0.35rem !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
    transform: none !important;
    padding: 0 !important;
    background: none !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-line {
    font-size: 0.82rem !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-line--ready {
    font-size: 0.88rem !important;
    letter-spacing: 0.14em !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-fire {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 2.45rem !important;
    height: 2.45rem !important;
    border-radius: 0.55rem !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    mix-blend-mode: normal !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-fire-vid,
  #af-titlebar-item-firebase .af-fr-btn-fire-img {
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 130% !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center 48% !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-base {
    left: 12% !important;
    right: 12% !important;
    bottom: 0.2rem !important;
    height: 0.28rem !important;
  }
  #af-titlebar-item-firebase .af-fr-btn-count {
    top: 0.28rem !important;
    right: 0.35rem !important;
    min-width: 1.2rem !important;
    height: 1.2rem !important;
    line-height: 1.2rem !important;
    font-size: 0.62rem !important;
  }
  /* Soften heavy 3D chrome so it reads as a clean phone CTA */
  #af-titlebar-item-firebase .af-firebase-ready-btn::before {
    left: -6% !important;
    right: -6% !important;
    bottom: -35% !important;
    height: 80% !important;
    opacity: 0.55 !important;
    filter: blur(10px) !important;
  }
  #af-titlebar-item-firebase .af-firebase-ready-btn::after {
    bottom: -0.12rem !important;
    opacity: 0.7 !important;
  }
  #af-titlebar-item-firebase .af-firebase-ready-btn:hover,
  #af-titlebar-item-firebase .af-firebase-ready-btn:active {
    transform: scale(0.985) !important;
    filter: brightness(1.05) saturate(1.08) !important;
  }

  /* Secondary tools share the next flex row (empty slots already display:none) */
  #af-titlebar-slot-terminal,
  #af-titlebar-slot-pro,
  #af-titlebar-power-group,
  #af-titlebar-slot-mail,
  #af-titlebar-item-sound {
    order: 10 !important;
    flex: 1 1 0 !important;
    min-width: 3.2rem !important;
    max-width: none !important;
    justify-content: center !important;
  }
  /* SERVER + Shield can be a bit wider */
  #af-titlebar-power-group,
  .af-titlebar-core {
    flex: 1.35 1 0 !important;
    min-width: 4.5rem !important;
  }
  /* Hide empty SERVER/Shield group (testers with no master controls) */
  #af-titlebar-power-group:not(:has(button)) {
    display: none !important;
  }

  /* Empty slots collapse without leaving holes */
  .af-titlebar-rail .af-titlebar-slot:empty {
    display: none !important;
  }

  /* Secondary row — equal cells, tappable */
  #af-titlebar-slot-terminal,
  #af-titlebar-slot-pro,
  #af-titlebar-slot-mail,
  #af-titlebar-item-sound,
  #af-titlebar-power-group {
    justify-content: center !important;
  }
  .af-titlebar-rail .af-sound-deck-wrap {
    width: 100% !important;
    margin: 0 !important;
  }
  .af-titlebar-rail .af-sound-deck-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 2.55rem !important;
    padding: 0.3rem 0.28rem 0.34rem !important;
    transform: none !important;
    border-radius: 0.75rem !important;
  }
  .af-titlebar-rail .af-sound-deck-line {
    font-size: 0.5rem !important;
  }
  .af-titlebar-rail .af-sound-deck-line--deck {
    font-size: 0.55rem !important;
  }
  .af-titlebar-rail .af-sound-deck-eq {
    transform: scale(0.85);
  }
  .af-titlebar-rail .af-sound-deck-ring,
  .af-titlebar-rail .af-sound-deck-core {
    display: none !important;
  }

  /* Keep word controls readable but compact */
  .af-titlebar-center .af-mail-word,
  .af-titlebar-center .af-radio-word {
    font-size: 0.72rem !important;
  }
  .af-titlebar-center .af-terminal-gate-word {
    font-size: 0.55rem !important;
  }
  .af-titlebar-center .af-terminal-gate-sub {
    display: none !important;
  }
  .af-titlebar-center .af-mail-btn,
  .af-titlebar-center .af-radio-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 2.55rem !important;
    padding: 0.28rem 0.3rem !important;
    justify-content: center !important;
  }
  .af-titlebar-center .af-terminal-gate-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 2.55rem !important;
    padding: 0.2rem 0.2rem !important;
  }
  .af-titlebar-center .af-vault-lockdown-btn {
    width: 2.35rem !important;
    height: 2.15rem !important;
    min-width: 2.35rem !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 25 !important;
  }
  .af-titlebar-center #af-pro-fab,
  .af-titlebar-center #af-invite-fab {
    width: 100% !important;
    max-width: none !important;
    min-height: 2.55rem !important;
    transform: none !important;
    justify-content: center !important;
  }
  /* SERVER stays readable, no overlap with shield */
  .af-titlebar-center .af-power-btn {
    transform: scale(0.92) !important;
    transform-origin: center center !important;
    margin-right: 0 !important;
  }
  .af-titlebar-center .af-handle-stack {
    transform: none !important;
  }
  .af-titlebar-center #af-titlebar-power-group,
  .af-titlebar-center .af-titlebar-core {
    gap: 0.22rem !important;
    overflow: visible !important;
    width: 100% !important;
    justify-content: center !important;
  }
  /* Tone down glows that paint over neighbors on tiny screens */
  .af-titlebar-center .af-vault-lockdown-btn,
  .af-titlebar-right .af-theme-toggle.is-dark,
  .af-titlebar-right .af-refresh-btn {
    filter: saturate(0.95);
  }
  .af-titlebar-right .af-theme-toggle.is-dark::before,
  .af-titlebar-right .af-theme-toggle.is-dark::after {
    inset: -8px !important;
  }
}

.af-sound-deck-slot .af-radio-btn {
  max-width: none;
  z-index: 1;
  padding: 0.45rem 0.75rem;
}

.af-sound-deck-slot .af-radio-word {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  /* Root rhythm — roomier, more “native app” than desktop dense UI */
  html {
    font-size: 16.5px;
    -webkit-text-size-adjust: 100%;
  }
  body {
    overscroll-behavior-y: contain;
  }
  .af-shell {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* —— Titlebar: never let transforms / 3D chrome cause overlap —— */
  .af-titlebar {
    position: sticky;
    z-index: 50;
    overflow: visible !important;
  }
  .af-titlebar-inner {
    overflow: visible !important;
  }
  .af-titlebar-rail,
  .af-titlebar-item,
  .af-titlebar-slot,
  .af-titlebar-core,
  #af-titlebar-power-group {
    overflow: visible !important;
  }
  /* Kill any residual scale from older rules */
  .af-titlebar-rail .af-power-btn,
  .af-titlebar-rail .af-firebase-ready-btn,
  .af-titlebar-rail .af-sound-deck-btn,
  .af-titlebar-center .af-power-btn,
  .af-titlebar-center .af-handle-stack,
  .af-titlebar-center #af-pro-fab,
  .af-titlebar-center #af-invite-fab {
    transform: none !important;
  }
  /* Right-side tools: real 44px touch targets */
  .af-titlebar-right {
    gap: 0.4rem !important;
  }
  .af-titlebar-right .af-icon-3d-btn {
    width: 2.55rem !important;
    height: 2.55rem !important;
    min-width: 2.55rem !important;
  }
  .af-titlebar-right .af-refresh-orb {
    width: 2.2rem !important;
    height: 2.2rem !important;
  }
  .af-titlebar-right .af-refresh-glyph {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
  .af-titlebar-right .af-btn-ghost,
  .af-titlebar-right a.af-btn,
  .af-titlebar-right #af-open-live {
    min-height: 2.45rem !important;
    padding: 0.45rem 0.7rem !important;
    font-size: 0.82rem !important;
    border-radius: 0.75rem !important;
  }
  .af-titlebar-right .af-user-btn {
    min-height: 2.55rem !important;
    min-width: 2.55rem !important;
    padding: 0.2rem !important;
  }
  .af-titlebar-left h1 {
    font-size: 1.08rem !important;
  }
  .af-titlebar-left .af-logo-header {
    width: 2.65rem !important;
    height: 2.65rem !important;
  }

  /* Secondary rail tools — taller, spaced, no crush */
  .af-titlebar-rail {
    gap: 0.5rem 0.4rem !important;
    padding: 0.55rem 0.5rem 0.6rem !important;
  }
  #af-titlebar-item-firebase .af-firebase-ready-btn {
    min-height: 3.25rem !important;
  }
  .af-titlebar-rail .af-sound-deck-btn,
  .af-titlebar-center .af-mail-btn,
  .af-titlebar-center .af-radio-btn,
  .af-titlebar-center .af-terminal-gate-btn,
  .af-titlebar-center #af-pro-fab,
  .af-titlebar-center #af-invite-fab {
    min-height: 3rem !important;
    font-size: 0.78rem !important;
  }
  .af-titlebar-rail .af-sound-deck-line {
    font-size: 0.58rem !important;
  }
  .af-titlebar-rail .af-sound-deck-line--deck {
    font-size: 0.64rem !important;
  }
  .af-titlebar-center .af-mail-word,
  .af-titlebar-center .af-radio-word {
    font-size: 0.8rem !important;
  }
  .af-titlebar-center .af-terminal-gate-word {
    font-size: 0.62rem !important;
  }
  .af-titlebar-center .af-vault-lockdown-btn {
    width: 2.65rem !important;
    height: 2.45rem !important;
    min-width: 2.65rem !important;
  }
  /* SERVER power: no scale shrink; keep readable next to shield */
  .af-titlebar-center .af-power-btn {
    transform: none !important;
    max-width: 100% !important;
  }
  .af-titlebar-center .af-power-brand {
    font-size: 0.62rem !important;
  }
  #af-titlebar-slot-terminal,
  #af-titlebar-slot-pro,
  #af-titlebar-power-group,
  #af-titlebar-slot-mail,
  #af-titlebar-item-sound {
    min-width: 3.6rem !important;
    gap: 0.25rem !important;
  }

  /* —— Main page: pro phone density —— */
  .af-shell > .af-grid,
  .af-shell .grid,
  main.lg\:col-span-7,
  main.min-w-0 {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  main.min-w-0.space-y-5 {
    gap: 1.15rem !important;
  }
  main.min-w-0.space-y-5 > * + * {
    margin-top: 1.15rem !important;
  }

  /* Stats row — larger, 2-col cards */
  .af-stat-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem !important;
  }
  .af-stat {
    padding: 0.95rem 0.9rem !important;
    border-radius: 1rem !important;
    min-height: 5.5rem;
  }
  .af-stat-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
  }
  .af-stat-value {
    font-size: 1.55rem !important;
    line-height: 1.15 !important;
    margin-top: 0.35rem !important;
  }
  .af-stat-sub {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin-top: 0.35rem !important;
  }
  .af-stat .af-btn {
    min-height: 2.65rem !important;
    font-size: 0.88rem !important;
    border-radius: 0.8rem !important;
  }
  /* Tester signals — fat thumbs */
  .af-tester-actions {
    gap: 0.45rem !important;
  }
  .af-tester-sig {
    min-height: 3rem !important;
    padding: 0.55rem 0.45rem !important;
    border-radius: 0.85rem !important;
    font-size: 0.78rem !important;
  }
  .af-tester-sig-ico {
    font-size: 1.15rem !important;
  }
  .af-tester-ping {
    font-size: 0.78rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Section headers */
  .af-section-head {
    margin-bottom: 0.85rem !important;
    gap: 0.65rem !important;
  }
  .af-eyebrow {
    font-size: 0.72rem !important;
  }
  .af-section-title {
    font-size: 1.35rem !important;
    letter-spacing: -0.03em !important;
  }
  .af-section-desc {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    max-width: none !important;
  }

  /* Panels / glass cards */
  .af-panel,
  .af-release-panel,
  .af-glass {
    border-radius: 1.15rem !important;
    padding: 1rem 0.95rem !important;
  }
  .af-release-panel .af-panel,
  .af-release-panel {
    padding: 1.05rem 1rem !important;
  }

  /* Primary buttons everywhere on phone */
  .af-btn {
    min-height: 2.75rem !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.92rem !important;
    border-radius: 0.85rem !important;
    font-weight: 750 !important;
  }
  .af-btn-sm {
    min-height: 2.55rem !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.86rem !important;
  }

  /* App library cards — larger, thumb-friendly */
  .af-apps-grid {
    gap: 0.95rem !important;
    grid-template-columns: 1fr !important;
  }
  .af-app-card {
    padding: 1.15rem 1.05rem !important;
    border-radius: 1.15rem !important;
    gap: 0.75rem;
  }
  .af-app-icon {
    width: 3.35rem !important;
    height: 3.35rem !important;
    border-radius: 0.95rem !important;
    font-size: 1.2rem !important;
  }
  .af-app-card h3,
  .af-app-card .af-app-title,
  .af-app-name {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
  }
  .af-app-card p,
  .af-app-card .af-app-desc {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }
  .af-app-card .af-btn,
  .af-app-card button {
    min-height: 2.75rem !important;
    font-size: 0.9rem !important;
  }

  /* Release / catalog rows */
  .af-release-row,
  .af-catalog-row,
  [data-app-card] {
    min-height: 3.25rem;
  }

  /* Form fields */
  .af-field,
  input.af-field,
  textarea.af-field,
  select.af-field {
    min-height: 2.85rem !important;
    font-size: 1rem !important;
    border-radius: 0.85rem !important;
    padding: 0.7rem 0.85rem !important;
  }
  textarea.af-field {
    min-height: 6.5rem !important;
  }
  .af-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.35rem !important;
  }

  /* Live room open CTA */
  #af-open-live {
    min-height: 2.55rem !important;
  }

  /* Footnote / fine print still readable */
  .af-footnote {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    padding: 0.75rem 0.25rem 1.25rem !important;
  }

  /* Chat compose on phone already handled elsewhere; bump findings/notes a bit */
  #af-findings-section .af-btn-sm,
  [data-af-panel="findings"] .af-btn-sm {
    min-height: 2.55rem !important;
  }
}
