:root {
    --ink: #173530;
    --muted: #697975;
    --forest: #0b302b;
    --forest-light: #17443d;
    --gold: #d2b47a;
    --paper: #f7f7f2;
    --card: #fff;
    --line: #e3e9e4;
    --shadow: 0 18px 60px rgba(16, 45, 39, .08);
    font-family: system-ui, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button, select, input { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { min-height: 82px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; gap: 40px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--gold); font-family: 'Amiri', serif; font-size: 24px; }
.main-nav { display: flex; gap: 28px; margin-inline-start: auto; }
.main-nav a { color: #52645f; text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--forest); }
.language-form select { max-width: 190px; padding: 9px 34px 9px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }

.hero { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 450px; margin-top: 34px; padding: 60px clamp(28px, 6vw, 78px); overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(46,103,89,.5), transparent 32%), linear-gradient(125deg, #092b28, #17443d); border-radius: 28px; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.hero h1 { max-width: 600px; margin: 0; font-family: 'Amiri', 'Noto Naskh Arabic', Georgia, serif; font-size: clamp(34px, 4.5vw, 55px); line-height: 1.2; font-weight: 400; letter-spacing: -.035em; }
.hero-description { max-width: 480px; margin: 20px 0 0; color: #d1ded8; font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(210,180,122,.75); outline-offset: 3px; }
.button:disabled { opacity: .65; cursor: progress; }
.button-light { background: #fff; color: var(--forest); }
.button-primary { color: #fff; background: var(--forest); }
.button-primary:hover { background: var(--forest-light); }
.text-link { color: #fff; font-size: 14px; font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.hero-art { position: relative; display: grid; place-items: center; width: min(310px, 100%); aspect-ratio: 1; justify-self: end; border: 1px solid rgba(211,189,143,.22); border-radius: 50%; }
.art-ring { position: absolute; inset: 12%; border: 1px solid rgba(211,189,143,.3); border-radius: 50%; }
.art-ring-two { inset: 24%; border-style: dashed; transform: rotate(22deg); }
.art-center { display: flex; align-items: center; flex-direction: column; gap: 8px; color: var(--gold); text-align: center; }
.art-center span { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 76px; line-height: 1; }
.art-center small { color: #dce6df; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 15px; }

.feature-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 24px; }
.feature-card { min-height: 122px; display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 24px rgba(16,45,39,.025); }
a.feature-card { text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
a.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; color: #a98543; background: #f4efdf; border-radius: 16px; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 28px; }
.feature-darood .feature-icon { color: #287064; background: #e8f0ec; }
.feature-copy { display: grid; gap: 3px; }
.feature-copy strong { font-size: 17px; }
.feature-copy span { color: var(--muted); font-size: 14px; }
.feature-arrow { margin-inline-start: auto; color: #80918a; font-size: 22px; }

.counter-section { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: center; padding: 86px 0 76px; }
.counter-intro h2, .about-section h2 { max-width: 540px; margin: 0; font-family: 'Amiri', 'Noto Naskh Arabic', Georgia, serif; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.2; font-weight: 400; }
.counter-intro p:not(.eyebrow), .about-section p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.counter-panel { display: grid; justify-items: center; gap: 11px; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.counter-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.counter-number { color: var(--forest); font-variant-numeric: tabular-nums; font-size: clamp(42px, 6vw, 60px); font-weight: 700; line-height: 1.1; }
.counter-feedback { min-height: 20px; margin: 0; color: #9b4939; font-size: 13px; }
.about-section { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; padding: 40px; margin-bottom: 80px; background: #eef2ec; border: 1px solid #e1e9e1; border-radius: 22px; }
.about-symbol { display: grid; place-items: center; width: 120px; height: 120px; margin: auto; color: #b28c4d; border: 1px solid #cdb887; border-radius: 50%; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 52px; }
.about-section h2 { font-size: clamp(28px, 3vw, 38px); }

.site-footer { display: grid; grid-template-columns: auto 1fr; gap: 10px 30px; align-items: center; padding: 30px max(24px, calc((100vw - 1160px) / 2)); background: #092b28; color: #dbe5df; }
.brand-footer { color: #fff; }
.site-footer p { margin: 0; color: #c2d0c8; font-size: 13px; }
.site-footer p a { color: #f0d8a7; }
.footer-note { grid-column: 2; color: #91a49a !important; }

.reader-heading { padding: 64px 0 26px; }
.reader-heading .eyebrow { color: #9a7740; }
.reader-heading h1 { margin: 0; font-family: 'Amiri', Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: 1.15; font-weight: 400; }
.reader-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.reader-tools { display: grid; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.reader-form { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto minmax(180px, 1fr) minmax(180px, 1.25fr) auto; gap: 12px; align-items: center; }
.reader-form label { color: var(--muted); font-size: 13px; font-weight: 600; }
.reader-form select, .reader-form input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.reader-content { min-height: 350px; padding: 34px 0 90px; }
.empty-state { max-width: 650px; margin: 34px auto; padding: 38px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.empty-state h2 { margin: 10px 0; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-weight: 400; font-size: 32px; }
.empty-state p { color: var(--muted); }
.empty-icon { color: #b28c4d; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 48px; }
.surah-title { margin: 20px 0 12px; padding: 30px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.surah-kicker { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.surah-title h2 { margin: 6px 0; color: var(--forest); font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 36px; }
.surah-title p { margin: 0; color: var(--muted); }
.verse-row { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 26px 18px; border-bottom: 1px solid var(--line); }
.verse-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.verse-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--forest); background: #e7eee9; font-size: 13px; font-weight: 700; }
.verse-meta a { color: #9a7740; text-decoration: none; }
.verse-copy { min-width: 0; }
.arabic-verse { margin: 0; color: #183b34; font-family: 'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif; font-size: clamp(27px, 4vw, 38px); line-height: 2; text-align: right; }
.translated-verse { margin: 15px 0 0; color: #52645f; font-size: 17px; line-height: 1.8; }
.empty-search { padding: 30px; color: var(--muted); text-align: center; }
.audio-panel { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.audio-panel audio { width: min(560px, 100%); }
.audio-notice { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.verse-audio-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.verse-audio-controls audio { width: min(320px, 100%); height: 40px; }
.reader-options { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; color: var(--muted); font-size: 13px; }
.reader-options input[type="range"] { width: min(180px, 34vw); accent-color: var(--forest); }
.button-subtle { min-height: 38px; padding-inline: 14px; color: var(--forest); background: #e7eee9; font-size: 13px; }
.bookmark-button { padding: 0; border: 0; background: transparent; color: #9a7740; font-size: 20px; cursor: pointer; }
.bookmark-button.is-saved { color: #b68431; }
.verse-footnotes { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.verse-footnotes summary { cursor: pointer; font-weight: 600; }
.verse-footnotes p { white-space: pre-wrap; }
.content-attribution { padding: 24px 0; color: var(--muted); font-size: 12px; text-align: center; }
.content-attribution a { color: var(--forest); }
.arabic-verse { font-size: var(--arabic-size, clamp(27px, 4vw, 38px)); }

html[dir="rtl"] .main-nav { margin-inline-start: 0; margin-inline-end: auto; }
html[dir="rtl"] .language-form { order: 3; }
html[dir="rtl"] .hero { direction: rtl; }
html[dir="rtl"] .hero-art { justify-self: start; }
html[dir="rtl"] .reader-form { direction: rtl; }
html[dir="rtl"] .site-footer { direction: rtl; }

/* Homepage visual refresh */
:root {
    --ink: #183d36;
    --muted: #6d7d76;
    --forest: #123c35;
    --forest-light: #1f594d;
    --gold: #d6b878;
    --paper: #f5f6f1;
    --line: #e2e9e2;
    --shadow: 0 22px 64px rgba(14, 54, 45, .10);
}

body { background: radial-gradient(ellipse at 50% -16%, #fff 0, #f7f8f3 42%, var(--paper) 100%); }
.site-header { position: relative; z-index: 5; min-height: 78px; backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(17, 55, 47, .035); }
.brand { color: var(--forest); }
.brand-mark { box-shadow: 0 7px 18px rgba(18, 60, 53, .15); }
.main-nav a { position: relative; padding-block: 8px; transition: color .18s ease; }
.main-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.language-form select { cursor: pointer; }
.hero { min-height: 474px; margin-top: 30px; border: 1px solid rgba(218, 198, 151, .22); border-radius: 30px; background: radial-gradient(ellipse at 78% 16%, rgba(96, 140, 105, .36), transparent 34%), radial-gradient(ellipse at 11% 110%, rgba(31, 89, 77, .86), transparent 42%), linear-gradient(120deg, #0c302c 0%, #16453c 56%, #12382f 100%); box-shadow: 0 26px 72px rgba(17, 56, 48, .17); }
.hero::before, .hero::after { position: absolute; content: ""; pointer-events: none; }
.hero::before { inset: 15px; border: 1px solid rgba(230, 212, 166, .11); border-radius: 22px; }
.hero::after { width: 430px; height: 430px; top: -330px; right: 30%; border: 1px solid rgba(230, 212, 166, .08); border-radius: 50%; box-shadow: 0 0 0 30px rgba(230, 212, 166, .025), 0 0 0 60px rgba(230, 212, 166, .02); }
.hero-copy { padding-block: 6px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: #e5cf9c; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #e1c37e; box-shadow: 0 0 0 5px rgba(225, 195, 126, .14); }
.hero h1 { max-width: 640px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.17; }
.hero-description { max-width: 500px; font-size: 17px; line-height: 1.75; }
.hero-actions { gap: 22px; }
.button-light { box-shadow: 0 8px 22px rgba(3, 19, 17, .16); }
.button-light:hover { background: #f7f1df; }
.hero-proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 33px; color: #c4d3cc; font-size: 12px; }
.hero-proof strong { margin-inline-end: 3px; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.proof-divider { width: 1px; height: 16px; background: rgba(230, 239, 231, .28); }
.hero-art { width: min(330px, 100%); border-color: rgba(225, 198, 135, .24); box-shadow: 0 0 0 15px rgba(255, 255, 255, .018), inset 0 0 60px rgba(225, 198, 135, .035); }
.art-orbit { position: absolute; inset: 9%; border: 1px solid rgba(224, 197, 133, .32); border-radius: 50%; }
.art-orbit-two { inset: 19%; border-style: dashed; border-color: rgba(224, 197, 133, .26); transform: rotate(22deg); }
.art-star { position: absolute; color: #dfc58b; }
.art-star-one { top: 16%; right: 19%; font-size: 19px; }
.art-star-two { bottom: 18%; left: 18%; font-size: 23px; }
.art-center { position: relative; gap: 4px; }
.art-medallion { color: rgba(222, 197, 140, .78); font-size: 100px; line-height: .9; }
.art-salawat { position: absolute; top: 50%; left: 50%; color: #f3dfae; font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 63px; line-height: 1; transform: translate(-50%, -57%); }
.art-center small { margin-top: 8px; font-size: 13px; }
.feature-row { gap: 20px; margin-top: 22px; }
.feature-card { position: relative; min-height: 132px; padding: 26px; overflow: hidden; border-radius: 20px; box-shadow: 0 8px 26px rgba(16, 45, 39, .035); }
.feature-card::after { position: absolute; top: -45px; right: -40px; width: 150px; height: 150px; content: ""; border: 1px solid rgba(177, 143, 80, .12); border-radius: 50%; box-shadow: 0 0 0 16px rgba(177, 143, 80, .035), 0 0 0 32px rgba(177, 143, 80, .025); pointer-events: none; }
.feature-quran { background: linear-gradient(110deg, #fff 60%, #faf8f1); }
.feature-darood { background: linear-gradient(110deg, #fff 60%, #f0f5f0); }
.feature-icon { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 18px; }
.feature-icon span { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 28px; }
.feature-copy { position: relative; z-index: 1; gap: 5px; }
.feature-copy strong { color: var(--forest); font-size: 18px; }
.feature-copy span { max-width: 440px; line-height: 1.55; }
.feature-arrow { position: relative; z-index: 1; font-size: 20px; }
.counter-section { gap: clamp(32px, 7vw, 90px); padding: 88px 0 74px; }
.section-eyebrow { color: #a07c3c; }
.counter-intro h2 { color: var(--forest); }
.counter-intro > p:not(.eyebrow) { line-height: 1.75; }
.counter-quran-link, .about-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration-color: #c8a761; text-underline-offset: 5px; }
.counter-quran-link:hover, .about-link:hover { color: #936f31; }
.counter-panel { position: relative; min-height: 244px; overflow: hidden; border-color: #e8e5d9; border-radius: 24px; background: radial-gradient(circle at 50% -10%, #fff, #fbfaf6 70%); }
.counter-panel::before, .counter-panel::after { position: absolute; width: 170px; height: 170px; content: ""; border: 1px solid rgba(196, 165, 102, .14); border-radius: 50%; pointer-events: none; }
.counter-panel::before { top: -115px; left: -80px; }
.counter-panel::after { right: -80px; bottom: -120px; }
.counter-ornament { color: #c4a566; font-size: 22px; line-height: 1; }
.counter-panel .button { min-width: 190px; }
.counter-feedback { position: relative; z-index: 1; }
.about-section { position: relative; grid-template-columns: 190px 1fr; gap: 40px; margin-bottom: 82px; overflow: hidden; border-color: #e4e9df; border-radius: 25px; background: linear-gradient(115deg, #edf2eb, #f2f4ee 64%, #f7f6ee); }
.about-section::after { position: absolute; top: -120px; right: -65px; width: 280px; height: 280px; content: ""; border: 1px solid rgba(170, 139, 80, .12); border-radius: 50%; box-shadow: 0 0 0 24px rgba(170, 139, 80, .025), 0 0 0 48px rgba(170, 139, 80, .02); pointer-events: none; }
.about-symbol { position: relative; width: 132px; height: 132px; gap: 0; background: rgba(255, 255, 255, .37); }
.about-symbol span { font-size: 57px; line-height: 1; }
.about-symbol small { color: var(--muted); font-size: 10px; }
.about-section > div:last-child { position: relative; z-index: 1; }
.about-section h2 { color: var(--forest); }
.about-section p:not(.eyebrow) { line-height: 1.8; }
.site-footer { min-height: 125px; background: #102f2b; }
.brand-footer .brand-mark { background: #214a40; box-shadow: none; }
.site-footer a { transition: color .18s ease; }
.site-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 900px) {
    .site-header { gap: 22px; }
    .main-nav { gap: 15px; }
    .hero { grid-template-columns: 1fr .65fr; }
    .reader-form { grid-template-columns: auto 1fr auto 1fr; }
    .reader-form input[type="search"] { grid-column: 1 / span 3; }
}
@media (max-width: 680px) {
    .wrap { width: min(100% - 32px, 540px); }
    .site-header { min-height: 72px; padding: 12px 16px; flex-wrap: wrap; gap: 10px 14px; }
    .brand { gap: 8px; font-size: 14px; }
    .brand-mark { width: 36px; height: 36px; font-size: 21px; }
    .main-nav { order: 3; width: 100%; justify-content: space-around; gap: 8px; padding-top: 5px; }
    .main-nav a { font-size: 13px; }
    .language-form { margin-inline-start: auto; }
    .language-form select { max-width: 145px; font-size: 13px; }
    .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; padding: 36px 25px; border-radius: 20px; }
    .hero-art { width: 195px; margin: 32px auto 0; justify-self: center !important; }
    .art-center span { font-size: 55px; }
    .feature-row, .counter-section { grid-template-columns: 1fr; }
    .feature-row { gap: 12px; margin-top: 14px; }
    .feature-card { min-height: 100px; padding: 18px; }
    .counter-section { gap: 22px; padding: 58px 0; }
    .counter-panel { padding: 25px 20px 16px; }
    .about-section { grid-template-columns: 1fr; gap: 20px; padding: 25px; margin-bottom: 42px; text-align: center; }
    .about-symbol { width: 90px; height: 90px; font-size: 42px; }
    .site-footer { grid-template-columns: 1fr; gap: 9px; padding: 26px 18px; }
    .footer-note { grid-column: 1; }
    .reader-heading { padding: 42px 0 20px; }
    .reader-tools { padding: 14px; }
    .reader-form { grid-template-columns: 1fr; }
    .reader-form input[type="search"] { grid-column: auto; }
    .reader-form .button { width: 100%; }
    .verse-row { grid-template-columns: 40px 1fr; gap: 10px; padding: 21px 0; }
    .verse-number { width: 32px; height: 32px; }
    .arabic-verse { font-size: 29px; }
    .translated-verse { font-size: 15px; }
    .hero { min-height: 0; margin-top: 14px; padding: 35px 25px 29px; }
    .hero::before { inset: 9px; border-radius: 15px; }
    .hero::after { width: 280px; height: 280px; top: -178px; right: -130px; }
    .hero-description { font-size: 15px; }
    .hero-proof { margin-top: 26px; }
    .hero-art { width: 190px; margin-top: 28px; }
    .art-medallion { font-size: 73px; }
    .art-salawat { font-size: 47px; }
    .art-center small { font-size: 11px; }
    .feature-card { min-height: 106px; padding: 17px; }
    .feature-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
    .feature-copy strong { font-size: 16px; }
    .feature-copy span { font-size: 12px; }
    .counter-section { padding: 58px 0 52px; }
    .counter-panel { min-height: 220px; }
    .about-section { gap: 18px; margin-bottom: 48px; }
    .about-symbol { width: 94px; height: 94px; }
    .about-symbol span { font-size: 42px; }
}

/* Quran reader controls and verse audio */
.reader-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.reader-back-link:hover { color: var(--forest); }
.reader-heading { padding-top: 50px; }
.reader-heading .eyebrow { margin-top: 0; }
.reader-tools { gap: 18px; padding: 22px; border-radius: 20px; box-shadow: 0 10px 32px rgba(16, 45, 39, .04); }
.reader-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reader-field { display: grid; min-width: 0; gap: 7px; }
.reader-field label { color: #5d7068; font-size: 12px; font-weight: 700; }
.reader-field select, .reader-search-field input { min-width: 0; color: var(--ink); border-color: #dfe7df; background: #fbfcf9; }
.reader-field select:disabled { color: #89958f; background: #f2f4f0; }
.reader-search-field { display: flex; grid-column: 1 / -1; gap: 10px; }
.reader-search-field input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; }
.reader-search-field .button { min-width: 130px; }
.reader-options { gap: 14px; padding-top: 4px; }
.reader-options label { font-weight: 650; }
.reader-options .button { border-radius: 11px; }
.audio-notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f4f3ee; }
.surah-title { margin-top: 30px; border-radius: 22px; box-shadow: 0 8px 26px rgba(16, 45, 39, .035); }
.verse-row { gap: 20px; padding: 27px 20px; border-radius: 14px; transition: background-color .16s ease; }
.verse-row:hover { background: rgba(255, 255, 255, .68); }
.verse-meta { align-items: center; }
.verse-meta a, .bookmark-button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; }
.bookmark-button { font-size: 19px; }
.translated-verse { max-width: 850px; }
.verse-listen { margin-top: 16px; }
.verse-listen summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; color: #31584e; border: 1px solid #dce8de; border-radius: 10px; background: #f3f7f2; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.verse-listen summary::-webkit-details-marker { display: none; }
.verse-listen summary::before { content: "♪"; color: #ad8a4e; font-size: 15px; }
.verse-listen[open] summary { margin-bottom: 10px; border-color: #c9d9cb; background: #eaf1ea; }
.verse-audio-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 12px; }
.verse-audio-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.verse-audio-controls audio { width: 100%; height: 38px; }
.empty-state { padding: 48px 34px; box-shadow: 0 12px 38px rgba(16, 45, 39, .05); }
.content-attribution { max-width: 850px; margin: 26px auto; border-top: 1px solid var(--line); line-height: 1.8; }

@media (max-width: 900px) {
    .reader-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .reader-back-link { margin-bottom: 13px; }
    .reader-tools { gap: 14px; padding: 14px; }
    .reader-form { grid-template-columns: 1fr; }
    .reader-search-field { grid-column: auto; }
    .reader-search-field .button { min-width: 98px; padding-inline: 13px; }
    .reader-options { gap: 10px; }
    .reader-options label { width: 100%; }
    .verse-row { gap: 10px; padding: 20px 8px; }
    .verse-meta a, .bookmark-button { width: 30px; height: 30px; }
    .verse-audio-controls { grid-template-columns: 1fr; }
}
