/* Fruit Fly Radio shared look. Original artwork from the approved branding conversation.
   Tokens first; pages add only their own layout. */
:root{color-scheme:dark;--bg:#080e0b;--surface:#121a15;--surface-2:#1a241e;--panel:var(--surface);--line:#2c3830;--muted:#a9b5ab;--ink:#f4f1e8;--mint:#c6ff00;--accent:#c6ff00;--button-ink:#11180a;--on-accent:#11180a}
@media(prefers-color-scheme:light){:root{color-scheme:light;--bg:#f6f5ef;--surface:#fff;--surface-2:#eeefe8;--line:#d8dccf;--muted:#56614f;--ink:#111a14;--mint:#456600}}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}
a{color:var(--mint)}
button,input,textarea,select{font:inherit;color:var(--ink);background:var(--surface);border-color:var(--line)}
button{cursor:pointer;touch-action:manipulation}
button:hover{background:color-mix(in srgb,var(--surface),var(--accent) 10%)}
button:disabled{opacity:.45;cursor:default}
button.primary,#acceptAgreement{background:var(--accent)!important;color:var(--button-ink)!important;border-color:var(--accent);font-weight:800}
button.selected,.genres label:has(input:checked){background:var(--surface-2);color:var(--mint);border-color:var(--mint)}
:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.note,.hint,.muted,small{color:var(--muted)}
.eyebrow{color:var(--mint)}
progress,progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}

/* Brand lockup used by standalone page headers. */
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;font-size:16px;line-height:1;letter-spacing:-.4px;font-weight:900;text-transform:uppercase}
.brand img{height:38px;width:38px;object-fit:contain}.brand strong{display:block}.brand em{display:block;font-size:11px;font-style:normal;letter-spacing:4px;color:var(--mint);margin-top:4px}
header nav{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
header nav>a,header nav>strong{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;font-size:14px;font-weight:700;color:var(--ink);text-decoration:none}
header nav>[aria-current="page"]{color:var(--mint)}
.location{font-size:11px;color:var(--muted)}
.brand-wordmark{display:block;width:min(100%,260px);height:130px;object-fit:contain;margin:0 auto 12px}

/* Shared player pieces (Live, My Mix, Talk). */
.equalizer{height:20px;display:flex;align-items:center;justify-content:center;gap:3px;margin:4px auto;color:var(--mint)}
.equalizer i{display:block;width:3px;height:5px;border-radius:3px;background:currentColor}
.equalizer.playing i{animation:fly-bars .7s ease-in-out infinite alternate}
.equalizer.playing i:nth-child(2){animation-delay:-.45s}.equalizer.playing i:nth-child(3){animation-delay:-.2s}.equalizer.playing i:nth-child(4){animation-delay:-.55s}
@keyframes fly-bars{to{height:18px}}
@media(prefers-reduced-motion:reduce){.equalizer.playing i{animation:none;height:12px}}
.shared-volume{display:flex;align-items:center;justify-content:center;gap:10px;max-width:320px;margin:10px auto}
.shared-volume button{min-height:44px;min-width:68px;border:1px solid var(--line);border-radius:999px;padding:0 14px;font-weight:700}
.shared-volume label{margin:0;font-size:13px;color:var(--muted)}
.shared-volume input[type=range]{width:140px;min-height:44px;padding:0;accent-color:var(--accent);background:none;border:0}
.genres label{min-height:44px;display:inline-flex;align-items:center;gap:6px}.genres input{width:20px;height:20px;accent-color:var(--accent)}
.taste-category button,.taste-chips button,.taste-save button{min-height:44px}
.taste-card small,.taste-category button,.taste-chips button,.taste-count{font-size:12px!important}

/* Dialogs and the required agreement. */
dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}dialog a{color:var(--mint)!important}dialog::backdrop{background:#000b}
.agreement-dialog{font-size:15px!important;line-height:1.5!important}.agreement-dialog h2{font-size:22px;line-height:1.2;margin:0 0 14px}.agreement-dialog a{white-space:nowrap}.agreement-dialog p{margin:12px 0}.agreement-dialog button{width:100%;min-height:48px;border-radius:999px!important}.agreement-dialog #agreementError:empty{display:none}
#toast{background:var(--accent);color:var(--button-ink)}

/* Channel pages inside the app shell drop their own headers; the shell provides navigation. */
html.embedded body>header,html.embedded main>header,html.embedded .page-header{display:none}
html.embedded .page-footer{display:none}

/* My Mix and Talk share one simple channel layout. */
body.channel-page{margin:0;min-height:100dvh;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.channel-page main{max-width:640px;margin:0 auto;padding:12px 16px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}
.channel-page .page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:env(safe-area-inset-top)}
.channel-page .page-header .title{display:flex;align-items:center;gap:10px}.channel-page .page-header img{width:40px;height:40px;object-fit:contain}.channel-page .page-header h1{margin:0;font-size:22px}
.channel-page .lead{margin:0;color:var(--muted);font-size:14px;text-align:center}
.channel-action{margin:0;text-align:center}
.channel-action a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--mint);font-size:14px;font-weight:700;text-decoration:none}
.card{padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.card h2{margin:0 0 6px;font-size:18px}
.now-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.now-card .art{width:clamp(96px,24dvh,200px);aspect-ratio:1;object-fit:contain}
.now-card .kicker{margin:6px 0 0;font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--mint)}
.now-card .title{margin:2px 0;font-size:clamp(21px,5vw,28px);line-height:1.2;overflow-wrap:anywhere}
.now-card .sub{margin:0;color:var(--muted);font-size:14px}
.now-card .equalizer:not(.playing){display:none}
.big-play{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:180px;min-height:56px;margin-top:12px;padding:0 28px;border:0;border-radius:999px;background:var(--accent)!important;color:var(--button-ink)!important;font-size:17px;font-weight:800}
.pill-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}
.pill-row button{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:700}
.channel-page details{border-top:1px solid var(--line);margin-top:8px}
.channel-page details>summary{font-weight:700}
.channel-page label{display:block;margin:12px 0 6px;font-size:13px;color:var(--muted)}
.channel-page select,.channel-page textarea,.channel-page input:not([type=checkbox]):not([type=range]){width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;font-size:16px}
.channel-page textarea{min-height:96px;resize:vertical}
.channel-page form button[type=submit],.channel-page .wide{width:100%;min-height:48px;margin-top:12px;border:1px solid var(--line);border-radius:999px;font-weight:800}
.channel-page .page-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;font-size:13px;color:var(--muted)}
.channel-page .page-footer a{display:inline-flex;align-items:center;min-height:44px}
.daily-song{display:flex;align-items:center;min-height:48px;padding:8px 2px;border-top:1px solid var(--line);color:var(--ink);font-weight:700;text-decoration:none}
.daily-song:first-child{border-top:0}
.voice-compose{display:flex;align-items:flex-end;gap:8px}.voice-compose textarea{flex:1;min-width:0}
.voice-icon{flex:0 0 48px;width:48px;height:48px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}
.voice-icon[aria-pressed="true"]{color:#ff8585;border-color:currentColor}.voice-icon svg{pointer-events:none}
@media(prefers-color-scheme:light){.voice-icon[aria-pressed="true"]{color:#b3261e}}
#voiceStatus:empty{display:none}
