:root {
      color-scheme: dark;
      --bg: #10100f;
      --panel: #181818;
      --panel-2: #20201f;
      --line: rgba(255, 255, 255, .11);
      --text: #f7f2e8;
      --muted: #b9b0a1;
      --soft: #827a70;
      --brand: #ff3d3d;
      --brand-2: #18d6b5;
      --brand-3: #f2c84b;
      --ok: #7bd66f;
      --warn: #ffb84d;
      --shadow: 0 24px 70px rgba(0, 0, 0, .38);
      --radius: 8px;
      --player-height: 112px;
    }

    body[data-theme="midnight"] {
      --bg: #0d1117;
      --panel: #151b23;
      --panel-2: #1f2833;
      --brand: #5ba7ff;
      --brand-2: #66e0c2;
      --brand-3: #ffd166;
      --text: #f2f7ff;
      --muted: #b7c3d4;
      --soft: #7f8da1;
    }

    body[data-theme="studio"] {
      --bg: #11100e;
      --panel: #1c1915;
      --panel-2: #28231d;
      --brand: #ff5b4f;
      --brand-2: #37d4a2;
      --brand-3: #f7c75f;
      --text: #fff6e8;
      --muted: #c7bca8;
      --soft: #928775;
    }

    body[data-density="compact"] {
      --player-height: 96px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        linear-gradient(180deg, rgba(255, 61, 61, .08), transparent 280px),
        linear-gradient(90deg, rgba(24, 214, 181, .08), transparent 45%),
        var(--bg);
      color: var(--text);
      letter-spacing: 0;
    }

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

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

    ::selection {
      color: #10100f;
      background: var(--brand-3);
    }

    :focus-visible {
      outline: 3px solid rgba(24, 214, 181, .56);
      outline-offset: 3px;
    }

    .shell {
      width: min(1520px, calc(100% - 32px));
      margin: 0 auto;
      padding-bottom: calc(var(--player-height) + 40px);
    }

    .appbar {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid var(--line);
      background: rgba(16, 16, 15, .88);
      backdrop-filter: blur(20px);
    }

    .appbar-inner {
      width: min(1520px, calc(100% - 32px));
      min-height: 84px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(230px, 330px) minmax(280px, 1fr) auto;
      align-items: center;
      gap: 18px;
    }

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

    .brand-mark {
      width: 52px;
      height: 52px;
      border-radius: var(--radius);
      display: grid;
      place-items: center;
      color: #10100f;
      background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
      flex: 0 0 auto;
    }

    .brand h1 {
      margin: 0;
      font-size: clamp(1.1rem, 2vw, 1.55rem);
      line-height: 1.05;
      font-weight: 900;
    }

    .brand p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: .85rem;
      white-space: nowrap;
    }

    .search {
      position: relative;
      min-width: 0;
    }

    .search i {
      position: absolute;
      left: 17px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--soft);
      pointer-events: none;
    }

    .search input {
      width: 100%;
      height: 54px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      outline: none;
      padding: 0 18px 0 46px;
      background: #141413;
      color: var(--text);
      font-size: .98rem;
    }

    .search input:focus {
      border-color: rgba(24, 214, 181, .65);
      box-shadow: 0 0 0 4px rgba(24, 214, 181, .12);
    }

    .quick-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }

    .icon-btn,
    .primary-btn,
    .ghost-btn,
    .chip,
    .select-control {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--text);
      background: var(--panel);
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .icon-btn {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      font-size: 1.05rem;
    }

    .icon-btn:hover,
    .primary-btn:hover,
    .ghost-btn:hover,
    .chip:hover,
    .select-control:hover {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, .22);
    }

    .select-control {
      height: 42px;
      padding: 0 34px 0 12px;
      color: var(--muted);
      font-weight: 800;
      appearance: none;
      background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position:
        calc(100% - 16px) 18px,
        calc(100% - 10px) 18px;
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
    }

    .primary-btn {
      height: 48px;
      padding: 0 17px;
      background: var(--brand);
      border-color: rgba(255,255,255,.18);
      color: white;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 9px;
    }

    .ghost-btn {
      height: 42px;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-weight: 700;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
      gap: 24px;
      align-items: stretch;
      padding: 34px 0 22px;
    }

    .now-panel {
      min-height: 332px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(135deg, rgba(255,61,61,.2), transparent 42%),
        linear-gradient(315deg, rgba(24,214,181,.18), transparent 50%),
        #161615;
      overflow: hidden;
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
      isolation: isolate;
    }

    .now-panel:before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent);
      z-index: -1;
    }

    .now-copy {
      padding: clamp(22px, 4vw, 42px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 24px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 7px 10px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--radius);
      color: var(--brand-3);
      background: rgba(0,0,0,.2);
      font-size: .78rem;
      font-weight: 900;
      text-transform: uppercase;
    }

    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--ok);
      box-shadow: 0 0 0 6px rgba(123, 214, 111, .12);
    }

    .now-copy h2 {
      margin: 16px 0 12px;
      max-width: 780px;
      font-size: clamp(2.35rem, 7vw, 5.9rem);
      line-height: .91;
      letter-spacing: 0;
      font-weight: 900;
    }

    .now-copy p {
      max-width: 680px;
      margin: 0;
      color: var(--muted);
      font-size: clamp(1rem, 1.8vw, 1.18rem);
      line-height: 1.65;
    }

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

    .dial {
      display: grid;
      align-content: center;
      gap: 18px;
      padding: 28px;
      background: rgba(0,0,0,.18);
      border-left: 1px solid var(--line);
    }

    .dial-face {
      aspect-ratio: 1;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 50%;
      display: grid;
      place-items: center;
      background:
        conic-gradient(from 220deg, var(--brand), var(--brand-3), var(--brand-2), var(--brand)),
        #222;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .dial-face:after {
      content: "";
      position: absolute;
      inset: 16%;
      border-radius: 50%;
      background: #141413;
      border: 1px solid rgba(255,255,255,.16);
      box-shadow: inset 0 0 40px rgba(0,0,0,.45);
    }

    .dial-face i {
      position: relative;
      z-index: 1;
      font-size: clamp(3.4rem, 8vw, 5.8rem);
      color: var(--brand-3);
    }

    .signal-bars {
      display: grid;
      grid-template-columns: repeat(28, 1fr);
      align-items: end;
      gap: 3px;
      height: 56px;
    }

    .signal-bars span {
      min-height: 8px;
      border-radius: 3px 3px 0 0;
      background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
      opacity: .75;
      animation: meter 1.4s ease-in-out infinite;
      animation-delay: calc(var(--i) * -70ms);
    }

    @keyframes meter {
      0%, 100% { height: 24%; }
      50% { height: calc(22% + var(--h) * 1%); }
    }

    .side-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: 332px;
    }

    .brand-affiliation {
      margin: 0 0 18px;
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--muted);
      background: rgba(255,255,255,.035);
      font-weight: 800;
      text-align: center;
    }

    .brand-affiliation a {
      color: var(--brand-3);
      text-decoration: none;
      border-bottom: 1px solid rgba(242,200,75,.45);
    }

    .brand-affiliation a:hover {
      color: var(--text);
      border-bottom-color: var(--text);
    }

    .panel-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: .85rem;
      font-weight: 900;
      text-transform: uppercase;
    }

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

    .mini-station {
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr) 40px;
      gap: 12px;
      align-items: center;
      min-height: 66px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #141413;
      padding: 8px;
    }

    .mini-logo,
    .station-logo,
    .player-logo {
      display: grid;
      place-items: center;
      overflow: hidden;
      border-radius: var(--radius);
      background: #242421;
      border: 1px solid rgba(255,255,255,.1);
      color: var(--brand-3);
      font-weight: 900;
    }

    .mini-logo {
      width: 50px;
      height: 50px;
    }

    .mini-station strong,
    .station-card strong {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mini-station span,
    .station-card span {
      display: block;
      margin-top: 4px;
      color: var(--soft);
      font-size: .82rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mini-station button {
      width: 38px;
      height: 38px;
      border-radius: var(--radius);
      border: 0;
      background: rgba(255,255,255,.08);
      color: var(--text);
    }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 22px 0 16px;
      overflow: visible;
    }

    .toolbar-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }

    .insights {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin: 0 0 10px;
    }

    .insight {
      min-height: 118px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .045);
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
    }

    .insight small {
      color: var(--soft);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .insight strong {
      margin-top: 12px;
      display: block;
      font-size: clamp(1.45rem, 3vw, 2.2rem);
      line-height: 1;
      font-weight: 900;
    }

    .insight span {
      margin-top: 8px;
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.4;
    }

    .insight.accent {
      background:
        linear-gradient(135deg, rgba(242, 200, 75, .18), transparent 60%),
        rgba(255,255,255,.045);
    }

    .status-pill {
      width: fit-content;
      min-height: 30px;
      padding: 0 9px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: var(--radius);
      color: var(--ok);
      background: rgba(123, 214, 111, .08);
      font-size: .78rem;
      font-weight: 900;
    }

    .chips {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: visible;
      scrollbar-width: none;
      padding-top: 4px;
    }

    .toolbar .chip:hover,
    .toolbar .select-control:hover {
      transform: translateY(-1px);
      border-color: rgba(255, 255, 255, .22);
      box-shadow: none;
    }

    .chips::-webkit-scrollbar {
      display: none;
    }

    .chip {
      flex: 0 0 auto;
      min-height: 42px;
      padding: 0 14px;
      font-weight: 800;
      color: var(--muted);
      white-space: nowrap;
    }

    .chip.active {
      background: var(--brand-2);
      color: #071412;
      border-color: transparent;
    }

    .count {
      color: var(--muted);
      font-weight: 800;
      white-space: nowrap;
    }

    .station-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 12px;
    }

    .station-grid.compact {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .station-card {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      padding: 12px;
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

    .station-grid.compact .station-card {
      grid-template-columns: 44px minmax(0, 1fr);
      padding: 9px;
    }

    .station-grid.compact .station-logo {
      width: 44px;
      height: 44px;
      font-size: .78rem;
    }

    .station-grid.compact .station-badges {
      display: none;
    }

    .station-card:hover {
      transform: translateY(-2px);
      border-color: rgba(24,214,181,.42);
      background: var(--panel-2);
    }

    .station-card.is-playing {
      border-color: rgba(255,61,61,.78);
      box-shadow: inset 0 0 0 1px rgba(255,61,61,.24);
    }

    .station-logo {
      width: 58px;
      height: 58px;
      font-size: .95rem;
    }

    .station-meta {
      min-width: 0;
    }

    .station-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .station-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }

    .station-badge {
      max-width: 100%;
      min-height: 24px;
      padding: 0 8px;
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius);
      color: var(--muted);
      background: rgba(255,255,255,.045);
      font-size: .74rem;
      font-weight: 800;
      white-space: nowrap;
    }

    .station-actions button {
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #141413;
      color: var(--text);
    }

    .station-actions button.wide-action {
      width: auto;
      padding: 0 11px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-weight: 800;
      color: var(--muted);
    }

    .station-actions .play-station {
      width: auto;
      padding: 0 13px;
      background: var(--brand);
      border-color: transparent;
      color: #fff;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      gap: 7px;
    }

    .station-actions button.is-favorite {
      color: var(--brand-3);
      border-color: rgba(242, 200, 75, .35);
      background: rgba(242, 200, 75, .09);
    }

    .health-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      background: var(--soft);
      box-shadow: 0 0 0 4px rgba(255,255,255,.04);
    }

    .health-dot.ok {
      background: var(--ok);
      box-shadow: 0 0 0 4px rgba(123,214,111,.12);
    }

    .health-dot.bad {
      background: var(--brand);
      box-shadow: 0 0 0 4px rgba(255,61,61,.12);
    }

    .utility-row {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
      margin: 14px 0 10px;
    }

    .file-input {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      clip-path: inset(50%);
    }

    .empty {
      grid-column: 1 / -1;
      border: 1px dashed rgba(255,255,255,.18);
      border-radius: var(--radius);
      padding: 30px;
      color: var(--muted);
      text-align: center;
      background: rgba(255,255,255,.03);
    }

    .skeleton {
      min-height: 112px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent),
        var(--panel);
      background-size: 220% 100%;
      animation: shimmer 1.25s ease-in-out infinite;
    }

    @keyframes shimmer {
      from { background-position: 120% 0; }
      to { background-position: -120% 0; }
    }

    .player {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 60;
      min-height: var(--player-height);
      border-top: 1px solid var(--line);
      background: rgba(17, 17, 16, .92);
      backdrop-filter: blur(22px);
    }

    .player-inner {
      width: min(1520px, calc(100% - 32px));
      min-height: var(--player-height);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto minmax(160px, 260px);
      gap: 18px;
      align-items: center;
    }

    .player-now {
      display: grid;
      grid-template-columns: 68px minmax(0, 1fr);
      gap: 13px;
      align-items: center;
      min-width: 0;
    }

    .player-logo {
      width: 68px;
      height: 68px;
      font-size: 1rem;
    }

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

    .player-title strong {
      display: block;
      font-size: clamp(1rem, 2vw, 1.35rem);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .player-title span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .player-controls {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .big-control {
      width: 64px;
      height: 64px;
      border: 0;
      border-radius: var(--radius);
      background: var(--brand);
      color: #fff;
      font-size: 1.35rem;
    }

    .volume {
      display: grid;
      grid-template-columns: 28px minmax(90px, 1fr);
      align-items: center;
      gap: 10px;
      color: var(--muted);
    }

    .player-tools {
      display: grid;
      gap: 9px;
    }

    .sleep-row {
      display: grid;
      grid-template-columns: 28px minmax(90px, 1fr);
      align-items: center;
      gap: 10px;
      color: var(--muted);
    }

    .sleep-row select {
      width: 100%;
      height: 36px;
      padding-left: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--muted);
      background: #141413;
      font-weight: 800;
    }

    .mini-visualizer {
      height: 26px;
      display: grid;
      grid-template-columns: repeat(18, 1fr);
      align-items: end;
      gap: 3px;
      opacity: .45;
    }

    .mini-visualizer span {
      min-height: 4px;
      border-radius: 2px 2px 0 0;
      background: var(--brand-2);
      transform-origin: bottom;
      height: 12%;
      transition: height .08s linear, opacity .18s ease, background .18s ease;
    }

    .mini-visualizer.is-paused span {
      opacity: .4;
      animation-play-state: paused;
    }

    .mini-visualizer.is-fallback span {
      animation: playerMeterFallback 1.05s ease-in-out infinite;
      animation-delay: calc(var(--i) * -55ms);
    }

    @keyframes playerMeterFallback {
      0%, 100% { height: 14%; }
      50% { height: var(--fallback-height); }
    }

    input[type="range"] {
      width: 100%;
      accent-color: var(--brand-2);
    }

    .toast {
      position: fixed;
      right: 16px;
      bottom: calc(var(--player-height) + 16px);
      z-index: 80;
      max-width: min(360px, calc(100% - 32px));
      padding: 13px 15px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--text);
      background: rgba(20,20,19,.94);
      box-shadow: var(--shadow);
      transform: translateY(16px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s ease, transform .2s ease;
      font-weight: 800;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: none;
      place-items: center;
      padding: 18px;
      background: rgba(0,0,0,.58);
      backdrop-filter: blur(14px);
    }

    .dialog-backdrop.open {
      display: grid;
    }

    .station-dialog {
      width: min(680px, 100%);
      max-height: min(720px, calc(100vh - 36px));
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      padding: 18px;
    }

    .dialog-head {
      display: grid;
      grid-template-columns: 82px minmax(0, 1fr) 44px;
      gap: 14px;
      align-items: start;
    }

    .dialog-logo {
      width: 82px;
      height: 82px;
      border-radius: var(--radius);
      display: grid;
      place-items: center;
      overflow: hidden;
      background: #242421;
      border: 1px solid rgba(255,255,255,.1);
      color: var(--brand-3);
      font-weight: 900;
      font-size: 1.25rem;
    }

    .dialog-head h3 {
      margin: 0;
      font-size: clamp(1.45rem, 4vw, 2.25rem);
      line-height: 1.05;
    }

    .dialog-head p {
      margin: 8px 0 0;
      color: var(--muted);
      line-height: 1.55;
    }

    .dialog-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 18px 0;
    }

    .dialog-fact {
      min-height: 72px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 12px;
      background: rgba(255,255,255,.035);
    }

    .dialog-fact small {
      display: block;
      color: var(--soft);
      font-weight: 900;
      text-transform: uppercase;
    }

    .dialog-fact strong {
      display: block;
      margin-top: 7px;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dialog-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    @media (max-width: 1080px) {
      .appbar-inner {
        grid-template-columns: 1fr auto;
        padding: 14px 0;
      }

      .search {
        grid-column: 1 / -1;
        order: 3;
      }

      .hero,
      .now-panel {
        grid-template-columns: 1fr;
      }

      .dial {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .dial-face {
        max-width: 280px;
        width: 70%;
        justify-self: center;
      }

      .player-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 0;
      }

      .volume {
        grid-column: 1 / -1;
      }

      .player-tools {
        grid-column: 1 / -1;
      }

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

    @media (max-width: 700px) {
      :root {
        --player-height: 172px;
      }

      body[data-density="compact"] {
        --player-height: 172px;
      }

      .shell,
      .appbar-inner,
      .player-inner {
        width: min(100% - 20px, 1520px);
      }

      .quick-actions .ghostable {
        display: none;
      }

      .hero {
        padding-top: 18px;
      }

      .now-copy h2 {
        font-size: clamp(2.45rem, 16vw, 4rem);
      }

      .toolbar {
        align-items: stretch;
        flex-direction: column;
      }

      .brand-affiliation {
        flex-direction: column;
        gap: 4px;
        padding: 12px;
      }

      .toolbar-actions {
        justify-content: stretch;
      }

      .toolbar-actions > * {
        flex: 1 1 auto;
      }

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

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

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

      .player-inner {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .player-controls {
        justify-content: space-between;
      }

      .mini-visualizer {
        display: none;
      }
    }
