
/* Consistent outer edges; full artwork without a fixed-height letterbox. */
:root{--aligned-panel-width:min(1232px,calc(100% - 48px))}
html body .custom-masthead,html body>header,html body .spotlight,html body>section.member-login{width:var(--aligned-panel-width)!important;max-width:1232px!important;margin-inline:auto!important;box-sizing:border-box!important}
html body .custom-masthead,html body .custom-masthead.watch-masthead{height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;background:transparent!important;line-height:0!important;overflow:hidden!important}
html body .custom-masthead>a{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important}
html body .custom-masthead img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;aspect-ratio:2048/683!important;object-fit:contain!important;margin:0!important;padding:0!important}
html body>section.member-login{padding:14px 16px!important;border-width:1px!important;border-radius:16px!important;background:var(--white)!important;color:var(--ink)!important;border-color:var(--border)!important}
html body>section.member-login h2{border-radius:8px;padding:8px 10px;background:var(--soft)!important;color:var(--ink)!important}
html body .member-login form{gap:10px!important}
html body .member-login input{box-sizing:border-box;min-width:0;background:var(--white);color:var(--ink);border-color:var(--border)}
html body .brand img[src*="quran-member-logo"]{width:46px!important;height:46px!important;object-fit:contain!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:540px){:root{--aligned-panel-width:calc(100% - 24px)}html body>section.member-login{padding:12px!important}html body .member-login form>label:not(.remember){flex:1 1 140px;min-width:0}html body .member-login input:not([type="checkbox"]){width:100%}}

/* Compact section layouts: headings above controls instead of empty side columns. */
html body .apps-layout,html body .reciters>.container,html body .global-grid{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;grid-template-columns:none!important}
html body .apps-layout>div:first-child,html body .reciters>.container>div:first-child,html body .global-grid>div:first-child{width:100%!important;min-width:0!important}
html body :is(.apps-panel,.reciters,.journey,.continue-panel,.global-panel){padding-block:12px!important;margin-block:0!important}
html body :is(.apps-panel,.reciters,.journey,.continue-panel,.global-panel) h2{margin:3px 0 6px!important}
html body :is(.apps-panel,.reciters,.journey,.continue-panel,.global-panel) p{margin:0 0 6px!important}
html body .journey-heading{margin-bottom:10px!important}
html body .app-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:100%!important;justify-content:stretch!important}
html body .app-actions :is(.app-link,.site-share){width:100%!important;min-width:0!important;min-height:64px!important;margin:0!important;padding:10px 14px!important;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--white)!important;color:var(--ink)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;font:700 13px/1.6 Tahoma,Arial,sans-serif!important;box-sizing:border-box!important}
html body .app-link b{display:block!important}
html body .reader-list{width:100%!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
html body .reader-filter{min-width:0!important;min-height:64px!important;padding:10px 12px!important;white-space:normal!important}
html body .reader-filter span,html body .reader-filter small{display:block!important;overflow-wrap:anywhere!important}
html body .global-stats{width:100%!important;min-width:0!important;max-width:none!important;padding:12px!important}
html body .continue-list,html body .journey-grid{gap:10px!important}
@media(max-width:850px){html body .reader-list{display:flex!important;flex-wrap:wrap!important;gap:10px!important}html body .reader-filter{flex:1 1 180px!important;width:auto!important}}
@media(max-width:540px){html body .app-actions{display:flex!important;flex-wrap:wrap!important}html body .app-actions :is(.app-link,.site-share){flex:1 1 140px!important;width:auto!important;min-height:58px!important}html body .reader-filter{flex-basis:135px!important}html body .journey-grid{grid-template-columns:1fr!important}}

/* Featured recitation: compact image and adjacent text. */
html body .spotlight{padding-block:20px!important;min-height:0!important}
html body .spotlight-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,320px)!important;align-items:center!important;gap:24px!important;width:100%!important;max-width:960px!important;margin-inline:auto!important;min-height:0!important}
html body .spotlight-copy{width:100%!important;max-width:none!important;min-width:0!important}
html body .spotlight-copy h1{font-size:clamp(22px,2.4vw,30px)!important;line-height:1.65!important;margin:6px 0 10px!important}
html body .spotlight-copy p{margin:0 0 12px!important}
html body .spotlight-image{display:block!important;position:relative!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;justify-self:stretch!important;overflow:hidden!important;border-radius:14px!important;background:var(--soft)!important}
html body .spotlight-image img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important;aspect-ratio:16/9!important}
html body .spotlight-image .play-large{width:58px!important;height:58px!important;font-size:26px!important;display:grid!important;place-items:center!important}
@media(max-width:650px){html body .spotlight-grid{grid-template-columns:1fr!important;gap:14px!important}html body .spotlight-image{order:-1!important;width:min(100%,360px)!important;justify-self:center!important}html body .spotlight-copy{text-align:center!important}html body .spotlight{padding-block:16px!important}}
