/* The player is a surface, not a card inside a page. */
body[data-view=player]{background:var(--bg)!important}#player-page{min-height:100dvh;background:var(--bg)}.radio-app{border:0!important;box-shadow:none!important;margin:0 auto!important;border-radius:0!important;min-height:100dvh;display:flex;flex-direction:column}.app-heading{padding:calc(10px + env(safe-area-inset-top)) 14px 6px!important;justify-content:flex-end!important;min-height:58px}.app-heading .icon-button{color:var(--ink)}.app-heading .icon-button:hover{color:var(--ink);background:var(--raised)}.player-controls{margin-top:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom))!important}.install-offer{display:none!important}#storage-notice{position:fixed;bottom:0;background:var(--bg)}.app-menu{width:340px;max-width:calc(100% - 28px);margin:16px auto auto}.app-menu .dialog-header h2{font-size:24px;letter-spacing:-1px}.menu-actions{display:flex;flex-direction:column;padding:4px 16px 18px}.menu-actions button{background:none;text-align:left;display:flex;align-items:center;gap:15px;padding:13px 10px;min-height:50px;border-radius:8px;font-size:15px}.menu-actions button:hover{background:var(--raised)}.menu-actions svg{width:20px;height:20px}.app-menu>p{margin:0 26px 24px;font-size:13px;line-height:1.5;color:var(--muted)}#player-page:fullscreen{overflow-y:auto;width:100%;height:100%;background:var(--bg)}:fullscreen .radio-app{width:100%!important;max-width:none!important;min-height:100dvh}.is-fullscreen .app-heading{justify-content:space-between!important}.is-fullscreen #exit-fullscreen{order:2}.radio-app.is-compact{min-height:100dvh}
/* Theme chooser / landing, independent from the selected player's palette. */
#landing{background:#f7f8fa;color:#181b20;overflow:hidden;--ink:#181b20;--muted:#525963;--surface:#e8ebef;--raised:#dce0e6;--line:#181b2026}.site-header{padding-top:24px;padding-bottom:12px}.brand-dot{display:none}.theme-stage{text-align:center;padding:44px 0 30px;max-width:1440px;margin:auto}.theme-stage h1{font-size:clamp(45px,6.3vw,88px);line-height:1.03;letter-spacing:-.065em;font-weight:600;margin:0 20px 20px}.theme-stage>p{font-size:17px;color:#525963;margin:0 20px 32px}.theme-carousel{display:flex;gap:36px;overflow-x:auto;scroll-snap-type:x mandatory;padding:20px max(28px,calc((100% - 960px)/2)) 40px;perspective:1200px;scrollbar-width:none;position:relative}.theme-carousel::-webkit-scrollbar{display:none}.design-card{flex:0 0 280px;scroll-snap-align:center;border-radius:19px;background:#dde1e6;padding:0;overflow:hidden;box-shadow:0 12px 22px #1820301c;transform:rotateY(-9deg);transition:transform .35s,box-shadow .35s}.design-card:hover,.design-card:focus-visible{transform:rotateY(0) translateY(-7px);box-shadow:0 20px 32px #18203026}.design-card>img{width:100%;height:410px;display:block;object-fit:cover;object-position:top}.design-card>span:last-child{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;font-size:18px;font-weight:550;letter-spacing:-.5px;background:#eceef1}.design-card>span svg{width:18px;height:18px}.landing-tape{display:block;width:100px;height:270px;margin:70px auto}.carousel-controls{display:flex;gap:20px;justify-content:center;align-items:center;color:#181b20}.carousel-controls .icon-button{color:#181b20}.carousel-controls span{font:12px ui-monospace,monospace;min-width:42px}.theme-stage.entering .design-card{animation:design-arrive .85s cubic-bezier(.16,.8,.24,1) both}.theme-stage.entering .design-card:nth-child(2){animation-delay:.06s}.theme-stage.entering .design-card:nth-child(3){animation-delay:.12s}@keyframes design-arrive{from{transform:translateX(75px) rotateY(-28deg);opacity:0}to{transform:translateX(0) rotateY(-9deg);opacity:1}}.intro h2,.landing-statement h2{font-size:clamp(40px,5vw,72px);line-height:1.05;letter-spacing:-.06em;font-weight:600;margin:0 0 24px}.intro .primary{background:#181b20;color:white}.landing-main{min-height:660px;padding-top:100px;padding-bottom:100px}.landing-statement{max-width:1184px;margin:0 auto;padding:90px 48px 130px;border-top:1px solid #181b2025}.landing-statement p{font-size:19px;line-height:1.6;color:#525963}.landing-statement .text-button{margin-top:32px}.landing-footer{border-top:1px solid #181b2025;font-size:13px;color:#525963}.theme-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.radio-app,html[data-theme=cassette] .radio-app,html[data-wide=true] .radio-app:not(.is-compact){width:100%;max-width:none!important}.app-heading{padding-right:12px!important}.signal-display{min-height:210px;margin-top:4px}.signal-display h2{font-size:40px;margin-top:32px}.station-grid{max-height:calc(100dvh - 300px)}html[data-theme=signal] .station-grid{padding-top:12px}html[data-theme=signal] .player-controls{padding-top:32px}.theme-stage{padding-top:34px}.theme-stage h1{font-size:52px}.theme-carousel{gap:22px;padding-left:calc((100% - 252px)/2);padding-right:calc((100% - 252px)/2)}.design-card{flex-basis:252px}.design-card>img{height:365px}.landing-tape{margin:48px auto 47px}.site-header{padding:20px 22px 0}.site-header .wordmark{font-size:23px}.site-header .text-button{font-size:13px}.landing-main{display:flex;flex-direction:column;min-height:0;padding:80px 24px 20px;gap:20px}.device-scene{height:370px;width:100%}.intro{width:100%}.intro p{font-size:17px}.landing-statement{padding:70px 24px}.landing-statement h2{font-size:44px}.landing-statement p{font-size:17px}.landing-footer{padding:24px}.cassette-display{margin:0 20px}.tape-case{height:390px}.tape-window{height:250px;top:113px}.tape-reel{width:106px;height:106px}.tape-reel.second{width:96px;height:96px}}
@media(max-height:700px) and (max-width:600px){.signal-display{min-height:160px}.signal-display h2{font-size:34px;margin-top:20px}.tape-case{height:310px}.tape-window{height:195px;top:95px}.tape-reel{width:80px;height:80px}.tape-reel.second{width:70px;height:70px}.tape-label{padding:5px 10px}.tape-label strong{font-size:19px}html[data-theme=signal] .player-controls{padding-top:18px}}
@media(prefers-reduced-motion:reduce){.theme-stage.entering .design-card{animation:none}.design-card{transform:none;transition:none}}
@media(min-width:900px){.theme-stage{padding-top:28px}.theme-stage h1{font-size:64px}.theme-stage h1 br{display:none}.theme-stage h1 br:after{content:' '}.design-card>img{height:330px}.landing-tape{height:230px;margin:50px auto}.theme-carousel{padding-top:12px;padding-bottom:28px}.theme-stage>p{margin-bottom:20px}}
@media(max-width:600px){.theme-stage{padding-top:24px}.theme-stage h1{font-size:46px}.design-card>img{height:330px}.landing-tape{height:230px;margin:50px auto}}

.design-card>img{object-fit:contain;background:#d8dce0}.design-card[data-launch-theme=graphite]>img{background:#181a1e}.design-card[data-launch-theme=signal]>img{background:#e6e8e1}
.design-card{flex-basis:190px}.design-card>img{height:410px}.theme-carousel{padding-left:max(28px,calc((100% - 642px)/2));padding-right:max(28px,calc((100% - 642px)/2))}
@media(min-width:900px){.design-card{flex-basis:180px}.design-card>img{height:390px}.theme-carousel{gap:32px;padding-left:max(28px,calc((100% - 604px)/2));padding-right:max(28px,calc((100% - 604px)/2))}}
@media(max-width:600px){.design-card{flex-basis:190px}.design-card>img{height:410px}.theme-carousel{padding-left:calc((100% - 190px)/2);padding-right:calc((100% - 190px)/2);gap:26px}.theme-stage>p{margin-bottom:18px}}
/* Primary window actions stay on the player surface. */
.app-heading{gap:4px}#screen-fullscreen{margin-right:0}.is-fullscreen .app-heading #screen-fullscreen[hidden]{display:none}
/* Installation is offered on arrival, including browsers without a native prompt. */
body.has-install-offer{--install-space:100px}body.has-install-offer #player-page,body.has-install-offer .radio-app,body.has-install-offer .radio-app.is-compact{min-height:calc(100dvh - var(--install-space))}body.has-install-offer #player-page{padding-bottom:var(--install-space)}body.has-install-offer #landing{padding-bottom:var(--install-space)}
#install-offer.install-offer:not([hidden]){position:fixed;inset:auto 0 0;z-index:10;display:flex!important;align-items:center;gap:16px;max-width:none;margin:0;padding:18px max(24px,calc((100% - 680px)/2));padding-bottom:calc(18px + env(safe-area-inset-bottom));border:0;border-top:1px solid #dedede;border-radius:0;background:#fff;color:#171717;box-shadow:none;min-height:100px;--ink:#171717;--muted:#626262;--raised:#f4f4f4}
#install-offer>img{width:48px;height:48px;border-radius:10px;flex:none}#install-offer>div{flex:1;min-width:0}#install-offer strong{font-size:17px;font-weight:550;letter-spacing:-.4px}#install-offer span{display:block;color:#626262;font-size:13px;line-height:1.4;margin-top:5px}#install-offer>.install-action{background:#171717;color:#fff;font-size:15px;min-height:44px;padding:10px 18px;border-radius:2px;flex:none}#install-offer .icon-button{width:44px;height:44px;border-radius:0;color:#171717;flex:none}#install-offer .icon-button svg{width:20px;height:20px}#install-offer[hidden]{display:none!important}
@media(max-width:600px){#install-offer.install-offer:not([hidden]){padding:14px 16px calc(14px + env(safe-area-inset-bottom));gap:10px;min-height:100px}#install-offer>img{width:40px;height:40px;border-radius:8px}#install-offer strong{font-size:15px}#install-offer span{font-size:12px;max-width:160px}#install-offer>.install-action{padding:10px 12px;font-size:14px}#install-offer .icon-button{width:32px}}
:fullscreen ~ #install-offer{display:none!important}body:has(#player-page:fullscreen) .radio-app{min-height:100dvh}
body.has-install-offer .radio-app .station-grid{max-height:calc(100dvh - 400px)}.is-fullscreen body.has-install-offer .radio-app .station-grid{max-height:calc(100dvh - 300px)}
.is-fullscreen #install-offer.install-offer:not([hidden]){display:none!important}.is-fullscreen #player-page{padding-bottom:0!important}
@media(min-width:900px){body.has-install-offer #landing .design-card>img{height:330px}}@media(max-width:600px){body.has-install-offer #landing .design-card>img{height:350px}}

.player-brand{margin-right:auto!important;font-size:27px!important;letter-spacing:-1.3px!important}#install-offer:not([hidden]){animation:install-arrive .35s cubic-bezier(.2,.8,.2,1) both}@keyframes install-arrive{from{transform:translateY(100%);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){#install-offer:not([hidden]){animation:none}}
@media(max-width:600px){body.has-install-offer{--install-space:144px}#install-offer.install-offer:not([hidden]){display:grid!important;grid-template-columns:40px minmax(0,1fr) 32px;gap:10px 12px;min-height:144px}#install-offer>img{grid-column:1;grid-row:1;align-self:start}#install-offer>div{grid-column:2;grid-row:1}#install-offer strong{font-size:17px;line-height:1.2;display:block;max-width:260px}#install-offer span{max-width:none;font-size:13px}#install-offer>.install-action{grid-column:2;grid-row:2;justify-self:start;font-size:15px;padding:10px 18px}#install-offer #dismiss-install{grid-column:3;grid-row:1;align-self:start}body.has-install-offer .radio-app .station-grid{max-height:calc(100dvh - 300px - var(--install-space))}html[data-theme=cassette] body.has-install-offer .tape-case{min-height:280px}}
.is-fullscreen body.has-install-offer{--install-space:0px}
html[data-theme=cassette] body.has-install-offer .tape-case{min-height:clamp(200px,calc(100dvh - var(--install-space) - 300px),420px)}
body.has-install-offer .tape-reel{--reel-size:clamp(50px,calc((100dvh - var(--install-space) - 356px)/3),128px);width:var(--reel-size);height:var(--reel-size);flex:none}body.has-install-offer .tape-reel.second{width:calc(var(--reel-size) - 10px);height:calc(var(--reel-size) - 10px)}body.has-install-offer .tape-reel i,body.has-install-offer .tape-reel.second i{inset:18%}
body.has-install-offer .tape-window{padding:6px 0}body.has-install-offer .tape-bridge{height:22px;width:64px;flex:none}
