/* ============================================================
   style.css — مشغل القرآن (النسخة الكاملة + تحسينات SEO)
   ============================================================ */

@font-face {
    font-family: 'sura_names_font';
    src: url('sura.woff2') format('woff2'), url('sura_names.woff') format('woff');
    font-display: swap;
}

* { box-sizing: border-box; }

body {
    font-family: Almarai, sans-serif;
    background: #f5f7f7;
    padding-bottom: 150px;
    margin: 0;
    transition: padding-top .3s ease, padding-bottom .3s ease;
}
body.docked-bottom { padding-bottom: 150px; }
body.docked-top { padding-bottom: 20px; }
body.surah-page { padding-bottom: 30px; }

/* ============ الهيدر ============ */
header {
    background: #168888; padding: 8px 12px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; min-height: 50px;
}
header .header-center {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; position: absolute; left: 50%; transform: translateX(-50%);
}

header img { height: 32px; width: auto; display: block; }
header .brand { color: #fff; font-weight: bold; font-size: 16px; white-space: nowrap; }
.header-btn {
    background: rgba(255,255,255,.15); color: #fff; border: none;
    padding: 6px 12px; border-radius: 20px; font-size: 13px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
    transition: background .2s; text-decoration: none; z-index: 2;
}
.header-btn:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }
.header-btn.hidden { visibility: hidden; }
#share-btn { order: 999; }
#back-btn { order: 1; }

/* ============ بطاقة القارئ ============ */
#reciters-list { --name-size: 14px; --card-pad: 10px; }
#reciters-list[data-zoom="-3"] { --name-size: 10px; --card-pad: 5px; }
#reciters-list[data-zoom="-2"] { --name-size: 11px; --card-pad: 6px; }
#reciters-list[data-zoom="-1"] { --name-size: 12.5px; --card-pad: 8px; }
#reciters-list[data-zoom="0"] { --name-size: 14px; --card-pad: 10px; }
#reciters-list[data-zoom="1"] { --name-size: 16px; --card-pad: 12px; }
#reciters-list[data-zoom="2"] { --name-size: 18px; --card-pad: 14px; }
#reciters-list[data-zoom="3"] { --name-size: 20px; --card-pad: 16px; }

.reciter-card {
    position: relative; background: #fff; border-radius: 10px;
    padding: var(--card-pad, 10px); margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: padding .25s, box-shadow .2s, transform .2s;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; overflow: hidden; flex-wrap: nowrap; min-width: 0;
}
.reciter-card:hover { box-shadow: 0 4px 14px rgba(22,136,136,.25); transform: translateY(-2px); }
.reciter-star-btn {
    background: none; border: none; cursor: pointer;
    font-size: calc(var(--name-size, 14px) * 1.05);
    padding: 4px 2px; color: #ccc;
    transition: color .2s, transform .2s, font-size .25s;
    flex-shrink: 0; line-height: 1; order: -1;
}
.reciter-star-btn:hover { color: #ffc107; transform: scale(1.15); }
.reciter-star-btn.active { color: #ffc107; }
.reciter-link {
    flex: 1; min-width: 0; text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    flex-wrap: nowrap; overflow: hidden;
}
.reciter-link:hover { text-decoration: none; }
.reciter-name {
    color: #168888; font-weight: bold;
    font-size: var(--name-size, 14px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1; min-width: 40px; flex-grow: 1;
}
.reciter-count {
    color: #999; font-size: calc(var(--name-size, 14px) * 0.72);
    white-space: nowrap; flex-shrink: 0;
}
.reciter-rewaya {
    color: #fff; font-size: calc(var(--name-size, 14px) * 0.66);
    white-space: nowrap; padding: 2px 8px; border-radius: 10px;
    font-weight: bold; flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.rewaya-pill {
    color: #fff; font-size: 10.5px; padding: 4px 10px;
    border-radius: 20px; font-weight: bold; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.surah-hero-meta {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-top: 15px;
    color: rgba(255,255,255,.9); font-size: 12px;
}
.surah-hero-meta span {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.14); padding: 5px 11px;
    border-radius: 20px; backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.08); white-space: nowrap;
}
.surah-hero-meta span i { font-size: 10px; opacity: .85; }
@media (max-width: 500px) {
    .surah-hero-meta { font-size: 10.5px; gap: 6px; }
    .surah-hero-meta span { padding: 4px 8px; }
}

.rw-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-left: 6px; vertical-align: middle;
}

/* ============ الفلاتر ============ */
.filters-bar {
    display: flex; gap: 8px; margin: 10px 0;
    flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.filter-center {
    display: flex; gap: 6px; align-items: center; flex: 1; justify-content: center;
}
.filters-bar > .filter-dropdown { order: 1; }
.filters-bar > .filter-center { order: 2; }
.filters-bar > #sort-btn { order: 3; }
.filters-bar > .mini-btn { order: 4; width: 100%; justify-content: center; }
.filter-btn {
    background: #fff; border: 1px solid #d0e5e5; color: #168888;
    padding: 5px 10px; border-radius: 15px; cursor: pointer;
    font-size: 11px; display: inline-flex; align-items: center;
    gap: 5px; transition: all .2s; text-decoration: none; font-family: inherit;
}
.filter-btn.small-btn { padding: 3px 7px; font-size: 9.5px; }
.filter-btn:hover { background: #f0f8f8; border-color: #168888; color: #168888; text-decoration: none; }
.filter-btn .chev { font-size: 8px; opacity: .6; }
.filter-dropdown { position: relative; }
.dropdown-menu-custom {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    min-width: 200px; max-height: 320px; overflow-y: auto;
    display: none; z-index: 200; padding: 6px 0;
}
.dropdown-menu-custom.open { display: block; animation: fadeDown .22s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-menu-custom a {
    display: block; padding: 7px 12px; color: #555;
    text-decoration: none; font-size: 11px; transition: background .15s;
}
.dropdown-menu-custom a:hover { background: #f0f8f8; color: #168888; }
.dropdown-menu-custom a.active { background: #e7f7f5; color: #168888; font-weight: bold; }
.mini-btn {
    background: #ffc107; color: #fff; border: none;
    padding: 4px 10px; border-radius: 15px; font-size: 10px;
    cursor: pointer; display: inline-flex; align-items: center;
    gap: 4px; font-family: inherit; transition: background .2s;
}
.mini-btn:hover { background: #e0a800; color: #fff; }

/* ============ رأس القارئ ============ */
.reciter-head-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; background: #fff; border-radius: 12px;
    padding: 10px 12px; margin: 12px 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    flex-wrap: nowrap; overflow: visible;
}
.reciter-head-row h3 {
    margin: 0; color: #168888; font-size: 15px;
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.head-meta { display: flex; flex-direction: row; gap: 6px; align-items: center; flex-shrink: 0; }
@media (max-width: 400px) {
    .reciter-head-row h3 { font-size: 12px; }
    .reciter-head-row { padding: 8px 10px; gap: 4px; }
}
.zoom-btn {
    background: #f4fafa; border: none; color: #168888;
    width: 30px; height: 30px; border-radius: 50%; font-size: 12px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s; padding: 0; flex-shrink: 0;
}
.zoom-btn:hover { background: #168888; color: #fff; }
.zoom-btn:active { transform: scale(.92); }

.surah-picker-btn {
    background: #168888; color: #fff; border: none;
    padding: 6px 12px; border-radius: 15px;
    font-size: 10.5px; font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    transition: background .2s;
}
.surah-picker-btn:hover { background: #0f6e6e; }

.change-reciter-btn {
    background: #0f6e6e; color: #fff; border: none;
    padding: 6px 12px; border-radius: 15px;
    font-size: 10.5px; font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    transition: background .2s;
}
.change-reciter-btn:hover { background: #0a5555; }

/* ============ صفحة السورة ============ */
.surah-hero {
    position: relative; margin: 15px 0;
    background: linear-gradient(135deg, #0f4d4d 0%, #168888 50%, #0f6e6e 100%);
    border-radius: 22px; padding: 40px 20px 30px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(15,77,77,.35), 0 0 0 1px rgba(255,255,255,.1) inset;
    animation: heroFadeIn .6s ease-out;
}
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.surah-hero::before {
    content: ''; position: absolute; inset: 15px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 16px; pointer-events: none;
}
.surah-hero::after {
    content: ''; position: absolute; top: -80px; left: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.surah-hero-inner { text-align: center; position: relative; z-index: 2; }

.surah-hero-glyph {
    font-family: 'sura_names_font', 'Almarai', serif;
    font-size: 105px; line-height: 1; color: #fff; display: block;
    text-shadow: 0 4px 25px rgba(255,255,255,.35), 0 2px 8px rgba(0,0,0,.3);
    filter: drop-shadow(0 4px 15px rgba(255,255,255,.25));
    animation: glyphPop .8s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes glyphPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 500px) {
    .surah-hero-glyph { font-size: 77px; }
    .surah-hero { padding: 30px 15px 25px; }
}

.surah-hero-actions {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; margin: 15px 0; flex-wrap: wrap;
}
.hero-action-btn {
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    color: #fff !important; border: none;
    padding: 10px 18px; border-radius: 25px;
    font-size: 13px; font-weight: bold; font-family: inherit;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 6px 18px rgba(22,136,136,.35);
    transition: transform .2s, box-shadow .2s, background .3s;
    min-height: 42px; text-decoration: none !important;
}
.hero-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22,136,136,.5);
    color: #fff !important; text-decoration: none !important;
}
.hero-action-btn:active { transform: scale(.97); }
.hero-read-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%) !important;
    box-shadow: 0 6px 18px rgba(212,175,55,.45) !important;
}
.hero-read-btn:hover { box-shadow: 0 10px 24px rgba(212,175,55,.6) !important; }
.hero-play-btn.playing {
    background: linear-gradient(135deg, #e63946 0%, #a01e28 100%) !important;
    box-shadow: 0 6px 18px rgba(230,57,70,.45) !important;
}
.hero-play-btn.playing:hover { box-shadow: 0 10px 24px rgba(230,57,70,.6) !important; }

body.surah-page .hero-fav-btn { display: none !important; }
body.surah-page .read-surah-panel .hero-fav-btn { display: none !important; }

/* ============ المشغل inline في صفحة السورة ============ */
.surah-player-slot { margin: 15px 0; min-height: 0; }
body.surah-page #player-bar {
    position: static !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    transform: none !important;
    width: 100% !important; max-width: 100% !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 25px rgba(22,136,136,.15) !important;
    border: 1px solid #d0e5e5;
    margin: 0 !important;
    display: block !important;
}
body.surah-page #drag-handle { display: none; }
body.surah-page #expand-arrow { display: none; }
body.surah-page .layout-collapsed { display: none; }
body.surah-page .layout-expanded { display: block; }

body.surah-page .exp-row-seek .pc-play { display: flex !important; }
body.surah-page .pc-row-2 .pc-play { display: flex !important; }

body.surah-page .exp-close { display: none !important; }
body.surah-page #player-bar.expanded .exp-close { display: none !important; }

/* ============ حاوية قراءة السورة ============ */
.read-surah-panel {
    margin: 15px 0; background: #fff;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border: 1px solid #d0e5e5;
    animation: panelSlideIn .3s ease-out;
}
@keyframes panelSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.read-surah-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0f4d4d 0%, #168888 100%);
    color: #fff; gap: 8px;
}
.read-surah-title {
    font-size: 13px; font-weight: bold;
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.read-surah-center {
    display: flex; gap: 6px; align-items: center;
    flex: 1; justify-content: center;
}
.read-surah-controls { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.read-surah-icon-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; transition: background .2s, transform .15s;
}
.read-surah-icon-btn:hover { background: rgba(255,255,255,.35); }
.read-surah-icon-btn:active { transform: scale(.9); }
.read-surah-icon-btn.read-surah-close:hover { background: #e63946; }
.read-surah-body {
    height: 400px; max-height: 70vh; overflow: hidden;
    transition: height .3s ease; background: #f8fdfd;
}
.read-surah-panel.expanded .read-surah-body { height: 90vh; }
.read-surah-body iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============ أزرار التنقل ============ */
.surah-nav-row {
    display: flex; justify-content: space-between; align-items: stretch;
    gap: 10px; margin: 18px 0;
}
.surah-nav-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 14px;
    background: #fff; border: 1px solid #d0e5e5;
    border-radius: 14px; color: #168888 !important;
    text-decoration: none !important;
    font-size: 12.5px; font-weight: bold; font-family: inherit;
    box-shadow: 0 2px 8px rgba(22,136,136,.06);
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    min-height: 52px; cursor: pointer; min-width: 0;
}
.surah-nav-btn:hover {
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    color: #fff !important; border-color: #168888;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22,136,136,.35);
    text-decoration: none !important;
}
.surah-nav-btn:active { transform: translateY(0) scale(.98); }
.surah-nav-btn i { font-size: 13px; flex-shrink: 0; transition: transform .25s; }
.surah-nav-btn.prev:hover i { transform: translateX(-3px); }
.surah-nav-btn.next:hover i { transform: translateX(3px); }
.surah-nav-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.surah-nav-btn.disabled { visibility: hidden; pointer-events: none; flex: 1; }
@media (max-width: 500px) {
    .surah-nav-btn { font-size: 11px; padding: 10px 8px; min-height: 46px; gap: 4px; }
    .surah-nav-btn i { font-size: 11px; }
}

/* ============ مودال اختيار السور وتغيير القارئ ============ */
.surah-picker-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 10000; display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px); animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.surah-picker-modal.open { display: flex; }
.surah-picker-content {
    background: #fff; border-radius: 24px;
    width: 92%; max-width: 420px; max-height: 80vh;
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 25px 70px rgba(0,0,0,.4);
    animation: modalPop .35s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes modalPop { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.surah-picker-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0f4d4d 0%, #168888 100%);
    color: #fff; display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: bold;
}
.surah-picker-header span {
    display: inline-flex; align-items: center; gap: 6px;
}
.surah-picker-close {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; transition: background .2s;
}
.surah-picker-close:hover { background: #e63946; }
.surah-picker-list {
    flex: 1; overflow-y: auto; scroll-snap-type: y mandatory;
    padding: 20px 0; perspective: 800px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: #b6d4d4 #f0f8f8;
}
.surah-picker-list::-webkit-scrollbar { width: 6px; }
.surah-picker-list::-webkit-scrollbar-track { background: #f0f8f8; }
.surah-picker-list::-webkit-scrollbar-thumb { background: #b6d4d4; border-radius: 3px; }
.surah-picker-item {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 22px; color: #168888; text-decoration: none;
    font-size: 16px; scroll-snap-align: center;
    transition: transform .15s ease-out, opacity .15s, background .2s;
    transform-origin: center center;
    border-bottom: 1px solid #f0f5f5;
    will-change: transform, opacity; font-weight: bold;
}
.surah-picker-item:hover { background: #f0f8f8; color: #168888; text-decoration: none; }
.surah-picker-item.active { background: #e7f7f5; color: #0f6e6e; }
.surah-picker-name { font-size: 15px; }

/* ✅ عناصر مودال تغيير القارئ */
#reciter-picker-list .surah-picker-item {
    justify-content: space-between;
    font-size: 13px;
    padding: 12px 20px;
    scroll-snap-align: none;
}
#reciter-picker-list .surah-picker-item .rd-name {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: right;
    min-width: 0;
}
#reciter-picker-list .surah-picker-item .rd-riwayah {
    font-size: 9.5px;
    color: #999;
    background: #f0f5f5;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 8px;
    font-weight: normal;
}
#reciter-picker-list .surah-picker-item.active .rd-riwayah {
    background: #d4ecea;
    color: #0f6e6e;
}

/* ============ شبكة السور ============ */
.surah-grid {
    display: grid; grid-template-columns: repeat(8, 1fr);
    gap: 8px; margin-top: 12px;
    --surah-h: 70px; --surah-pad: 6px 4px 14px;
}
.surah-grid[data-zoom="-3"] { --surah-h: 46px; --surah-pad: 3px 2px 8px; }
.surah-grid[data-zoom="-2"] { --surah-h: 55px; --surah-pad: 4px 3px 10px; }
.surah-grid[data-zoom="-1"] { --surah-h: 62px; --surah-pad: 5px 3px 12px; }
.surah-grid[data-zoom="0"] { --surah-h: 70px; --surah-pad: 6px 4px 14px; }
.surah-grid[data-zoom="1"] { --surah-h: 86px; --surah-pad: 8px 5px 16px; }
.surah-grid[data-zoom="2"] { --surah-h: 104px; --surah-pad: 10px 6px 18px; }
.surah-grid[data-zoom="3"] { --surah-h: 124px; --surah-pad: 12px 8px 22px; }

.surah-card {
    position: relative; background: #fff; border-radius: 10px;
    padding: var(--surah-pad, 6px 4px 14px);
    cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    display: flex; align-items: center; justify-content: center;
    min-height: var(--surah-h, 70px);
    user-select: none; overflow: hidden;
}
.surah-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(22,136,136,.28); }
.surah-card:active { transform: translateY(-1px) scale(.97); }
.surah-card.hidden-non-fav { display: none; }
.surah-card.playing {
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    box-shadow: 0 6px 20px rgba(22,136,136,.55);
    transform: translateY(-3px);
}
.surah-card.playing .surah-name { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.surah-name {
    font-family: 'sura_names_font', 'Almarai', sans-serif;
    font-size: 36px; color: #168888; line-height: 1;
    transition: color .2s, font-size .25s;
    display: block; text-align: center;
}
.surah-grid[data-zoom="-3"] .surah-name { font-size: 15px; }
.surah-grid[data-zoom="-2"] .surah-name { font-size: 19px; }
.surah-grid[data-zoom="-1"] .surah-name { font-size: 26px; }
.surah-grid[data-zoom="0"] .surah-name { font-size: 36px; }
.surah-grid[data-zoom="1"] .surah-name { font-size: 44px; }
.surah-grid[data-zoom="2"] .surah-name { font-size: 54px; }
.surah-grid[data-zoom="3"] .surah-name { font-size: 68px; }
@media (max-width: 768px) {
    .surah-grid[data-zoom="0"] .surah-name { font-size: 30px; }
    .surah-grid[data-zoom="1"] .surah-name { font-size: 38px; }
    .surah-grid[data-zoom="2"] .surah-name { font-size: 48px; }
    .surah-grid[data-zoom="3"] .surah-name { font-size: 58px; }
}
@media (max-width: 400px) {
    .surah-grid[data-zoom="0"] .surah-name { font-size: 26px; }
    .surah-grid[data-zoom="3"] .surah-name { font-size: 48px; }
}

.surah-play-inline-btn {
    position: absolute; top: 4px; right: auto; left: 4px;
    background: #e7f7f5; color: #168888;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 9px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .25s; z-index: 3;
}
.surah-play-inline-btn:hover { background: #168888; color: #fff; transform: scale(1.15); }
.surah-card.playing .surah-play-inline-btn { background: #fff; color: #e63946; }
.surah-card.playing .surah-play-inline-btn:hover { background: #e63946; color: #fff; }

.surah-star-btn {
    position: absolute; bottom: 2px; right: 2px;
    background: none; border: none; font-size: 10px;
    cursor: pointer; color: #ddd; padding: 3px;
    transition: color .2s, transform .2s; line-height: 1;
}
.surah-star-btn:hover { color: #ffc107; transform: scale(1.2); }
.surah-star-btn.active { color: #ffc107; }
.surah-card.playing .surah-star-btn { color: rgba(255,255,255,.5); }
.surah-card.playing .surah-star-btn.active { color: #ffc107; }

/* ============ المشغل الثابت ============ */
#player-bar {
    position: fixed; left: 0; right: 0;
    background: #fff; box-shadow: 0 -4px 25px rgba(0,0,0,.16);
    z-index: 9999; display: none;
    transition: bottom .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), border-radius .35s ease;
    border-radius: 18px 18px 0 0; padding: 0; overflow: hidden;
}
#player-bar.docked-bottom { bottom: 0; top: auto; border-radius: 18px 18px 0 0; }
#player-bar.docked-top { top: 0; bottom: auto; border-radius: 0 0 18px 18px; box-shadow: 0 4px 25px rgba(0,0,0,.16); }
#player-bar.dragging { transition: none; box-shadow: 0 8px 40px rgba(0,0,0,.35); }

#drag-handle {
    padding: 8px 0 4px; cursor: grab;
    display: flex; justify-content: center;
    touch-action: none; opacity: .5; transition: opacity .2s;
}
#drag-handle:hover { opacity: 1; }
#drag-handle .handle-bar {
    width: 55px; height: 5px; background: #b6d4d4;
    border-radius: 3px; transition: all .25s;
}
#drag-handle:hover .handle-bar { width: 80px; background: #168888; }

#expand-arrow {
    position: absolute; right: 8px; top: 6px;
    width: 22px; height: 22px; background: #eaf6f6;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: .85;
    transition: opacity .3s, background .2s, transform .2s;
    font-size: 10px; color: #168888; z-index: 10;
    border: 1px solid #d0e5e5;
}
#expand-arrow:hover { background: #168888; color: #fff; transform: scale(1.1); opacity: 1; }
#player-bar.expanded #expand-arrow { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 11px; }

.layout-expanded { display: none; }
.layout-collapsed { display: block; }
#player-bar.expanded .layout-collapsed { display: none; }
#player-bar.expanded .layout-expanded { display: block; }

.pc-row-1 {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 40px 8px 14px;
    border-bottom: 1px solid #eef4f4; flex-wrap: nowrap;
}
.pc-title {
    flex: 1; min-width: 0; font-size: 14px;
    color: #168888; font-weight: bold;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.pc-actions a, .pc-actions button {
    background: none; border: none; cursor: pointer;
    color: #168888; padding: 5px 6px; font-size: 13px;
    border-radius: 8px; transition: background .2s;
    text-decoration: none; display: inline-flex;
    align-items: center; gap: 4px; line-height: 1;
}
.pc-actions a:hover, .pc-actions button:hover { background: #eaf6f6; text-decoration: none; }
.pc-dl .btn-label { display: none; }
.vol-slider { width: 60px; direction: ltr; }

.pc-row-2 {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 12px;
    direction: rtl;
}
.pc-row-2 .pc-play { order: 1; }
.pc-row-2 .pc-time { order: 2; }
.pc-row-2 .pc-seek { order: 3; }

.pc-play {
    background: #168888; color: #fff; border: none;
    width: 42px; height: 42px; border-radius: 50%;
    font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .2s, transform .15s; padding: 0;
}
.pc-play:hover { background: #0f6e6e; }
.pc-play:active { transform: scale(.93); }
.pc-time {
    font-size: 11px; color: #666;
    min-width: 40px; text-align: center;
    font-family: 'Courier New', monospace; font-weight: bold;
}
.pc-seek {
    flex: 1; height: 6px;
    -webkit-appearance: none; appearance: none;
    outline: none; direction: ltr; cursor: pointer; margin: 0 6px;
    border-radius: 3px; --progress: 0%;
    background: linear-gradient(to right, #1dd1a1 0%, #0fb8ad var(--progress), #e0e0e0 var(--progress), #e0e0e0 100%) !important;
    transition: background .1s linear;
}
.pc-seek::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 15px; height: 15px;
    background: #0fb8ad; border-radius: 50%;
    cursor: pointer; box-shadow: 0 2px 6px rgba(15,184,173,.5);
    border: 2px solid #fff;
}
.pc-seek::-moz-range-thumb {
    width: 15px; height: 15px; background: #0fb8ad;
    border-radius: 50%; cursor: pointer; border: 2px solid #fff;
}

/* ============ التخطيط الموسّع ============ */
.exp-row-title {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 40px 10px 40px;
}
.exp-green-title {
    flex: 1;
    background: linear-gradient(135deg, #0f4d4d 0%, #168888 100%);
    color: #fff; border-radius: 12px;
    padding: 11px 14px; text-align: center;
    font-size: 16px; font-weight: bold;
    box-shadow: 0 4px 12px rgba(15,77,77,.35);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.exp-close {
    position: absolute; left: 8px; top: 6px;
    width: 24px; height: 24px;
    background: #ffe5e5; border: 1px solid #ffb8c0;
    border-radius: 50%; color: #e63946; font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s, color .2s;
    padding: 0; z-index: 10;
}
.exp-close:hover { background: #e63946; color: #fff; transform: scale(1.1); }
#player-bar.expanded .exp-close { top: 8px; left: 8px; width: 24px; height: 24px; font-size: 11px; }

.exp-row-controls {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; padding: 8px 12px 10px; flex-wrap: nowrap;
}
.exp-btn {
    background: #f4fafa; border: none; color: #168888;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: background .2s, transform .15s, color .2s;
    flex-shrink: 0; padding: 0; position: relative;
}
.exp-btn:hover { background: #168888; color: #fff; }
.exp-btn:active { transform: scale(.93); }
.exp-btn.active { background: #168888; color: #fff; }
.exp-row-controls .forward-btn { order: 1; }
.exp-row-controls .exp-dl { order: 2; }
.exp-row-controls .repeat-btn { order: 3; }
.exp-row-controls .rewind-btn { order: 4; }
.exp-row-controls .exp-vol-wrapper { order: 5; }

.repeat-btn {
    width: auto !important;
    height: 30px !important;
    border-radius: 15px !important;
    padding: 0 10px !important;
    gap: 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.repeat-btn .repeat-label {
    font-family: inherit;
    font-size: 10.5px;
    white-space: nowrap;
    line-height: 1;
    font-weight: bold;
    pointer-events: none;
}
.repeat-btn .repeat-one {
    position: absolute;
    font-size: 7px; font-weight: bold;
    top: 55%; left: 8px;
    transform: translateY(-50%);
    pointer-events: none; display: none; color: currentColor;
}
.repeat-btn.repeat-one-on .repeat-one { display: block; }

.exp-dl {
    background: transparent !important; color: #168888 !important;
    border: 1px solid #d0e5e5 !important;
    width: 30px !important; height: 30px !important;
    border-radius: 50% !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    font-size: 12px !important; text-decoration: none;
    flex-shrink: 0; padding: 0 !important; transition: all .2s;
}
.exp-dl:hover {
    background: #168888 !important; color: #fff !important;
    border-color: #168888 !important; text-decoration: none !important;
}
.exp-dl .btn-label { display: none !important; }

.exp-vol-wrapper {
    display: flex; align-items: center; gap: 3px;
    flex: 0 0 30%; min-width: 90px;
    background: #f4fafa; border-radius: 20px; padding: 2px 6px;
}
.exp-vol-wrapper .exp-btn { width: 26px; height: 26px; font-size: 11px; background: transparent; }
.exp-vol-wrapper .vol-slider { flex: 1; min-width: 0; }

.exp-row-seek {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px 14px;
    direction: rtl;
}
.exp-row-seek .pc-play {
    order: 1;
    display: flex;
    width: 40px; height: 40px; font-size: 14px;
    flex-shrink: 0;
}
.exp-row-seek .time-text {
    order: 2;
    font-size: 11px; color: #666;
    min-width: 42px; text-align: center;
    font-family: 'Courier New', monospace; font-weight: bold;
}
.exp-row-seek .pc-seek {
    order: 3; flex: 1; margin: 0; height: 6px; direction: ltr;
}
.exp-row-seek .time-total {
    order: 4;
    font-size: 11px; color: #666;
    min-width: 42px; text-align: center;
    font-family: 'Courier New', monospace; font-weight: bold;
}

/* ============ أخرى ============ */
#content.loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
#top-spacer { display: none; }
body.docked-top #top-spacer { display: block; }

/* ============ زر مشاركة الفوتر ============ */
.share-cta {
    display: flex; align-items: center; gap: 10px;
    max-width: 380px; margin: 15px auto 12px;
    padding: 8px 12px; background: #fff;
    border: 1px solid #d0e5e5; border-radius: 10px;
    color: #168888 !important; text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(22,136,136,.08);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer; min-height: 46px;
}
.share-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(22,136,136,.15);
    border-color: #168888; color: #168888 !important; text-decoration: none !important;
}
.share-cta-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    color: #fff; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
    animation: shareIconAnim 3s ease-in-out infinite;
}
@keyframes shareIconAnim {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-12deg) scale(1.08); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(12deg) scale(1.08); }
}
.share-cta-text { flex: 1; min-width: 0; text-align: right; }
.share-cta-text .line1 {
    display: block; font-size: 11.5px; font-weight: bold;
    color: #168888; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-cta-text .line2 {
    display: block; font-size: 10px; color: #999;
    font-style: italic; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}

/* ============================================================
   حاوية القراءة في وضع ملء الشاشة
   ============================================================ */
.read-surah-panel.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10001 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    max-height: 100dvh;
    height: 100dvh;
    display: flex !important;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.read-surah-panel.fullscreen .read-surah-header {
    border-radius: 0;
    flex-shrink: 0;
}
.read-surah-panel.fullscreen .read-surah-body {
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}
.read-surah-panel.fullscreen #player-bar {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0;
    flex-grow: 0;
    border-top: 1px solid #d0e5e5;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 5;
}
.read-surah-panel.fullscreen #drag-handle { display: none; }
.read-surah-panel.fullscreen #expand-arrow { display: none; }
.read-surah-panel.fullscreen .layout-collapsed { display: none !important; }
.read-surah-panel.fullscreen .layout-expanded { display: block !important; }
.read-surah-panel.fullscreen .exp-close { display: none !important; }
.read-surah-panel.fullscreen .exp-row-seek .pc-play { display: flex !important; }

.read-surah-icon-btn.read-share-active,
#read-share-btn:hover {
    background: rgba(212,175,55,.35);
}

/* ============================================================
   ✅ إشعار تفعيل الصوت (الموضع يُحدَّد من JS)
   ============================================================ */
.autoplay-unmute-notice {
    position: fixed;
    bottom: auto; top: auto; left: auto; right: auto;
    background: linear-gradient(135deg, #e63946 0%, #a01e28 100%);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 25px;
    font-family: Almarai, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(230,57,70,.55);
    z-index: 10050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: noticePop .35s cubic-bezier(.2,.9,.3,1.3);
    transition: bottom .25s ease, top .25s ease;
    max-width: 92vw;
}
.autoplay-unmute-notice:hover {
    background: linear-gradient(135deg, #a01e28 0%, #7a131c 100%);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 30px rgba(230,57,70,.7);
}
.autoplay-unmute-notice:active { transform: translateX(-50%) scale(.96); }
.autoplay-unmute-notice i { font-size: 14px; }
.autoplay-unmute-notice span { font-size: 12.5px; }

@keyframes noticePop {
    from { opacity: 0; transform: translateX(-50%) scale(.75); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (max-width: 500px) {
    .autoplay-unmute-notice { padding: 10px 14px; }
    .autoplay-unmute-notice span { font-size: 11.5px; }
}

/* ✅ تنسيق زر التشغيل الرئيسي (Hero Play Button) */
.hero-play-btn {
    background-color: #1b5e20 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.4) !important;
    position: relative;
    overflow: visible !important;
}
.hero-play-btn i {
    color: #ffffff !important;
    font-size: 1.2em;
    margin-left: 8px;
}
@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(27, 94, 32, 0.7); transform: scale(1); }
    70%  { box-shadow: 0 0 0 15px rgba(27, 94, 32, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(27, 94, 32, 0); transform: scale(1); }
}
.hero-play-btn:not(.playing) {
    animation: pulse-green 1.5s infinite;
    font-weight: bold;
}
.hero-play-btn.playing {
    animation: none !important;
    background-color: #2e7d32 !important;
}

/* ============================================================
   ✅ أنيميشن زر التشغيل في المشغل
   ============================================================ */
@keyframes playPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(29,209,161,.75), 0 0 0 0 rgba(29,209,161,.35); }
    50%  { box-shadow: 0 0 0 12px rgba(29,209,161,0), 0 0 0 22px rgba(29,209,161,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,209,161,0), 0 0 0 0 rgba(29,209,161,0); }
}
@keyframes playOuterRing {
    0%   { transform: scale(.85); opacity: .85; }
    100% { transform: scale(1.9);  opacity: 0; }
}
@keyframes playIconBounce {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-2px); }
}
.pc-play.play-btn {
    background: linear-gradient(135deg, #1dd1a1 0%, #0fb8ad 50%, #168888 100%) !important;
    box-shadow: 0 6px 18px rgba(15,184,173,.45) !important;
    position: relative;
    transition: transform .2s, box-shadow .2s, background .3s !important;
    overflow: visible !important;
}
.pc-play.play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #1dd1a1;
    pointer-events: none;
    opacity: 0;
}
.pc-play.play-btn:not(.playing) { animation: playPulseRing 1.8s ease-in-out infinite; }
.pc-play.play-btn:not(.playing)::before { animation: playOuterRing 1.8s ease-out infinite; }
.pc-play.play-btn:not(.playing) .play-icon { animation: playIconBounce 1.6s ease-in-out infinite; }
.pc-play.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(15,184,173,.65) !important;
}
.pc-play.play-btn:active { transform: scale(.92); }
.pc-play.play-btn.playing {
    background: linear-gradient(135deg, #e63946 0%, #a01e28 100%) !important;
    box-shadow: 0 4px 15px rgba(230,57,70,.5) !important;
    animation: none !important;
}
.pc-play.play-btn.playing::before { display: none; }
.pc-play.play-btn.playing .play-icon { animation: none; }

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(27,94,32,.85), 0 0 0 0 rgba(27,94,32,.5); transform: scale(1); }
    50%  { transform: scale(1.06); }
    70%  { box-shadow: 0 0 0 18px rgba(27,94,32,0), 0 0 0 30px rgba(27,94,32,0); transform: scale(1); }
    100% { box-shadow: 0 0 0 0 rgba(27,94,32,0), 0 0 0 0 rgba(27,94,32,0); transform: scale(1); }
}
@keyframes heroIconBounce {
    0%, 100% { transform: translateX(0) rotate(0); }
    30%      { transform: translateX(-3px) rotate(-5deg); }
    60%      { transform: translateX(2px) rotate(3deg); }
}
.hero-play-btn:not(.playing) { animation: heroPulse 1.6s infinite !important; position: relative; }
.hero-play-btn:not(.playing) i { animation: heroIconBounce 1.6s ease-in-out infinite; }

/* ============================================================
   ✨ إضافات SEO — بنفس الهوية البصرية للموقع
   ============================================================ */

/* H1 داخل رأس القارئ — بنفس تصميم h3 السابق */
.reciter-head-row h1,
.reciter-head-row .reciter-h1 {
    margin: 0;
    color: #168888;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.surah-head-row h1,
.surah-head-row .reciter-h1 {
    margin: 0;
    color: #168888;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
@media (max-width: 400px) {
    .reciter-head-row h1,
    .reciter-head-row .reciter-h1,
    .surah-head-row h1,
    .surah-head-row .reciter-h1 { font-size: 12px; }
}

/* H1 في الصفحة الرئيسية (قائمة القراء) */
.page-h1 {
    font-size: 15px;
    font-weight: 700;
    color: #0f4d4d;
    text-align: center;
    margin: 12px 0 6px;
    padding: 0 8px;
    line-height: 1.5;
}

/* Breadcrumbs — تناسق مع هوية الموقع */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    padding: 8px 4px 4px;
    color: #888;
    line-height: 1.6;
}
.breadcrumbs a {
    color: #168888;
    text-decoration: none;
    transition: color .15s;
}
.breadcrumbs a:hover {
    color: #0f6e6e;
    text-decoration: underline;
}
.breadcrumbs .bc-sep {
    color: #b6d4d4;
    font-size: 12px;
    opacity: .8;
    user-select: none;
}
.breadcrumbs .bc-current {
    color: #555;
    font-weight: 600;
}

/* عناوين الأقسام داخل صفحة السورة */
.section-h2 {
    font-size: 14px;
    font-weight: 700;
    color: #0f4d4d;
    margin: 18px 4px 10px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #168888 0%, #0f6e6e 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* قسم القراء الآخرين — نفس بطاقات مودال اختيار القارئ */
.other-reciters-section {
    margin: 20px 0 12px;
    padding: 0;
}
.other-reciters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 0;
}
.other-reciters-list .reciter-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d0e5e5;
    border-radius: 12px;
    color: #168888;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all .2s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 2px 8px rgba(22,136,136,.06);
    min-width: 0;
    gap: 8px;
}
.other-reciters-list .reciter-picker-item:hover {
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    color: #fff;
    border-color: #168888;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22,136,136,.3);
    text-decoration: none;
}
.other-reciters-list .reciter-picker-item:hover .rd-riwayah {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.other-reciters-list .rd-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}
.other-reciters-list .rd-riwayah {
    font-size: 9.5px;
    color: #999;
    background: #f0f5f5;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: normal;
    transition: background .2s, color .2s;
}
@media (max-width: 500px) {
    .other-reciters-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
    }
    .other-reciters-list .reciter-picker-item {
        padding: 9px 10px;
        font-size: 11.5px;
    }
}

/* مخفي عن الشاشة لكن مقروء لمحركات البحث */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

header .brand {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
}
header .brand-main {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}
header .brand-sub {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255,255,255,.82);
    margin-top: 1px;
}
@media (max-width: 400px) {
    header .brand-main { font-size: 11px; }
    header .brand-sub  { font-size: 8.5px; }
}




/* ============================================================
   قسم قراء آخرين — على شكل قائمة منسدلة
   ============================================================ */
.other-reciters-details {
    margin: 14px 0;
    background: #fff;
    border: 1px solid #d0e5e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(22,136,136,.06);
    transition: box-shadow .25s;
}
.other-reciters-details[open] {
    box-shadow: 0 4px 14px rgba(22,136,136,.14);
}
.other-reciters-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #168888;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
    transition: background .2s;
    background: linear-gradient(135deg, #f4fafa 0%, #eaf6f6 100%);
}
.other-reciters-summary::-webkit-details-marker { display: none; }
.other-reciters-summary::marker { content: ''; }
.other-reciters-summary:hover {
    background: linear-gradient(135deg, #eaf6f6 0%, #d8efee 100%);
}
.other-reciters-summary > i:first-child { font-size: 13px; opacity: .85; }
.other-reciters-summary > span:nth-of-type(1) {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.other-reciters-summary .ord-count {
    font-size: 10.5px;
    color: #6ba5a5;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    font-weight: 600;
}
.other-reciters-summary .ord-arrow {
    font-size: 10px;
    color: #168888;
    transition: transform .25s;
    flex-shrink: 0;
}
.other-reciters-details[open] .ord-arrow {
    transform: rotate(180deg);
}
.other-reciters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 12px;
    animation: ordFadeIn .25s ease-out;
}
@keyframes ordFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.other-reciters-list .reciter-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d0e5e5;
    border-radius: 12px;
    color: #168888;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all .2s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 2px 8px rgba(22,136,136,.06);
    min-width: 0;
    gap: 8px;
}
.other-reciters-list .reciter-picker-item:hover {
    background: linear-gradient(135deg, #168888 0%, #0f6e6e 100%);
    color: #fff;
    border-color: #168888;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22,136,136,.3);
    text-decoration: none;
}
.other-reciters-list .reciter-picker-item:hover .rd-riwayah {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.other-reciters-list .rd-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}
.other-reciters-list .rd-riwayah {
    font-size: 9.5px;
    color: #999;
    background: #f0f5f5;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: normal;
    transition: background .2s, color .2s;
}
@media (max-width: 500px) {
    .other-reciters-summary { font-size: 12px; padding: 11px 12px; }
    .other-reciters-summary .ord-count { font-size: 10px; padding: 1px 6px; }
    .other-reciters-list {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
        padding: 10px;
    }
    .other-reciters-list .reciter-picker-item {
        padding: 9px 10px;
        font-size: 11.5px;
    }
}


.surah-hero-glyph {
    font-family: 'sura_names_font', 'Almarai', serif;
    font-size: 54px;        /* ← كان 105px، الآن 54px */
    line-height: 1;
    color: #fff;
    display: block;
    text-shadow: 0 3px 14px rgba(255,255,255,.32), 0 2px 6px rgba(0,0,0,.28);
    filter: drop-shadow(0 3px 10px rgba(255,255,255,.22));
    animation: glyphPop .8s cubic-bezier(.2,.9,.3,1.3);
    margin-bottom: 6px;
}
@keyframes glyphPop {
    0%   { transform: scale(.6); opacity: 0; }
    100% { transform: scale(1);  opacity: 1; }
}

/* شاشات صغيرة */
@media (max-width: 500px) {
    .surah-hero-glyph {
        font-size: 38px;    /* ← كان 77px، الآن 38px */
    }
    .surah-hero {
        padding: 24px 15px 20px;   /* تقليل الحشو ليتناسب مع الحجم الجديد */
    }
}


@media (max-width: 400px) {
    .surah-hero-glyph { font-size: 34px; }
    .surah-hero { padding: 22px 12px 18px; border-radius: 18px; }
    .surah-hero::before { inset: 10px; border-radius: 12px; }
}

/* ============ زر تبديل القارئ (الموحد داخل الحاوية) ============ */
.reciter-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 14px rgba(37,99,235,.45);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}
.reciter-switch-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,.6);
}
.reciter-switch-btn:active { transform: scale(.97); }
.reciter-switch-btn .reciter-switch-icon {
    font-size: 12px;
    opacity: .9;
    flex-shrink: 0;
}
.reciter-switch-btn .reciter-switch-label {
    opacity: .85;
    font-size: 11px;
    font-weight: 400;
    flex-shrink: 0;
}
.reciter-switch-btn .reciter-switch-name {
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}
.reciter-switch-btn .reciter-switch-arrow {
    font-size: 9px;
    opacity: .85;
    flex-shrink: 0;
    transition: transform .25s;
}
.reciter-switch-btn:active .reciter-switch-arrow { transform: rotate(180deg); }

@media (max-width: 500px) {
    .reciter-switch-btn {
        font-size: 11px;
        padding: 8px 13px;
        gap: 6px;
        margin-top: 12px;
    }
    .reciter-switch-btn .reciter-switch-label { font-size: 10px; }
    .reciter-switch-btn .reciter-switch-name { font-size: 11.5px; }
}

/* تصغير معلومات السورة على الجوال + تقاربها */
@media (max-width: 500px) {
    .surah-hero-meta {
        gap: 5px;
        font-size: 10px;
        margin-top: 10px;
    }
    .surah-hero-meta span {
        padding: 3px 7px;
        font-size: 9.5px;
    }
    .surah-hero-meta span i { font-size: 9px; }
}

header .brand-sub {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255,255,255,.82);
    margin-top: 1px;
}
@media (max-width: 768px) {
    header .brand-sub { display: none; }
    /* إعادة توسيط الشعار عندما لا يوجد سطر ثاني */
    header .brand-main { font-size: 13px; }
}

/* ============================================================
   تخصيص زر تغيير القارئ (الخلفية بيضاء والخطوط تركوازية)
   ============================================================ */
.reciter-switch-btn {
    background: #ffffff !important;
    color: #0b4f4f !important; /* لون تركوازي غامق للنص الأساسي (اسم القارئ) */
    border: 1px solid #d0e5e5 !important;
    box-shadow: 0 4px 14px rgba(22, 136, 136, 0.15) !important;
}

.reciter-switch-btn:hover {
    background: #f4fafa !important;
    color: #093d3d !important;
    border-color: #168888 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 136, 136, 0.25) !important;
}

/* لون الأيقونة */
.reciter-switch-btn .reciter-switch-icon {
    color: #168888 !important;
    opacity: 1 !important;
}

/* كلمة "تغيير" بلون تركوازي فاتح */
.reciter-switch-btn .reciter-switch-label {
    color: #20b2aa !important; /* لون تركوازي فاتح (Light Sea Green أو مشابه) */
    opacity: 1 !important;
    font-weight: 600;
}

/* اسم القارئ بلون تركوازي غامق */
.reciter-switch-btn .reciter-switch-name {
    color: #0b4f4f !important; /* تركوازي غامق جداً وواضح */
}

/* سهم القائمة بلون تركوازي */
.reciter-switch-btn .reciter-switch-arrow {
    color: #168888 !important;
    opacity: 1 !important;
}

