/* Now playing, stars, dossier, and recently played. Scoped so the console CSS stays put. */

#freq-content.aob-has-track > #track-title,
.mini-meta.aob-has-track > #mini-title { display: none; }
#freq-content.aob-has-track .band-label { display: none; }

.aob-now, .aob-mini-now {
  display: none;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
#freq-content.aob-has-track .aob-now,
.mini-meta.aob-has-track .aob-mini-now { display: flex; }

.aob-kicker {
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.72;
  line-height: 1.2;
}
.aob-now-artist, .aob-mini-artist, .aob-star, .aob-icon, .aob-back, .aob-who {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aob-now-artist, .aob-mini-artist, .aob-who, .aob-icon, .aob-back {
  text-decoration: none;
}
.aob-now-artist:hover, .aob-now-artist:focus-visible,
.aob-mini-artist:hover, .aob-mini-artist:focus-visible,
.aob-who:hover, .aob-who:focus-visible,
.aob-icon:hover, .aob-icon:focus-visible,
.aob-star:hover, .aob-star:focus-visible,
.aob-back:hover, .aob-back:focus-visible {
  text-shadow: 0 0 8px var(--phosphor-glow, rgba(51, 255, 102, 0.45));
}
.aob-now-artist {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aob-now-title, .aob-mini-title {
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aob-now-line, .aob-mini-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.aob-now-line .aob-now-title,
.aob-mini-line .aob-mini-title { flex: 1 1 auto; min-width: 0; }
.cc-badge {
  flex: none;
  color: rgba(255, 176, 0, 0.78);
  border: 1px solid rgba(255, 176, 0, 0.45);
  background: transparent;
  padding: 0 4px;
  font: 600 9px/1.5 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
}
.cc-badge:hover, .cc-badge:focus-visible {
  color: #ffb000;
  border-color: #ffb000;
}
.cc-badge[hidden] { display: none !important; }
.cc-badge-mark { display: none; }
#crt-signal .signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  opacity: 1;
}
#crt-signal .signal-head > span { opacity: 0.7; }
.cc-badge-signal { position: static; z-index: 6; letter-spacing: 0.06em; }
.cc-badge-mini { display: none; margin-left: auto; }
.cc-badge-mini .cc-badge-word { display: none; }
.cc-badge-mini .cc-badge-mark { display: inline; font-size: 14px; line-height: 1; }
@media (max-width: 900px) {
  .cc-badge-mini:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  /* Station chip + license sit on one row, centered against the title block.
     The volume button is the bar's own column, not stacked under these. */
  .mini-meta.aob-has-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
  }
  .mini-meta.aob-has-track > .mini-station { grid-column: 1 / -1; grid-row: 1; }
  .mini-meta.aob-has-track .aob-mini-now { display: contents; }
  .mini-meta.aob-has-track .aob-kicker { grid-column: 1 / -1; grid-row: 2; }
  .mini-meta.aob-has-track .aob-mini-artist { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
  .mini-meta.aob-has-track .aob-mini-line { grid-column: 1; grid-row: 4; min-width: 0; align-self: center; }
  .mini-meta.aob-has-track .aob-note { grid-column: 1 / -1; grid-row: 5; }
  .mini-meta.aob-has-track .aob-note:empty { display: none; }
  .mini-meta.aob-has-track .aob-mini-row {
    grid-column: 2;
    grid-row: 4;
    align-self: center;
    justify-self: end;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    flex: none;
  }
  .mini-meta.aob-has-track .aob-avg:empty { display: none; }
  .mini-meta.aob-has-track .aob-icon { margin-left: 0; }
  .mini-meta.aob-has-track .aob-pos {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    flex: none;
    width: max-content;
    max-width: 13em;
    padding: 0 42px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(196, 164, 96, 0.72);
    background: linear-gradient(180deg, #3a3428, #14110c);
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.28), 0 0 8px rgba(196, 160, 80, 0.22);
    color: #f3e6c8;
    font: 700 11px/1 "Courier New", monospace;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mini-meta.aob-has-track .aob-mini-row .aob-icon:not(.aob-pos) {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin-left: -38px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(196, 164, 96, 0.6);
    background: radial-gradient(circle at 40% 35%, #4a4030, #1a1610);
    color: #f3e6c8;
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.2);
  }
  .mini-meta .cc-badge-mini:not([hidden]) {
    box-sizing: border-box;
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 176, 0, 0.7);
    color: #ffb000;
    background: radial-gradient(circle at 40% 35%, #3a3018, #141008);
    box-shadow: 0 0 6px rgba(255, 176, 0, 0.35);
    font-size: 13px;
    letter-spacing: 0;
    flex: none;
  }
  /* small chip, full-size tap area */
  .mini-meta .cc-badge-mini:not([hidden])::after { content: ""; position: absolute; inset: -11px; }
  /* Gh 17 nov: the round C / CC BY chip leaves the phone bar; Tesla/car keeps it. */
  html:not(.aob-car) .cc-badge-mini { display: none !important; }
  html:not(.aob-car) .mini-meta .cc-badge-mini:not([hidden])::after { content: none; display: none; }
}
.aob-now-row, .aob-mini-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.aob-stars { display: inline-flex; gap: 1px; }
.aob-star {
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 16px;
  color: rgba(51, 255, 102, 0.28);
  cursor: pointer;
}
.aob-star.is-on { color: var(--phosphor, #33ff66); }
@keyframes flight-shimmer {
  0%, 100% { color: rgba(255, 176, 0, 0.38); text-shadow: 0 0 0 transparent; }
  45% { color: #ffb000; text-shadow: 0 0 8px #ffb000, 0 0 14px rgba(255, 43, 214, 0.55); }
  72% { color: #ffe08a; text-shadow: 0 0 6px rgba(0, 229, 255, 0.65); }
}
.flight-stars.is-cue .aob-star:not(.is-on),
.aob-mini-now .aob-stars.is-cue .aob-star:not(.is-on) {
  animation: flight-shimmer 0.7s ease-in-out 3;
}
.flight-stars.is-cue-mid .aob-star:not(.is-on),
.aob-mini-now .aob-stars.is-cue-mid .aob-star:not(.is-on) {
  animation: flight-shimmer 0.9s ease-in-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .flight-stars.is-cue .aob-star:not(.is-on),
  .flight-stars.is-cue-mid .aob-star:not(.is-on),
  .aob-mini-now .aob-stars.is-cue .aob-star:not(.is-on),
  .aob-mini-now .aob-stars.is-cue-mid .aob-star:not(.is-on) {
    animation: none;
    color: var(--accent-amber, #ffb000);
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.7);
  }
}
.aob-avg {
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-left: 2px;
}
.aob-icon {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-left: auto;
}
.aob-icon + .aob-icon { margin-left: 0; }
.aob-note {
  font-size: 9px;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.aob-mini-artist {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  color: #f3e6c8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aob-mini-title { color: #c4b48a; font-size: 11px; }
.mini-meta .aob-star { color: rgba(243, 230, 200, 0.35); width: 18px; height: 18px; font-size: 16px; line-height: 18px; }
.mini-meta .aob-star.is-on { color: #fff6d0; text-shadow: 0 0 6px rgba(255, 214, 120, 0.9); }
.mini-meta .aob-kicker { color: #c4b48a; }
.mini-meta .aob-icon, .mini-meta .aob-avg, .mini-meta .aob-note { color: #c4b48a; }

.aob-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 6, 8, 0.72);
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px));
}
.aob-sheet[hidden] { display: none; }
.aob-card {
  width: min(440px, 100%);
  max-height: min(82vh, 640px);
  overflow: auto;
  background: #10140f;
  color: var(--phosphor, #33ff66);
  border: 1px solid rgba(51, 255, 102, 0.35);
  box-shadow: 0 0 24px rgba(51, 255, 102, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 12px 14px 16px;
  font-family: "Courier New", "Lucida Console", monospace;
  text-shadow: 0 0 6px var(--phosphor-glow, rgba(51, 255, 102, 0.35));
}
.aob-back {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.aob-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(51, 255, 102, 0.45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  background: #07140c;
}
.aob-initials { font-size: 22px; font-weight: 700; letter-spacing: 0.06em; }
.aob-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aob-name { font-size: 22px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; }
.aob-bio {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aob-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; }
.aob-links a { color: inherit; }
.aob-links a:hover { text-shadow: 0 0 8px var(--phosphor-glow, rgba(51, 255, 102, 0.45)); }
.aob-badge {
  display: inline-block;
  border: 1px solid rgba(51, 255, 102, 0.45);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0 6px 6px 0;
}
.aob-ai { font-size: 12px; opacity: 0.85; margin: 0 0 8px; }
.aob-tracks { list-style: none; margin: 8px 0 0; padding: 0; }
.aob-tracks li {
  font-size: 12px;
  padding: 4px 0;
  border-top: 1px solid rgba(51, 255, 102, 0.15);
  opacity: 0.9;
}
.aob-tracks li.is-current { opacity: 1; font-weight: 700; }
.aob-heard { list-style: none; margin: 8px 0 0; padding: 0; }
.aob-heard li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid rgba(51, 255, 102, 0.15);
  font-size: 12px;
}
.aob-when { opacity: 0.65; min-width: 4.5em; }
.aob-song { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aob-empty { font-size: 13px; opacity: 0.8; }
.aob-copy-sink {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 399px) {
  .aob-now-artist { font-size: 13px; }
  .aob-star { width: 18px; height: 18px; font-size: 16px; }
}

/* Tesla / car landscape: one compact neon strip. DEEP ORBIT and the share
   arrow sit in a right column, directly under the speaker and VOL slider. */
@media (max-height: 900px) and (min-width: 901px) {
  body[data-view="console"] .mini-player { display: flex; }
  body[data-view="console"] #flight-rate { display: none; }
  .app { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .mini-player {
    left: 50%;
    right: auto;
    width: min(720px, calc(100vw - 24px));
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    height: auto;
    min-height: 0;
    max-height: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 60, 200, 0.45);
    background:
      radial-gradient(120% 180% at 0% 100%, rgba(255, 60, 200, 0.22), transparent 46%),
      radial-gradient(90% 160% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 42%),
      linear-gradient(100deg, rgba(7, 6, 16, 0.94), rgba(6, 12, 24, 0.92) 55%, rgba(8, 16, 18, 0.94));
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.28),
      0 0 18px rgba(255, 60, 200, 0.28),
      0 0 22px rgba(34, 211, 238, 0.16);
    color: #f4ecff;
    transition: transform .45s ease, opacity .45s ease;
  }
  html.aob-car .mini-player.mini-away {
    transform: translateX(-50%) translateY(130%);
    opacity: 0;
    pointer-events: none;
  }
  .mini-player .mini-play {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid rgba(163, 230, 53, 0.7);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 36%), #0c1612;
    color: #d9ffe4;
  }
  .mini-player .mini-station { display: none; }
  .mini-player .mini-meta {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    gap: 1px;
  }
  .mini-player .mini-title,
  .mini-player .aob-mini-title { font-size: 13px; line-height: 1.15; color: #f7fbff; }
  .mini-player .aob-mini-artist { font-size: 14px; line-height: 1.1; color: #fff6ff; }
  .mini-player .mini-flight {
    order: 3;
    flex: none;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 0 2px;
    border: 0;
  }
  .mini-player .mini-flight-title { display: none; }
  .mini-player .mini-flight .aob-star,
  .mini-player .mini-flight .flight-star {
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 22px;
  }
  .mini-player .mini-side {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex: none;
    min-width: 0;
  }
  .mini-player .mini-side-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  .mini-player .mini-mute {
    order: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(163, 230, 53, 0.7);
    background: #0c1612;
    color: #d9ffe4;
  }
  .mini-player .mini-mute svg { width: 16px; height: 16px; }
  body[data-view="console"] .mini-player .mini-vol {
    display: flex;
    align-items: center;
    height: 32px;
    gap: 6px;
    margin: 0;
    color: #b6ff72;
    font: 700 10px/1 Orbitron, "Courier New", monospace;
    letter-spacing: 0.12em;
  }
  .mini-player .mini-vol input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 96px;
    height: 28px;
    margin: 0;
    background: transparent;
    accent-color: auto;
  }
  .mini-player .mini-vol input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
  }
  .mini-player .mini-vol input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
    box-shadow: 0 0 8px #22d3ee;
  }
  .mini-player .mini-vol input[type="range"]::-moz-range-track {
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
  }
  .mini-player .mini-vol input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
  }
  .mini-player .aob-mini-row {
    position: absolute;
    right: 8px;
    bottom: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    width: max-content;
    min-width: max-content;
    max-width: calc(100% - 16px);
    min-height: 22px;
    margin: 0;
  }
  .mini-player { position: fixed; padding-bottom: 22px; }
  .mini-player .mini-side { align-self: flex-start; margin-top: 2px; }
  #aob-mini-now .aob-pos,
  #aob-mini-now .aob-icon {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    margin-left: 0;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #7eecff;
    font: 700 11px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.04em;
  }
  #aob-mini-now .aob-avg:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.aob-car .mini-player { transition: opacity .2s linear; }
}

/* Phone station bar only (not the car, not desktop). One compact neon strip.
   Volume uses the same pink / cyan / lime track as the Tesla slider. */
@media (max-width: 900px) {
  html:not(.aob-car) .mini-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "play meta side";
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 60, 200, 0.5);
    background:
      radial-gradient(120% 180% at 0% 100%, rgba(255, 60, 200, 0.22), transparent 48%),
      radial-gradient(90% 160% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 44%),
      linear-gradient(100deg, rgba(7, 6, 16, 0.96), rgba(6, 12, 24, 0.94));
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.28), 0 -10px 28px rgba(0, 0, 0, 0.55);
    color: #f4ecff;
  }
  html:not(.aob-car) .mini-play {
    grid-area: play;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(163, 230, 53, 0.75);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 40%), #0c1612;
    color: #d9ffe4;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.35);
  }
  html:not(.aob-car) .mini-meta { grid-area: meta; }
  html:not(.aob-car) .mini-meta.aob-has-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
  }
  html:not(.aob-car) .mini-station,
  html:not(.aob-car) .mini-meta .aob-kicker,
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-artist,
  html:not(.aob-car) .mini-meta .aob-note,
  html:not(.aob-car) .mini-vol span { display: none; }
  html:not(.aob-car) .mini-title,
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }
  html:not(.aob-car) body[data-view="console"] .mini-vol { display: flex; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-artist { color: #fff6ff; font-size: 13px; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row {
    position: static;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    gap: 4px;
    margin: 0;
  }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-pos {
    height: 22px;
    min-height: 22px;
    padding: 0 8px;
    max-width: 8.5em;
    border: 1px solid rgba(34, 211, 238, 0.75);
    background: rgba(6, 18, 28, 0.92);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
    color: #7eecff;
    font: 700 10px/22px Orbitron, "Courier New", monospace;
  }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row .aob-icon:not(.aob-pos) {
    width: 22px;
    height: 22px;
    margin-left: 0;
    border: 1px solid rgba(255, 60, 200, 0.7);
    background: #160814;
    color: #ff8ae2;
    box-shadow: 0 0 8px rgba(255, 60, 200, 0.35);
  }
  html:not(.aob-car) .mini-side {
    display: flex;
    grid-area: side;
    align-items: center;
    gap: 4px;
  }
  html:not(.aob-car) .mini-mute {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 1px solid rgba(163, 230, 53, 0.7);
    background: #0c1612;
    color: #d9ffe4;
  }
  html:not(.aob-car) .mini-mute svg { width: 16px; height: 16px; }
  html:not(.aob-car) .mini-vol {
    height: 32px;
    gap: 4px;
    margin: 0;
    color: #b6ff72;
    font: 700 10px/1 Orbitron, "Courier New", monospace;
    letter-spacing: 0.08em;
  }
  html:not(.aob-car) .mini-vol input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 72px;
    height: 28px;
    margin: 0;
    background: transparent;
    accent-color: auto;
  }
  html:not(.aob-car) .mini-vol input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
  }
  html:not(.aob-car) .mini-vol input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
    box-shadow: 0 0 8px #22d3ee;
  }
  html:not(.aob-car) .mini-vol input[type="range"]::-moz-range-track {
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
  }
  html:not(.aob-car) .mini-vol input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
  }
  html:not(.aob-car) .mini-flight { display: none !important; }
}

/* ── Neon bar v3 (Gh approved 11 nov 2026, 2:01 PM ET; mockup maqueta-3lineas) ──────────────
   LEFT: play + three lines (NOW PLAYING / artist / song). CENTRE, stacked: HOW'S THE FLIGHT? /
   five stars close together / frequency name with ↗, no numbers (no "5 · 2", no "12/90").
   RIGHT: volume and mute as before. The car keeps its auto-hide (readout.js .mini-away). */
.mini-flight-freq { display: none; }
.mini-flight-rate { display: none; }
@media (max-height: 900px) and (min-width: 901px) {
  .mini-player {
    width: min(960px, 75vw);
    gap: 14px;
    padding: 8px 12px 8px 8px;
    min-height: 66px;
    background:
      radial-gradient(120% 180% at 0% 100%, rgba(255, 60, 200, 0.22), transparent 46%),
      radial-gradient(90% 160% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 42%),
      linear-gradient(100deg, #0b0a16, #07101a 55%, #0a1216);
  }
  .mini-player .mini-play { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .mini-player .mini-meta { order: 1; flex: 1 1 0; min-width: 0; }
  .mini-player .mini-meta.aob-has-track .aob-mini-now { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
  .mini-player .aob-kicker { font: 700 9px/1.2 Orbitron, "Courier New", monospace; letter-spacing: 0.18em; color: #7eecff; text-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
  .mini-player .aob-mini-artist { font-weight: 700; font-size: 15px; }
  .mini-player .aob-mini-artist,
  .mini-player .aob-mini-line { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the old right-hand row: no average, no catalog position, no share arrow (the CC BY chip stays) */
  .mini-player .aob-mini-row .aob-avg,
  .mini-player .aob-mini-row .aob-pos,
  .mini-player .aob-mini-row .aob-icon { display: none !important; }
  .mini-player { padding-bottom: 8px; }
  .mini-player:has(.mini-meta.aob-has-track) .mini-flight {
    order: 3;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 20px;
    border-left: 1px solid rgba(34, 211, 238, 0.28);
  }
  .mini-player .mini-flight-title {
    display: block;
    font: 700 9px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.12em;
    color: #ffd36a;
    text-shadow: 0 0 8px rgba(255, 176, 0, 0.45);
    white-space: nowrap;
  }
  .mini-player .mini-flight:has(.mini-flight-thanks:not(:empty)) .mini-flight-title { display: none; }
  .mini-player .mini-flight-stars { display: flex; gap: 0; }
  .mini-player .mini-flight .aob-star,
  .mini-player .mini-flight .flight-star { width: 24px; height: 24px; font-size: 18px; line-height: 24px; padding: 0; }
  .mini-player .mini-flight-freq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: #ffd36a;
    font: 700 11px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
  }
  .mini-player .mini-flight-freq::after { content: "\2197"; font-size: 10px; opacity: 0.85; }
  .mini-player .mini-flight-freq[hidden] { display: none; }
  .mini-player .mini-side { order: 4; flex: 1 1 0; align-self: center; margin-top: 0; align-items: flex-end; }
  .mini-player .mini-side-top { gap: 10px; }
  .mini-player .mini-mute { order: 2; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .mini-player .mini-mute svg { width: 18px; height: 18px; }
  .mini-player .mini-vol input[type="range"] { width: 112px; }
}

/* Phone: the same bar (task 8). Left three lines, centre flight + frequency, right volume unchanged. */
@media (max-width: 900px) {
  html:not(.aob-car) .mini-player:has(.mini-meta.aob-has-track) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "play meta flight side";
    column-gap: 6px;
  }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-now { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; max-width: 100%; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-kicker {
    display: block;
    font: 700 8px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.14em;
    color: #7eecff;
  }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-artist { display: block; font-weight: 700; font-size: 13px; line-height: 1.15; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-title { font-size: 12px; font-weight: 400; line-height: 1.15; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-artist,
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-line { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row .aob-avg,
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row .aob-pos,
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row .aob-icon { display: none !important; }
  html:not(.aob-car) .mini-player:has(.mini-meta.aob-has-track) .mini-flight {
    grid-area: flight;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2px;
    border-left: 1px solid rgba(34, 211, 238, 0.25);
    text-align: center;
  }
  html:not(.aob-car) .mini-flight-title { display: none; }
  html:not(.aob-car) .mini-flight-rate {
    display: block;
    font: 700 6.5px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.05em;
    color: #ffd36a;
    white-space: nowrap;
    text-align: center;
  }
  html:not(.aob-car) .mini-flight:has(.mini-flight-thanks:not(:empty)) .mini-flight-rate { display: none; }
  html:not(.aob-car) .mini-flight-stars {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    gap: 0;
    margin: 0 auto;
    letter-spacing: 0;
  }
  /* v4 glyph size (13px). Tight ink: width auto, no padding, pull in font side bearings
     with a negative horizontal margin. Extra padding + opposite margin keeps a ~32px tap. */
  html:not(.aob-car) .mini-flight .aob-star,
  html:not(.aob-car) .mini-flight .flight-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    padding: 10px 8px;
    margin: -10px -9px;
    flex: none;
    overflow: visible;
  }
  html:not(.aob-car) .mini-flight-freq {
    display: block;
    align-self: center;
    margin: 0 auto !important;
    min-height: 14px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #ffd36a;
    font: 700 8px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: center;
    width: auto;
    max-width: 100%;
  }
  html:not(.aob-car) .mini-flight-freq::after { content: none; display: none; }
  html:not(.aob-car) .mini-flight-freq[hidden] { display: none; }
  html:not(.aob-car) .mini-flight-thanks:not(:empty) { font-size: 8px; }
  /* Layout fixes (b1 17 nov, Gh's iPhone capture). Stars stay readable and
     together, centred over the frequency. The install pill spans the first row.
     Gh 17 nov evening: the round CC BY chip is gone from the phone bar, so the
     song title uses the full line. */
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-now {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    max-width: 100%;
  }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-line { min-width: 0; max-width: 100%; }
  html:not(.aob-car) .mini-meta.aob-has-track .aob-mini-row { display: none !important; }
  html:not(.aob-car) .mini-flight .aob-star,
  html:not(.aob-car) .mini-flight .flight-star {
    position: relative;
    width: 17px;
    height: 20px;
    font-size: 17px;
    line-height: 20px;
    padding: 0;
    margin: 0;
  }
  html:not(.aob-car) .mini-flight .aob-star::after,
  html:not(.aob-car) .mini-flight .flight-star::after { content: ""; position: absolute; inset: -12px -1px; }
  html:not(.aob-car) .mini-player:has(> .aob-pwa-pill:not([hidden])) { grid-template-areas: "pill pill pill" "play meta side"; }
  html:not(.aob-car) .mini-player:has(> .aob-pwa-pill:not([hidden])):has(.mini-meta.aob-has-track) { grid-template-areas: "pill pill pill pill" "play meta flight side"; }
  html:not(.aob-car) .mini-player > .aob-pwa-pill { grid-area: pill; }
}
.mini-player .mini-flight-thanks:empty { display: none; }

/* solo Tesla (Gh 18 nov): the neon bar in the car at ANY screen size. The two neon blocks above
   only match max-height:900px + min-width:901px, so a Tesla whose browser is taller than 900px or
   narrower than 901px fell back to the older player (AOB RADIO label, plain speaker, no VOL slider).
   Same rules, scoped to html.aob-car, for every size those blocks do not cover. */
@media not all and (max-height: 900px) and (min-width: 901px) {
  html.aob-car body[data-view="console"] .mini-player { display: flex; }
  html.aob-car body[data-view="console"] #flight-rate { display: none; }
  html.aob-car .app { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  html.aob-car .mini-player {
    left: 50%;
    right: auto;
    width: min(720px, calc(100vw - 24px));
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    height: auto;
    min-height: 0;
    max-height: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 60, 200, 0.45);
    background:
      radial-gradient(120% 180% at 0% 100%, rgba(255, 60, 200, 0.22), transparent 46%),
      radial-gradient(90% 160% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 42%),
      linear-gradient(100deg, rgba(7, 6, 16, 0.94), rgba(6, 12, 24, 0.92) 55%, rgba(8, 16, 18, 0.94));
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.28),
      0 0 18px rgba(255, 60, 200, 0.28),
      0 0 22px rgba(34, 211, 238, 0.16);
    color: #f4ecff;
    transition: transform .45s ease, opacity .45s ease;
  }
  html.aob-car .mini-player.mini-away {
    transform: translateX(-50%) translateY(130%);
    opacity: 0;
    pointer-events: none;
  }
  html.aob-car .mini-player .mini-play {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid rgba(163, 230, 53, 0.7);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 36%), #0c1612;
    color: #d9ffe4;
  }
  html.aob-car .mini-player .mini-station { display: none; }
  html.aob-car .mini-player .mini-meta {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    gap: 1px;
  }
  html.aob-car .mini-player .mini-title,
  html.aob-car .mini-player .aob-mini-title { font-size: 13px; line-height: 1.15; color: #f7fbff; }
  html.aob-car .mini-player .aob-mini-artist { font-size: 14px; line-height: 1.1; color: #fff6ff; }
  html.aob-car .mini-player .mini-flight {
    order: 3;
    flex: none;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 0 2px;
    border: 0;
  }
  html.aob-car .mini-player .mini-flight-title { display: none; }
  html.aob-car .mini-player .mini-flight .aob-star,
  html.aob-car .mini-player .mini-flight .flight-star {
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 22px;
  }
  html.aob-car .mini-player .mini-side {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex: none;
    min-width: 0;
  }
  html.aob-car .mini-player .mini-side-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  html.aob-car .mini-player .mini-mute {
    order: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(163, 230, 53, 0.7);
    background: #0c1612;
    color: #d9ffe4;
  }
  html.aob-car .mini-player .mini-mute svg { width: 16px; height: 16px; }
  html.aob-car body[data-view="console"] .mini-player .mini-vol {
    display: flex;
    align-items: center;
    height: 32px;
    gap: 6px;
    margin: 0;
    color: #b6ff72;
    font: 700 10px/1 Orbitron, "Courier New", monospace;
    letter-spacing: 0.12em;
  }
  html.aob-car .mini-player .mini-vol input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 96px;
    height: 28px;
    margin: 0;
    background: transparent;
    accent-color: auto;
  }
  html.aob-car .mini-player .mini-vol input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.65);
  }
  html.aob-car .mini-player .mini-vol input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
    box-shadow: 0 0 8px #22d3ee;
  }
  html.aob-car .mini-player .mini-vol input[type="range"]::-moz-range-track {
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff3cc8, #22d3ee 55%, #a3e635);
  }
  html.aob-car .mini-player .mini-vol input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #22d3ee 42%, #ff3cc8 78%);
  }
  html.aob-car .mini-player .aob-mini-row {
    position: absolute;
    right: 8px;
    bottom: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    width: max-content;
    min-width: max-content;
    max-width: calc(100% - 16px);
    min-height: 22px;
    margin: 0;
  }
  html.aob-car .mini-player { position: fixed; padding-bottom: 22px; }
  html.aob-car .mini-player .mini-side { align-self: flex-start; margin-top: 2px; }
  html.aob-car #aob-mini-now .aob-pos,
  html.aob-car #aob-mini-now .aob-icon {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    margin-left: 0;
    white-space: nowrap;
    height: auto;
    min-height: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #7eecff;
    font: 700 11px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.04em;
  }
  html.aob-car #aob-mini-now .aob-avg:empty { display: none; }
  html.aob-car .mini-player { width: min(720px, calc(100vw - 24px)); }
  html.aob-car .mini-player {
    width: min(960px, 75vw);
    gap: 14px;
    padding: 8px 12px 8px 8px;
    min-height: 66px;
    background:
      radial-gradient(120% 180% at 0% 100%, rgba(255, 60, 200, 0.22), transparent 46%),
      radial-gradient(90% 160% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 42%),
      linear-gradient(100deg, #0b0a16, #07101a 55%, #0a1216);
  }
  html.aob-car .mini-player .mini-play { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  html.aob-car .mini-player .mini-meta { order: 1; flex: 1 1 0; min-width: 0; }
  html.aob-car .mini-player .mini-meta.aob-has-track .aob-mini-now { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
  html.aob-car .mini-player .aob-kicker { font: 700 9px/1.2 Orbitron, "Courier New", monospace; letter-spacing: 0.18em; color: #7eecff; text-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
  html.aob-car .mini-player .aob-mini-artist { font-weight: 700; font-size: 15px; }
  html.aob-car .mini-player .aob-mini-artist,
  html.aob-car .mini-player .aob-mini-line { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the old right-hand row: no average, no catalog position, no share arrow (the CC BY chip stays) */
  html.aob-car .mini-player .aob-mini-row .aob-avg,
  html.aob-car .mini-player .aob-mini-row .aob-pos,
  html.aob-car .mini-player .aob-mini-row .aob-icon { display: none !important; }
  html.aob-car .mini-player { padding-bottom: 8px; }
  html.aob-car .mini-player:has(.mini-meta.aob-has-track) .mini-flight {
    order: 3;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0 20px;
    border-left: 1px solid rgba(34, 211, 238, 0.28);
  }
  html.aob-car .mini-player .mini-flight-title {
    display: block;
    font: 700 9px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.12em;
    color: #ffd36a;
    text-shadow: 0 0 8px rgba(255, 176, 0, 0.45);
    white-space: nowrap;
  }
  html.aob-car .mini-player .mini-flight:has(.mini-flight-thanks:not(:empty)) .mini-flight-title { display: none; }
  html.aob-car .mini-player .mini-flight-stars { display: flex; gap: 0; }
  html.aob-car .mini-player .mini-flight .aob-star,
  html.aob-car .mini-player .mini-flight .flight-star { width: 24px; height: 24px; font-size: 18px; line-height: 24px; padding: 0; }
  html.aob-car .mini-player .mini-flight-freq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: #ffd36a;
    font: 700 11px/1.2 Orbitron, "Courier New", monospace;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
  }
  html.aob-car .mini-player .mini-flight-freq::after { content: "\2197"; font-size: 10px; opacity: 0.85; }
  html.aob-car .mini-player .mini-flight-freq[hidden] { display: none; }
  html.aob-car .mini-player .mini-side { order: 4; flex: 1 1 0; align-self: center; margin-top: 0; align-items: flex-end; }
  html.aob-car .mini-player .mini-side-top { gap: 10px; }
  html.aob-car .mini-player .mini-mute { order: 2; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  html.aob-car .mini-player .mini-mute svg { width: 18px; height: 18px; }
  html.aob-car .mini-player .mini-vol input[type="range"] { width: 112px; }
  html.aob-car .mini-player { width: min(960px, calc(100vw - 24px)); }
}


/* solo Tesla L3 (Gh 20 nov): AHORA SUENA, artist and song share one left edge.
   Do not change neon hide/show, volume, or the rest of the #210 bar. */
html.aob-car .mini-player .mini-meta,
html.aob-car .mini-player .mini-meta.aob-has-track .aob-mini-now {
  text-align: left;
  align-items: stretch;
}
html.aob-car .mini-player .aob-kicker,
html.aob-car .mini-player .aob-mini-artist,
html.aob-car .mini-player .aob-mini-line,
html.aob-car .mini-player .aob-mini-title {
  margin-left: 0;
  margin-inline-start: 0;
  padding-left: 0;
  padding-inline-start: 0;
  text-align: left;
  text-indent: 0;
  justify-content: flex-start;
}
html.aob-car .mini-player .aob-mini-line {
  display: block;
  width: 100%;
  max-width: 100%;
}
html.aob-car .mini-player .aob-mini-line .aob-mini-title {
  display: block;
  flex: none;
  width: 100%;
  max-width: 100%;
  text-align: left;
}
