@font-face{font-family:'Hagrid Local';src:local('Hagrid Text Regular'),local('Hagrid Text'),local('HagridText-Regular');font-weight:100 900;font-display:swap}
@font-face{font-family:'Helvetica World Local';src:local('Helvetica World'),local('HelveticaWorld-Regular');font-display:swap}
:root{--brand-green:var(--accent,#81b673);--brand-grey:#252525;--brand-red:#e34234;--red-deep:#942920;--bg:#000;--surface:#171717;--raised:#252525;--ink:#fff;--muted:#aaa;--line:#393939;--subtle:#1e1e1e;font-family:'Helvetica World Local','Helvetica Neue',Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);color-scheme:dark}
:root[data-theme=light]{--bg:#fff;--surface:#f7f7f7;--raised:#fff;--ink:#252525;--muted:#666;--line:#ddd;--subtle:#eee;color-scheme:light}
body{background:var(--bg);color:var(--ink)}h1,h2,.cover .name,.album b{font-family:'Hagrid Local','Arial Rounded MT Bold','Helvetica Neue',Arial,sans-serif}h1{font-size:42px;font-weight:600;letter-spacing:-1.6px;line-height:1.15}h2{font-weight:600;letter-spacing:-.6px;margin:7px 0}p{color:var(--muted)}button{transition:background .15s,transform .15s}button:focus-visible,a:focus-visible{outline-color:var(--brand-green)}header{background:#000;border-bottom:1px solid #252525;padding:17px 5%;min-height:101px;gap:25px}header .brand{display:block;line-height:0;flex-shrink:0}header .brand img{width:207px;height:68px;object-fit:contain}.header-subtitle{font-size:11px;letter-spacing:1.7px;color:#fff;border-left:1px solid #393939;padding:8px 0 8px 24px;line-height:1.6}.header-subtitle span{display:block;font-size:8px;color:#8a8a8a;letter-spacing:1.4px}.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}header button{margin-left:0;border:1px solid #444;background:#252525;border-radius:8px;font-size:13px;padding:11px 16px;font-weight:500}header button#import{background:var(--brand-green);color:#142019;border-color:var(--brand-green);font-weight:700}@media (hover:hover) and (pointer:fine){header button#import:hover{background:var(--brand-green)}}#themeToggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:9px;background:transparent;color:#ccc;border-color:#393939}#themeToggle svg{width:20px;height:20px}main{padding-top:36px}.hero{background:var(--surface);border:1px solid var(--line);padding:30px;border-radius:14px;grid-template-columns:205px 1fr;gap:35px;margin-bottom:38px}.hero .cover{width:205px;border:1px solid #ffffff16}.hero p{font-size:14px;line-height:1.7;margin:13px 0 20px}.hero .eyebrow{color:var(--muted);font-weight:500;letter-spacing:1.6px;font-size:10px}.category-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#e34234;margin-right:6px}.primary{background:var(--brand-green);color:#142019;border-radius:7px;font-size:13px;font-weight:700;padding:12px 19px}@media (hover:hover) and (pointer:fine){.primary:hover{background:var(--brand-green)}}.eyebrow{color:var(--brand-green);font-size:10px;font-weight:500;letter-spacing:1.8px}.library-label{font-size:9px;letter-spacing:1.7px}#count{color:var(--muted);font-size:12px;border:1px solid var(--line);padding:7px 11px;border-radius:5px}.toolbar{margin:24px 0}.tabs{background:var(--subtle);border:1px solid var(--line);border-radius:8px;padding:4px}.tabs button{color:var(--muted);font-size:12px;font-weight:500;padding:9px 15px;border-radius:5px}.tabs .active{background:var(--brand-green);color:#142019;box-shadow:none}.toolbar input{background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:13px;border-radius:7px}.toolbar input::placeholder{color:var(--muted)}.cover{background:linear-gradient(145deg,#e34234,#942920);border-radius:10px;box-shadow:0 6px 20px #0002;color:#fff}.cover:before{width:145%;height:145%;top:20%;left:10%;border-color:#ffffff13}.cover:after{width:145%;height:145%;top:-70%;left:-55%;border-color:#ffffff13}.cover .name{font-size:17px;font-weight:500;letter-spacing:-.35px}.cover small{font-family:'Helvetica World Local','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:7px;letter-spacing:2.4px;opacity:.75}.cover .symbol{width:35%;filter:none;z-index:1}.album b{font-size:14px;font-weight:500;letter-spacing:-.2px;margin-top:11px}.album .meta{color:var(--muted);font-size:11px;margin-top:5px}@media (hover:hover) and (pointer:fine){.album:hover .cover{box-shadow:0 12px 28px #0004;transform:translateY(-4px)}}.player{background:var(--raised);color:var(--ink);border-top:1px solid var(--line);box-shadow:0 -10px 35px #0002}.now b{font-size:14px;font-weight:600}.now span{color:var(--muted);font-size:11px}.now .cover{border-radius:6px}.now .symbol{width:55%}.buttons button{color:var(--ink)}.buttons .play{background:linear-gradient(145deg,#e34234,#942920);color:#fff}.seek{color:var(--muted)}input[type=range]{accent-color:#e34234}.extras select,.extras button{background:var(--surface);border-color:var(--line);color:var(--ink);font-size:12px}.notice{color:var(--muted)}dialog{background:var(--raised);color:var(--ink);border:1px solid var(--line);border-radius:14px}dialog::backdrop{background:#000b}.close{background:var(--subtle);color:var(--ink)}.chapters button{background:var(--surface);border-color:var(--line);color:var(--muted)}.chapters button.available{background:color-mix(in srgb,var(--brand-green) 14%,transparent);border-color:color-mix(in srgb,var(--brand-green) 44%,transparent);color:var(--ink)}.chapters button.selected{background:#b63328;color:#fff;border-color:#e34234}.importbox{border-color:var(--muted)}#status{color:var(--brand-green);line-height:1.6}.importbox .primary{margin:4px}#empty{color:var(--muted)}
@media(max-width:700px){header{gap:15px;padding:12px 5%;min-height:82px}header .brand img{width:155px;height:51px}.header-subtitle{display:none}.header-actions{gap:8px}header button#import{font-size:11px;padding:10px}#themeToggle{width:32px;height:34px;padding:7px}h1{font-size:30px}.hero{grid-template-columns:112px 1fr;gap:20px;padding:20px}.hero .cover{width:112px}.hero .eyebrow{font-size:8px;letter-spacing:1px}.hero p{font-size:12px;line-height:1.5;margin:10px 0 14px}.hero .primary{font-size:11px;padding:10px 13px}.cover .name{font-size:12px}.cover small{font-size:6px;letter-spacing:1.4px}.album b{font-size:12px}.album .meta{font-size:10px}.library-label{font-size:8px}h2{font-size:22px}}
@media(max-width:400px){header .brand img{width:130px;height:43px}header button#import{font-size:10px;padding:9px 7px}.hero{grid-template-columns:90px 1fr;gap:15px;padding:16px}.hero .cover{width:90px}h1{font-size:25px;letter-spacing:-1px}.hero p{font-size:11px}.hero .eyebrow{font-size:7px}.cover .name{font-size:11px}}
.now .symbol{color:#fff}
/* Nunito throughout the interface; the supplied logo retains its letterforms. */
:root{font-family:Nunito,system-ui,sans-serif}body{text-transform:capitalize}h1,h2,.cover .name,.album b,.cover small{font-family:Nunito,system-ui,sans-serif}h2{font-weight:800}button,input,select{font-family:inherit}.eyebrow{text-transform:none;font-weight:700;letter-spacing:.5px}.header-subtitle{letter-spacing:.6px;text-transform:none}.header-subtitle span{letter-spacing:.4px;font-size:10px}.library-label{font-size:11px;letter-spacing:.5px}.cover .name{font-weight:800}.cover small{letter-spacing:.5px;font-size:9px}.album b{font-weight:800}.theme-control{display:flex;gap:7px;align-items:center;color:#ccc;font-size:11px}.theme-control #themeToggle{width:43px;height:25px;padding:3px;border:0;border-radius:20px;background:#444;position:relative;display:block}.toggle-thumb{position:absolute;width:19px;height:19px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .18s}.theme-control #themeToggle[aria-checked=true]{background:var(--brand-green)}.theme-control #themeToggle[aria-checked=true] .toggle-thumb{transform:translateX(18px)}
.player{grid-template-columns:24px 1fr 1.4fr 1fr;gap:20px}.expand-player{background:transparent;color:var(--ink);border:0;padding:0;width:24px;height:36px;display:grid;place-items:center}.expand-player svg{width:22px;height:22px;transition:transform .2s}.expand-player[aria-expanded=true] svg{transform:rotate(180deg)}#miniCover{border:0;background:none;padding:0;flex-shrink:0;border-radius:7px}@media (hover:hover) and (pointer:fine){#miniCover:hover{outline:1px solid var(--brand-green);outline-offset:3px}}.player-panel[hidden]{display:none}.player-panel{position:fixed;left:0;top:103px;bottom:104px;width:340px;background:var(--surface);border-right:1px solid var(--line);padding:23px 27px;overflow-y:auto;z-index:9;box-shadow:10px 0 30px #0001}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-heading .eyebrow{color:var(--muted);font-size:12px}.panel-heading button{border:0;background:transparent;color:var(--ink);padding:5px;width:28px;height:28px}.panel-heading svg{width:19px;height:19px}#panelCover .cover{width:100%;max-width:280px;margin:auto}.panel-category{margin-top:22px;color:var(--muted);font-size:11px;display:flex;align-items:center;justify-content:center;gap:4px}#panelTitle{text-align:center;font-size:27px;margin:10px 0 0}#panelChapter{text-align:center;font-size:15px;margin:6px 0}#panelStatus{text-align:center;font-size:10px}.panel-seek{margin-top:20px}.panel-seek>div{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:5px}.panel-buttons{gap:14px;margin:19px 0 25px}.panel-buttons button{font-size:20px}.panel-buttons .play{width:50px;height:50px}.panel-selectors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.panel-selectors label,.panel-options label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.panel-selectors select,.panel-options select{width:100%;background:var(--raised);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:9px;font-size:12px}.panel-options{display:flex;align-items:flex-end;gap:12px;margin-top:17px}.panel-options label{flex:1}.panel-options button{padding:10px;border:1px solid var(--line);background:var(--raised);color:var(--ink);border-radius:7px;font-size:11px}.panel-edition{text-align:center;font-size:10px;color:var(--muted);margin:24px 0 0}.panel-open main{margin-left:340px;max-width:none;padding-left:32px;padding-right:32px}.panel-open .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:1450px){.panel-open .grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){.player{grid-template-columns:24px 1fr 1.5fr}.panel-open .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.player-panel{bottom:104px}}
@media(max-width:800px){.panel-open main{margin-left:0;padding-left:5%;padding-right:5%}.panel-open .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.player-panel{width:340px;max-width:100%;box-shadow:15px 0 60px #0008;top:83px}}
@media(max-width:600px){header .brand img{width:140px;height:46px}.theme-control{gap:4px;font-size:9px}.theme-control #themeToggle{width:37px;height:23px}.toggle-thumb{width:17px;height:17px}.theme-control #themeToggle[aria-checked=true] .toggle-thumb{transform:translateX(14px)}header button#import{font-size:10px;padding:9px 7px}.header-actions{gap:9px}header{gap:10px;min-height:83px}.header-subtitle{display:none}.player{grid-template-columns:20px 1fr;gap:5px 8px;padding-top:9px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.expand-player{grid-row:1;width:20px}.now{grid-column:2;min-height:40px;padding-right:120px}.now b{font-size:12px}.now span{font-size:9px}.controls{grid-column:1 / -1;margin-top:-44px}.controls .buttons{margin-left:auto;width:110px;justify-content:space-between;gap:4px}.controls .seek{margin-top:12px}.player-panel{bottom:105px;top:83px;width:100%;padding:18px 28px}#panelCover .cover{max-width:235px}.panel-buttons{justify-content:center;gap:18px}.panel-buttons .play{width:48px;height:48px}.panel-selectors,.panel-options{max-width:400px;margin-left:auto;margin-right:auto}.cover small{font-size:6px}.cover .name{font-size:12px}.player-panel .cover .name{font-size:20px}.player-panel .cover small{font-size:9px}}
@media(max-width:380px){.theme-control>span{display:none}header .brand img{width:135px}.header-actions{gap:7px}.now{padding-right:110px}.now b{font-size:11px}.controls .buttons{width:103px}}
/* Minimal transport shapes and timeline inspired by the supplied reference. */
.controls{display:flex;flex-direction:column;gap:10px}.controls .seek{order:-1;margin-top:0}.buttons button{display:grid;place-items:center;transition:opacity .15s,transform .15s}@media (hover:hover) and (pointer:fine){.buttons button:hover{opacity:.7;transform:scale(1.06)}}.buttons button svg{width:28px;height:25px;display:block}.buttons .play{background:none;color:var(--ink);border-radius:0;width:40px;height:33px;box-shadow:none}.buttons .play svg{width:32px;height:28px}.buttons .jump{display:none}.controls .buttons{gap:32px}.controls .buttons button{padding:2px 6px}.seek{gap:12px}.seek>span{min-width:31px;font-size:10px;font-variant-numeric:tabular-nums}.seek>span:last-child{text-align:right}input[type=range]{appearance:none;-webkit-appearance:none;border:0;height:4px;padding:0;background:linear-gradient(to right,var(--ink) 0%,var(--ink) var(--progress,0%),var(--line) var(--progress,0%),var(--line) 100%);border-radius:4px;cursor:pointer;outline-offset:6px;margin:10px 0}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:var(--ink);border:0}input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--ink);border:0}.panel-buttons{gap:30px;margin:19px 0 27px}.panel-buttons button{width:42px;height:40px;padding:4px;border:0}.panel-buttons .play{width:45px;height:40px}.panel-buttons #panelBack,.panel-buttons #panelForward{display:none}.panel-seek{position:relative;padding:0 39px;margin-top:26px}.panel-seek>div{position:absolute;top:5px;left:0;right:0;pointer-events:none}.panel-seek>div span{font-size:10px;font-variant-numeric:tabular-nums}.panel-seek input{display:block;width:100%;margin:10px 0}.panel-buttons button svg{width:29px;height:26px}.panel-buttons .play svg{width:32px;height:29px}
@media(max-width:600px){.controls{display:block;margin-top:0;grid-column:1 / -1}.controls .buttons{position:absolute;right:5%;top:12px;width:105px;gap:6px}.controls .buttons button{padding:3px}.controls .buttons button svg{width:25px;height:23px}.controls .buttons .play{width:32px;height:32px}.controls .seek{margin-top:2px}.player{padding-bottom:max(11px,env(safe-area-inset-bottom));min-height:104px}.now{padding-right:118px}.player-panel{bottom:105px}.panel-buttons{justify-content:center;gap:32px}.panel-buttons .play{width:45px;height:40px}}
button,select,option,input{text-transform:capitalize}
/* Desktop drawer on the right; immersive Now Playing on phones. */
.player-panel{left:auto;right:0;border-right:0;border-left:1px solid var(--line);box-shadow:-10px 0 30px #0001}
.panel-open main{margin-left:0;margin-right:340px}
@media(max-width:800px){.panel-open main{margin:0;padding-left:5%;padding-right:5%}.player-panel{box-shadow:-15px 0 60px #0008}}
@media(max-width:600px){
 .player-panel{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;z-index:100;box-sizing:border-box;border:0;padding:calc(18px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;background:linear-gradient(180deg,#94292028 0%,var(--surface) 58%);background-color:var(--surface);display:flex;flex-direction:column;align-items:stretch}
 .player-panel[hidden]{display:none}.panel-open{overflow:hidden}.panel-open>.player{visibility:hidden}.panel-heading{margin:0 0 24px;min-height:30px;flex-direction:row-reverse}.panel-heading .eyebrow{flex:1;text-align:center;margin-right:28px;color:var(--ink);font-size:12px}.panel-heading button{padding:3px}.panel-heading button svg{width:24px;height:24px}
 #panelCover{width:100%;max-width:350px;margin:0 auto}#panelCover .cover{width:100%;max-width:none;border-radius:12px;box-shadow:0 18px 45px #0003}.player-panel .cover .name{font-size:24px}.player-panel .cover small{font-size:10px}
 .panel-category{margin-top:26px;justify-content:flex-start;max-width:400px;width:100%;align-self:center}.player-panel #panelTitle{font-size:29px;margin-top:10px;text-align:left;max-width:400px;width:100%;align-self:center}.player-panel #panelChapter{text-align:left;max-width:400px;width:100%;align-self:center;font-size:16px;margin:4px 0}.player-panel #panelStatus{text-align:left;max-width:400px;width:100%;align-self:center;margin-top:7px}
 .panel-seek{width:100%;max-width:400px;align-self:center;margin-top:32px;padding:0}.panel-seek>div{position:static;margin-top:7px}.panel-seek input{margin:10px 0}.panel-buttons{width:100%;max-width:400px;align-self:center;justify-content:space-around;gap:30px;margin:22px 0 28px}.panel-buttons .play{background:var(--ink);color:var(--bg);border-radius:50%;width:68px;height:68px}.panel-buttons .play svg{width:35px;height:32px}.panel-buttons button svg{width:33px;height:30px}
 .panel-selectors,.panel-options{width:100%;max-width:400px}.panel-edition{margin-top:26px}.panel-options{margin-top:16px}
}
@media(max-width:600px) and (max-height:740px){#panelCover{max-width:245px}.panel-heading{margin-bottom:18px}.panel-category{margin-top:17px}.panel-seek{margin-top:21px}.panel-buttons{margin:15px 0 21px}.panel-buttons .play{width:58px;height:58px}.player-panel #panelTitle{font-size:26px}}
/* Refined library and playback layout. */
:root{--header-height:103px}header{position:sticky;top:0;z-index:30}header::after{content:'';position:absolute;top:100%;left:0;right:0;height:34px;background:linear-gradient(to bottom,#000b,transparent);opacity:0;pointer-events:none;transition:opacity .2s}.is-scrolled header::after{opacity:1}.theme-icon{width:17px;height:17px;color:#bcbcbc}.theme-control{gap:9px}.header-actions{margin-left:auto}.player-panel{top:var(--header-height)}main{padding-top:24px}.toolbar{margin:0 0 26px}.tabs{border-radius:999px;padding:4px;gap:3px}.tabs button{border-radius:999px;padding:10px 21px}.primary,.speed-choice,.chapters button{border-radius:999px}.toolbar input{border-radius:999px}.close{border-radius:50%}.meta{display:flex!important;align-items:center;gap:12px;white-space:nowrap;text-transform:none;font-variant-numeric:tabular-nums;line-height:1.4}.meta-item{display:inline-flex;align-items:center;gap:4px;font-size:11px;white-space:nowrap}.meta-item svg{width:12px;height:12px;opacity:.65;flex:none}.meta-item span{text-transform:none}.book-dialog-header{display:flex;align-items:center;gap:19px;margin:2px 34px 25px 0}#bookDialogCover{width:88px;flex:none}#bookDialogCover .cover{border-radius:9px}#bookDialogCover .name,#bookDialogCover small{display:none}#bookDialogCover .symbol{width:48%}.book-dialog-header h2{margin:6px 0 9px;font-size:27px}#bookMeta{display:flex;gap:15px;align-items:center;margin:0;color:var(--muted)}#bookMeta .meta-item{font-size:12px}.chapters{padding:3px 0 6px;gap:10px}.chapters button{transition:transform .16s,box-shadow .16s,background .16s}@media (hover:hover) and (pointer:fine){.chapters button:hover{transform:translateY(-3px);box-shadow:0 6px 14px #0002}}.chapters button:focus-visible{transform:translateY(-3px)}
#panelTitle,#panelChapter,.panel-edition{text-align:center!important;width:100%;align-self:center}#panelTitle{margin-top:24px!important}.panel-edition{margin-top:10px;font-size:10px}.now{justify-content:center}.now>div:last-child{text-align:center;min-width:0}.now b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.now span[hidden]{display:none}.player{grid-template-columns:24px 1fr 1.4fr;z-index:40}.controls{max-width:520px;width:100%;justify-self:center}.controls .buttons{display:flex;align-items:center;justify-content:center;gap:25px}.controls .buttons button,.panel-buttons button{border-radius:999px}.controls .buttons .speed-trigger,.panel-buttons .speed-trigger{background:none;color:var(--muted);font-size:12px;font-weight:700;padding:3px;width:35px;height:32px;white-space:nowrap}.controls .buttons .chapter-trigger,.panel-buttons .chapter-trigger{color:var(--muted);width:35px;height:32px;padding:5px}.chapter-trigger svg{width:21px!important;height:21px!important}.buttons .play{border-radius:50%}.panel-buttons{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:24px 0 15px}.panel-buttons .speed-trigger,.panel-buttons .chapter-trigger{flex:0 0 34px}.panel-seek{display:grid;grid-template-columns:32px minmax(0,1fr) 38px;align-items:center;gap:9px;margin-top:28px;padding:0;width:100%;max-width:400px;align-self:center}.panel-seek>span{color:var(--muted);font-size:10px;line-height:1;font-variant-numeric:tabular-nums}.panel-seek>span:last-child{text-align:right}.panel-seek input{margin:0;width:100%}.seek{align-items:center}.seek input{margin:0}.seek>span{line-height:1}.seek{min-height:18px}.player-panel #panelTitle{align-self:center}.player-panel .panel-buttons{max-width:400px;width:100%;align-self:center}
#speedDialog{max-width:330px;padding:23px}#speedDialog h2{font-size:20px;margin:6px 0 22px}.speed-choices{display:flex;gap:8px;flex-wrap:wrap}.speed-choice{background:var(--surface);border:1px solid var(--line);color:var(--ink);padding:10px 15px;font-size:13px}.speed-choice[aria-pressed=true]{background:var(--brand-green);border-color:var(--brand-green);color:#142019}
@media(max-width:1050px){.player{grid-template-columns:24px 1fr 1.5fr}}
@media(max-width:600px){
 header{min-height:77px;padding-top:10px;padding-bottom:10px}.theme-control{gap:8px}.theme-icon{width:16px;height:16px}.theme-control>svg{display:block}.toolbar{margin-top:0;margin-bottom:22px}.tabs button{padding:9px 14px;font-size:12px}.tabs{width:auto;flex:1;max-width:360px;margin:0 auto}.toolbar input{font-size:12px}.grid{gap:21px 11px}.meta{gap:7px;justify-content:flex-start;margin-top:6px!important}.meta-item{font-size:9px;gap:3px}.meta-item svg{width:10px;height:10px}.book-dialog-header{gap:14px}#bookDialogCover{width:74px}.book-dialog-header h2{font-size:23px}.book-dialog-header .eyebrow{font-size:10px}
 .player{grid-template-columns:20px 1fr;padding-top:9px;min-height:121px;gap:7px}.now{padding:0 0 0 0;justify-content:flex-start;min-height:34px}.now .cover{width:34px}.now>div:last-child{flex:1;padding-right:34px}.controls{grid-column:1 / -1;display:flex;flex-direction:column;gap:9px;max-width:none}.controls .seek{order:-1;width:100%;margin:0;min-height:18px}.controls .buttons{position:static;width:100%;justify-content:center;gap:25px;margin:0}.controls .buttons button{width:28px;height:25px}.controls .buttons .play{width:30px;height:25px}.controls .buttons .speed-trigger,.controls .buttons .chapter-trigger{width:30px;height:25px}.controls .buttons button svg{width:23px;height:21px}.player-panel{position:fixed;inset:0;top:0;z-index:100;width:100%;height:100dvh;padding-top:calc(18px + env(safe-area-inset-top))}.panel-open>.player{visibility:hidden}.player-panel #panelTitle,.player-panel #panelChapter,.player-panel .panel-edition{text-align:center!important;max-width:400px}.player-panel #panelTitle{margin-top:25px!important}.player-panel #panelChapter{margin-top:6px;margin-bottom:0}.panel-seek{display:grid;padding:0;margin-top:32px;gap:10px}.panel-seek input{margin:0}.panel-buttons{gap:12px;justify-content:space-between;margin:27px 0 17px}.panel-buttons .play{width:60px;height:60px}.panel-buttons .speed-trigger,.panel-buttons .chapter-trigger{width:35px;height:35px}.panel-buttons .chapter-trigger svg{width:23px!important;height:23px!important}.panel-edition{margin-top:17px!important}
}
@media(max-width:360px){.meta{gap:5px}.meta-item{font-size:8px}.meta-item svg{width:9px;height:9px}.tabs button{font-size:11px;padding:8px 12px}}
/* A fixed, opaque header prevents content reappearing above it. */
:root{--page-gutter:max(5vw,calc((100vw - 1260px)/2));--player-height:104px;--fade-rgb:0,0,0}:root[data-theme=light]{--fade-rgb:255,255,255}
header{position:fixed;inset:0 0 auto 0;z-index:30;background:var(--bg);border-color:var(--line);isolation:isolate}header::after{height:54px;background:linear-gradient(to bottom,rgba(var(--fade-rgb),1) 0%,rgba(var(--fade-rgb),.85) 18%,rgba(var(--fade-rgb),.5) 44%,rgba(var(--fade-rgb),.17) 73%,rgba(var(--fade-rgb),0) 100%);transition:opacity .35s ease;z-index:-1}.is-scrolled header::after{opacity:1}main{padding-top:calc(var(--header-height) + 24px)}.wordmark-light{display:none}:root[data-theme=light] .wordmark-dark{display:none}:root[data-theme=light] .wordmark-light{display:block}
h1,h2,.album b,.cover .name{font-weight:600}.now b{font-weight:600}.cover .name{letter-spacing:-.15px}.panel-heading .eyebrow{font-weight:500}
.player-panel{top:calc(var(--header-height) + 12px);right:16px;bottom:calc(var(--player-height) + 12px);width:340px;border:0;border-radius:16px;z-index:35;box-shadow:none;padding:23px 24px;background:var(--surface);scrollbar-width:thin;scrollbar-color:var(--line) transparent}.panel-open main{margin-right:372px;margin-left:0}.player-panel #panelCover .cover{max-width:none}.panel-heading{margin-bottom:20px}.panel-heading .eyebrow{font-size:13px}.player-panel #panelTitle{font-weight:600}
/* A sliding pill moves between the two equal Testament segments. */
.tabs{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;width:292px;flex:none;padding:4px;isolation:isolate}.tabs .tab-thumb{position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;width:calc((100% - 8px)/2);border-radius:999px;background:var(--brand-green);transform:translateX(0);transition:transform .32s cubic-bezier(.22,.68,.18,1)}.tabs[data-selected=new] .tab-thumb{transform:translateX(100%)}.tabs button{position:relative;background:transparent!important;box-shadow:none!important;transition:color .25s;white-space:nowrap;padding:10px 12px}.tabs button.active{color:#142019}.toggle-thumb{transition:transform .32s cubic-bezier(.22,.68,.18,1)}.theme-control #themeToggle{transition:background-color .32s ease}
/* Artwork stays beside the arrow; transport remains at the viewport centre. */
.player{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding-left:calc(var(--page-gutter) - 36px);padding-right:var(--page-gutter);min-height:104px}.expand-player{grid-column:1;grid-row:1;align-self:center}.now{grid-column:2;grid-row:1;justify-content:flex-start;gap:12px;min-width:0;max-width:calc(50vw - var(--page-gutter) - 285px)}.now>div:last-child{text-align:left;min-width:0}.player>.controls{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,38vw);max-width:none;gap:10px}.controls .buttons{gap:25px}@media (hover:hover) and (pointer:fine){#miniCover:hover{outline:none;outline-offset:0}}#miniCover{transition:transform .2s,box-shadow .2s}@media (hover:hover) and (pointer:fine){#miniCover:hover{transform:translateY(-3px);box-shadow:0 8px 18px #0002}}#miniCover:focus-visible{outline:2px solid var(--muted);outline-offset:4px}.toolbar input:focus,.toolbar input:focus-visible{outline:none;border-color:var(--line);box-shadow:none}@media (hover:hover) and (pointer:fine){
.toolbar input:hover{outline:none;border-color:var(--line);box-shadow:none}}@media (hover:hover) and (pointer:fine){.album:hover .meta,.album:hover .meta-item,.album:hover .meta svg{transform:none;filter:none;transition:none}}.meta,.meta-item,.meta svg{pointer-events:none}@media (hover:hover) and (pointer:fine){.album:hover b{transform:none}}.chapters button.available{background:var(--surface);border-color:var(--line);color:var(--ink)}.chapters button.selected{background:var(--brand-green);color:#142019;border-color:var(--brand-green)}@media (hover:hover) and (pointer:fine){.chapters button:not(.selected):hover{border-color:var(--line);background:var(--subtle)}}.chapters button:focus-visible{outline-color:var(--muted)}
#speedDialog{width:min(390px,92vw);max-width:390px}.speed-slider-control{padding:0 4px 12px}.speed-slider-control output{display:block;text-align:center;color:var(--ink);font-size:29px;font-weight:600;margin:5px 0 27px}.speed-slider-control input{width:100%;margin:0}.speed-stops{display:flex;justify-content:space-between;position:relative;margin-top:15px;color:var(--muted);font-size:11px;line-height:1.3}.speed-stops span{position:relative;min-width:25px;text-align:center}.speed-stops span:before{content:'';position:absolute;left:50%;top:-10px;width:3px;height:3px;background:var(--muted);border-radius:50%}.speed-stops span:first-child{transform:translateX(-35%)}.speed-stops span:last-child{transform:translateX(35%)}
@media(max-width:1050px){.player>.controls{width:40vw;left:55%}.now{max-width:calc(35vw - var(--page-gutter))}.controls .buttons{gap:18px}}
@media(max-width:800px){.panel-open main{margin:0}.player-panel{right:12px}.now b{font-size:12px}.player>.controls{width:45vw;left:65%}.now{max-width:calc(42vw - var(--page-gutter) - 36px)}}
@media(max-width:600px){
 :root{--page-gutter:5vw}main,.panel-open main{padding-top:calc(var(--header-height) + 20px)}header::after{height:42px}.toolbar .tabs{width:100%;max-width:360px;flex:1}.tabs button{padding:9px 12px}.player{grid-template-columns:20px 1fr;gap:7px;padding-left:5%;padding-right:5%;padding-top:9px;min-height:121px}.now{grid-column:2;max-width:none;min-width:0;justify-content:flex-start}.now>div:last-child{padding-right:0;flex:none;text-align:left}.player>.controls{grid-column:1/-1;grid-row:2;position:static;transform:none;left:auto;top:auto;width:100%;max-width:none;justify-self:stretch}.controls .buttons{gap:25px}.player-panel{position:fixed;inset:0;top:0;right:0;bottom:0;width:100%;height:100dvh;z-index:100;border-radius:0;padding:calc(18px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom))}.player-panel #panelCover .cover{max-width:none}.player-panel #panelTitle{font-weight:600}.player-panel .panel-heading .eyebrow{font-weight:500}
}
@media(prefers-reduced-motion:reduce){.tabs .tab-thumb,.toggle-thumb{transition:none}}
@media(min-width:601px){.player{grid-template-columns:20px minmax(0,1fr);gap:8px;padding-left:max(4px,calc(var(--library-left,var(--page-gutter)) - 28px))}.expand-player{width:20px}.player>.controls{left:50%}}
.speed-stops{height:19px}.speed-stops span{position:absolute;transform:translateX(-50%)!important;min-width:36px}.speed-stops span:nth-child(1){left:0}.speed-stops span:nth-child(2){left:25%}.speed-stops span:nth-child(3){left:50%}.speed-stops span:nth-child(4){left:75%}.speed-stops span:nth-child(5){left:100%}
/* Keep full-screen mobile transport identical to the desktop player. */
@media(max-width:600px){
 .player-panel .panel-buttons .play{background:none;color:var(--ink);box-shadow:none;border:0;border-radius:0;width:45px;height:40px}
 .player-panel .panel-buttons button:not(.speed-trigger):not(.chapter-trigger) svg{width:29px;height:26px}
 .player-panel .panel-buttons .play svg{width:32px;height:29px}
}
@media(max-width:600px){#panelPlay svg{width:32px;height:29px}}
.track-title{display:block;max-width:100%;padding:5px 0;border:0;background:none;color:var(--ink);font-size:14px;font-weight:600;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border-radius:4px;transition:opacity .15s}@media (hover:hover) and (pointer:fine){.track-title:hover{opacity:.75}}.track-title:focus-visible{outline:2px solid var(--muted);outline-offset:4px}@media(max-width:800px){.track-title{font-size:12px}}
html{scrollbar-gutter:stable}html.popup-open{overflow:hidden;overscroll-behavior:none}html.popup-open body{position:fixed;top:var(--popup-scroll-top);left:0;right:0;overflow:hidden}html.popup-open .player-panel{overflow:hidden}dialog{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* Preserve the desktop library's six-column layout beside the player. */
@media(min-width:1051px){.panel-open .grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:1051px){.panel-open .grid,.panel-open .toolbar{max-width:var(--library-content-width)}}
.search-pill{position:relative;display:block;margin-left:auto;width:220px;flex-shrink:0}.search-pill>svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted);opacity:.6;pointer-events:none}.toolbar .search-pill input{display:block;width:100%;min-width:0;padding-left:43px;margin:0}.search-pill input::-webkit-search-cancel-button{cursor:pointer}@media(max-width:600px){.search-pill{width:100%;margin:0}}
.now .track-title{display:flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1.35;white-space:normal}.now .track-title .track-book{display:block;max-width:100%;color:var(--ink);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.now .track-title .track-chapter{display:block;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}@media(max-width:800px){.now .track-title .track-book{font-size:12px}.now .track-title .track-chapter{font-size:10px}}
.close,.close:focus,.close:focus-visible{background:transparent;border:0;outline:none;box-shadow:none}@media (hover:hover) and (pointer:fine){.close:hover{background:transparent;border:0;outline:none;box-shadow:none}}@media (hover:hover) and (pointer:fine){.close:hover{opacity:.65}}.close:focus-visible{text-decoration:underline;text-underline-offset:4px}
header{justify-content:center}.brand{margin:0 auto}#settingsButton{position:absolute;left:5%;top:50%;transform:translateY(-50%);margin:0;width:38px;height:38px;padding:8px;display:grid;place-items:center;color:var(--muted);background:transparent;border:0;border-radius:50%}#settingsButton svg{width:22px;height:22px}@media (hover:hover) and (pointer:fine){#settingsButton:hover{color:var(--ink);background:var(--subtle)}}#settingsDialog{width:min(420px,92vw);padding:26px}#settingsTitle{font-size:24px;margin:4px 0 26px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:4px 0 27px;border-bottom:1px solid var(--line)}.settings-row h3{font-size:14px;font-weight:600;margin:0 0 5px}.settings-row p{font-size:12px;margin:0;line-height:1.4}.settings-row .theme-control{flex-shrink:0}.settings-row .theme-icon{color:var(--muted)}.settings-version{display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted);padding-top:22px}#appVersion{font-variant-numeric:tabular-nums;text-transform:none}
.close,.close:focus-visible{text-decoration:none;width:24px;height:36px;padding:0;font-size:22px;line-height:1;display:grid;place-items:center;border-radius:0}@media (hover:hover) and (pointer:fine){.close:hover{text-decoration:none;width:24px;height:36px;padding:0;font-size:22px;line-height:1;display:grid;place-items:center;border-radius:0}}.close:focus-visible{opacity:.65}@media(max-width:600px){.close,.close:focus-visible{width:20px}@media (hover:hover) and (pointer:fine){.close:hover{width:20px}}}
#settingsButton{left:auto;right:5%}
/* A shared soft hover surface for supporting icon controls. */
:is(#settingsButton,.speed-trigger,.chapter-trigger,.close,.expand-player,#closePlayer){transition:background-color .18s ease,color .18s ease,opacity .18s ease;border-radius:50%;background:transparent;color:var(--muted)}@media (hover:hover) and (pointer:fine){
:is(#settingsButton,.speed-trigger,.chapter-trigger,.close,.expand-player,#closePlayer):hover{background:var(--subtle);color:var(--ink);opacity:1;transform:none;text-decoration:none;box-shadow:none;outline:none}}@media (hover:hover) and (pointer:fine){
#settingsButton:hover{transform:translateY(-50%)}}@media (hover:hover) and (pointer:fine){.buttons .speed-trigger:hover,.buttons .chapter-trigger:hover{background:var(--subtle);color:var(--ink);opacity:1;transform:none}}.close:focus-visible{background:var(--subtle);opacity:1;text-decoration:none}@media (hover:hover) and (pointer:fine){.close:hover{background:var(--subtle);opacity:1;text-decoration:none}}.speed-trigger{border-radius:999px!important}.settings-accent{padding:18px 0;border-bottom:1px solid var(--line)}#accentButton{display:flex;align-items:center;justify-content:space-between;width:100%;gap:15px;background:transparent;border:0;padding:8px 0;color:var(--ink);font-size:13px;text-align:left;font-weight:500}#accentButton>span{display:flex;align-items:center;gap:10px}#accentButton>svg{width:19px;height:19px;color:var(--muted);transition:transform .2s}#accentButton[aria-expanded=true]>svg{transform:rotate(180deg)}.current-accent{display:inline-block;width:14px;height:14px;background:var(--brand-green);border-radius:50%}.accent-options[hidden]{display:none}.accent-options{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:18px;padding:0 0 4px}.accent-choice{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:transparent;padding:3px 0;color:var(--muted);font-size:10px}.swatch{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--swatch);color:#142019;transition:transform .18s}.swatch svg{width:21px;height:21px;opacity:0}.accent-choice[aria-pressed=true] .swatch svg{opacity:1}@media (hover:hover) and (pointer:fine){.accent-choice:hover .swatch{transform:translateY(-2px)}}.accent-choice[aria-pressed=true]{color:var(--ink)}
@media(max-width:380px){.accent-options{gap:5px}.swatch{width:29px;height:29px}.accent-choice{font-size:9px}}
@media(min-width:601px){.player{gap:12px;padding-left:max(4px,calc(var(--library-left,var(--page-gutter)) - 32px))}}
@media(max-width:600px){.player{column-gap:11px}}
/* Square hit areas keep supporting icon hover surfaces perfectly circular. */
:is(.close,.expand-player,#closePlayer){width:32px;height:32px;min-width:32px;min-height:32px;padding:5px;display:grid;place-items:center;border-radius:50%;flex:none}.close{font-size:22px;line-height:1}.expand-player svg,#closePlayer svg{width:22px;height:22px}.buttons .speed-trigger,.buttons .chapter-trigger{width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%!important}
/* Fade the scrolling content itself rather than overlaying a colour gradient. */
html,body{height:100%;overflow:hidden}body{padding-bottom:0}header::after{display:none}main{position:fixed;top:var(--header-height);left:0;right:0;bottom:calc(var(--player-height) + 36px);overflow-y:auto;overflow-x:hidden;margin:0 auto;padding-top:24px;padding-bottom:35px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.is-scrolled main{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 46px,#000 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 46px,#000 100%)}.panel-open main{left:0;right:372px;margin:0;padding-top:24px}.popup-open main{overflow:hidden}
header{padding:9px 5%;min-height:108px}header .brand img{width:116px;height:90px;object-fit:contain}.player{left:16px;right:16px;bottom:16px;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 45px #0003;min-height:100px;padding-top:13px;padding-bottom:13px;overflow:visible}.player-panel{bottom:calc(var(--player-height) + 32px)}
@media(min-width:601px){.player{grid-template-columns:32px minmax(0,1fr);column-gap:12px;padding-left:max(8px,calc(var(--library-left,var(--page-gutter)) - 60px))}}
#settingsDialog{width:min(440px,94vw);max-width:440px;padding:26px;max-height:88dvh}#settingsTitle{margin-bottom:24px}.settings-section+.settings-section{margin-top:23px}.settings-section-title{background:var(--subtle);font-size:13px;font-weight:600;border-radius:10px;padding:11px 14px;margin:0 0 15px}.settings-row{padding:7px 3px 17px;border:0}.settings-row h4{font-size:13px;font-weight:500;margin:0 0 4px}.settings-row p{font-size:11px}.settings-accent{padding:5px 3px 17px;border:0}.settings-version{padding:4px 3px 7px}.glass-row{padding-top:12px}.preference-toggle{position:relative;width:43px;height:25px;padding:3px;border:0;background:#444;border-radius:999px;flex:none;transition:background .3s}.preference-toggle>span{position:absolute;top:3px;left:3px;width:19px;height:19px;background:#fff;border-radius:50%;transition:transform .32s cubic-bezier(.22,.68,.18,1)}.preference-toggle[aria-checked=true]{background:var(--brand-green)}.preference-toggle[aria-checked=true]>span{transform:translateX(18px)}.glass-slider-row[hidden]{display:none}.glass-slider-row{padding:7px 3px 14px}.glass-slider-row>div{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:12px}.glass-slider-row input{display:block;margin:0;width:100%}
:root{--glass-rgb:25,25,25}:root[data-theme=light]{--glass-rgb:255,255,255}:root[data-glass=true] :is(footer.player,.player-panel,dialog){background:rgba(var(--glass-rgb),var(--glass-opacity,.55));-webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);border:1px solid #ffffff30;box-shadow:0 12px 45px #0002}:root[data-glass=true][data-theme=light] :is(footer.player,.player-panel,dialog){border-color:#ffffffb3}
@media(max-width:800px){.panel-open main{right:0;margin:0;padding-top:24px}}
@media(max-width:600px){header{min-height:99px;padding:7px 5%}header .brand img{width:108px;height:85px}main,.panel-open main{top:var(--header-height);bottom:calc(var(--player-height) + 28px);padding-top:20px}.player{left:9px;right:9px;bottom:max(9px,env(safe-area-inset-bottom));border-radius:18px;padding:10px 13px;grid-template-columns:32px minmax(0,1fr);column-gap:10px;min-height:129px}.player-panel{inset:0;bottom:0}.now{gap:10px}.controls .buttons .speed-trigger,.controls .buttons .chapter-trigger{width:30px;height:30px;min-width:30px;min-height:30px}.controls .buttons{gap:22px}.panel-heading .eyebrow{margin-right:32px}.panel-open .player-panel{border-radius:0}}
main,.panel-open main{bottom:0;padding-bottom:calc(var(--player-height) + 62px)}
@media(max-width:600px){main,.panel-open main{bottom:0;padding-bottom:calc(var(--player-height) + 54px)}}
#settingsDialog .theme-control{gap:9px}#settingsDialog .theme-icon{width:17px;height:17px}#settingsDialog .theme-control #themeToggle{width:43px;height:25px}#settingsDialog .toggle-thumb{width:19px;height:19px}#settingsDialog #themeToggle[aria-checked=true] .toggle-thumb{transform:translateX(18px)}.glass-row .preference-toggle{margin-right:26px}.glass-slider-row{display:grid;grid-template-columns:auto minmax(0,1fr) 34px;align-items:center;gap:13px;padding-top:13px;color:var(--muted);font-size:11px}.glass-slider-row[hidden]{display:none}.glass-slider-row input{margin:0}.glass-slider-row output{text-align:right;font-variant-numeric:tabular-nums}.settings-version{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:9.6px}.accent-options{padding-bottom:0;gap:8px}.accent-choice{padding:0}.toolbar{align-items:center}.toolbar .tabs{height:44px;box-sizing:border-box}.toolbar .tabs button{padding-top:0;padding-bottom:0;height:34px;align-self:center}.toolbar .search-pill input{height:44px;box-sizing:border-box;padding-top:0;padding-bottom:0}.chapters button:focus-visible{transform:translateY(-1px);box-shadow:0 3px 8px #0001}@media (hover:hover) and (pointer:fine){.chapters button:hover{transform:translateY(-1px);box-shadow:0 3px 8px #0001}}.chapters button{transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
#settingsTitle{font-size:23px;font-weight:700;margin:3px 0 27px}.settings-section-title{background:transparent;padding:0;margin:0 0 22px;border-radius:0;font-size:15px;font-weight:700;color:var(--ink)}.settings-row{padding:0 0 23px}.settings-row h4,.setting-field-title{font-size:13px;font-weight:600;color:var(--ink);margin:0 0 7px}.settings-row p{font-size:11px;font-weight:400;color:var(--muted);margin:0;line-height:1.5}.settings-accent{padding:0 0 26px}.setting-field-title{margin-bottom:15px}.accent-options{margin:0;padding:0;gap:10px}.glass-row{padding:0 0 1px}.settings-version{margin-top:27px;padding-top:18px}
footer.player{cursor:pointer}footer.player input[type=range]{cursor:pointer}
.settings-row{align-items:center;min-height:30px;padding-bottom:25px}.settings-row h4,.settings-accent .setting-field-title{margin:0;line-height:1.4}.settings-accent{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:25px;min-height:30px}.settings-accent .setting-field-title{white-space:nowrap;flex-shrink:0}.settings-accent .accent-options{display:grid;grid-template-columns:repeat(6,28px);gap:7px;margin:0;padding:0;flex:none}.settings-accent .swatch{width:28px;height:28px}.settings-accent .swatch svg{width:18px;height:18px}.glass-row{padding-bottom:0}.settings-version{margin-top:25px}@media(max-width:600px){.settings-accent{gap:12px}.settings-accent .accent-options{grid-template-columns:repeat(6,24px);gap:5px}.settings-accent .swatch{width:24px;height:24px}.settings-accent .swatch svg{width:16px;height:16px}}@media(max-width:360px){.settings-accent .accent-options{grid-template-columns:repeat(6,20px);gap:4px}.settings-accent .swatch{width:20px;height:20px}.settings-row h4,.setting-field-title{font-size:12px}}
#speedSlider{background:linear-gradient(to right,var(--brand-green) 0%,var(--brand-green) var(--progress,25%),var(--line) var(--progress,25%),var(--line) 100%)}#speedSlider::-webkit-slider-thumb{background:var(--brand-green)}#speedSlider::-moz-range-thumb{background:var(--brand-green)}
/* Softer setting labels preserve the category hierarchy. */
.settings-row h4,.setting-field-title{color:var(--muted)}
#closePlayer,#closePlayer:focus,#closePlayer:focus-visible{outline:none;box-shadow:none;border:0}#closePlayer:focus-visible{background:var(--subtle)}
/* Three concentric arcs echo the logo at the bottom-right of each album. */
.cover::before{display:none}.cover::after{content:'';position:absolute;top:auto;left:auto;right:-48%;bottom:-48%;width:125%;height:125%;border:0;border-radius:0;pointer-events:none;background:center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='white' stroke-opacity='.075' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='48'/%3E%3Ccircle cx='100' cy='100' r='65'/%3E%3Ccircle cx='100' cy='100' r='82'/%3E%3C/g%3E%3C/svg%3E")}.cover .symbol{width:30%;aspect-ratio:1}.now .symbol{width:55%}#bookDialogCover .symbol{width:48%}.symbol svg{overflow:visible}
.player-panel{will-change:transform,opacity}dialog{will-change:transform,opacity}dialog.popup-entering::backdrop{animation:popup-backdrop-in .21s ease both}dialog.popup-closing::backdrop{animation:popup-backdrop-out .16s ease both}@keyframes popup-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes popup-backdrop-out{from{opacity:1}to{opacity:0}}
@media(max-width:600px){#playerPanel,:root[data-glass=true] #playerPanel{border:0!important;outline:none;box-shadow:none!important}}
@media(prefers-reduced-motion:reduce){dialog.popup-entering::backdrop,dialog.popup-closing::backdrop{animation:none}}
/* Reflective glass edges replace the uniform solid outline. */
:root[data-glass=true] :is(footer.player,.player-panel,dialog){border-color:transparent;box-shadow:inset 0 1px 2px #ffffff12,inset 0 -1px 2px #00000020,0 14px 40px #00000026;isolation:isolate}
:root[data-glass=true] :is(footer.player,.player-panel,dialog)::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;padding:1px;background:linear-gradient(125deg,#ffffff80 0%,#ffffff30 18%,#ffffff08 41%,#00000010 58%,#ffffff12 75%,#ffffff45 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;filter:blur(.25px)}
:root[data-glass=true][data-theme=light] :is(footer.player,.player-panel,dialog){border-color:transparent;box-shadow:inset 0 1px 3px #ffffffaa,inset 0 -1px 2px #0000000b,0 12px 35px #00000015}
:root[data-glass=true][data-theme=light] :is(footer.player,.player-panel,dialog)::before{background:linear-gradient(125deg,#ffffffed 0%,#ffffff77 20%,#ffffff16 43%,#00000010 64%,#ffffff88 100%)}
@media(max-width:600px){:root[data-glass=true] #playerPanel::before{display:none}}
header{border:0;box-shadow:none}.glass-row .preference-toggle{margin-right:0}.settings-row .theme-control{margin-left:auto}#settingsDialog #themeToggle .toggle-thumb{display:grid;place-items:center;color:#4b4b4b}#settingsDialog #themeToggle .toggle-thumb svg{width:13px;height:13px;grid-area:1/1;display:block}#settingsDialog #themeToggle[aria-checked=true] .toggle-sun,#settingsDialog #themeToggle[aria-checked=false] .toggle-moon{display:none}
/* Keep the desktop scroller entirely between the header and floating player. */
@media(min-width:601px){main,.panel-open main{bottom:calc(var(--player-height) + 32px);padding-bottom:24px}}
/* Edge-to-edge iPhone backdrop, with every control inside the safe areas. */
@media(max-width:600px){
 html.mobile-player-open,html.mobile-player-open body{background:var(--surface)}
 #playerPanel,:root[data-glass=true] #playerPanel{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;border:0!important;border-radius:0!important;outline:0;box-shadow:none!important;background:var(--surface)!important;-webkit-backdrop-filter:none;backdrop-filter:none;padding-top:calc(env(safe-area-inset-top,0px) + 18px);padding-right:max(28px,env(safe-area-inset-right,0px));padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px);padding-left:max(28px,env(safe-area-inset-left,0px));scroll-padding-top:calc(env(safe-area-inset-top,0px) + 18px)}
 #playerPanel::before,#playerPanel::after{display:none!important}
 header{padding-top:calc(7px + env(safe-area-inset-top,0px));padding-left:max(5%,env(safe-area-inset-left,0px));padding-right:max(5%,env(safe-area-inset-right,0px))}
 #settingsButton{top:calc(50% + env(safe-area-inset-top,0px)/2)}
}

/* A solid navigation foundation beneath the floating audio card. */
:root{--navigation-height:calc(72px + env(safe-area-inset-bottom,0px))}
.bottom-nav{position:fixed;inset:auto 0 0;height:var(--navigation-height);padding:8px max(5%,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;justify-content:center;gap:clamp(16px,8vw,120px);background:var(--bg)}
.bottom-nav :is(a,button){width:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;color:var(--muted);font-size:12px;font-weight:600;border-radius:10px;transition:color .18s}
.bottom-nav svg{width:25px;height:25px;fill:transparent;transition:fill .18s,color .18s}.bottom-nav :is(a,button)[aria-current=page]{color:var(--brand-green)}@media (hover:hover) and (pointer:fine){
.bottom-nav :is(a,button):hover{color:var(--brand-green)}}.bottom-nav :is(a,button)[aria-current=page] svg{fill:currentColor}@media (hover:hover) and (pointer:fine){
.bottom-nav :is(a,button):hover svg{fill:currentColor}}
.bottom-nav .icon-line{fill:none}.bottom-nav :is(a,button)[data-page=bible][aria-current=page] .icon-line{stroke:var(--bg)}@media (hover:hover) and (pointer:fine){
.bottom-nav :is(a,button)[data-page=bible]:hover .icon-line{stroke:var(--bg)}}
footer.player{bottom:calc(var(--navigation-height) + 10px)}
main,.panel-open main{bottom:calc(var(--navigation-height) + var(--player-height) + 26px);padding-bottom:24px}
.player-panel{bottom:calc(var(--navigation-height) + var(--player-height) + 26px)}
#biblePage[hidden],#blankPage[hidden]{display:none}
@media(max-width:600px){.bottom-nav{gap:0;justify-content:space-around;padding-left:12px;padding-right:12px}.bottom-nav :is(a,button){flex:1;max-width:100px;font-size:11px}footer.player{bottom:calc(var(--navigation-height) + 8px)}main,.panel-open main{bottom:calc(var(--navigation-height) + var(--player-height) + 22px)}.panel-open .bottom-nav{visibility:hidden}#playerPanel{bottom:0}}

/* Compact horizontal identity and fixed translucent scroll chrome. */
header{min-height:76px;padding:10px var(--library-left,5%);justify-content:flex-start;transition:background-color .25s ease;-webkit-backdrop-filter:none;backdrop-filter:none}
header .brand{display:flex;align-items:center;gap:10px;margin:0;line-height:0;filter:none;transition:filter .25s ease}
header .brand-name,header .brand-symbol{display:block;position:relative;overflow:hidden;flex:none}
header .brand-name{width:130px;height:29px}
header .brand-symbol{width:60px;height:54px}
header .brand img{position:absolute;max-width:none;object-fit:fill;margin:0}
header .brand-name img{width:180px;height:132px;left:-25px;top:-101px}
header .brand-symbol img{width:100px;height:73.333px;left:-20px;top:0}
#settingsButton,#headerSearch{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;margin:0;padding:8px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;transition:background-color .18s,color .18s,filter .25s}
#settingsButton{right:var(--library-left,5%);left:auto}
#headerSearch{right:calc(var(--library-left,5%) + 48px)}
#headerSearch svg{width:22px;height:22px}@media (hover:hover) and (pointer:fine){
#headerSearch:hover{background:var(--subtle);color:var(--ink)}}
.is-scrolled header{background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.is-scrolled header .brand,.is-scrolled #settingsButton,.is-scrolled #headerSearch{filter:drop-shadow(0 2px 3px #0005)}
:root[data-theme=light] .is-scrolled header .brand,:root[data-theme=light] .is-scrolled #settingsButton,:root[data-theme=light] .is-scrolled #headerSearch{filter:drop-shadow(0 2px 2px #0003)}
main,.panel-open main{top:0;padding-top:calc(var(--header-height) + 24px)}
.is-scrolled main{-webkit-mask-image:none;mask-image:none}
main::-webkit-scrollbar{width:7px}main::-webkit-scrollbar-track{margin-top:var(--header-height);background:transparent}main::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
header::before{content:'';position:absolute;right:0;top:0;bottom:0;width:9px;background:var(--bg);pointer-events:none}
@media(max-width:600px){header{min-height:76px;padding-top:calc(10px + env(safe-area-inset-top,0px));padding-left:max(5%,env(safe-area-inset-left,0px));padding-right:max(5%,env(safe-area-inset-right,0px))}header .brand{gap:5px}header .brand-name{width:108px;height:25px}header .brand-name img{width:150px;height:110px;left:-21px;top:-84px}header .brand-symbol{width:48px;height:44px}header .brand-symbol img{width:80px;height:58.667px;left:-16px;top:0}#settingsButton,#headerSearch{top:calc(50% + env(safe-area-inset-top,0px)/2)}#settingsButton{right:5%}#headerSearch{right:calc(5% + 43px)}main,.panel-open main{padding-top:calc(var(--header-height) + 20px)}}

header .brand .wordmark-light{filter:url(#logo-key-light)}header .brand .wordmark-dark{filter:url(#logo-key-dark)}
/* Compact mobile preview; extended controls stay in the full player. */
@media(max-width:600px){
 footer.player{min-height:88px;padding:10px 13px 8px;grid-template-columns:28px minmax(0,1fr);column-gap:10px;row-gap:7px}
 footer.player .now{padding:0;min-height:38px;max-width:calc(100% - 128px);gap:9px}
 footer.player .now .cover{width:38px}
 footer.player .now>div:last-child{flex:1;min-width:0;padding:0}
 footer.player .controls{display:contents}
 footer.player .controls .buttons{position:absolute;left:auto;right:14px;top:10px;transform:none;width:116px;height:38px;display:flex;align-items:center;justify-content:center;gap:12px;margin:0}
 footer.player .controls .buttons .speed-trigger,footer.player .controls .buttons .chapter-trigger,footer.player .controls .buttons .jump{display:none}
 footer.player .controls .buttons button,footer.player .controls .buttons .play{width:30px;min-width:0;height:32px;padding:3px}
 footer.player .controls .buttons button svg{width:24px;height:24px}
 footer.player .controls .seek{grid-column:1/-1;grid-row:2;order:initial;width:100%;margin:0;min-height:18px}
 footer.player .now .track-title .track-book{font-size:12px}
 footer.player .now .track-title .track-chapter{font-size:10px}
}
/* Let albums pass beneath the floating preview, stopping at solid navigation. */
main,.panel-open main{bottom:var(--navigation-height);padding-bottom:calc(var(--player-height) + 38px)}
/* Keep the icon before the wordmark on the header's shared centre line. */
header .brand{align-items:center}
header .brand-symbol{order:-1}
/* Fade the header surface itself, leaving its foreground crisp and centred. */
header .brand{transform:scale(.9);transform-origin:left center;filter:drop-shadow(0 2px 3px #0003)}
#headerSearch,#settingsButton{filter:drop-shadow(0 2px 3px #0003)}
header::after{display:block;content:'';position:absolute;inset:0;width:auto;height:auto;z-index:-1;pointer-events:none;background:color-mix(in srgb,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 66.667%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 66.667%,transparent 100%);opacity:0;transition:opacity .25s ease}
.is-scrolled header{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.is-scrolled header::after{opacity:1}
.is-scrolled header .brand,.is-scrolled #headerSearch,.is-scrolled #settingsButton{filter:drop-shadow(0 2px 4px #0006)}
:root[data-theme=light] .is-scrolled header .brand,:root[data-theme=light] .is-scrolled #headerSearch,:root[data-theme=light] .is-scrolled #settingsButton{filter:drop-shadow(0 2px 3px #0004)}
/* Give the fade more room and desktop chrome more headroom. */
header::after{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.88) 62%,rgba(0,0,0,.52) 78%,rgba(0,0,0,.16) 92%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.88) 62%,rgba(0,0,0,.52) 78%,rgba(0,0,0,.16) 92%,transparent 100%)}
@media(min-width:601px){header{padding-top:22px;padding-bottom:10px}#headerSearch,#settingsButton{top:calc(50% + 6px)}}

header .brand{gap:15px;border:0;background:transparent;padding:0}
.bottom-nav button{border:0;background:transparent;font-family:inherit;cursor:pointer}
@media(max-width:600px){header .brand{gap:9px}}

/* Search starts with one centred field and a four-way sliding category pill. */
#searchPage[hidden]{display:none}
.search-page-tools{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:4px}
.search-page-tools .page-search{width:min(520px,100%);margin:0}
.page-search input{display:block;width:100%;height:44px;min-width:0;margin:0;padding:0 18px 0 43px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:14px;outline:none;box-shadow:none}.page-search input:focus{border-color:var(--line);outline:none;box-shadow:none}@media (hover:hover) and (pointer:fine){
.page-search input:hover{border-color:var(--line);outline:none;box-shadow:none}}
.search-categories.tabs{width:min(480px,100%);max-width:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:44px;flex:none;margin:0;padding:4px}
.search-categories.tabs .tab-thumb{width:calc((100% - 8px)/4);transform:translateX(calc(var(--category-index,0)*100%))}
.search-categories.tabs button{height:36px;min-width:0;padding:0 10px;font-size:13px}
@media(max-width:600px){.search-page-tools{gap:16px}.search-categories.tabs{width:100%}.search-categories.tabs button{font-size:12px;padding:0 7px}}

#homePage[hidden]{display:none}
.welcome-card{position:relative;isolation:isolate;overflow:hidden;width:100%;padding:32px 36px;border-radius:20px;background:var(--accent);color:#102016;min-height:164px;display:flex;flex-direction:column;justify-content:center}
.welcome-card::after{content:'';position:absolute;z-index:-1;pointer-events:none;right:-120px;bottom:-230px;width:560px;height:560px;background:center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='white' stroke-opacity='.17' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='48'/%3E%3Ccircle cx='100' cy='100' r='65'/%3E%3Ccircle cx='100' cy='100' r='82'/%3E%3C/g%3E%3C/svg%3E")}
.welcome-card p{color:inherit;font-size:17px;font-weight:500;margin:0 0 7px;line-height:1.4}
.welcome-card h1{color:inherit;font-family:Nunito,system-ui,sans-serif;font-weight:600;font-size:32px;letter-spacing:-.7px;line-height:1.2;margin:0}
.search-categories.tabs{width:min(520px,100%)}
@media(max-width:600px){.welcome-card{padding:26px 24px;min-height:150px;border-radius:18px}.welcome-card p{font-size:15px}.welcome-card h1{font-size:26px}.welcome-card::after{width:400px;height:400px;right:-160px;bottom:-180px}.search-categories.tabs{width:100%}}
/* Hover highlights labels; only the current destination fills its icon. */
.bottom-nav :is(a,button):not([aria-current=page]) svg{color:var(--muted);fill:transparent}
.bottom-nav :is(a,button)[aria-current=page] svg{color:var(--brand-green);fill:currentColor}
.bottom-nav :is(a,button)[data-page=search] svg{fill:none}
.bottom-nav :is(a,button)[data-page=bible]:not([aria-current=page]) .icon-line{stroke:currentColor}

.home-section{margin-top:32px;min-height:120px}
.home-section h2{display:flex;align-items:center;gap:11px;font-family:Nunito,system-ui,sans-serif;font-size:21px;font-weight:600;letter-spacing:-.3px;margin:0 0 20px;color:var(--ink)}
.home-section h2 svg{width:21px;height:21px;flex:none;color:var(--muted)}
.home-empty{font-size:13px;color:var(--muted);margin:0;line-height:1.5}
.recent-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.recent-item{padding:0;border:0;background:transparent;color:var(--ink);text-align:left;min-width:0}
.recent-item .cover{width:100%}@media (hover:hover) and (pointer:fine){.recent-item:hover .cover{transform:translateY(-3px)}}
.recent-item strong{display:block;font-size:14px;font-weight:600;margin-top:10px}.recent-item>span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:1050px){.recent-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.home-section{margin-top:28px;min-height:110px}.home-section h2{font-size:18px;gap:9px;margin-bottom:16px}.home-section h2 svg{width:19px;height:19px}.recent-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-empty{font-size:12px}}

/* Bible search shares the catalogue field's size and centred position. */
#biblePage .toolbar{display:flex;justify-content:center;margin:0 0 26px;padding-top:4px}
#biblePage .bible-search-shell{width:min(520px,100%);margin:0;flex:none;height:44px}
#biblePage .bible-search-shell input{height:44px;width:100%;min-width:0;padding-left:43px;padding-right:148px;font-size:14px;border-radius:999px;background:var(--surface)}
.bible-search-shell .bible-filters.tabs{position:absolute;right:5px;top:5px;width:132px;max-width:none;height:34px;padding:3px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none}
.bible-search-shell .bible-filters.tabs button{padding:0;height:28px;font-size:11px;align-self:center;line-height:1}
.bible-search-shell .bible-filters.tabs .tab-thumb{top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);transform:translateX(0)}
.bible-search-shell .bible-filters.tabs[data-selected=old] .tab-thumb{transform:translateX(100%)}
.bible-search-shell .bible-filters.tabs[data-selected=new] .tab-thumb{transform:translateX(200%)}
@media(max-width:600px){#biblePage .bible-search-shell{width:100%}#biblePage .bible-search-shell input{font-size:12px;padding-right:139px}.bible-search-shell .bible-filters.tabs{width:124px}}
/* Reserve scroll space consistently and keep the preview within page gutters. */
main{scrollbar-gutter:stable}
@media(min-width:601px){footer.player{left:var(--library-left,var(--page-gutter));right:var(--library-left,var(--page-gutter));padding-left:16px;padding-right:16px}}
@media(max-width:600px){footer.player{left:5%;right:5%}}
#recentHeading{justify-content:space-between}#recentHeading svg{order:1;margin-left:auto}
/* Keep search text at iOS's non-zooming input size without disabling pinch zoom. */
@media(max-width:600px){#biblePage .bible-search-shell input,#searchPage .page-search input{font-size:16px}}
.bible-search-shell .bible-filters.tabs{border:0;box-shadow:none}
/* Every page starts on the same compact baseline beneath the header. */
main,.panel-open main{padding-top:calc(var(--header-height) + 12px)}
.search-page-tools,#biblePage .toolbar{padding-top:0}

.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.category-card{border:0;padding:0;background:transparent;color:inherit;text-align:center;min-width:0}
.category-cover{background:linear-gradient(145deg,var(--category-light),var(--category-dark));box-shadow:none;padding:15px}
.category-cover .category-symbol{display:grid;place-items:center;width:30%;aspect-ratio:1;border-radius:50%;background:white;color:var(--category-dark);z-index:1}
.category-symbol svg{width:65%;height:65%}
.category-cover .name{font-family:Nunito,system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1.25;max-width:100%;margin-top:17px}@media (hover:hover) and (pointer:fine){
.category-card:hover .cover{transform:translateY(-3px);box-shadow:0 8px 20px #0002}}
@media(max-width:800px){.category-grid{gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.category-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.category-cover .name{font-size:14px}.category-cover{border-radius:14px}.search-categories.tabs button{padding:0 4px;font-size:11px}}

/* Wider editorial collections give the square album grid a different rhythm. */
.collection-shelf{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:3px 0 15px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.collection-card{position:relative;isolation:isolate;overflow:hidden;min-height:258px;border:0;border-radius:18px;padding:24px;text-align:left;color:#fff;background:linear-gradient(140deg,color-mix(in srgb,var(--collection-accent) 60%,var(--collection-deep)),var(--collection-deep));display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;scroll-snap-align:start;transition:transform .2s,box-shadow .2s}@media (hover:hover) and (pointer:fine){
.collection-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0002}}
.collection-kicker{position:relative;font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;opacity:.85}
.collection-copy{display:flex;flex-direction:column;gap:10px;margin-top:44px;padding-right:12px}
.collection-copy strong{font-family:Nunito,system-ui,sans-serif;font-size:24px;line-height:1.15;font-weight:700;letter-spacing:-.45px;max-width:330px}
.collection-copy>span{font-size:12px;line-height:1.5;color:#ffffffbf;max-width:270px;padding-right:18px}
.collection-arrow{position:absolute;right:18px;bottom:20px;width:22px;height:22px;color:#ffffffbf}.collection-arrow svg{width:100%;height:100%}
.collection-art{position:absolute;inset:0;z-index:-1;pointer-events:none}
.collection-art::before,.collection-art::after{content:'';position:absolute}
.collection-popular .collection-art::before{width:115%;height:130px;top:-55px;right:-20%;background:#ffffff16;transform:rotate(27deg);box-shadow:0 25px 0 #ffffff0b}
.collection-popular .collection-art::after{width:180px;height:180px;right:-80px;bottom:-90px;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 24px #ffffff08,0 0 0 48px #ffffff05}
.collection-preacher .collection-art::before{width:210px;height:210px;right:-55px;top:-85px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 25px #ffffff0b,0 0 0 50px #ffffff08,0 0 0 75px #ffffff05}
.collection-everyday .collection-art::before{inset:-50% -20% auto auto;width:90%;height:110%;transform:rotate(-30deg);background:linear-gradient(90deg,#ffffff00,#ffffff18);border-left:1px solid #ffffff18}
.collection-everyday .collection-art::after{width:150px;height:150px;right:-45px;bottom:-70px;border-radius:50%;border:25px solid #ffffff08}
.collection-short .collection-art::before{width:200px;height:200px;right:-70px;top:-85px;border-radius:50%;border:1px solid #ffffff25;box-shadow:0 0 0 24px #ffffff08,0 0 0 48px #ffffff05}
.collection-short .collection-art::after{width:170px;height:1px;right:0;top:65px;background:#ffffff25;transform:rotate(-30deg)}
#collectionDialog{width:min(460px,92vw)}#collectionTitle{font-family:Nunito,system-ui,sans-serif;font-size:24px;padding-right:30px;line-height:1.2}#collectionDescription{font-size:14px}.collection-empty{font-size:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}
@media(max-width:1050px){.collection-shelf{grid-auto-columns:calc((100% - 20px)/2)}}
@media(max-width:600px){.collection-shelf{grid-auto-columns:86%;gap:14px}.collection-card{min-height:236px;padding:22px;border-radius:16px}.collection-copy strong{font-size:23px}.collection-copy{margin-top:38px}.collection-copy>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.collection-card{transition:none}}

header .brand{transition:transform .3s cubic-bezier(.22,.68,.18,1),filter .25s ease}
.is-scrolled header .brand{transform:scale(.85)}
@media(prefers-reduced-motion:reduce){header .brand{transition:none}.is-scrolled header .brand{transform:scale(.9)}}

@media(min-width:801px){.category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

@media(pointer:coarse){html,body{touch-action:pan-x pan-y}input:not([type=range]),textarea,select{font-size:16px!important}}

.collection-card{justify-content:flex-end}.collection-copy{margin-top:80px;padding-right:20px;padding-bottom:6px}

/* Editorial collections follow the chosen theme; category colours stay on albums. */
.collection-card{--collection-accent:var(--accent);--collection-deep:color-mix(in srgb,var(--accent) 28%,#000)}
.collection-preacher{--collection-deep:color-mix(in srgb,var(--accent) 20%,#000);background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 57%,#000),var(--collection-deep))}
.collection-everyday{--collection-deep:color-mix(in srgb,var(--accent) 34%,#000);background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 72%,#000),var(--collection-deep))}
.collection-short{--collection-deep:color-mix(in srgb,var(--accent) 24%,#000);background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 62%,#000),var(--collection-deep))}

.bottom-nav [data-page=bible] svg .icon-open,.bottom-nav [data-page=bible] svg .icon-line{fill:none;}.bottom-nav [data-page=bible] svg .icon-open{stroke:currentColor}
@media(max-width:600px){.category-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:44%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 0 8px}.category-grid::-webkit-scrollbar{display:none}.category-card{scroll-snap-align:start}.category-card .category-cover{width:100%}}
@media(max-width:600px){.welcome-card{min-height:112px;padding:18px 22px}.welcome-card p{margin-bottom:5px}}

.search-layout-row{display:flex;align-items:center;gap:10px;width:min(520px,100%);min-width:0}
#biblePage .search-layout-row .bible-search-shell,.search-layout-row .page-search{width:0;flex:1;min-width:0;margin:0}
.view-toggle{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;flex:none;width:82px;height:36px;padding:3px;border:0;border-radius:999px;background:var(--subtle);color:var(--muted)}
.view-thumb{position:absolute;z-index:-1;left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/2);border-radius:999px;background:var(--accent);transition:transform .3s cubic-bezier(.22,.68,.18,1)}
.view-toggle[data-view=list] .view-thumb{transform:translateX(100%)}
.view-toggle button{display:grid;place-items:center;width:100%;padding:5px;border:0;background:transparent;color:var(--muted);border-radius:999px}
.view-toggle button[aria-pressed=true]{color:#102016}.view-toggle svg{width:19px;height:19px}
#grid.list-view,.search-results.list-view{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px}
.list-view .album{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;column-gap:16px;row-gap:4px;padding:10px;border-radius:12px;align-items:center}@media (hover:hover) and (pointer:fine){
.list-view .album:hover{background:var(--subtle)}}.list-view .album>.cover{grid-column:1;grid-row:1/3;width:64px;border-radius:9px}
.list-view .album .cover .name,.list-view .album .cover small{display:none}.list-view .album .symbol{width:52%}
.list-view .album>b{grid-column:2;grid-row:1;margin:0;font-size:16px;align-self:end}
.list-view .album>.meta{grid-column:2;grid-row:2;margin:0!important;align-self:start}@media (hover:hover) and (pointer:fine){
.list-view .album:hover .cover{transform:none;box-shadow:none}}
.search-results{margin-top:26px}
@media(max-width:600px){.search-layout-row{gap:8px;width:100%}.view-toggle{width:72px;height:34px}.view-toggle svg{width:17px;height:17px}.bible-search-shell .bible-filters.tabs{width:108px}#biblePage .bible-search-shell input{padding-right:120px}.list-view .album{grid-template-columns:52px minmax(0,1fr);column-gap:12px;padding:8px}.list-view .album>.cover{width:52px}.list-view .album>b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.view-thumb{transition:none}}
#searchPage .search-page-tools{width:min(520px,100%);margin-left:auto;margin-right:auto}
#searchPage .search-categories.tabs{width:calc(100% - 92px);align-self:flex-start}
@media(max-width:600px){#searchPage .search-categories.tabs{width:calc(100% - 80px)}}
/* Bible recordings share their Audio Bible category's purple-indigo palette. */
.cover:not(.category-cover){background:linear-gradient(145deg,#6574C9,#3D4785)}

.scroll-reveal{opacity:var(--reveal-progress,1);transform:translateY(calc((1 - var(--reveal-progress,1))*18px));transition:opacity .22s ease-out,transform .22s ease-out}
@media(prefers-reduced-motion:reduce){.scroll-reveal{opacity:1;transform:none;transition:none}}

#headerSearch{right:calc(var(--library-left,5%) + 96px)}
#headerFavourites{position:absolute;right:calc(var(--library-left,5%) + 48px);top:calc(50% + 6px);transform:translateY(-50%);display:grid;place-items:center;width:38px;height:38px;margin:0;padding:8px;border:0;border-radius:50%;background:transparent;color:var(--muted);filter:drop-shadow(0 2px 3px #0003);transition:background-color .18s,color .18s,filter .25s}
#headerFavourites svg{width:22px;height:22px}@media (hover:hover) and (pointer:fine){#headerFavourites:hover{background:var(--subtle);color:var(--ink)}}
.is-scrolled #headerFavourites{filter:drop-shadow(0 2px 4px #0006)}:root[data-theme=light] .is-scrolled #headerFavourites{filter:drop-shadow(0 2px 3px #0004)}
@media(max-width:600px){#headerFavourites{right:calc(5% + 43px);top:calc(50% + env(safe-area-inset-top,0px)/2)}#headerSearch{right:calc(5% + 86px)}}
/* Both compact search controls share the same 34px pill and centre line. */
.search-layout-row{align-items:center}
.search-layout-row .view-toggle{height:34px;align-self:center}
.search-layout-row .view-toggle button{height:28px;padding:4px}
/* Align the four-way filter with the entire centred search-and-view row. */
#searchPage .search-categories.tabs{width:100%;align-self:stretch}
main{scrollbar-gutter:stable both-edges}

/* Seven compact controls stay on one row in the expanded player only. */
#playerPanel .panel-buttons{gap:5px;justify-content:space-between}
#playerPanel .panel-buttons button{flex:0 0 30px;min-width:0;width:30px;padding:2px}
#playerPanel .panel-buttons .play{flex-basis:38px;width:38px}
#playerPanel .panel-buttons .skip-seconds svg{width:29px!important;height:29px!important}
#playerPanel .panel-buttons .skip-seconds{height:34px;color:var(--ink)}
/* iPhone-only edge-to-edge status area: background and scrolled content extend
   behind system chrome; foreground controls remain below the safe-area inset. */
html.ios-iphone,html.ios-iphone body{min-height:100%;background:var(--bg)}
html.ios-iphone.mobile-player-open,html.ios-iphone.mobile-player-open body{background:var(--surface)}
.ios-iphone header{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:10px;padding-left:max(5%,env(safe-area-inset-left,0px));padding-right:max(5%,env(safe-area-inset-right,0px))}
.ios-iphone #headerSearch,.ios-iphone #headerFavourites,.ios-iphone #settingsButton{top:calc(50% + env(safe-area-inset-top,0px)/2)}
.ios-iphone .is-scrolled header::after{top:env(safe-area-inset-top,0px)}
.ios-iphone main{top:0;scroll-padding-top:calc(var(--header-height) + 12px)}
.ios-iphone dialog{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);margin-top:calc(env(safe-area-inset-top,0px) + 16px)}
@media(max-width:360px){#playerPanel .panel-buttons{gap:2px}#playerPanel .panel-buttons button{flex-basis:27px;width:27px}#playerPanel .panel-buttons .play{flex-basis:32px;width:32px}}

/* The expanded player is a full-screen modal on every device. */
#playerPanel,:root[data-glass=true] #playerPanel{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;border:0!important;border-radius:0!important;box-shadow:none!important;background:var(--surface)!important;backdrop-filter:none;-webkit-backdrop-filter:none;z-index:100;padding:24px 28px 32px;overflow-y:auto;overscroll-behavior:contain;align-items:center}
#playerPanel:not([hidden]){display:flex;flex-direction:column}
#playerPanel::before,#playerPanel::after{display:none!important}
.panel-open>header,.panel-open>footer.player,.panel-open>.bottom-nav{visibility:hidden}
.panel-open main{right:0;margin:0 auto}
#playerPanel .panel-heading{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;width:100%;max-width:none;margin:0 0 24px}
#playerPanel .panel-heading .eyebrow{margin:0;text-align:center}
#playerPanel #closePlayer{position:fixed;left:max(20px,env(safe-area-inset-left,0px));top:calc(24px + env(safe-area-inset-top,0px));width:38px;height:38px;padding:8px;border:0;border-radius:50%;flex:none}
#playerPanel #panelCover{width:min(380px,42dvh,75vw);flex:none}
#playerPanel #panelCover .cover{width:100%;max-width:none}
#playerPanel #panelTitle{width:min(440px,100%);text-align:center;margin:24px 0 0!important}
#playerPanel #panelChapter{width:100%;text-align:center;margin:6px 0 0}
#playerPanel .panel-seek{width:min(440px,100%);max-width:440px;margin-top:30px}
#playerPanel .panel-buttons{width:min(440px,100%);max-width:440px;margin:24px 0 14px}
#playerPanel .panel-edition{width:100%;text-align:center;margin:12px 0 0}
@media(max-width:600px){#playerPanel,:root[data-glass=true] #playerPanel{padding-top:calc(18px + env(safe-area-inset-top,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));padding-left:max(28px,env(safe-area-inset-left,0px));padding-right:max(28px,env(safe-area-inset-right,0px))}#playerPanel #closePlayer{top:calc(18px + env(safe-area-inset-top,0px))}#playerPanel #panelCover{width:min(380px,42dvh,100%)}}
/* Account details and settings share the app's compact visual hierarchy. */
#profilePage[hidden]{display:none}
.profile-hero{text-align:center;padding:14px 0 30px}
.profile-avatar{display:grid;place-items:center;width:104px;height:104px;margin:0 auto 19px;border-radius:50%;background:var(--accent);color:#102016;font-family:Nunito,system-ui,sans-serif;font-size:32px;font-weight:700}
.profile-hero h1{font-family:Nunito,system-ui,sans-serif;font-size:29px;font-weight:600;letter-spacing:-.6px;margin:0 0 8px}
.profile-hero p{font-size:14px;margin:0;line-height:1.5}.profile-hero .profile-tenure{font-size:12px;margin-top:5px;opacity:.75}
.account-settings{width:min(660px,100%);margin:0 auto}
.account-settings>h2{font-family:Nunito,system-ui,sans-serif;font-size:23px;font-weight:600;margin:0 0 24px}
.account-section{padding:0 0 26px;margin:0 0 25px;border-bottom:1px solid var(--line)}
.account-section>h3,.account-section .settings-section-title{font-family:Nunito,system-ui,sans-serif;font-size:16px;font-weight:700;background:transparent;padding:0;margin:0 0 20px;color:var(--ink)}
.account-detail{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0;color:var(--muted);font-size:13px}.account-detail>span:last-child{color:var(--ink);text-align:right}
.account-section .settings-row{display:flex;align-items:center;justify-content:space-between;min-height:30px;padding:0 0 18px;border:0}
.account-section .settings-row h4,.account-section .setting-field-title{margin:0;font-size:13px;font-weight:500;color:var(--muted)}
.account-section .setting-description{font-size:12px;line-height:1.5;margin:0 0 7px;color:var(--muted)}
.account-settings .settings-version{margin:0 0 12px;padding:0;border:0;font-size:10px}
.account-appearance .settings-accent{padding-bottom:25px}.account-appearance .glass-row{padding-bottom:0}
.account-appearance .theme-control #themeToggle{width:43px;height:25px;padding:3px;position:relative}
.account-appearance .toggle-thumb{width:19px;height:19px;position:absolute;left:3px;top:3px;display:grid;place-items:center;color:#4b4b4b}
.account-appearance #themeToggle[aria-checked=true] .toggle-thumb{transform:translateX(18px)}
.account-appearance .toggle-thumb svg{width:13px;height:13px;grid-area:1/1;display:block}
.account-appearance #themeToggle[aria-checked=true] .toggle-sun,.account-appearance #themeToggle[aria-checked=false] .toggle-moon{display:none}
#pushToggle:disabled{cursor:default;opacity:.5}
/* Opening the player never resizes, translates, or repads the underlying page. */
main,body.panel-open main{left:0;right:0;max-width:1400px;margin:0 auto;padding-left:5%;padding-right:5%;padding-top:calc(var(--header-height) + 12px)}
body.panel-open .grid,body.panel-open .toolbar{max-width:none}
body.panel-open .grid{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1050px){body.panel-open .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){body.panel-open .grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-hero{padding:8px 0 26px}.profile-avatar{width:88px;height:88px;font-size:28px;margin-bottom:16px}.profile-hero h1{font-size:25px}.account-settings>h2{font-size:21px}.account-detail{font-size:12px}}
/* Album-derived ambience stays separate from the user's theme colour. */
#playerPanel,:root[data-glass=true] #playerPanel{background:radial-gradient(ellipse at 50% 8%,color-mix(in srgb,var(--playing-colour,#6574C9) 35%,transparent) 0%,transparent 68%),linear-gradient(to bottom,color-mix(in srgb,var(--playing-colour,#6574C9) 12%,var(--surface)),var(--surface) 78%)!important}
:root[data-theme=light] #playerPanel,:root[data-theme=light][data-glass=true] #playerPanel{background:radial-gradient(ellipse at 50% 8%,color-mix(in srgb,var(--playing-colour,#6574C9) 24%,transparent),transparent 68%),linear-gradient(to bottom,color-mix(in srgb,var(--playing-colour,#6574C9) 8%,var(--surface)),var(--surface) 78%)!important}
html.ios-iphone.mobile-player-open,html.ios-iphone.mobile-player-open body{background:color-mix(in srgb,var(--playing-colour,#6574C9) 24%,var(--surface))}
.profile-hero{padding-top:0}
@media(max-width:600px){.profile-hero{padding-top:0}}

/* Expanded-player actions align to the same margins as the library. */
#playerPanel #playerFavourite{position:fixed;right:max(20px,env(safe-area-inset-right,0px));top:calc(24px + env(safe-area-inset-top,0px));width:38px;height:38px;padding:8px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;transition:color .25s,background-color .18s}
#playerPanel #playerFavourite svg{width:22px;height:22px;overflow:visible}
#playerFavourite .favourite-fill{transform:translateY(26px);transition:transform .36s cubic-bezier(.22,.68,.18,1)}
#playerPanel #playerFavourite[aria-pressed=true]{color:var(--accent)}
#playerFavourite[aria-pressed=true] .favourite-fill{transform:translateY(0)}@media (hover:hover) and (pointer:fine){
#playerPanel #playerFavourite:hover{background:var(--subtle)}}
@media(min-width:601px){#playerPanel #closePlayer{left:var(--library-left,var(--page-gutter))}#playerPanel #playerFavourite{right:var(--library-left,var(--page-gutter))}}
@media(max-width:600px){#playerPanel #playerFavourite{top:calc(18px + env(safe-area-inset-top,0px))}}
@media(prefers-reduced-motion:reduce){#playerFavourite .favourite-fill,#playerPanel #playerFavourite{transition:none}}
/* Account navigation follows the simple underlined tab hierarchy. */
.account-content{width:min(820px,100%);margin:0 auto}
.account-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-bottom:1px solid var(--line);margin:0 0 30px}
.account-tabs button{position:relative;border:0;background:transparent;color:var(--muted);font-family:Nunito,system-ui,sans-serif;font-size:16px;font-weight:600;padding:16px 8px 17px;text-align:center;transition:color .2s}
.account-tabs button::after{content:'';position:absolute;left:20%;right:20%;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--accent);transform:scaleX(0);transition:transform .25s ease}
.account-tabs button[aria-selected=true]{color:var(--ink)}.account-tabs button[aria-selected=true]::after{transform:scaleX(1)}@media (hover:hover) and (pointer:fine){.account-tabs button:hover{color:var(--accent)}}
.account-tab-panel[hidden]{display:none}
.account-tab-panel>h2{font-family:Nunito,system-ui,sans-serif;font-size:22px;font-weight:600;margin:0 0 24px}
.account-tab-panel .account-settings{width:100%}.account-tab-panel .account-settings>h2{display:none}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.stat-card{display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;min-height:180px;border-radius:18px;background:var(--surface);padding:24px 12px;text-align:center}
.stat-card svg{width:32px;height:32px;color:var(--ink);margin-bottom:19px}
.stat-number{display:block;font-size:36px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.8px;color:var(--ink)}
.stat-label{font-size:13px;color:var(--muted);margin-top:9px;line-height:1.35}
.stats-scope{font-size:11px;color:var(--muted);line-height:1.5;margin:18px 0 0}
.account-appearance #themeToggle .toggle-thumb svg{width:11px;height:11px;display:block;grid-area:1/1;margin:0;justify-self:center;align-self:center}
.account-appearance #themeToggle[aria-checked=true] .toggle-sun,.account-appearance #themeToggle[aria-checked=false] .toggle-moon{display:none}
#accountSettings #pushToggle{margin:0}#accountSettings .account-section:has(#pushToggle) .settings-row{padding-bottom:0}
.support-form{display:flex;flex-direction:column;gap:10px;width:100%;max-width:660px}
.support-form label{font-size:13px;font-weight:600;color:var(--muted);margin-top:9px}
.support-form input,.support-form select,.support-form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface);color:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:14px;box-shadow:none}
.support-form textarea{resize:vertical;min-height:150px}.support-form .primary{align-self:flex-start;border-radius:999px;background:var(--accent);color:#102016;font-weight:600;margin-top:12px;padding:12px 24px}
.support-form .primary:disabled{opacity:.6;cursor:wait}#supportStatus{font-size:12px;line-height:1.5;margin:6px 0 0;min-height:18px;color:var(--muted)}
@media(max-width:600px){.account-tabs{gap:6px;margin-bottom:25px}.account-tabs button{font-size:15px;padding:13px 5px 15px}.account-tab-panel>h2{font-size:20px;margin-bottom:20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stat-card{min-height:0;padding:22px 9px;border-radius:16px}.stat-card svg{width:28px;height:28px;margin-bottom:15px}.stat-number{font-size:31px}.stat-label{font-size:12px}.support-form .primary{align-self:stretch}.support-form input,.support-form select,.support-form textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.account-tabs button,.account-tabs button::after{transition:none}}
/* A slowly drifting album-colour glow moves independently of the player UI. */
#playerPanel,:root[data-glass=true] #playerPanel,:root[data-theme=light] #playerPanel,:root[data-theme=light][data-glass=true] #playerPanel{isolation:isolate;background:linear-gradient(to bottom,color-mix(in srgb,var(--playing-colour,#6574C9) 12%,var(--surface)),var(--surface) 82%)!important}
.player-ambience{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.player-ambience::before{content:'';position:absolute;inset:-25%;background:radial-gradient(ellipse at 30% 25%,color-mix(in srgb,var(--playing-colour,#6574C9) 34%,transparent),transparent 58%),radial-gradient(ellipse at 78% 67%,color-mix(in srgb,var(--playing-colour,#6574C9) 17%,transparent),transparent 54%);animation:albumGlowDrift 32s ease-in-out infinite alternate;will-change:transform}
:root[data-theme=light] .player-ambience::before{opacity:.65}
#playerPanel[hidden] .player-ambience::before{animation-play-state:paused}
@keyframes albumGlowDrift{0%{transform:translate(-3%,-2%) scale(1.02) rotate(-4deg)}50%{transform:translate(3%,2%) scale(1.08) rotate(1deg)}100%{transform:translate(-1%,5%) scale(1.04) rotate(5deg)}}
@media(prefers-reduced-motion:reduce){.player-ambience::before{animation:none;will-change:auto;transform:none}}
/* Compact account panels without repeated titles or explanatory footers. */
.stat-card{aspect-ratio:auto;min-height:145px;padding:16px 12px}
.stat-card svg{width:26px;height:26px;margin-bottom:12px}
.stat-number{font-size:32px}.stat-label{margin-top:7px}
.support-form{margin-left:auto;margin-right:auto}
.account-appearance .glass-row{padding-bottom:25px}.account-appearance .settings-accent{padding-bottom:0}
body:not(.is-scrolled) header .brand,body:not(.is-scrolled) :is(#headerSearch,#headerFavourites,#settingsButton){filter:none}
#headerFavourites[data-active]{color:var(--accent)}#headerFavourites[data-active] svg{fill:currentColor}
#favouritesPage[hidden]{display:none}
.favourites-title{font-family:Nunito,system-ui,sans-serif;font-size:26px;font-weight:600;letter-spacing:-.5px;margin:0 0 24px}
.favourites-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.favourite-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:12px;padding:14px;border-radius:16px;background:var(--surface)}
.favourite-audio{display:flex;align-items:center;gap:15px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;min-width:0}
.favourite-audio .cover{width:64px;flex:none;border-radius:10px}.favourite-audio .cover .symbol{width:55%}.favourite-audio .cover .name,.favourite-audio .cover small{display:none}
.favourite-info{display:flex;flex-direction:column;gap:5px;min-width:0}.favourite-info strong{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.favourite-info>span{font-size:12px;color:var(--muted)}
.remove-favourite{width:36px;height:36px;padding:8px;border:0;border-radius:50%;color:var(--accent);background:transparent;transition:background .18s}@media (hover:hover) and (pointer:fine){
.remove-favourite:hover{background:var(--subtle)}}.remove-favourite svg{width:20px;height:20px}
@media(max-width:600px){.stat-card{min-height:128px;padding:15px 9px}.stat-card svg{width:24px;height:24px;margin-bottom:10px}.stat-number{font-size:28px}.favourites-list{grid-template-columns:minmax(0,1fr);gap:11px}.favourites-title{font-size:23px}.favourite-row{padding:12px}.favourite-audio .cover{width:56px}.favourite-audio{gap:12px}}
/* Give all three Appearance controls equal row heights and spacing. */
#accountSettings .account-appearance{display:grid;grid-template-columns:minmax(0,1fr);row-gap:18px}
#accountSettings .account-appearance>h3{margin:0 0 2px}
#accountSettings .account-appearance>.settings-row,#accountSettings .account-appearance>.settings-accent{display:flex;align-items:center;justify-content:space-between;min-height:32px;margin:0;padding:0;gap:16px}
#accountSettings .account-appearance .accent-options{margin:0;padding:0;align-items:center}
#accountSettings .account-appearance h4{margin:0;line-height:1.4}
.favourites-toolbar{display:flex;justify-content:center;margin:0 0 24px}
.favourites-list:not(.list-view){grid-template-columns:repeat(6,minmax(0,1fr));gap:26px 20px}
.favourites-list:not(.list-view) .favourite-row{position:relative;display:block;padding:0;background:transparent;border-radius:12px}
.favourites-list:not(.list-view) .favourite-audio{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.favourites-list:not(.list-view) .favourite-audio .cover{width:100%;border-radius:12px}
.favourites-list:not(.list-view) .cover .symbol{width:30%}
.favourites-list:not(.list-view) .cover .name,.favourites-list:not(.list-view) .cover small{display:block}
.favourites-list:not(.list-view) .favourite-info{gap:3px}
.favourites-list:not(.list-view) .remove-favourite{position:absolute;right:7px;top:7px;background:color-mix(in srgb,var(--surface) 86%,transparent)}@media (hover:hover) and (pointer:fine){
.favourites-list:not(.list-view) .favourite-audio:hover .cover{transform:translateY(-3px)}}
.favourites-list.list-view{grid-template-columns:minmax(0,1fr);gap:10px}
@media(max-width:1050px){.favourites-list:not(.list-view){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.favourites-list:not(.list-view){grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}.favourites-list:not(.list-view) .favourite-info strong{font-size:13px}.favourites-list:not(.list-view) .favourite-info>span{font-size:11px}.favourites-list:not(.list-view) .remove-favourite{width:28px;height:28px;padding:6px;right:5px;top:5px}.favourites-list:not(.list-view) .remove-favourite svg{width:16px;height:16px}}
/* Page titles sit at the left margin beside centred search controls. */
.page-search-header{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}
.page-title{position:absolute;left:0;top:50%;transform:translateY(-50%);max-width:calc((100% - 520px)/2 - 18px);margin:0;font-family:Nunito,system-ui,sans-serif;font-size:19px;font-weight:600;line-height:1.25;letter-spacing:-.3px;color:var(--ink)}
#searchPage .search-page-tools{width:100%;max-width:none}
#searchPage .search-categories.tabs{width:min(520px,100%);align-self:center}
@media(max-width:1050px){.page-search-header{flex-direction:column;align-items:stretch;gap:14px}.page-title{position:static;transform:none;max-width:none;font-size:21px}.page-search-header .search-layout-row{align-self:center}.search-page-tools .page-search-header{width:100%}}
@media(max-width:600px){.page-title{font-size:20px}.page-search-header{gap:13px}}
/* Active destination icons use the chosen theme colour. */
#headerSearch[data-active],#settingsButton[data-active],#headerFavourites[data-active]{color:var(--accent)}
#headerSearch[data-active] svg,#settingsButton[data-active] svg,#headerFavourites[data-active] svg{fill:currentColor}
#headerSearch[data-active] svg path{fill:none}
#settingsButton[data-active] svg circle{fill:var(--bg);stroke:var(--bg)}
/* The read-along window fades both arriving and departing verses. */
.scripture-section[hidden]{display:none}
.scripture-section{display:flex;flex-direction:column;width:min(760px,100%);flex:1;min-height:160px;max-height:280px;margin:22px auto 0}
.scripture-sync-status{font-size:10px;text-align:center;color:var(--muted);margin:0 0 6px;min-height:0;line-height:1.4}.scripture-sync-status:empty{display:none}
.scripture-viewport{position:relative;flex:1;min-height:140px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 78%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 78%,transparent)}
.scripture-viewport::-webkit-scrollbar{display:none}
.scripture-track{position:relative;padding:38px 12px 110px}
.scripture-line{display:grid;grid-template-columns:36px minmax(0,1fr);gap:13px;font-family:Nunito,system-ui,sans-serif;font-size:21px;line-height:1.55;font-weight:500;color:var(--ink);opacity:.66;margin:0 0 18px;transition:color .28s ease,opacity .28s ease}
.scripture-line .verse-reference{font-size:12px;font-weight:500;color:var(--muted);padding-top:7px;white-space:nowrap}
.scripture-line.is-reading{color:var(--accent);opacity:1;font-weight:600}.scripture-line.is-reading .verse-reference{color:var(--accent)}
.scripture-line.is-read{opacity:.28}
#playerPanel.has-scripture #panelCover{width:min(340px,34dvh,75vw)}
@media(max-width:600px){#playerPanel.has-scripture #panelCover{width:min(300px,30dvh,100%)}.scripture-section{margin-top:18px;min-height:150px;max-height:260px}.scripture-track{padding:30px 0 100px}.scripture-line{font-size:17px;grid-template-columns:30px minmax(0,1fr);gap:10px;line-height:1.55;margin-bottom:16px}.scripture-line .verse-reference{font-size:11px;padding-top:4px}}
@media(prefers-reduced-motion:reduce){.scripture-line{transition:none}}
.scripture-line,.scripture-line span{text-transform:none}
/* A white progress line sits flush with the bottom of recent album artwork. */
.recent-item .cover .recent-progress{position:absolute;left:0;right:0;bottom:0;height:4px;background:#ffffff30;z-index:3;overflow:hidden;pointer-events:none}
.recent-progress-fill{display:block;height:100%;width:0;background:#fff;transition:width .2s linear}
@media(prefers-reduced-motion:reduce){.recent-progress-fill{transition:none}}
#headerSearch[data-active] svg,#headerSearch[data-active] svg circle,#headerSearch[data-active] svg path{fill:none;stroke:currentColor}
#recentHeading #editRecent{order:1;display:grid;place-items:center;margin-left:auto;width:32px;height:32px;flex:none;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--muted);transition:background .18s,color .18s}
#recentHeading #editRecent svg{width:18px;height:18px;margin:0;order:0}#recentHeading #editRecent[aria-pressed=true]{background:var(--subtle);color:var(--ink)}@media (hover:hover) and (pointer:fine){
#recentHeading #editRecent:hover{background:var(--subtle);color:var(--ink)}}
#editRecent:disabled{opacity:.4;cursor:default}
.recent-entry{position:relative;min-width:0}.recent-entry .recent-item{display:block;width:100%}
.recent-item:disabled{color:inherit;cursor:default}
.recent-remove{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:50%;padding:6px;background:var(--surface);color:var(--ink);z-index:5;visibility:hidden;opacity:0;transform:translateY(4px) scale(.7);transition:opacity .2s ease,transform .2s ease,visibility .2s;transition-delay:var(--edit-delay,0ms);box-shadow:0 2px 8px #0003}
.recent-remove svg{width:16px;height:16px}@media (hover:hover) and (pointer:fine){.recent-remove:hover{background:var(--raised)}}
.recent-list.is-editing .recent-remove{visibility:visible;opacity:1;transform:translateY(0) scale(1)}
.recent-list.is-editing .recent-item .cover{animation:recentEditWiggle .38s ease-in-out infinite alternate;animation-delay:var(--wiggle-delay,0s);transform-origin:50% 55%}
@keyframes recentEditWiggle{from{transform:rotate(-.8deg)}to{transform:rotate(.8deg)}}
@media(max-width:600px){.recent-remove{width:26px;height:26px;padding:5px;right:5px;top:5px}}
@media(prefers-reduced-motion:reduce){.recent-list.is-editing .recent-item .cover{animation:none}.recent-remove{transition:none}}
.recent-list.is-editing .recent-remove{animation:recentRemoveAppear .2s ease-out both;animation-delay:var(--edit-delay,0ms)}
@keyframes recentRemoveAppear{from{opacity:0;transform:translateY(4px) scale(.7)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){#recentHeading #editRecent{width:38px;height:38px;padding:10px;margin-right:0}}
@media(prefers-reduced-motion:reduce){.recent-list.is-editing .recent-remove{animation:none}}

/* Keep compact-row transitions subtle without animating artwork dimensions. */
#grid.list-view .cover,.search-results.list-view .cover,.favourites-list.list-view .cover{transition:box-shadow .18s ease,filter .18s ease}

/* Wide category signposts have their own layout, separate from square albums. */
.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.category-card .category-cover{width:100%;aspect-ratio:auto;min-height:96px;padding:18px 22px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;text-align:left;border-radius:18px;isolation:isolate}
.category-cover .name{order:-1;margin:0;max-width:65%;font-size:17px;font-weight:600;line-height:1.2;letter-spacing:0}
.category-cover .category-symbol{width:33.6px;flex:0 0 33.6px;background:transparent;border-radius:0;color:#fff;opacity:.9}
.category-cover .category-symbol svg{width:100%;height:100%}
.category-cover:before{width:220px;height:220px;top:auto;left:auto;right:-100px;bottom:-150px;border:1px solid #ffffff24;border-radius:50%;box-shadow:0 0 0 24px #ffffff0b,0 0 0 48px #ffffff08;pointer-events:none}
.category-cover:after{content:none}
@media(min-width:601px) and (max-width:1000px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.category-grid{grid-template-columns:none;grid-auto-columns:80%;gap:12px}.category-card .category-cover{aspect-ratio:auto;min-height:92px;padding:17px 20px;border-radius:16px}.category-cover .name{font-size:16px}.category-cover .category-symbol{width:30.4px;flex-basis:30.4px}}

/* Share the Discover More palette and layered artwork without moving welcome text. */
.welcome-card{--collection-deep:color-mix(in srgb,var(--accent) 28%,#000);color:#fff;background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 60%,var(--collection-deep)),var(--collection-deep))}
.welcome-card::before{content:'';position:absolute;z-index:-1;pointer-events:none;width:75%;height:130px;top:-55px;right:-15%;background:#ffffff16;transform:rotate(27deg);box-shadow:0 25px 0 #ffffff0b}
.welcome-card::after{content:'';position:absolute;z-index:-1;pointer-events:none;width:180px;height:180px;right:-80px;bottom:-90px;background:none;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 24px #ffffff08,0 0 0 48px #ffffff05}

.scripture-line{font-size:18px;margin-bottom:16px}
.scripture-line .verse-reference{font-size:11px;padding-top:6px}
@media(max-width:600px){.scripture-line{font-size:15px;margin-bottom:14px}.scripture-line .verse-reference{font-size:10px;padding-top:4px}}

/* Soft tonal facets and fine diagonal lines sit beneath category labels and icons. */
.category-card .category-cover{background:radial-gradient(ellipse at 85% 0%,#ffffff18,transparent 65%),linear-gradient(145deg,var(--category-light),var(--category-dark))}
.category-cover:after{content:'';position:absolute;inset:0;z-index:0;width:auto;height:auto;border:0;border-radius:inherit;pointer-events:none;background:linear-gradient(118deg,transparent 48%,#ffffff0c 48%,#ffffff0c 66%,transparent 66%),repeating-linear-gradient(118deg,transparent 0 24px,#ffffff08 24px 25px,transparent 25px 49px);mask-image:linear-gradient(90deg,transparent 15%,#000 80%)}
.category-cover .name,.category-cover .category-symbol{position:relative;z-index:1}

/* Flat page surfaces, with a local accent bleed beneath the welcome card only. */
body{background:var(--bg)}
:root[data-theme=light] body{background:var(--bg)}
.welcome-scene{position:relative;isolation:isolate}
.welcome-scene::before{content:'';position:absolute;left:-5%;right:-5%;bottom:-115px;height:210px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--accent) 46%,transparent) 0%,color-mix(in srgb,var(--accent) 20%,transparent) 42%,transparent 74%);filter:blur(20px)}
:root[data-theme=light] .welcome-scene::before{opacity:.8}
@media(max-width:600px){.welcome-scene::before{bottom:-88px;height:165px;filter:blur(16px)}}

/* A visible slice of the next editorial card signals horizontal scrolling. */
.collection-shelf{grid-auto-columns:calc((100% - 60px)/3.15)}
@media(max-width:1050px){.collection-shelf{grid-auto-columns:calc((100% - 40px)/2.15)}}
@media(max-width:600px){.collection-shelf{grid-auto-columns:86%}}

/* Keep the upper header solid, then dissolve smoothly over scrolling content. */
header::after{background:linear-gradient(to bottom,var(--bg) 0%,var(--bg) 30%,color-mix(in srgb,var(--bg) 86%,transparent) 50%,color-mix(in srgb,var(--bg) 86%,transparent) 100%)}

/* Keep heading actions together: edit, then View All. */
#recentHeading{justify-content:flex-start;gap:10px;flex-wrap:wrap}
#recentHeading>span{order:0;margin-right:auto}
#recentHeading #editRecent{order:1;margin-left:0}
#recentHeading .view-all-link{order:2;display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 0 7px 2px;border:0;background:transparent;color:var(--muted);font:500 13px Nunito,system-ui,sans-serif;white-space:nowrap}
#recentHeading .view-all-link svg{width:17px;height:17px;margin:0;order:0}
@media(hover:hover) and (pointer:fine){#recentHeading .view-all-link:hover{color:var(--accent)}}
.conference-card .collection-copy{gap:9px}.conference-card .conference-years{display:block;font-size:15px;font-weight:500;color:#ffffffb8;letter-spacing:.3px}
#allRecentDialog{width:min(1040px,92vw);max-width:1040px;max-height:85dvh;overflow-y:auto}
#allRecentTitle{font-size:25px;padding-right:30px;margin-bottom:24px}
#allRecentList{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;overflow:visible}
@media(max-width:800px){#allRecentList{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#recentHeading{gap:7px}#recentHeading>span{font-size:17px}#recentHeading .view-all-link{font-size:11px;gap:3px}#recentHeading .view-all-link svg{width:14px;height:14px}#allRecentList{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#allRecentTitle{font-size:22px}.conference-card .conference-years{font-size:14px}}

:root[data-theme=light]{--ink:#000}
:root[data-theme=light] :is(#headerSearch,#headerFavourites,#settingsButton):not([data-active]),
:root[data-theme=light] .bottom-nav :is(a,button):not([aria-current=page]),
:root[data-theme=light] .bottom-nav :is(a,button):not([aria-current=page]) svg,
:root[data-theme=light] :is(.close,.expand-player,.speed-trigger,.chapter-trigger,#closePlayer),
:root[data-theme=light] #recentHeading :is(#editRecent,.view-all-link){color:#000}

/* Light mode keeps the header mark and icons crisp without drop shadows. */
:root[data-theme=light] .is-scrolled header .brand,
:root[data-theme=light] .is-scrolled :is(#headerSearch,#headerFavourites,#settingsButton){filter:none}

/* A clipped corner tab echoes the reference without hiding the artwork. */
.new-upload-ribbon{position:absolute;z-index:4;display:block;background:var(--accent);color:#071b19;font:800 10px/1.1 Nunito,system-ui,sans-serif;letter-spacing:.25px;padding:8px 12px;pointer-events:none;text-transform:none;box-shadow:0 2px 7px #0002;white-space:nowrap}
.ribbon-bottom-right{right:0;bottom:8px;padding-left:17px;border-radius:3px 0 0 3px;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%)}
.ribbon-top-left{top:16px;left:0;padding-right:17px;border-radius:0 3px 3px 0;clip-path:polygon(0 0,100% 0,calc(100% - 8px) 100%,0 100%)}
#miniCover .new-upload-ribbon,#bookDialogCover .new-upload-ribbon,.list-view .cover .new-upload-ribbon{font-size:6px;padding:4px 5px 4px 8px;bottom:4px;letter-spacing:0}
@media(max-width:600px){.new-upload-ribbon{font-size:8px;padding-top:6px;padding-bottom:6px}.ribbon-top-left{top:14px}}

.carousel-shell{position:relative;min-width:0}
.carousel-shell>.collection-shelf,.carousel-shell>.category-grid,.carousel-shell>.release-list{scrollbar-width:none}
.carousel-shell>.collection-shelf::-webkit-scrollbar,.carousel-shell>.category-grid::-webkit-scrollbar,.carousel-shell>.release-list::-webkit-scrollbar{display:none}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:8;display:grid;place-items:center;width:40px;height:40px;padding:10px;border:1px solid color-mix(in srgb,var(--ink) 8%,transparent);border-radius:50%;background:var(--raised);color:var(--ink);box-shadow:0 3px 14px #0003;cursor:pointer}
.carousel-arrow svg{width:20px;height:20px}.carousel-arrow[hidden]{display:none}
.carousel-arrow-left{left:-16px}.carousel-arrow-right{right:-16px}
@media(hover:hover) and (pointer:fine){.carousel-arrow:hover{background:var(--surface);color:var(--accent)}}
@media(max-width:600px){.carousel-arrow{display:none!important}}

/* The compact preview player keeps its artwork free of promotional labels. */
footer.player #miniCover .new-upload-ribbon{display:none}

/* Source SVG wordmark and original high-resolution symbol, recoloured without filters. */
:root{--logo-ink:#fff}:root[data-theme=light]{--logo-ink:#000}
header .brand{gap:10px;color:var(--logo-ink)}
header .brand .logo-symbol-svg{display:block;width:60px;height:54px;flex:none;overflow:visible}
header .brand .logo-wordmark-svg{display:block;width:130px;height:29px;flex:none;overflow:visible}
@media(max-width:600px){header .brand{gap:5px}header .brand .logo-symbol-svg{width:48px;height:44px}header .brand .logo-wordmark-svg{width:108px;height:25px}}
/* One safe-area inset per edge. Foreground chrome stays outside the camera area. */
@media(max-width:600px){
 .ios-iphone{--app-safe-top:env(safe-area-inset-top,0px);--app-safe-bottom:env(safe-area-inset-bottom,0px);--navigation-height:calc(64px + var(--app-safe-bottom))}
 .ios-iphone body{padding-bottom:0;height:100dvh;min-height:0;overflow:hidden}
 .ios-iphone header{top:0;min-height:calc(76px + var(--app-safe-top));padding-top:calc(10px + var(--app-safe-top));padding-bottom:10px;align-items:center}
 .ios-iphone :is(#headerSearch,#headerFavourites,#settingsButton){top:calc(var(--app-safe-top) + 38px)}
 .ios-iphone header::after,.ios-iphone .is-scrolled header::after{top:0;bottom:-18px;height:auto}
 .ios-iphone .bottom-nav{bottom:0;height:var(--navigation-height);padding-top:4px;padding-bottom:calc(4px + var(--app-safe-bottom));align-items:stretch}
 .ios-iphone footer.player{bottom:calc(var(--navigation-height) + 6px)}
 .ios-iphone main,.ios-iphone .panel-open main{bottom:var(--navigation-height)}
}

/* Broad welcome glow, softer at the ends and extending further below. */
.welcome-scene::before{left:-4%;right:-4%;top:-48px;bottom:-95px;height:auto;background:radial-gradient(ellipse at 50% 54%,color-mix(in srgb,var(--accent) 42%,transparent) 0%,color-mix(in srgb,var(--accent) 25%,transparent) 48%,transparent 78%);filter:blur(22px)}
@media(max-width:600px){.welcome-scene::before{top:-30px;bottom:-72px;height:auto;filter:blur(17px)}}

/* Compact discovery cards and a complete mobile category grid. */
.collection-card{min-height:180.6px}
.collection-copy{margin-top:56px}
.collection-copy strong{font-size:21.6px}
.collection-copy>span{font-size:10.8px}
.conference-card .conference-years{font-size:13.5px}
@media(max-width:600px){
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;scroll-snap-type:none;overscroll-behavior-x:auto;padding:0;gap:12px}
 .category-card{min-width:0}
 .category-card .category-cover{padding:15px 14px;gap:9px}
 .category-cover .name{font-size:14px;max-width:none;min-width:0;flex:1}
 .collection-card{min-height:165.2px}
 .collection-copy strong{font-size:20.7px}
 .collection-copy>span{font-size:10.8px}
 .conference-card .conference-years{font-size:12.6px}
}

/* Phone chrome follows the visible viewport, including browser toolbar changes. */
@media(max-width:600px){
 :root{--visible-top:0px;--visible-height:100dvh;--phone-safe-top:env(safe-area-inset-top,0px);--phone-safe-bottom:env(safe-area-inset-bottom,0px);--navigation-height:calc(60px + var(--phone-safe-bottom))}
 html,body{height:100%;overflow:hidden}
 body,.ios-iphone body{height:var(--visible-height);padding-bottom:0;min-height:0}
 header,.ios-iphone header{top:var(--visible-top);bottom:auto;height:calc(68px + var(--phone-safe-top));min-height:0;padding-top:calc(8px + var(--phone-safe-top));padding-bottom:8px;align-items:center}
 header :is(#headerSearch,#headerFavourites,#settingsButton),.ios-iphone :is(#headerSearch,#headerFavourites,#settingsButton){top:calc(var(--phone-safe-top) + 34px)}
 .bottom-nav,.ios-iphone .bottom-nav{top:calc(var(--visible-top) + var(--visible-height) - var(--navigation-height));bottom:auto;height:var(--navigation-height);padding-top:4px;padding-bottom:calc(4px + var(--phone-safe-bottom))}
 footer.player,.ios-iphone footer.player{top:calc(var(--visible-top) + var(--visible-height) - var(--navigation-height) - var(--player-height) - 6px);bottom:auto}
 main,.panel-open main,.ios-iphone main,.ios-iphone .panel-open main{top:var(--visible-top);bottom:auto;height:calc(var(--visible-height) - var(--navigation-height));padding-top:calc(var(--header-height) + 12px)}
 .category-card .category-cover{height:61.333px;min-height:61.333px;padding:10px 9px;gap:5px}
 .category-cover .category-symbol{width:22px;flex-basis:22px}
 .category-cover .name{font-size:clamp(10px,2.9vw,13px);white-space:nowrap;max-width:none;letter-spacing:-.2px}
}

/* Explicit foreground stacking keeps the header fade behind every control. */
header::before,header::after{z-index:0;pointer-events:none}
header>.brand,header>#headerSearch,header>#headerFavourites,header>#settingsButton{z-index:2}
@media(max-width:1024px) and (pointer:coarse){
 :root{--navigation-height:calc(56px + env(safe-area-inset-bottom,0px))}
 html,body{height:100%;overflow:hidden}
 body,.ios-iphone body{height:100dvh;padding:0;min-height:0}
 header,.ios-iphone header{top:0;bottom:auto;height:calc(56px + env(safe-area-inset-top,0px));min-height:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:0;align-items:center}
 header :is(#headerSearch,#headerFavourites,#settingsButton),.ios-iphone :is(#headerSearch,#headerFavourites,#settingsButton){top:calc(env(safe-area-inset-top,0px) + 28px)}
 .bottom-nav,.ios-iphone .bottom-nav{top:auto;bottom:0;height:var(--navigation-height);padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom,0px))}
 footer.player,.ios-iphone footer.player{top:auto;bottom:calc(var(--navigation-height) + 6px)}
 main,.panel-open main,.ios-iphone main,.ios-iphone .panel-open main{top:0;bottom:var(--navigation-height);height:auto;padding-top:calc(var(--header-height) + 12px)}
}

/* iPhone: reserve the system inset globally, including full-screen and top-layer UI. */
html.ios-iphone{--reserved-top:env(safe-area-inset-top,0px);--safe-area-colour:#000;background:#000!important}
html.ios-iphone[data-theme=light]{--safe-area-colour:#fff;background:#fff!important}
html.ios-iphone body{background:var(--safe-area-colour)!important}
html.ios-iphone body::after{content:'';position:fixed;inset:0 0 auto;height:var(--reserved-top);z-index:2147483647;background:var(--safe-area-colour);pointer-events:auto;box-shadow:none;filter:none;backdrop-filter:none}
html.ios-iphone header{top:var(--reserved-top);height:56px;min-height:56px;padding-top:0;padding-bottom:0}
html.ios-iphone :is(#headerSearch,#headerFavourites,#settingsButton){top:28px}
html.ios-iphone header::after,html.ios-iphone .is-scrolled header::after{top:0}
html.ios-iphone main,html.ios-iphone .panel-open main{top:var(--reserved-top);height:auto;bottom:var(--navigation-height);padding-top:calc(var(--header-height) + 12px);clip-path:inset(0);scroll-padding-top:calc(var(--header-height) + 12px)}
html.ios-iphone #playerPanel,html.ios-iphone[data-glass=true] #playerPanel{top:var(--reserved-top);bottom:0;height:calc(100dvh - var(--reserved-top));padding-top:18px;clip-path:inset(0)}
html.ios-iphone .player-ambience{top:var(--reserved-top)}
html.ios-iphone dialog{margin-top:calc(var(--reserved-top) + 16px);max-height:calc(100dvh - var(--reserved-top) - env(safe-area-inset-bottom,0px) - 32px)}
html.ios-iphone dialog::before{content:'';position:fixed;inset:0 0 auto;height:var(--reserved-top);background:var(--safe-area-colour);z-index:2147483647;pointer-events:auto;box-shadow:none;filter:none}
html.ios-iphone dialog::backdrop{background:linear-gradient(to bottom,var(--safe-area-colour) 0 var(--reserved-top),#000b var(--reserved-top) 100%);backdrop-filter:none;-webkit-backdrop-filter:none}

/* One viewport shell for iPhone and iPad, including desktop-mode iPad Safari.
   Header and navigation occupy normal grid rows: no competing fixed offsets. */
html.ios-device{height:100%;overflow:hidden;--reserved-top:env(safe-area-inset-top,0px);--reserved-bottom:env(safe-area-inset-bottom,0px);--safe-area-colour:#000;--navigation-height:calc(56px + var(--reserved-bottom))}
html.ios-device[data-theme=light]{--safe-area-colour:#fff}
html.ios-device body{position:fixed!important;inset:0!important;width:100%;height:100%!important;min-height:0;margin:0;padding:0!important;display:grid;grid-template-rows:var(--reserved-top) 64px minmax(0,1fr) 56px var(--reserved-bottom);background:var(--safe-area-colour)!important;overflow:hidden}
html.ios-device body::after{content:'';position:absolute;inset:0 0 auto;height:var(--reserved-top);background:var(--safe-area-colour);z-index:2147483647;pointer-events:auto}
html.ios-device body>header{position:relative!important;grid-row:2;inset:auto!important;height:64px!important;min-height:0!important;padding:0 5%!important;align-items:center;background:var(--bg);filter:none;overflow:visible}
html.ios-device header::before{display:none}
html.ios-device header::after{inset:100% 0 auto!important;height:16px!important;z-index:0;background:linear-gradient(var(--bg),transparent);mask-image:none;-webkit-mask-image:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html.ios-device header .brand{filter:none!important;max-height:60px}
html.ios-device header :is(#headerSearch,#headerFavourites,#settingsButton){top:32px!important;filter:none!important}
html.ios-device body>main,html.ios-device body.panel-open>main{position:relative!important;grid-row:3;inset:auto!important;width:100%;height:auto!important;min-height:0;max-height:none;margin:0 auto;padding-top:12px!important;padding-bottom:calc(var(--player-height) + 24px);overflow-y:auto;clip-path:inset(0);mask-image:none!important;-webkit-mask-image:none!important;scroll-padding-top:12px}
html.ios-device body>.bottom-nav{position:relative!important;grid-row:4;inset:auto!important;height:56px!important;width:100%;padding:2px 5%!important;align-items:stretch;margin:0;background:var(--bg)}
html.ios-device body>footer.player{position:absolute!important;top:auto!important;bottom:calc(56px + var(--reserved-bottom) + 6px)!important}
html.ios-device #playerPanel,html.ios-device[data-glass=true] #playerPanel{top:var(--reserved-top);height:calc(100% - var(--reserved-top));bottom:0}
html.ios-device dialog{margin-top:calc(var(--reserved-top) + 16px);max-height:calc(100dvh - var(--reserved-top) - var(--reserved-bottom) - 32px)}

/* Welcome colour stays below the card: broad, even and 40% shallower. */
.welcome-scene::before{top:100%;bottom:auto;left:-2%;right:-2%;height:57px;filter:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--accent) 34%,transparent),color-mix(in srgb,var(--accent) 20%,transparent) 38%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(to right,transparent,#000 14%,#000 86%,transparent)}
@media(max-width:600px){.welcome-scene::before{top:100%;bottom:auto;height:43.2px;filter:none}}

/* iOS standalone windows can retain an outdated percentage containing height.
   Size the shared shell from the live visual viewport instead of that percentage. */
html.ios-device body{top:var(--visible-top,0px)!important;right:0!important;bottom:auto!important;left:0!important;height:var(--visible-height,100dvh)!important;max-height:var(--visible-height,100dvh)!important;box-sizing:border-box;align-content:stretch;row-gap:0}
html.ios-device .bottom-nav{align-self:stretch}
.layout-diagnostics{margin-top:24px;padding:14px;border:1px solid var(--line);border-radius:12px;text-transform:none}.layout-diagnostics summary{cursor:pointer;font-size:14px}.layout-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 monospace;color:var(--ink);text-transform:none}

html.ios-device #playerPanel,html.ios-device[data-glass=true] #playerPanel{height:calc(var(--visible-height,100dvh) - var(--reserved-top));max-height:calc(var(--visible-height,100dvh) - var(--reserved-top))}

/* Installed iOS: the native status bar and app share responsibility exactly once. */
html.ios-standalone header::before,html.ios-standalone header::after{display:none!important}
html.ios-standalone header,html.ios-standalone header .brand,html.ios-standalone header :is(#headerSearch,#headerFavourites,#settingsButton){filter:none!important;mask-image:none!important;-webkit-mask-image:none!important;opacity:1}
html.ios-standalone .bottom-nav :is(button,a){min-height:52px;line-height:1.2;padding:2px 0;flex-shrink:0}
html.ios-standalone .bottom-nav span{display:block;flex-shrink:0;line-height:16px}
html.ios-device #playerPanel,html.ios-device[data-glass=true] #playerPanel{height:calc(var(--visible-height,100dvh) - var(--reserved-top));max-height:calc(var(--visible-height,100dvh) - var(--reserved-top));top:var(--reserved-top)}

/* Let the native iOS web view own its origin. A fixed body was anchored behind
   the native status area, while its height excluded that same area. */
html.ios-device{height:100%;overflow:hidden}
html.ios-device body{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:var(--visible-height,100dvh)!important;max-height:var(--visible-height,100dvh)!important;transform:none!important}
html.ios-device body>header{filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.ios-device body>header::before,html.ios-device body>header::after{display:none!important}
html.ios-device #playerPanel,html.ios-device[data-glass=true] #playerPanel{position:absolute!important;top:var(--reserved-top)!important;bottom:0!important;height:calc(100% - var(--reserved-top))!important;max-height:calc(100% - var(--reserved-top))!important}
html.ios-device #playerPanel :is(#closePlayer,#playerFavourite){position:absolute!important;top:18px!important}
html.ios-device #playerPanel .player-ambience{position:absolute;inset:0}

/* Floating desktop carousel controls echo the editorial-card artwork. */
.carousel-arrow{display:none!important}
@media(hover:hover) and (pointer:fine) and (not (any-pointer:coarse)){
 .carousel-arrow:not([hidden]){display:grid!important}
 .carousel-arrow{width:46px;height:46px;padding:12px;border-radius:15px;isolation:isolate;overflow:hidden;color:#fff;border:1px solid color-mix(in srgb,var(--accent) 40%,#ffffff40);background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 70%,#102b29),color-mix(in srgb,var(--accent) 30%,#000));box-shadow:0 7px 20px #0006,0 2px 5px #0005;transition:box-shadow .2s,filter .2s}
 .carousel-arrow::before{content:'';position:absolute;z-index:-1;width:60px;height:60px;border:1px solid #ffffff24;border-radius:50%;right:-24px;bottom:-30px;box-shadow:0 0 0 10px #ffffff0b,0 0 0 20px #ffffff06}
 .carousel-arrow:hover{color:#fff;background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 82%,#102b29),color-mix(in srgb,var(--accent) 40%,#000));box-shadow:0 9px 25px #0007,0 3px 7px #0005}
 .carousel-arrow-left{left:10px}.carousel-arrow-right{right:10px}
 .carousel-shell.has-overflow>:is(.collection-shelf,.release-list,.category-grid){padding-left:66px;padding-right:66px;scroll-padding-inline:66px}
 .carousel-shell.has-overflow.at-start::before,.carousel-shell.has-overflow.at-end::after{content:'';position:absolute;top:0;bottom:0;width:66px;background:var(--bg);z-index:6;pointer-events:auto}
 .carousel-shell.has-overflow.at-start::before{left:0}.carousel-shell.has-overflow.at-end::after{right:0}
}

@media(hover:hover) and (pointer:fine) and (not (any-pointer:coarse)){
 .welcome-card{transition:transform .2s ease,box-shadow .2s ease}
 .welcome-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0002}
}
@media(prefers-reduced-motion:reduce){.welcome-card{transition:none!important}.welcome-card:hover{transform:none!important}}

.audio-load-status{font-size:13px;line-height:1.5;text-align:center;color:var(--muted);max-width:480px;margin:12px auto;text-transform:none}.audio-load-status[hidden],#trackStatus[hidden]{display:none}#trackStatus:not([hidden]){display:block;font-size:10px;line-height:1.3;text-transform:none}input[type=range]:disabled{opacity:.45;cursor:default}

/* Audio progress tracks: exact theme colours and a larger invisible hit area. */
:is(#panelSeek,#seek){--seek-played:#fff;--seek-unplayed:#858fa8;appearance:none;-webkit-appearance:none;height:44px;margin-top:-10px;margin-bottom:-10px;padding:0;background:transparent;border:0;border-radius:0;touch-action:pan-y}
:root[data-theme=light] :is(#panelSeek,#seek){--seek-played:#171923;--seek-unplayed:#959db0}
:is(#panelSeek,#seek)::-webkit-slider-runnable-track{height:4px;border:0;border-radius:999px;background:linear-gradient(to right,var(--seek-played) 0%,var(--seek-played) var(--progress,0%),var(--seek-unplayed) var(--progress,0%),var(--seek-unplayed) 100%)}
:is(#panelSeek,#seek)::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:0;border-radius:50%;background:var(--seek-played);box-shadow:none}
:is(#panelSeek,#seek)::-moz-range-track{height:4px;border:0;border-radius:999px;background:linear-gradient(to right,var(--seek-played) 0%,var(--seek-played) var(--progress,0%),var(--seek-unplayed) var(--progress,0%),var(--seek-unplayed) 100%)}
:is(#panelSeek,#seek)::-moz-range-progress{height:4px;background:transparent}
:is(#panelSeek,#seek)::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--seek-played);box-shadow:none}

/* Light-mode scrolled identity: restrained slate-grey separation, not black. */
:root[data-theme=light] body.is-scrolled header .brand,
:root[data-theme=light] body.is-scrolled :is(#headerSearch,#headerFavourites,#settingsButton){
  filter:drop-shadow(0 2px 3px rgba(100,116,139,.18));
}
/* Preserve original no-shadow handling in iOS contained and standalone modes. */
html.ios-device:root[data-theme=light] body.is-scrolled header .brand,
html.ios-device:root[data-theme=light] body.is-scrolled :is(#headerSearch,#headerFavourites,#settingsButton),
html.ios-standalone:root[data-theme=light] body.is-scrolled header .brand,
html.ios-standalone:root[data-theme=light] body.is-scrolled :is(#headerSearch,#headerFavourites,#settingsButton){filter:none!important}
