    :root { --radio-safe-top: env(safe-area-inset-top, 0px); color-scheme: light; --green: #174A2B; --ink: #183326; --muted: #607366; }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body { margin: 0; min-height: 100vh; min-height: 100svh; background: #174A2B; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
    button, input { font: inherit; }
    button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
    button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #5e936d; outline-offset: 6px; }
    .shell { min-height: 100vh; min-height: 100svh; padding: calc(var(--radio-safe-top) + 28px) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 10%, #316340 0%, #174A2B 60%); }
    .masthead { width: min(100%, 1000px); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: #f2f6ed; gap: 16px; }
    .brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
    .brand img { display: block; width: 44px; height: 44px; border-radius: 12px; }
    .badge { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 1.5px; font-weight: 600; }
    .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b7d3a2; }
    main { flex: 1; display: grid; place-items: center; padding: 48px 0; }
    .player { width: min(100%, 930px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 36px; border: 1px solid #ffffff30; border-radius: 32px; background: #f4f5ef; box-shadow: 0 30px 90px #06241250; }
    .art { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, #335b3b, #102e20); box-shadow: 0 16px 36px #163a2530; }
    .fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #dbe8d3; }
    .fallback svg { width: 70px; height: 70px; margin: 0 auto 22px; opacity: .8; }
    .fallback span { font-size: 12px; letter-spacing: 3px; }
    .cover { position: absolute; width: 100%; height: 100%; object-fit: cover; }
    .eyebrow { margin: 0 0 18px; text-transform: uppercase; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 2px; }
    h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.14; letter-spacing: -1px; font-weight: 650; overflow-wrap: anywhere; }
    .artist { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
    .controls { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
    .play { width: 76px; height: 76px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .15s; }
    .play:hover { background: #205e37; }
    .play:active { transform: scale(.96); }
    .play svg { width: 26px; height: 26px; fill: currentColor; }
    .play .play-icon { margin-left: 3px; }
    .spinner { width: 26px; height: 26px; border: 2px solid #ffffff50; border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .status { font-size: 14px; font-weight: 550; margin: 0; line-height: 1.5; }
    .substatus { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
    .notice { font-size: 12px; line-height: 1.6; color: #755522; margin: 18px 0 0; }
    .timeline { margin-top: 24px; }
    progress { display: block; width: 100%; height: 4px; border: none; border-radius: 4px; overflow: hidden; background: #dce2d9; accent-color: var(--green); }
    progress::-webkit-progress-bar { background: #dce2d9; border-radius: 4px; }
    progress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
    progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
    .times { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
    .next { border-top: 1px solid #dce2d9; margin-top: 28px; padding-top: 20px; }
    .next .eyebrow { margin-bottom: 8px; }
    .next-title { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
    .next-artist { margin: 5px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
    .volume { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
    .volume svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
    input[type=range] { width: 100%; height: 28px; accent-color: var(--green); cursor: pointer; }
    .volume output { min-width: 32px; font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
    footer { color: #d4e2cf; width: min(100%, 1000px); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 11px; line-height: 1.7; }
    footer p { margin: 0; opacity: .7; }
    details { max-width: 310px; text-align: right; }
    summary { cursor: pointer; list-style: none; }
    details p { margin-top: 10px; }
    @media (max-width: 700px) {
      .shell { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
      main { padding: 28px 0; }
      .player { max-width: 410px; grid-template-columns: 1fr; padding: 20px; gap: 28px; border-radius: 28px; }
      .art { border-radius: 16px; }
      .eyebrow { margin-bottom: 12px; }
      h1 { font-size: 28px; }
      .artist { font-size: 17px; margin-top: 8px; }
      .controls { margin-top: 24px; }
      .play { width: 68px; height: 68px; }
      footer { max-width: 410px; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

    .header-actions { display: flex; align-items: center; gap: 20px; }
    .logout { padding: 10px 0 10px 12px; min-height: 44px; background: none; border: none; color: #d4e2cf; font-size: 12px; cursor: pointer; }
    .logout:hover { color: white; text-decoration: underline; }
    @media (max-width: 480px) { .header-actions .badge { display: none; } .header-actions { gap: 0; } }

    .song-meta { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; overflow-wrap: anywhere; }
    .lyrics-panel { max-width: none; text-align: left; margin-top: 24px; padding-top: 18px; border-top: 1px solid #dce2d9; }
    .lyrics-panel summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
    .lyrics-text { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; white-space: pre-line; font-size: 16px; line-height: 1.8; color: var(--muted); padding: 12px 4px; }
    .lyrics-line { margin: 0; padding: 9px 0; transition: color .2s; }
    .lyrics-line.active { color: var(--green); font-weight: 650; }
    .lyrics-source { font-size: 11px; color: var(--muted); margin: 12px 0 0; }
    .lyrics-controls { font-size: 11px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
    .lyrics-controls label { display: flex; align-items: center; gap: 5px; min-height: 32px; }
    .lyrics-controls input[type=number] { width: 50px; padding: 5px; border: 1px solid #cbd5c9; border-radius: 6px; font-size: 16px; color: var(--ink); background: #fcfdf9; }
    .lyrics-controls input[type=checkbox] { accent-color: var(--green); }
    .lyrics-controls p { margin: 0; line-height: 1.5; flex-basis: 100%; }
    .lyrics-retry { background: none; border: 1px solid #cbd5c9; border-radius: 8px; padding: 10px 12px; color: var(--green); font-size: 12px; margin-top: 12px; cursor: pointer; }

    .members-link { color: #d4e2cf; font-size: 12px; text-decoration: none; padding: 12px 0; }
    .members-link:hover { color: white; text-decoration: underline; }
    .members-link:focus-visible { outline: 3px solid #5e936d; outline-offset: 4px; }
    @media (max-width: 480px) { .header-actions { gap: 12px; } .logout { padding-left: 0; } }
    @media (max-width: 360px) { .masthead { flex-wrap: wrap; } .header-actions { width: 100%; justify-content: flex-end; } }

.playback-info { flex: 1; min-width: 0; }
.status-line { display: flex; align-items: center; gap: 8px; }
.status-line .status { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.airplay { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; padding: 10px; border: 1px solid #174a2b30; border-radius: 50%; background: #174a2b08; color: var(--green); cursor: pointer; }
.airplay svg { width: 22px; height: 22px; }
.airplay:hover { background: #174a2b14; }
.playback-info #outputStatus { display: block; }
@media (display-mode: standalone) {
  body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--radio-safe-top); background: #174A2B; z-index: 10; pointer-events: none; }
}
.airplay:focus-visible { outline: 3px solid #5e936d; outline-offset: 3px; }
@media (max-width: 700px) {
  .controls { position: sticky; top: calc(var(--radio-safe-top) + 12px); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; background: #f4f5ef; border-radius: 18px; padding: 10px; box-shadow: 0 8px 24px #06241218; }
}

.programme { margin-bottom: 24px; }
.programme .eyebrow { margin-bottom: 7px; }
.programme-title { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 650; color: var(--green); overflow-wrap: anywhere; }
.programme-time { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
