/* Shared playlist listening surface. Existing playback controls retain their IDs. */
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero){display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px;padding:28px;margin-bottom:24px;border:1px solid #b59d693d;border-radius:26px;background:radial-gradient(ellipse at 0 0,#a7804420,transparent 60%),linear-gradient(125deg,#27251ceF,#152019ed);box-shadow:0 16px 40px #0002;overflow:hidden;align-items:center}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-top,.qph-top){display:grid;grid-template-columns:96px minmax(0,1fr);gap:20px;align-items:center;min-width:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-cover,.qph-cover){width:96px;height:96px;aspect-ratio:1;border:1px solid #b59d694d;border-radius:18px;background:#171c16;overflow:hidden;animation:none;box-shadow:none}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-cover,.qph-cover) :is(img,svg){max-width:100%;max-height:100%;animation:none;object-fit:cover}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-copy,.qph-copy){min-width:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-copy h1,.qph-title){font:500 clamp(22px,2.2vw,30px)/1.25 'Playfair Display',Georgia,serif;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:#ece5d6;margin:8px 0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-eyebrow,.qph-eyebrow){font:500 10px/1.5 Poppins,Arial,sans-serif;letter-spacing:.14em;color:#c7ac77;text-transform:uppercase;margin:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-byline,.qph-subtitle){font:400 12px/1.7 Poppins,Arial,sans-serif;color:#b6bbad;margin:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-status,.qph-status,.playlist-detail-playing-indicator){display:none}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-player,.qph-player){display:grid;grid-template-columns:1fr;gap:13px;min-width:0;width:auto;opacity:1;padding:0 0 0 28px;border:0;border-left:1px solid #c7ad7130;align-items:center}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) .playlist-now{min-width:0;text-align:left}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) .playlist-now-label{font:500 10px/1.5 Poppins,Arial,sans-serif;color:#aab8a2;letter-spacing:.1em;text-transform:uppercase}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) .playlist-now h2{font:500 clamp(20px,2vw,27px)/1.3 'Playfair Display',Georgia,serif;color:#f0e7d4;margin:5px 0 0;overflow-wrap:anywhere}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-progress,.qph-progress){display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:8px;width:100%;max-width:none;margin:0;font:400 11px/1.5 Poppins,Arial,sans-serif;color:#b5baa9}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.hero-progress-bg,.qph-progress-track){appearance:none;-webkit-appearance:none;width:100%;height:28px;min-width:0;margin:0;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;touch-action:pan-y;box-shadow:none;overflow:visible}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.hero-progress-bg,.qph-progress-track)::-webkit-slider-runnable-track{height:4px;border-radius:6px;background:linear-gradient(to right,#dfbd79 var(--seek,0%),#b1b99c2b var(--seek,0%))}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.hero-progress-bg,.qph-progress-track)::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#e4c181;margin-top:-4px;border:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.hero-progress-bg,.qph-progress-track)::-moz-range-track{height:4px;border-radius:6px;background:#b1b99c2b}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.hero-progress-bg,.qph-progress-track)::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#e4c181;border:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-transport,.qph-transport){display:grid;grid-template-columns:44px 44px 58px 44px 44px;justify-content:center;align-items:center;gap:9px;margin:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-side,.qph-side){display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#b5c0ac;box-shadow:none;transition:background .18s,color .18s}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-side,.qph-side):hover{background:#b7bc9f15;color:#e8c988}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-side,.qph-side) svg{width:19px;height:19px}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-play,.qph-play){display:grid;place-items:center;width:58px;height:58px;min-width:58px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#f0d9a6,#cfaa65);color:#211c12;box-shadow:0 5px 18px #0003;transition:filter .18s;transform:none;animation:none}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-play,.qph-play):hover{filter:brightness(1.08);transform:none}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-play,.qph-play) svg{width:23px;height:23px}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.ctrl-active,.qph-on){color:#ebc577;background:#cfad7020;border-color:#cfad7035}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-volume,.volume-row){display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:240px;margin:0 auto;padding:0;border:0;background:none}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-volume,.volume-row) input{flex:1;min-width:0;width:140px;max-width:170px;accent-color:#c3cda9}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) button:disabled{opacity:.3;cursor:default}
:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(button,input):focus-visible{outline:2px solid #e3c17e;outline-offset:4px}
:is(body.nasheed-refreshed,body.quran-refreshed,body) #quranPlaylistHero :is(.qph-extra,.qph-empty-state){grid-column:1/-1;min-width:0}
:is(body.nasheed-refreshed,body.quran-refreshed,body) #quranPlaylistHero.is-empty .qph-player{display:none}
@media(max-width:850px){:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero){grid-template-columns:minmax(0,1fr);gap:20px;padding:22px}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-player,.qph-player){padding:20px 0 0;border-left:0;border-top:1px solid #c7ad7130}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) .playlist-now{text-align:center}}
@media(max-width:480px){:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero){padding:18px 16px;border-radius:22px}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-top,.qph-top){grid-template-columns:72px minmax(0,1fr);gap:15px}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-detail-cover,.qph-cover){width:72px;height:72px;border-radius:14px}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) :is(.playlist-hero-transport,.qph-transport){gap:4px}:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) .playlist-now h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){:is(body.nasheed-refreshed,body.quran-refreshed,body) :is(.playlist-detail-hero,#quranPlaylistHero) *{animation:none!important;transition:none!important}}

body.quran-refreshed #quranPlaylistHero input.qph-progress-track{appearance:none;-webkit-appearance:none;height:28px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}

.playlist-detail-hero[hidden],#quranPlaylistHero[hidden]{display:none!important}

/* Playlist detail reuses the actual Nasheed player and all its controls. */
body.nasheed-refreshed.nsf-playlist-detail .nsf-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,342px)}
body.nasheed-refreshed.nsf-playlist-detail #playlistDetailHero{display:none!important}
body.nasheed-refreshed.nsf-playlist-detail #main-player-anchor.merged-into-hero{display:block!important}
body.nasheed-refreshed.nsf-playlist-detail .nsf-sidebar{display:block;min-width:0}
.nsf-playlist-badge{display:flex;align-items:center;gap:8px;min-height:32px;padding:9px 12px;margin:0 0 18px;border:1px solid #cfad7040;border-radius:10px;background:#b8914d14;color:#dfc68e;font:500 12px/1.6 Poppins,Arial,sans-serif;overflow-wrap:anywhere}
.nsf-playlist-badge::before{content:'≡';font-size:18px;color:#b9c5a5;flex:none}
.nsf-playlist-badge[hidden],.nsf-playlist-context[hidden]{display:none!important}
.nsf-playlist-context{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 22px;border-bottom:1px solid #c7ad7129;margin-bottom:18px}
.nsf-playlist-context h2{font:500 clamp(25px,3vw,34px)/1.3 'Playfair Display',Georgia,serif;color:#ede4d0;margin:7px 0;overflow-wrap:anywhere}
.nsf-playlist-context p{font:400 12px/1.6 Poppins,Arial,sans-serif;color:#b6bcac;margin:0}
body.nasheed-refreshed.nsf-playlist-detail .nsf-sidebar #main-player{width:100%;box-sizing:border-box}
@media(max-width:820px){body.nasheed-refreshed.nsf-playlist-detail .nsf-workspace{display:flex;flex-direction:column;gap:20px}body.nasheed-refreshed.nsf-playlist-detail .nsf-sidebar{position:static;width:100%;max-width:440px;margin:0 auto;order:0}body.nasheed-refreshed.nsf-playlist-detail .nsf-library{width:100%;order:1}.nsf-playlist-context{flex-wrap:wrap}.nsf-playlist-badge{font-size:12px;margin-bottom:14px}}

.nsf-playlist-badge::before{display:none}.nsf-playlist-badge-art{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #c6a66244;border-radius:9px;background:linear-gradient(135deg,#3e3525,#142019);color:#dfbd7b;overflow:hidden}.nsf-playlist-badge-art :is(svg,img,.playlist-cover-glyph){display:block;width:100%;height:100%;object-fit:cover}.nsf-playlist-context{justify-content:flex-start}.nsf-playlist-context>div:not(.nsf-playlist-context-art){flex:1;min-width:0}.nsf-playlist-context-art{display:grid;place-items:center;flex:0 0 110px;width:110px;height:110px;border:1px solid #c6a66244;border-radius:18px;background:radial-gradient(ellipse at 20% 0,#b48d482a,transparent 80%),#182018;color:#dfbd7b;overflow:hidden}.nsf-playlist-context-art :is(svg,img,.playlist-cover-glyph){display:block;width:100%;height:100%;object-fit:cover}@media(max-width:600px){.nsf-playlist-context-art{flex-basis:76px;width:76px;height:76px;border-radius:14px}.nsf-playlist-context{gap:14px}.nsf-playlist-context h2{font-size:24px}.nsf-playlist-badge-art{flex-basis:34px;width:34px;height:34px}}
