/* O‘qish sahifasi — read.php */

@font-face {
    font-family: 'Uthmani';
    src: url('https://fonts.quran.com/p1-v1.woff2');
}

body.read-page {
    background: #fdfcf9;
    padding-top: 124px;
    transition: background 0.35s ease;
}

/* ——— Audio player (mini player uslubi) ——— */
.player-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3faf8 55%, #eef7f4 100%);
    border-bottom: 1px solid rgba(0, 121, 107, 0.18);
    box-shadow:
        0 4px 6px rgba(0, 77, 64, 0.04),
        0 12px 40px rgba(0, 105, 92, 0.08);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.player-back-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 121, 107, 0.2);
    background: #fff;
    color: #00796b;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 105, 92, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.player-back-btn:hover {
    color: #004d40;
    border-color: rgba(0, 121, 107, 0.45);
    box-shadow: 0 4px 14px rgba(0, 105, 92, 0.18);
    transform: scale(1.04);
}

.player-shell {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.player-card {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 16px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 121, 107, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 32px rgba(0, 77, 64, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.player-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.player-time-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a8a82;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.player-time-label i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.player-time-disp {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.player-card .progress-box {
    width: 100%;
    height: 7px;
    background: linear-gradient(180deg, #dcece9 0%, #e8f5f2 100%);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) inset;
}

.player-card .progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00695c 0%, #00897b 45%, #26a69a 100%);
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(0, 121, 107, 0.35);
}

.player-play-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #00897b 0%, #00695c 55%, #004d40 100%);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow:
        0 4px 14px rgba(0, 105, 92, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow:
        0 6px 22px rgba(0, 105, 92, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.play-btn:active {
    transform: scale(0.98);
}

@media (max-width: 576px) {
    .player-bar {
        padding: 12px 12px 14px;
        gap: 10px;
    }

    .player-back-btn {
        width: 42px;
        height: 42px;
    }

    .player-card {
        padding: 12px 14px 14px;
        border-radius: 16px;
    }

    .player-time-label {
        font-size: 0.65rem;
    }

    .player-time-disp {
        font-size: 0.75rem;
    }

    body.read-page {
        padding-top: 118px;
    }
}

/* Tajvid */
tajweed {
    display: inline;
}

.madda_normal,
.madda_permissible,
.madda_necessary,
.madda_obligatory {
    color: #ff0000 !important;
}

.ghunnah,
.idgham_with_ghunnah,
.idgham_wo_ghunnah,
.idgham_shafawi {
    color: #169044 !important;
    font-weight: bold;
}

.ikhafa,
.ikhafa_shafawi {
    color: #e67e22 !important;
}

.qalqalah {
    color: #0000ff !important;
    font-weight: bold;
}

.iqlab {
    color: #26c6da !important;
}

.ham_wasl,
.laam_shamsiyah,
.slnt,
.silent {
    color: #aaaaaa !important;
}

/* Oyatlar */
.quran-box {
    max-width: 950px;
    margin: auto;
    background: white;
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
}

.verse-row {
    direction: rtl;
    text-align: right;
    margin-bottom: 35px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
    border-radius: 14px;
    padding: 12px 14px 22px;
    margin-left: -8px;
    margin-right: -8px;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.verse-row.verse-active {
    background: linear-gradient(270deg, rgba(224, 242, 241, 0.65) 0%, rgba(0, 121, 107, 0.09) 100%);
    box-shadow: inset 3px 0 0 0 #00796b;
    border-bottom-color: transparent;
}

.verse-row.verse-active .v-num {
    background: #00796b;
    color: #fff;
    border-color: #00796b;
}

.arabic-text {
    font-family: 'Uthmani', serif;
    font-size: 38px;
    line-height: 2.6;
    color: #222;
}

.arabic-text span.end {
    display: none !important;
}

.v-num {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 2px solid #00796b;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: sans-serif;
    font-weight: bold;
    color: #00796b;
    margin-left: 15px;
}

.sura-heading-card {
    border: 1px solid rgba(0, 121, 107, 0.15);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
    overflow: hidden;
}

.sura-heading-card .card-body {
    padding: 1.35rem 1.5rem;
}

.sura-heading-card .uz {
    font-weight: 700;
    color: #004d40;
    font-size: 1.15rem;
}

.sura-heading-card .ar {
    font-family: 'Uthmani', serif;
    font-size: 1.75rem;
    color: #00796b;
    margin-top: 8px;
}

.zoom-controls {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zoom-controls button {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #00796b;
    transition: background 0.35s, border-color 0.35s, color 0.35s;
}

.bismillah-line {
    font-size: 45px;
    font-family: 'Uthmani', serif;
    color: #004d40;
}
