/* Offline Audio section */
.audio-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.audio-tab {
    flex: 1;
    padding: 0.55rem 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: none;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    text-align: center;
    font-family: var(--font-body);
}

.audio-tab.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.audio-card-body {
    padding: 16px 20px 20px;
}

.audio-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.audio-status-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.audio-status-detail {
    font-size: 0.72rem;
    color: var(--muted);
    font-style: italic;
}

.audio-cache-track {
    height: 6px;
    background: rgba(61,92,46,0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.audio-cache-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fern), var(--sprout));
    border-radius: 99px;
    transition: width 0.3s;
    width: 0%;
}

.audio-lesson-section {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--fern) transparent;
}

.audio-lesson-section::-webkit-scrollbar { width: 4px; }
.audio-lesson-section::-webkit-scrollbar-thumb { background: var(--fern); border-radius: 99px; }

.audio-section-meta {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--muted);
    padding: 8px 12px;
}

.audio-lesson-checklist-scroll {
    padding: 8px;
}

/* Action buttons */
.audio-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audio-cache-btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.2s;
    border: none;
}

.audio-primary-btn {
    background: var(--action);
    color: var(--action-text);
    box-shadow: 0 4px 14px rgba(61,92,46,0.25);
}

.audio-primary-btn:hover { filter: brightness(1.1); }

.audio-secondary-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.audio-secondary-btn:hover { border-color: var(--muted); }

.audio-danger-btn {
    background: transparent;
    border: 1px solid rgba(184,92,40,0.3);
    color: var(--red);
}

.audio-danger-btn:hover { background: rgba(184,92,40,0.06); }

/* File list */
.audio-file-list-wrap {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fern) transparent;
}

.audio-file-list-wrap::-webkit-scrollbar { width: 4px; }
.audio-file-list-wrap::-webkit-scrollbar-thumb { background: var(--fern); border-radius: 99px; }

.audio-file-list-meta {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 8px;
}

.audio-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Checklist items (populated by JS) */
.audio-lesson-checklist-scroll .lesson-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text);
}

.audio-lesson-checklist-scroll .lesson-check-row:last-child {
    border-bottom: none;
}