:root {
    --bg-main: #0a0c10;
    --bg-side: #12151c;
    --bg-card: #1c212c;
    --primary: #22c55e;
    --text-p: #f8fafc;
    --text-s: #94a3b8;
    --border: #2d333f;
    --tg-color: #0088cc;
}

@font-face {
    font-family: 'QuranFont';
    src: url('normal.woff2') format('woff2');
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-main);
    color: var(--text-p);
    font-family: 'Tajawal', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.app-container { display: flex; height: 100vh; }

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg-side);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.sidebar-header { padding: 25px; border-bottom: 1px solid var(--border); }
.sidebar-header h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.4rem; }

.filter-group { margin-bottom: 15px; }
.filter-group label { display: block; font-size: 0.85rem; color: var(--text-s); margin-bottom: 5px; }
select, .search-wrapper input {
    width: 100%;
    padding: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-p);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}
.search-wrapper { position: relative; }
.search-wrapper i { position: absolute; left: 10px; top: 12px; color: var(--text-s); }
.search-wrapper input { padding-left: 35px; }

.reciters-list { flex: 1; overflow-y: auto; padding: 10px; }
.reciter-item {
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}
.reciter-item:hover { background: var(--bg-card); }
.reciter-item.active { background: var(--primary); color: white; }

.sidebar-footer { padding: 15px; border-top: 1px solid var(--border); }
.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--tg-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-telegram:hover { opacity: 0.9; transform: scale(0.98); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 20px; }

.top-section { display: flex; gap: 20px; margin-bottom: 25px; min-height: 350px; }

.player-box {
    flex: 1;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border);
}
.player-box h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }

.reading-view {
    flex: 1;
    background: #151921;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.reading-header { padding: 15px; border-bottom: 1px solid var(--border); background: var(--bg-card); border-radius: 15px 15px 0 0; }
.text-container {
    padding: 20px;
    overflow-y: auto;
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    line-height: 2.5;
    text-align: center;
    color: #e2e8f0;
}

.surahs-section { background: var(--bg-card); border-radius: 15px; padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header input { background: var(--bg-main); border: 1px solid var(--border); color: white; padding: 8px 15px; border-radius: 20px; }

.tracklist-header, .surah-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px;
    padding: 12px 15px;
    align-items: center;
}
.tracklist-header { color: var(--text-s); font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.surah-row { border-bottom: 1px solid var(--border); transition: 0.2s; cursor: pointer; }
.surah-row:hover { background: var(--bg-main); }
.surah-row.active { border-right: 4px solid var(--primary); background: rgba(34, 197, 94, 0.05); }

.download-btn { color: var(--text-s); transition: 0.3s; }
.download-btn:hover { color: var(--primary); }
.play-btn-circle { width: 35px; height: 35px; border-radius: 50%; background: var(--bg-main); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.surah-row:hover .play-btn-circle { background: var(--primary); color: white; }

.download-link { margin-top: 15px; display: inline-block; color: var(--primary); text-decoration: none; font-weight: bold; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
