#player{flex-wrap:wrap;gap:12px;max-width:min(1100px,calc(100vw - 24px));padding:12px 16px}.volume-control{display:flex;align-items:center;gap:8px;direction:ltr;min-width:0}.volume-control .icon-button{width:40px;min-width:40px;min-height:40px;height:40px}.volume-control input{appearance:auto;width:100px;min-width:64px;max-width:100%;min-height:28px;height:28px;padding:0;border:0;background:transparent;accent-color:var(--accent)}#volume-value{min-width:35px;font-size:12px;text-align:end}#player .player-title{flex:1;min-width:110px}#player .player-controls{flex-wrap:wrap;gap:6px}
@media(max-width:580px){#player{max-width:none;width:auto;left:0;right:0;bottom:0;transform:none;margin:0;border-radius:0;gap:6px 12px;padding:10px 12px;justify-content:center}#player .player-title{flex-basis:100%;text-align:center}#player .player-controls{justify-content:center}#player .player-controls button{min-height:36px;padding:7px 10px;font-size:12px}.volume-control{flex-basis:100%;justify-content:center}.volume-control input{width:130px}.volume-control .icon-button{min-height:34px;height:34px}}
/* Direct surah navigation and complete visible-page titles. */
.reader-heading.reader-chrome{height:auto;min-height:64px;flex-wrap:wrap}.reader-chrome h1{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.reader-surah{display:grid;gap:3px;flex:0 1 230px;min-width:0;font-size:11px;color:var(--muted)}.reader-surah select{width:100%;max-width:none;font-size:16px;min-height:44px}.reader-surah>span{line-height:1.2}
@media(max-width:699px){.reader-heading.reader-chrome{height:auto;min-height:0;gap:6px 10px}.reader-surah{flex:1;order:0}.reader-surah>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.reader-quick-actions{order:1}.reader-identity{flex-basis:100%;order:2}.reader-chrome h1{font-size:18px;line-height:1.3}.reader-chrome p{margin-top:2px}.reader-logo{display:none!important}}
/* One Mushaf reader: direct tools, a centered book and an aligned context. */
body.is-reading .reader-workspace[data-reading-mode=mushaf]{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) 72px;grid-template-rows:minmax(0,1fr);gap:24px;direction:ltr;overflow:hidden}body.is-reading .reader-workspace[data-reading-mode=mushaf].has-context{grid-template-columns:72px minmax(0,1fr) var(--context-width)}body.is-reading .reader-workspace[data-reading-mode=mushaf]>.reader-center{grid-column:2;grid-row:1;max-width:none;width:100%;margin:0}body.is-reading .reader-workspace[data-reading-mode=mushaf]>#verse-context{grid-column:3;grid-row:1;position:relative;inset:auto;width:var(--context-width);height:var(--book-height,100%);max-height:var(--book-height,100%);min-height:0;margin-block-start:var(--book-offset,0px);transform:translateX(var(--context-shift,0px));justify-self:stretch;align-self:start}.mushaf-sheet{display:flex;flex-direction:column}.mushaf-sheet>.mushaf,.mushaf-sheet>.mushaf-metadata{flex:none}.mushaf-sheet>.printed-page{margin-top:auto;padding-top:8px;flex:none}.context-footer>.source{margin:0;font-size:12px}.context-body .translit{font-size:15px;line-height:1.8}.context-source-ref{font-size:13px;line-height:1.6}.context-scope button:disabled{opacity:.45;cursor:default}.commentary-empty{color:var(--muted);font-size:15px;line-height:1.7}
.reader-rail{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:8px;overflow:auto;overscroll-behavior:contain;min-height:0;padding:2px;align-self:start;max-height:100%;direction:ltr}.reader-rail .rail-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:54px;padding:7px 3px;border-radius:12px;font-size:10px;line-height:1.3;background:transparent;border:1px solid transparent;color:var(--muted)}.reader-rail .rail-tool:hover,.reader-rail .rail-tool:focus-visible{border-color:var(--line);background:var(--surface);color:var(--ink)}.reader-rail .rail-tool svg{display:block;width:22px;height:22px;flex:none}.reader-rail .rail-tool span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-rail .menu-toggle{font-size:10px}.reader-chrome .reader-logo{display:flex}html[dir=rtl] .reader-rail .rail-tool{direction:rtl}html[dir=rtl] .reader-rail .control-icon{transform:none}
@media(max-width:1000px){body.is-reading .reader-workspace[data-reading-mode=mushaf]>#verse-context{position:fixed;inset:auto 0 0;grid-column:auto;grid-row:auto;margin:0;transform:none;width:100%;height:64dvh;max-height:64dvh}body.is-reading .reader-workspace[data-reading-mode=mushaf]>#verse-context.context-expanded{height:90dvh;max-height:90dvh}body.is-reading .reader-workspace[data-reading-mode=mushaf].has-context{grid-template-columns:72px minmax(0,1fr) 72px}}
@media(max-width:699px){body.is-reading .reader-workspace[data-reading-mode=mushaf],body.is-reading .reader-workspace[data-reading-mode=mushaf].has-context{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 44px;gap:8px}body.is-reading .reader-workspace[data-reading-mode=mushaf]>.reader-center{grid-column:1;grid-row:1}.reader-rail{grid-column:1;grid-row:2;flex-direction:row;justify-content:center;gap:4px;align-self:stretch;padding:0;overflow:hidden}.reader-rail .rail-tool{width:44px;min-width:44px;min-height:44px;padding:10px;flex:none}.reader-rail .rail-tool span{display:none}.reader-chrome .reader-logo{display:none}}
@media(max-height:480px) and (min-width:700px) and (max-width:1000px){.reader-rail{gap:4px}.reader-rail .rail-tool{min-height:36px;padding:6px}.reader-rail .rail-tool span{display:none}body.is-reading .reader-workspace[data-reading-mode=mushaf],body.is-reading .reader-workspace[data-reading-mode=mushaf].has-context{grid-template-columns:44px minmax(0,1fr) 44px;gap:16px}body.is-reading .reader-workspace[data-reading-mode=mushaf]>#verse-context{height:90dvh;max-height:90dvh}body.is-reading .reader-workspace[data-reading-mode=mushaf]>#verse-context.context-expanded{height:100dvh;max-height:100dvh}}
