.qiqbt-app{
    --qiqbt-green:#075a42;
    --qiqbt-green-2:#0d744f;
    --qiqbt-green-soft:#edf8f2;
    --qiqbt-green-pale:#f7fbf9;
    --qiqbt-gold:#b88419;
    --qiqbt-gold-soft:#fff5d8;
    --qiqbt-ink:#15352c;
    --qiqbt-muted:#637972;
    --qiqbt-border:#d7e7df;
    max-width:1120px;
    margin:0 auto;
    padding:42px 20px 72px;
    color:var(--qiqbt-ink);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.qiqbt-app *{box-sizing:border-box}
.qiqbt-hero{text-align:center;max-width:780px;margin:0 auto 34px}
.qiqbt-eyebrow,.qiqbt-kicker{display:inline-block;color:var(--qiqbt-gold);font-size:12px;line-height:1.2;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.qiqbt-hero h1{margin:9px 0 12px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,7vw,68px);line-height:1;color:var(--qiqbt-green)}
.qiqbt-hero p{margin:0;color:var(--qiqbt-muted);font-size:17px;line-height:1.7}
.qiqbt-topic-panel,.qiqbt-reader{border:1px solid var(--qiqbt-border);background:#fff;border-radius:22px;box-shadow:0 14px 36px rgba(7,90,66,.06)}
.qiqbt-topic-panel{padding:26px;margin-bottom:24px}
.qiqbt-topic-topline{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin-bottom:20px}
.qiqbt-topic-topline h2,.qiqbt-reader-head h2{font-family:Georgia,"Times New Roman",serif;color:var(--qiqbt-green);margin:4px 0 0;font-size:clamp(28px,4vw,38px)}
.qiqbt-search-wrap{min-width:250px}
.qiqbt-search-wrap input,.qiqbt-controls select{width:100%;border:1px solid #c9ddd4;border-radius:10px;background:#fff;color:var(--qiqbt-ink);min-height:44px;padding:9px 12px;font:inherit;outline:none}
.qiqbt-search-wrap input:focus,.qiqbt-controls select:focus{border-color:var(--qiqbt-green-2);box-shadow:0 0 0 3px rgba(13,116,79,.10)}
.qiqbt-topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.qiqbt-topic-btn{appearance:none;border:1px solid var(--qiqbt-border);background:var(--qiqbt-green-pale);border-radius:14px;padding:15px;text-align:left;cursor:pointer;min-height:94px;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease;color:var(--qiqbt-ink)}
.qiqbt-topic-btn:hover{transform:translateY(-1px);border-color:#9bc6b4;box-shadow:0 8px 18px rgba(7,90,66,.07)}
.qiqbt-topic-btn[aria-pressed="true"]{background:var(--qiqbt-gold-soft);border-color:#e2bd59;box-shadow:0 8px 18px rgba(184,132,25,.10)}
.qiqbt-topic-icon{display:block;font-size:22px;margin-bottom:8px;line-height:1}
.qiqbt-topic-name{display:block;font-weight:800;line-height:1.25}
.qiqbt-topic-meta{display:block;color:var(--qiqbt-muted);font-size:12px;margin-top:5px}
.qiqbt-reader{padding:28px}
.qiqbt-reader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.qiqbt-reader-head p{margin:8px 0 0;max-width:720px;color:var(--qiqbt-muted);line-height:1.65}
.qiqbt-count{white-space:nowrap;background:var(--qiqbt-green-soft);color:var(--qiqbt-green);border-radius:999px;padding:9px 13px;font-size:13px;font-weight:800}
.qiqbt-controls{display:grid;grid-template-columns:1.35fr 1.15fr 1.05fr auto;gap:12px;padding:16px;border-radius:16px;background:var(--qiqbt-green-soft);border:1px solid #cee8dc;margin-bottom:14px;align-items:end}
.qiqbt-controls label>span{display:block;font-size:12px;font-weight:800;color:var(--qiqbt-green);margin:0 0 6px}
.qiqbt-play-all{border:0;border-radius:10px;background:var(--qiqbt-green-2);color:#fff;font-weight:800;min-height:44px;padding:10px 18px;cursor:pointer;white-space:nowrap}
.qiqbt-play-all:hover{filter:brightness(.96)}
.qiqbt-play-all:disabled{opacity:.5;cursor:not-allowed}
.qiqbt-audio-note{padding:11px 13px;border:1px solid #ead79c;background:#fff9e8;color:#6e5615;border-radius:10px;margin:0 0 14px;font-size:13px;line-height:1.55}
.qiqbt-player-wrap{background:#e7f8ee;border:1px solid #c9ebd9;border-radius:14px;padding:13px 15px;margin-bottom:16px}
.qiqbt-now-playing{font-size:13px;font-weight:800;color:var(--qiqbt-green);margin-bottom:8px}
.qiqbt-player-wrap audio{width:100%}
.qiqbt-loading,.qiqbt-error{text-align:center;padding:32px 12px;color:var(--qiqbt-muted)}
.qiqbt-error{color:#8d2d27;background:#fff1ef;border:1px solid #f0c8c3;border-radius:12px}
.qiqbt-verses{display:grid;gap:14px}
.qiqbt-verse{border:1px solid var(--qiqbt-border);border-radius:16px;padding:20px;background:#fff}
.qiqbt-verse-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.qiqbt-ref{display:inline-flex;align-items:center;gap:7px;background:var(--qiqbt-green-soft);color:var(--qiqbt-green);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}
.qiqbt-listen{appearance:none;border:1px solid #a9d2c0;border-radius:999px;background:#fff;color:var(--qiqbt-green);font-weight:800;padding:7px 12px;cursor:pointer}
.qiqbt-listen:hover{background:var(--qiqbt-green-soft)}
.qiqbt-arabic{font-family:"Amiri Quran","Traditional Arabic","Noto Naskh Arabic",serif;direction:rtl;text-align:right;color:#064d39;font-size:clamp(29px,4vw,42px);line-height:2.05;margin:4px 0 14px}
.qiqbt-translation{font-size:16px;line-height:1.8;color:#344f47;border-top:1px dashed #dbe9e2;padding-top:13px}
.qiqbt-translation[dir="rtl"]{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;text-align:right;font-size:18px;line-height:2.05}
.qiqbt-context-note{margin:22px 0 0;border-left:4px solid var(--qiqbt-gold);background:#fffbef;padding:16px 18px;border-radius:0 12px 12px 0;color:#65562b;font-size:14px;line-height:1.65}
.qiqbt-context-note strong{color:#4b3d14}
.qiqbt-empty{text-align:center;padding:18px;color:var(--qiqbt-muted);grid-column:1/-1}
@media (max-width:900px){
    .qiqbt-topics{grid-template-columns:repeat(3,minmax(0,1fr))}
    .qiqbt-controls{grid-template-columns:1fr 1fr}
    .qiqbt-play-all{width:100%}
}
@media (max-width:680px){
    .qiqbt-app{padding:28px 14px 52px}
    .qiqbt-topic-panel,.qiqbt-reader{border-radius:16px}
    .qiqbt-topic-panel,.qiqbt-reader{padding:18px}
    .qiqbt-topic-topline,.qiqbt-reader-head{display:block}
    .qiqbt-search-wrap{display:block;min-width:0;margin-top:14px}
    .qiqbt-topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .qiqbt-topic-btn{min-height:88px;padding:13px}
    .qiqbt-count{display:inline-block;margin-top:12px}
    .qiqbt-controls{grid-template-columns:1fr;gap:10px;padding:13px}
    .qiqbt-verse{padding:16px}
    .qiqbt-verse-top{align-items:flex-start}
    .qiqbt-arabic{font-size:clamp(27px,8vw,36px);line-height:2}
}
@media (prefers-reduced-motion:reduce){.qiqbt-topic-btn{transition:none}}

/* On the dedicated Qur'an by Topic page, the plugin provides its own H1.
   Hide the theme's duplicate page title so visitors see one clean heading. */
.qiqbt-page .wp-block-post-title,
.qiqbt-page .entry-title{display:none!important}


/* v1.2.0 — fixed bottom playback dock + playback auto-scroll. */
.qiqbt-player-dock{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:99990;
    width:100%;
    margin:0;
    padding:9px 18px 11px;
    border:0;
    border-top:1px solid #cfe2d8;
    border-radius:0;
    background:rgba(255,255,255,.98);
    box-shadow:0 -10px 28px rgba(7,90,66,.12);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}
.qiqbt-player-dock[hidden]{display:none!important}
.qiqbt-player-inner{
    width:min(1180px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(220px,.72fr) minmax(340px,1.28fr);
    gap:18px;
    align-items:center;
}
.qiqbt-player-dock .qiqbt-now-playing{
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.qiqbt-player-dock audio{
    display:block;
    width:100%;
    min-width:0;
    height:42px;
}
body.qiqbt-page.qiqbt-player-open{padding-bottom:104px}
.qiqbt-verse{
    scroll-margin-top:110px;
    transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.qiqbt-verse.is-playing{
    border-color:#0d744f;
    background:#f2fbf6;
    box-shadow:0 0 0 2px rgba(13,116,79,.08),0 10px 24px rgba(7,90,66,.08);
}
@media (max-width:680px){
    body.qiqbt-page.qiqbt-player-open{padding-bottom:128px}
    .qiqbt-player-dock{padding:8px 10px 10px}
    .qiqbt-player-inner{grid-template-columns:1fr;gap:5px}
    .qiqbt-player-dock .qiqbt-now-playing{text-align:center;font-size:12px}
    .qiqbt-player-dock audio{height:40px}
}
