/* A viewport-sized player with stable controls and a separate scrolling picker. */
#driving-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;touch-action:manipulation}
#driving-toggle[aria-pressed=true]{color:var(--orange);background:color-mix(in srgb,var(--orange) 18%,transparent);box-shadow:inset 0 0 0 1px currentColor}
#driving-toggle svg{width:24px;height:24px;pointer-events:none}
@media(max-width:600px){.header-actions{flex-wrap:wrap;justify-content:flex-end}}
:root.driving-mode,:root.driving-mode body{overflow:hidden;overscroll-behavior:none;width:100%;height:100%}
/* Avoid WebKit's independently offset fixed-position layers after rotation. */
:root.driving-mode body{position:static;margin:0}
:root.driving-mode body{padding:0!important}
:root.driving-mode body>main,:root.driving-mode body>aside,:root.driving-mode #right-panels,:root.driving-mode .undo-notice{display:none!important}
.driving-shell{--driving-safe-top:max(0px,calc(env(safe-area-inset-top) - var(--driving-reserved-top,0px)));--drive-bg:#eee7db;--drive-surface:#fffaf2;--drive-text:#302a24;--drive-muted:#65594d;--drive-border:color-mix(in srgb,var(--drive-text) 55%,var(--drive-bg));--drive-accent:var(--orange);--drive-on-accent:#fff;position:absolute;inset:0 auto auto 0;z-index:1000;width:100%;height:100dvh;padding:max(10px,var(--driving-safe-top)) max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:var(--drive-bg);color:var(--drive-text);display:flex;flex-direction:column;gap:12px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
:root[data-theme=dark] .driving-shell{--drive-bg:#191714;--drive-surface:#29251f;--drive-text:#fff4e5;--drive-muted:#cebeaa;--drive-border:color-mix(in srgb,var(--drive-text) 55%,var(--drive-bg));--drive-accent:var(--orange);--drive-on-accent:#20180f}
:root:is([data-radio-theme=modern-metallic],[data-radio-theme=modern-black],[data-radio-theme=midnight]) .driving-shell{--drive-bg:#e3eaf0;--drive-surface:#f7fafc;--drive-text:#152b3d;--drive-muted:#435c70;--drive-border:color-mix(in srgb,var(--drive-text) 55%,var(--drive-bg));--drive-accent:#245a7c}
:root[data-theme=dark]:is([data-radio-theme=modern-metallic],[data-radio-theme=modern-black],[data-radio-theme=midnight]) .driving-shell{--drive-bg:#101820;--drive-surface:#1d2a36;--drive-text:#eef7ff;--drive-muted:#b2c8d9;--drive-border:color-mix(in srgb,var(--drive-text) 55%,var(--drive-bg));--drive-accent:var(--orange);--drive-on-accent:#0f2535}
:root[data-radio-theme=matrix] .driving-shell{--drive-bg:#08100b;--drive-surface:#102218;--drive-text:#d6ffe3;--drive-muted:#a5cdb2;--drive-border:color-mix(in srgb,var(--drive-text) 55%,var(--drive-bg));--drive-accent:var(--orange);--drive-on-accent:#082010}
.driving-shell.update-required > :not(#driving-update){display:none!important}
.driving-shell.update-required{overflow:auto}
.driving-update{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;text-align:center;padding:16px;min-height:min-content}
.driving-update p{font-size:clamp(24px,5vw,40px);line-height:1.4;max-width:28em}
.driving-shell .driving-update button{min-width:min(100%,280px);min-height:80px;font-size:24px;border:2px solid var(--drive-accent)}
.driving-shell[hidden],.driving-shell [hidden]{display:none!important}
.driving-shell h1,.driving-shell h2,.driving-shell p{margin:0}
.driving-shell h2{font-size:18px;letter-spacing:0}
.driving-shell button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:64px;border:1px solid var(--drive-border);border-radius:12px;background:var(--drive-surface);color:var(--drive-text);font-size:18px;font-weight:600;line-height:1.2;padding:8px 12px;touch-action:manipulation}
.driving-shell button:disabled{opacity:1;color:var(--drive-muted);background:var(--drive-bg);border-style:dashed;cursor:default}
.driving-shell button:active:not(:disabled){background:var(--drive-border)}
.driving-shell button:focus-visible,.driving-shell input:focus-visible{outline:3px solid var(--drive-accent);outline-offset:2px}
.driving-shell svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.driving-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;min-height:64px}
.driving-header strong{font-size:18px;font-weight:600}
#driving-exit{min-width:96px}
.driving-shell button>svg{display:block;flex-shrink:0}
.driving-shell button>span{min-width:0}
.driving-home{display:flex;flex-direction:column;flex:1;min-height:0;gap:16px}
.driving-playback{flex:none;display:flex;flex-direction:column;gap:10px}
.driving-now{display:flex;align-items:center;gap:14px;height:106px;flex:none}
.driving-now-text{min-width:0;flex:1}
.driving-now h1{font-family:inherit;font-size:clamp(24px,6vw,32px);line-height:1.1;font-weight:700;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#driving-track{font-size:16px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:6px}
.driving-transport{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.driving-transport button{min-height:80px;flex-direction:column;gap:4px}
.driving-transport svg{width:28px;height:28px}
.driving-shell .driving-primary,.driving-shell button[aria-pressed=true]{background:var(--drive-accent);border-color:var(--drive-accent);color:var(--drive-on-accent)}
.driving-transport .driving-primary[data-playing=true] .driving-play-icon,.driving-transport .driving-primary[data-playing=false] .driving-stop-icon{display:none}
.driving-transport .driving-primary[data-error=true]{background:#b42318;border-color:#b42318;color:#fff}
.driving-transport .driving-primary[data-error=true]:active{background:#8f1c13}
.driving-now{position:relative;padding-inline-end:34px}
.driving-loading{position:absolute;inset-inline-end:0;flex:none;width:22px;height:22px;border:3px solid var(--drive-border);border-top-color:var(--drive-text);border-radius:50%;animation:driving-loading-spin 1s linear infinite}
@keyframes driving-loading-spin{to{transform:rotate(360deg)}}
.driving-shell .dropdown-chevron{stroke-width:2}
.driving-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.driving-tools button{min-height:64px}
.driving-tools span{overflow-wrap:anywhere}

.driving-favorites{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
.driving-library-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:none}
.driving-library-heading button{min-height:64px}
.driving-grid-space{flex:1;min-height:64px;position:relative}
.driving-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(var(--driving-rows,3),minmax(64px,1fr));gap:10px}
.driving-shell .driving-station{min-height:64px;justify-content:flex-start;text-align:left;padding:10px;gap:10px;font-size:17px}
.driving-station>span{overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.25}
.driving-logo{flex:none;width:38px;height:38px;object-fit:contain;border-radius:7px}
.driving-empty{padding:16px 8px;font-size:17px;line-height:1.5;color:var(--drive-muted)}
.driving-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:10px;flex:none;text-align:center;font-size:15px;color:var(--drive-muted)}
.driving-pagination button{font-size:28px}
.driving-picker{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.driving-filter-screen{display:flex;flex:1;min-height:0;flex-direction:column;gap:20px}
.driving-filter-fields{display:flex;flex:1;flex-direction:column;gap:20px;overflow:auto;padding:3px}
.driving-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:none}
.driving-filter-field{display:flex;flex-direction:column;gap:8px;font-size:18px;font-weight:600}
.driving-filter-fields select{width:100%;min-height:64px;padding:12px;border:1px solid var(--drive-border);border-radius:12px;background:var(--drive-surface);color:var(--drive-text);font:inherit}
.driving-filter-screen button{min-height:64px}
.driving-filter-actions button{text-transform:uppercase}
.driving-filter-fields select:focus-visible{outline:3px solid var(--drive-accent);outline-offset:2px}
#driving-filter{flex:none;min-height:64px}
.driving-picker-heading{display:flex;align-items:center;gap:16px}
.driving-picker-heading button{min-width:100px;min-height:64px}
#driving-search{width:100%;min-height:64px;flex:none;padding:12px 16px;border:1px solid var(--drive-border);border-radius:12px;font:inherit;font-size:18px;background:var(--drive-surface);color:var(--drive-text)}
#driving-search::placeholder{color:var(--drive-muted);opacity:1}
.driving-channel-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:3px}
.driving-channel-list .driving-station{flex:none;min-height:76px}
@media(min-width:700px){.driving-shell{padding-left:max(20px,env(safe-area-inset-left),calc((100vw - 900px)/2));padding-right:max(20px,env(safe-area-inset-right),calc((100vw - 900px)/2))}.driving-now h1{font-size:30px}}
@media(max-height:700px) and (orientation:portrait){.driving-shell{gap:8px;padding-block:max(8px,var(--driving-safe-top)) max(8px,env(safe-area-inset-bottom))}.driving-home{gap:8px}.driving-playback{gap:8px}.driving-now{height:72px}.driving-now h1{font-size:26px}.driving-transport button{min-height:64px;font-size:16px}.driving-transport svg{width:24px;height:24px}.driving-tools button,.driving-library-heading button{min-height:64px}.driving-favorites{gap:8px}.driving-grid-space{min-height:64px}}
@media(orientation:landscape) and (min-width:500px){.driving-shell{gap:8px;padding-block:max(8px,var(--driving-safe-top)) max(8px,env(safe-area-inset-bottom))}.driving-home{flex-direction:row;gap:20px}.driving-playback{width:44%;min-width:0;gap:8px;overflow:auto}.driving-now{height:78px}.driving-now h1{font-size:24px}.driving-transport button{min-height:64px;font-size:16px}.driving-transport svg{width:24px;height:24px}.driving-tools button{min-height:64px;font-size:16px}.driving-library-heading button{min-height:64px}.driving-library-heading h2{font-size:16px}.driving-favorites{gap:8px}.driving-logo{width:30px;height:30px}.driving-shell .driving-station{font-size:15px;gap:6px;padding:8px}.driving-now-text #driving-track{font-size:14px}}

.driving-filter-field .sleep-choice{width:100%;justify-content:flex-start;min-height:64px;font-size:18px;letter-spacing:0;text-transform:none}
.driving-filter-field .dropdown-chevron{margin-left:auto;width:20px;height:20px}
.driving-filter-menu{max-height: min(420px,calc(100dvh - 32px));max-width:calc(100vw - 28px)}
.driving-shell .driving-filter-menu button{justify-content:flex-start;min-height:64px;border:0;border-radius:3px;background:transparent;color:inherit;font-size:18px;letter-spacing:0;text-transform:none;text-align:left}
.driving-shell .driving-filter-menu button[aria-selected=true]{color:var(--orange);font-weight:700}

.driving-library-heading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.driving-library-heading h2{grid-column:1/-1;font-size:16px;color:var(--drive-muted)}
.driving-library-heading button{width:100%;height:64px}
.driving-shell .driving-station{font-size:18px;border-color:var(--drive-border)}
#driving-track{font-size:14px;color:var(--drive-muted)}
.driving-header{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#driving-exit,.driving-picker-heading button{width:100%;min-width:0;height:64px}
.driving-picker-heading{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none}
@media(max-height:700px) and (orientation:portrait){.driving-now{height:56px}.driving-home,.driving-favorites{gap:6px}.driving-shell{gap:6px}}

.driving-pagination button{height:64px;min-height:64px}

/* Stack favorite artwork so names retain the entire tile width. */
.driving-shell .driving-grid .driving-station{flex-direction:column;justify-content:center;text-align:center;gap:8px;min-height:112px;padding:10px}
.driving-grid .driving-station>span{width:100%;flex:none;min-height:2.5em}
.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(112px,1fr))}
.driving-grid-space{min-height:112px}
@media(max-height:700px) and (orientation:portrait){.driving-now{height:48px}.driving-playback{gap:6px}.driving-pagination button{min-height:64px}.driving-library-heading h2{display:none}}
@media(orientation:landscape) and (min-width:500px){.driving-library-heading h2{display:none}.driving-shell .driving-grid .driving-station{font-size:16px;gap:6px}.driving-grid .driving-logo{width:30px;height:30px}}

@media(orientation:landscape) and (min-width:500px){.driving-favorites{gap:4px}.driving-grid-space{min-height:96px}.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(96px,1fr))}.driving-shell .driving-grid .driving-station{min-height:96px;padding:8px}}

/* Keep a balanced two-row favorites grid on typical portrait phones. */
.driving-shell .driving-grid .driving-station{min-height:128px;padding:8px;gap:6px}
.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(128px,1fr))}
.driving-grid .driving-logo{width:56px;height:56px;border-radius:10px}
@media(max-height:700px) and (orientation:portrait){.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(112px,1fr))}.driving-shell .driving-grid .driving-station{min-height:112px;font-size:16px}.driving-grid .driving-logo{width:48px;height:48px}}
@media(orientation:landscape) and (min-width:500px){.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(112px,1fr))}.driving-grid-space{min-height:112px}.driving-shell .driving-grid .driving-station{min-height:112px;font-size:16px}.driving-grid .driving-logo{width:48px;height:48px}}
@media(orientation:landscape) and (max-height:350px){.driving-shell{gap:4px;padding-block:max(4px,var(--driving-safe-top)) max(4px,env(safe-area-inset-bottom))}.driving-header{min-height:64px}}

/* Use the radio's existing heading typography. */
.driving-header strong,.driving-shell h2{font-family:'DM Sans',Arial,sans-serif;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
.driving-header strong{font-size:18px}
.driving-shell .driving-now h1{font-family:'DM Serif Display',Georgia,serif;font-weight:400;letter-spacing:-.6px}
:root:is([data-radio-theme=modern-metallic],[data-radio-theme=modern-black],[data-radio-theme=midnight],[data-radio-theme=matrix]) .driving-now h1{font-family:'DM Sans',Arial,sans-serif;font-weight:600;letter-spacing:0}
:root:is(:lang(ja),:lang(zh-TW)) :is(.driving-header strong,.driving-shell h2){letter-spacing:normal}

/* Preserve theme hues while making control edges and interaction states distinct. */
.driving-shell button:active:not(:disabled){background:var(--drive-text);color:var(--drive-bg);border-color:var(--drive-text)}
.driving-shell .driving-filter-menu button[aria-selected=true]{background:var(--drive-accent);color:var(--drive-on-accent)}
.driving-shell .driving-filter-menu button:not(:disabled):is(:hover,:focus-visible){background:var(--drive-text);color:var(--drive-bg)}

/* Give artwork all space left after the two-line station label. */
.driving-shell .driving-grid .driving-station{display:grid;grid-template-rows:minmax(0,1fr) 2.5em;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:center}
.driving-grid .driving-logo{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.driving-grid .driving-station>span{align-self:center}

/* Put the saved section-heading space into readable now-playing information. */
.driving-now{height:146px}
.driving-shell .driving-now h1{font-size:34px;line-height:1.12}
.driving-shell #driving-track{font-size:22px;line-height:1.25;color:var(--drive-text);white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-top:8px}
@media(max-height:700px) and (orientation:portrait){.driving-now{height:76px}.driving-shell .driving-now h1{font-size:28px;-webkit-line-clamp:1}.driving-shell #driving-track{font-size:20px;-webkit-line-clamp:1;margin-top:6px}.driving-home,.driving-favorites,.driving-playback,.driving-shell{gap:4px}.driving-grid-space{min-height:96px}.driving-grid{grid-template-rows:repeat(var(--driving-rows,3),minmax(96px,1fr))}.driving-shell .driving-grid .driving-station{min-height:96px}}
@media(orientation:landscape) and (min-width:500px){.driving-now{height:112px}.driving-shell .driving-now h1{font-size:28px}.driving-shell #driving-track{font-size:20px;-webkit-line-clamp:1}}

.driving-shell button:not(.driving-station){text-transform:uppercase}
@media(orientation:landscape) and (max-height:350px){.driving-now{height:88px}.driving-shell .driving-now h1{font-size:26px}.driving-shell #driving-track{font-size:18px;margin-top:4px}}

.driving-transport button{padding:6px;gap:0}
.driving-transport svg{width:56px;height:56px}
@media(max-height:700px){.driving-transport svg{width:48px;height:48px}}

/* Separate station, artist and song into a stable, top-aligned reading order. */
.driving-now{align-items:flex-start;padding-top:6px}
.driving-now-text{display:flex;flex-direction:column;gap:6px}
.driving-shell .driving-now h1{display:block;white-space:nowrap;text-overflow:ellipsis;line-height:1.15}
.driving-shell #driving-artist,.driving-shell #driving-track{display:block;margin:0;font-size:24px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--drive-text)}
.driving-shell #driving-artist{font-weight:600}
@media(max-height:700px) and (orientation:portrait){.driving-now{padding-top:0}.driving-now-text{gap:3px}.driving-shell .driving-now h1{font-size:28px;line-height:1.05}.driving-shell #driving-artist,.driving-shell #driving-track{font-size:20px;line-height:1}}
@media(orientation:landscape) and (min-width:500px){.driving-now{padding-top:0}.driving-now-text{gap:4px}.driving-shell #driving-artist,.driving-shell #driving-track{font-size:20px;line-height:1.1}}

/* Prioritize the music over the channel identity. */
.driving-shell .driving-now h1{font-size:22px;color:var(--drive-muted)}
.driving-shell #driving-artist{font-size:28px;font-weight:600}
.driving-shell #driving-track{font-size:32px;font-weight:700}
@media(max-height:700px) and (orientation:portrait){.driving-shell .driving-now h1{font-size:18px}.driving-shell #driving-artist,.driving-shell #driving-track{font-size:24px}}
@media(orientation:landscape) and (min-width:500px){.driving-shell .driving-now h1{font-size:18px}.driving-shell #driving-artist,.driving-shell #driving-track{font-size:24px;line-height:1}}

.driving-filter-field>span{text-transform:uppercase;letter-spacing:1.6px}
:root:is(:lang(ja),:lang(zh-TW)) .driving-filter-field>span{letter-spacing:normal}

#driving-filter-count{display:block;flex:none;text-align:center;font-size:clamp(64px,12dvh,112px);font-weight:700;line-height:1.1;color:var(--drive-text);font-variant-numeric:tabular-nums}
@media(max-height:600px){#driving-filter-count{font-size:48px}}

.driving-no-ads{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;flex:none;font-size:22px;font-weight:700}
.driving-no-ads.toggle-control input[type=checkbox]{width:100%;height:100%;top:0;transform:none}
.driving-no-ads .toggle-track{width:96px;height:52px;border-radius:28px}
.driving-no-ads .toggle-track:after{width:40px;height:40px;margin:5px}
.driving-no-ads.toggle-control input:checked+.toggle-track:after{transform:translateX(44px)}

:is(#driving-country,#driving-country-menu) .country-flag{width:60px;height:40px;flex:none;object-fit:contain}
#driving-country-menu button{gap:14px}

/* Larger filter names within the existing 64px rows. */
.driving-filter-field .sleep-choice,.driving-shell .driving-filter-menu button{font-size:24px;line-height:1.1;height:64px;min-height:64px}
.driving-filter-field .sleep-choice>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.driving-shell .driving-filter-menu button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-block:8px}

/* A continuous channel list uses the existing row height for artwork and names. */
.driving-channel-list{gap:0;padding:0}
.driving-shell .driving-channel-list .driving-station{height:76px;min-height:76px;flex:none;border:0;border-bottom:1px solid var(--drive-border);border-radius:0;background:transparent;padding:6px 4px;gap:12px;font-size:24px;line-height:1.15}
.driving-channel-list .driving-logo{width:64px;height:64px;border-radius:6px}
.driving-channel-list .driving-station>span{line-height:1.15}
.driving-shell .driving-channel-list .driving-station[aria-pressed=true]{background:var(--drive-accent);color:var(--drive-on-accent)}
.driving-shell .driving-channel-list .driving-station:active{background:var(--drive-text);color:var(--drive-bg)}

/* Controls keep their space; the result count uses only the remaining height. */
.driving-filter-screen{gap:10px;overflow:auto}
.driving-filter-fields{flex:none;overflow:visible;gap:10px}
.driving-no-ads{min-height:64px}
#driving-filter-count{flex:1 1 0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.driving-choice-screen{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
.driving-choice-screen .driving-filter-menu{display:block;position:static;inset:auto;margin:0;flex:1;min-height:0;width:100%;max-width:none;max-height:none;overflow-y:auto;overscroll-behavior:contain;box-shadow:none;padding:4px}
.driving-choice-screen .driving-filter-menu button{height:64px;min-height:64px;flex:none;justify-content:flex-start;font-size:24px}

/* Selection lists occupy the whole driving viewport without navigation chrome. */
.driving-choice-screen{position:absolute;inset:0;z-index:2;padding:max(8px,var(--driving-safe-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--drive-bg);gap:0;overflow:hidden}
.driving-choice-screen>.driving-picker-heading{display:none}
.driving-shell:has(.driving-choice-screen:not([hidden]))>.driving-header{display:none}
.driving-choice-screen .driving-filter-menu{border:0;border-radius:0;padding:0;background:var(--drive-bg)}

.driving-pagination svg{width:56px;height:56px}
@media(max-height:700px){.driving-pagination svg{width:48px;height:48px}}
#driving-now{cursor:pointer;border-radius:8px}
#driving-now:focus-visible{outline:3px solid var(--drive-accent);outline-offset:2px}
.driving-detail{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;gap:12px;padding:max(12px,var(--driving-safe-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:var(--drive-bg);overflow:auto}
.driving-detail-art{height:45dvh;flex:none;min-height:120px;display:flex;align-items:center;justify-content:center}
.driving-detail-image{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;border-radius:8px}

.driving-detail-text{flex:1;min-height:0;overflow:auto;overflow-wrap:anywhere}
.driving-detail-text h2{font-size:18px;color:var(--drive-muted)}
#driving-detail-artist{font-size:28px;font-weight:600;margin-top:8px}
#driving-detail-song{font-size:32px;font-weight:700;line-height:1.15;margin-top:4px}
#driving-detail-programme{font-size:20px;margin-top:8px}
.driving-detail-transport{flex:none}
.driving-detail-hearts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:none}
.driving-detail-hearts button{height:64px;min-height:64px;flex-direction:row;font-size:24px;line-height:1.05;padding:3px;gap:4px}
.driving-detail-hearts button>span{flex:0 1 auto;overflow-wrap:anywhere}
.driving-detail-hearts svg{width:56px;height:56px;flex:0 0 56px;stroke-width:1.7}
.driving-detail-hearts button[aria-pressed=true] svg{fill:currentColor}
@media(orientation:landscape) and (min-width:500px){.driving-detail{padding-left:calc(50% + 14px)}.driving-detail-art{position:absolute;left:14px;top:12px;bottom:12px;width:calc(50% - 28px);height:auto}.driving-detail-hearts button{min-height:64px}}

.driving-pagination button{padding:3px}
.driving-tools svg{width:36px;height:36px}
.driving-tools button{height:64px}
.driving-tools span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

#driving-exit>svg{width:36px;height:36px}

#driving-detail-station{text-transform:none;letter-spacing:0}

.driving-tools button{padding:3px;gap:0}
.driving-tools svg{width:56px;height:56px}
.driving-tools svg{max-width:100%}
@media(max-height:700px){.driving-tools .driving-volume-icon{width:48px;height:48px}}
#driving-mute[aria-pressed=false] .driving-muted-icon,#driving-mute[aria-pressed=true] .driving-audible-icon{display:none}

#driving-filter{height:64px;min-height:64px;max-height:64px;padding:8px 12px;gap:10px}
#driving-filter>svg{width:40px;height:40px;flex:none}
#driving-filter-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.2}

#driving-home-filter{padding:3px}
#driving-home-filter>svg{width:56px;height:56px}

#driving-all{padding:3px}
#driving-all>svg{width:56px;height:56px}
.driving-picker-heading button{padding:3px}
.driving-picker-heading button>svg{width:56px;height:56px}
@media(max-height:700px){.driving-picker-heading button>svg{width:48px;height:48px}}

.driving-grid-space,.driving-pagination{touch-action:pan-y;user-select:none;-webkit-user-select:none}

.driving-search-field{position:relative;flex:none}
#driving-search{padding-right:64px}
#driving-search::-webkit-search-cancel-button{appearance:none;display:none}
#driving-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:48px;height:48px;min-height:48px;padding:4px;border:0;border-radius:8px;background:transparent;color:var(--drive-text)}
#driving-search-clear svg{width:36px;height:36px}
#driving-no-matches{flex:none;font-size:24px;font-weight:600;line-height:1.25;padding:4px 0;color:var(--drive-text)}



#driving-detail-station{font-size:26px;line-height:1.2}


.driving-header{grid-template-columns:minmax(0,1fr) calc((100% - 30px)/4);gap:10px}
@media(orientation:landscape) and (min-width:500px){.driving-header{grid-template-columns:minmax(0,1fr) calc(11% - 7.5px)}}
#driving-exit{min-width:0}
#driving-retry{height:64px;min-height:64px;padding:3px}
#driving-retry svg{width:56px;height:56px;max-width:100%}
#driving-exit{height:64px;min-height:64px;padding:6px 12px}

#driving-exit{font-size:24px;line-height:1.05}

#driving-filter[aria-pressed=false],.driving-picker-heading button{font-size:24px;line-height:1.05}

#driving-search{height:64px}
#driving-search::placeholder{font-size:24px;text-transform:uppercase}

.driving-channel-list{touch-action:pan-y;-webkit-overflow-scrolling:touch}
.driving-channel-list .driving-station{touch-action:pan-y}




.driving-filter-field .sleep-choice{padding-block:3px}
.driving-filter-field .dropdown-chevron{width:56px;height:56px;stroke-width:1.7}
@media(max-height:700px){.driving-filter-field .dropdown-chevron{width:48px;height:48px}}

.driving-filter-actions button{height:64px;min-height:64px;padding:3px;gap:4px;font-size:24px;line-height:1.05}
.driving-filter-actions button>svg{width:56px;height:56px;flex:0 1 56px;min-width:24px}
.driving-filter-actions button>span{flex:0 1 auto;min-width:0;overflow-wrap:anywhere}

/* Large labelled action icons share an optical gap and fit the existing rows. */
#driving-exit,.driving-picker-heading button,.driving-filter-actions button{height:64px;min-height:64px;font-size:24px;line-height:1.05;padding:3px;gap:0}
#driving-exit>svg,.driving-picker-heading button>svg,.driving-filter-actions button>svg{width:56px;height:56px;flex:0 0 56px;min-width:56px;stroke-width:1.7}

.driving-picker-heading button>span{overflow-wrap:anywhere}

#driving-search{font-size:24px}
.driving-search-field>.driving-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:28px;height:28px;color:var(--drive-muted);pointer-events:none}
.driving-search-field:has(#driving-search:not(:placeholder-shown))>.driving-search-icon{display:none}
#driving-search:placeholder-shown{padding-left:50px}

/* Independent, edge-to-edge scenes have no radio face, tint or toolbar. */
#driving-visualization-open{position:absolute;z-index:1;top:max(12px,var(--driving-safe-top));right:max(14px,env(safe-area-inset-right));width:64px;height:64px;min-height:64px;padding:4px}
#driving-visualization-open svg{width:56px;height:56px;stroke-width:1.7}
.driving-visualizations{z-index:4}
#driving-visualization-list{display:block;position:static;flex:1;min-height:0;width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;overflow-y:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch;background:var(--drive-bg);color:var(--drive-text)}
#driving-visualization-list button{display:flex;align-items:center;width:100%;height:64px;min-height:64px;font-size:24px;text-align:left;text-transform:uppercase;white-space:normal}
#driving-visualization{position:absolute;inset:0;z-index:5;overflow:hidden;background:#000;color:#fff;outline:none;filter:none;isolation:isolate;--effect-opacity:1;touch-action:manipulation}
#driving-visualization .frequency-display{filter:none;opacity:1}
#driving-visualization .frequency-display canvas{filter:none;opacity:1}
#driving-visualization-text{display:none;position:absolute;inset:0;overflow:hidden}
#driving-visualization[data-old-eyes] #driving-visualization-text{display:block}
#driving-visualization-text p{position:absolute;inset:0 auto auto 0;width:100%;margin:0;font-size:var(--old-eyes-size,1px);line-height:1.1;white-space:pre-line;overflow-wrap:anywhere;color:#fff}

/* Each scrolling surface must reserve horizontal gestures before touch starts. */
.driving-home,.driving-playback,.driving-detail,.driving-detail-text{touch-action:pan-y pinch-zoom}
.driving-shell img{-webkit-user-drag:none}

/* Reuse the car shell's drawable viewport, including iOS status-area fixes. */
#driving-artwork-fullscreen{display:none;position:absolute;z-index:1;top:max(12px,var(--driving-safe-top));right:calc(max(14px,env(safe-area-inset-right)) + 76px);width:64px;height:64px;min-height:64px;padding:4px}
#driving-artwork-fullscreen svg{width:56px;height:56px;stroke-width:1.7}
@media(orientation:portrait){#driving-artwork-fullscreen{display:flex}}
.driving-detail.driving-artwork-fullscreen{padding:0;gap:0;overflow:hidden;background:#000;touch-action:none;outline:none}
.driving-artwork-fullscreen>:not(.driving-detail-art){display:none!important}
.driving-artwork-fullscreen .driving-detail-art{position:absolute;inset:0;width:100%;height:100%;min-height:0}
.driving-artwork-fullscreen .driving-detail-image{max-width:none;width:100%;height:100%;object-fit:contain;object-position:center;transform-origin:center;border-radius:0;user-select:none;-webkit-user-select:none}
