
    :root {
        --tafsir-gold: #c5a059;
        --tafsir-navy: #1e293b;
        --tafsir-bg: #f8fafc;
        --tafsir-card: #ffffff;
    }

    .tafsir-page {
        max-width: 100%;
        margin: 0;
        padding: 20px 10px;
        /* Offset for fixed header (76px + buffer) */
        margin-top: 50px;
    }

    .tafsir-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .tafsir-header h1 {
        font-size: 1.8rem;
        color: var(--tafsir-navy);
        margin-bottom: 5px;
    }

    .tafsir-header p {
        color: #64748b;
        font-size: 0.95rem;
    }

    .tafsir-explorer {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 15px;
        background: var(--tafsir-card);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        border: 1px solid #e2e8f0;
    }

    .tafsir-sidebar {
        border-right: 1px solid #e2e8f0;
        padding-right: 20px;
    }

    .control-group {
        margin-bottom: 25px;
    }

    .control-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--tafsir-navy);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .tafsir-select {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        background: #fff;
        outline: none;
        transition: border-color 0.2s;
    }

    .tafsir-select:focus {
        border-color: var(--tafsir-gold);
    }

    .tafsir-main {
        position: relative;
        min-height: 400px;
    }

    .verse-navigator {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-btn {
        padding: 10px 20px;
        background: var(--tafsir-navy);
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: opacity 0.2s;
    }

    .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .tafsir-content {
        line-height: 1.8;
        color: #334155;
        font-size: 1.15rem;
    }

    .verse-header {
        margin-bottom: 15px;
        padding: 15px;
        background: #f1f5f9;
        border-radius: 12px;
        text-align: right;
    }

    .verse-arabic {
        font-family: 'Amiri', serif;
        font-size: 1.8rem;
        color: var(--tafsir-navy);
        margin-bottom: 10px;
        direction: rtl;
    }

    .verse-translation {
        text-align: left;
        font-style: italic;
        color: #64748b;
        font-size: 0.95rem;
        margin-top: 5px;
    }

    .verse-audio-btn {
        background: var(--tafsir-gold);
        color: white;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        transition: transform 0.2s, background 0.2s;
        box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
    }

    .verse-audio-btn:hover {
        transform: scale(1.1);
        background: #b48e4a;
    }

    .verse-audio-btn.playing {
        background: var(--tafsir-navy);
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    .tafsir-loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        display: none;
    }

    .tafsir-body-text {
        padding: 10px 0;
        max-height: 500px;
        overflow-y: auto;
        font-size: 1.05rem;
    }

    .tafsir-body-text h3 {
        color: var(--tafsir-gold);
        margin: 25px 0 15px;
    }

    /* Mobile Responsive */
    @media (max-width: 992px) {
        .tafsir-explorer {
            grid-template-columns: 1fr;
        }
        .tafsir-sidebar {
            border-right: none;
            border-bottom: 1px solid #e2e8f0;
            padding-right: 0;
            padding-bottom: 20px;
        }
    }
