* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1B1B1F;
    color: #E0E0E0;
    line-height: 1.6;
    min-height: 100vh;
}

.container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 1.5rem 1rem 6rem; /* extra bottom padding untuk ruang player */
}

header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 600; margin-bottom: 0.5rem; }
header p { color: #B0B0B0; font-size: 1.1rem; }

.choice-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}

@media (min-width: 600px) {
    .choice-grid { grid-template-columns: 1fr 1fr; }
}

.choice-card {
    background: #2A2A2F; border-radius: 16px; padding: 2rem 1.5rem;
    text-decoration: none; color: inherit; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

.choice-card:hover {
    background: #2A2A2F; transform: translateY(-4px); box-shadow: 0 20px 40px rgba(33,165,58,0.2);
    border: 1px solid #21A53A;
}

.choice-icon { font-size: 3rem; margin-bottom: 1rem; }
.choice-card h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.choice-card p { color: #B0B0B0; font-size: 0.95rem; }

.juz-grid, .halaman-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem; margin-top: 1.5rem;
}

.juz-item, .halaman-item {
    background: #2A2A2F; border-radius: 12px; padding: 1.2rem 0.8rem;
    text-align: center; text-decoration: none; color: #E0E0E0;
    transition: all 0.2s; font-weight: 500; font-size: 0.95rem;
}

.juz-item:hover, .halaman-item:hover {
    background: #21A53A; color: #1B1B1F; transform: scale(1.05);
}

.accordion-item { margin-bottom: 0.8rem; }

.accordion-header {
    background: #2A2A2F; padding: 1rem 0.9rem; border-radius: 10px; cursor: pointer;
    font-weight: 600; transition: all 0.2s; display:flex; justify-content:space-between; align-items:center;
    font-size: 0.95rem;
}
.accordion-header span { font-weight: 400; color:#B0B0B0; font-size:0.85rem; }

.accordion-header:hover { background: #21A53A; color: #1B1B1F; }

.accordion-content { 
    padding: 0.7rem 0.5rem 0.5rem; background: #1B1B1F; 
    border-radius: 0 0 10px 10px;
    display: none;
}

.back-bar {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:1rem;
}

.back-btn {
    display: inline-flex; align-items:center; gap:0.3rem;
    color: #21A53A; text-decoration: none; 
    font-weight: 500; font-size:0.95rem;
}

.share-btn {
    display:inline-flex; align-items:center; gap:0.3rem;
    background:none; border:1px solid #21A53A;
    color:#21A53A; border-radius:999px; padding:0.3rem 0.7rem;
    font-size:0.8rem; cursor:pointer; transition:all 0.2s;
}
.share-btn:hover {
    background:#21A53A; color:#1B1B1F;
}

.player-container {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #2A2A2F; padding: 0.9rem 1rem; 
    border-top: 1px solid #1B1B1F;
    display:none; /* default hidden, muncul hanya saat play */
    z-index: 100;
}

.player-visible { display:block; }

.progress-bar {
    width: 100%; height: 4px; background: #1B1B1F; border-radius: 2px;
    margin: 0.4rem 0; cursor: pointer;
}

.progress-fill { height: 100%; background: #21A53A; border-radius: 2px; width: 0%; }

.player-info { font-size: 0.85rem; margin-bottom: 0.3rem; }
.now-playing { font-weight: 500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qori { color: #B0B0B0; font-size: 0.8rem; }

.player-controls {
    display: flex; align-items: center; gap: 0.7rem; justify-content: center;
}

.speed-btn, #playBtn { 
    background: none; border: none; color: #E0E0E0; 
    font-size: 0.95rem; cursor: pointer; padding: 0.4rem; border-radius: 8px; 
    transition: all 0.2s;
}

.speed-btn:hover, .speed-btn.active, #playBtn:hover { 
    background: #21A53A; color: #1B1B1F; 
}

.main-footer {
    margin-top:2.5rem;
    text-align:center;
    font-size:0.8rem;
    color:#B0B0B0;
}
.main-footer a { color:#21A53A; text-decoration:none; }
.main-footer a:hover { text-decoration:underline; }
