/* A vertical cassette, rendered from shapes; the reels follow actual playback. */
.theme-thumb.cassette{background:#d8dce0}.cassette-mini{width:65px;height:140px;background:#252a30;border:2px solid #68717d;border-radius:7px;position:relative}.cassette-mini:before,.cassette-mini:after{content:'';position:absolute;width:40px;height:40px;left:10px;border:8px solid #a7aeb7;border-radius:50%;top:18px}.cassette-mini:after{top:77px}
html[data-theme=cassette] body{background:#b9bec5}html[data-theme=cassette][data-mode=dark] body{background:#121518}html[data-theme=cassette] .radio-app{width:410px;border-radius:20px;box-shadow:inset 0 1px #ffffff80,0 16px 40px #17233026}html[data-theme=cassette] .app-heading{padding-bottom:14px}html[data-theme=cassette] .app-heading h1{font-size:25px}
.cassette-display{margin:0 18px}.tape-case{height:360px;background:linear-gradient(115deg,#343a43,#1c2026 70%);border:1px solid #111820;border-radius:11px;position:relative;padding:20px 23px;box-shadow:inset 0 1px 1px #ffffff50,0 2px 1px #ffffff90;overflow:hidden;color:#e9edf1}.tape-screw{position:absolute;width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#9ca4ae,#343b45);box-shadow:0 0 0 1px #111820}.tape-screw:after{content:'';height:1px;width:6px;background:#171c24;position:absolute;top:3px;left:1px;transform:rotate(-35deg)}.tape-screw.tl{top:9px;left:9px}.tape-screw.tr{top:9px;right:9px}.tape-screw.bl{bottom:9px;left:9px}.tape-screw.br{bottom:9px;right:9px}
.tape-label{position:relative;background:#e3e6e9;color:#19202a;border-radius:3px;padding:10px 12px 12px;margin-bottom:14px;z-index:1;border-top:3px solid #b54632}.tape-label span{font:10px ui-monospace,monospace;display:block;margin-bottom:6px}.tape-label strong{font-size:23px;letter-spacing:-1px;line-height:1.08;display:block;overflow-wrap:anywhere;max-height:52px;overflow:hidden}
.tape-window{position:absolute;left:50%;top:114px;transform:translateX(-50%);width:174px;height:222px;background:linear-gradient(115deg,#06090c,#222932);border:1px solid #58616c;border-radius:80px;box-shadow:inset 0 2px 8px #000;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:9px 0}.tape-reel{width:94px;height:94px;flex-shrink:0;border-radius:50%;position:relative;background:repeating-radial-gradient(circle,#252a30 0 2px,#3c4149 3px,#20252b 4px);border:1px solid #636c76;box-shadow:0 2px 5px #0009}.tape-reel i{position:absolute;inset:17px;border:8px solid #aeb6c0;border-radius:50%;background:repeating-conic-gradient(#1b222b 0 45deg,#b4bdc7 45deg 60deg);animation:tape-turn 7s linear infinite;animation-play-state:paused;box-shadow:inset 0 0 0 8px #b5bdc7,0 0 0 1px #151c25}.tape-reel i:after{content:'';position:absolute;inset:11px;border-radius:50%;background:#171e28;border:1px solid #e5e9ef}.tape-reel.second{width:84px;height:84px}.tape-reel.second i{inset:13px;animation-duration:5.7s}.tape-bridge{height:28px;width:80px;border:1px solid #69727e;background:linear-gradient(90deg,#464b50,#12171d,#464b50)}.tape-edge{position:absolute;right:10px;top:140px;bottom:50px;border-left:1px solid #ffffff18;width:23px;display:flex;align-items:center;justify-content:center}.tape-edge span{writing-mode:vertical-rl;font:12px ui-monospace,monospace;letter-spacing:5px;color:#a9b2be}.tape-bottom{position:absolute;left:24px;right:24px;bottom:12px;display:flex;gap:20px;justify-content:center;align-items:center}.tape-bottom i{width:7px;height:7px;border-radius:50%;background:#06090d;box-shadow:inset 0 0 0 1px #747c86}.tape-bottom span{width:70px;height:5px;border:1px solid #777e87;border-radius:2px}
.cassette-display[data-playback=playing] .tape-reel i{animation-play-state:running}.is-hidden .tape-reel i{animation-play-state:paused!important}#tape-status{font:11px/1.5 ui-monospace,monospace;color:var(--muted);margin:12px 0 6px;min-height:17px}.cassette-selector{display:flex;align-items:center;gap:12px;width:100%;padding:10px 0 14px;color:var(--ink);font-size:14px}.cassette-selector span:first-child{margin-right:auto}.cassette-selector svg{width:19px;height:19px}.cassette-selector span:nth-child(2){font:12px ui-monospace,monospace;color:var(--muted)}
html[data-theme=cassette] .signal-only{display:inline-flex}html[data-theme=cassette] .current-info,html[data-theme=cassette] .current-mark{display:none}html[data-theme=cassette] .now-playing{justify-content:center;gap:1px;margin-bottom:15px}html[data-theme=cassette] .play-button,html[data-theme=cassette] .station-step{border-radius:5px;width:82px;height:58px;background:var(--raised);color:var(--ink);border:1px solid var(--line);box-shadow:inset 0 1px #ffffff60,0 3px 0 #0003;transition:transform .16s,box-shadow .16s}html[data-theme=cassette] .play-button{width:104px;background:var(--control);color:var(--on-control)}html[data-theme=cassette] .play-button:active,html[data-theme=cassette] .station-step:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff60,0 1px 0 #0003}html[data-theme=cassette] .player-controls{padding:16px 18px 18px;background:transparent}html[data-theme=cassette] .volume-row{max-width:270px}html[data-theme=cassette] .is-compact .tape-case{height:auto;padding:12px}.is-compact .tape-window, .is-compact .tape-edge,.is-compact .tape-bottom,.is-compact .tape-screw{display:none}.is-compact .tape-label{margin:0}.is-compact #tape-status{margin-bottom:0}html[data-theme=cassette] .is-compact .cassette-selector{padding-bottom:8px}
#station-dialog-body .station-grid{max-height:none;overflow:visible}#station-dialog-body{overflow-y:auto;min-height:0;max-height:60dvh}#station-dialog-body .section-heading{padding-top:4px}#station-dialog{max-height:90dvh}#station-dialog .dialog-header h2{font-size:23px}
@media(max-width:600px){html[data-theme=cassette] .radio-app{max-width:calc(100% - 24px)}.tape-case{height:340px}.tape-window{top:107px;height:209px}.tape-reel{width:88px;height:88px}.tape-reel.second{width:78px;height:78px}.tape-reel i{inset:14px}.tape-label strong{font-size:22px}}
@keyframes tape-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.tape-reel i{animation:none}html[data-theme=cassette] .play-button,html[data-theme=cassette] .station-step{transition:none}}
html[data-theme=cassette] .cassette-display{flex:1;display:flex;flex-direction:column}.cassette-selector{background:transparent}.tape-case{flex:1;min-height:420px}.tape-window{top:28%;height:64%;max-height:320px;width:57%;max-width:200px;padding:12px 0}.tape-reel{width:128px;height:128px}.tape-reel.second{width:118px;height:118px}.tape-reel i{inset:22px}.tape-reel.second i{inset:18px}html[data-theme=cassette] .player-controls{margin-top:12px}html[data-theme=cassette] .is-compact .tape-case{min-height:0;flex:0}html[data-theme=cassette] .is-compact .cassette-display{flex:0}
@media(max-height:700px){.tape-case{min-height:300px}.tape-window{top:32%;height:60%;padding:6px 0}.tape-reel{width:86px;height:86px}.tape-reel.second{width:76px;height:76px}.tape-reel i{inset:12px}.tape-reel.second i{inset:9px}}
