/* Compact Editorial News Audio Player */

.news-audio-bar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: -0.5rem 0 1.5rem 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background-color: var(--news-detail-surface-alt, #f8fafc);
    border: 1px solid var(--news-detail-border, rgba(15, 23, 42, 0.1));
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.news-audio-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.news-audio-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--news-detail-accent, #0284c7);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.news-audio-play-btn:hover {
    filter: brightness(1.08);
}

.news-audio-play-btn:active {
    transform: scale(0.95);
}

.news-audio-bar-svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.news-audio-bar-svg[hidden] {
    display: none;
}

.news-audio-label-svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.news-audio-play-btn:focus-visible,
.news-audio-speed-btn:focus-visible,
.news-audio-seek:focus-visible {
    outline: 2px solid var(--news-detail-accent, #0284c7);
    outline-offset: 2px;
}

.news-audio-track-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-audio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-audio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--news-detail-ink, #0f172a);
}

.news-audio-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--news-detail-muted, #64748b);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.news-audio-controls-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.news-audio-seek {
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    margin: 0;
    accent-color: var(--news-detail-accent, #0284c7);
    cursor: pointer;
}

.news-audio-speed-btn {
    min-width: 46px;
    min-height: 36px;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--news-detail-border, rgba(15, 23, 42, 0.14));
    background-color: var(--news-detail-surface, #ffffff);
    color: var(--news-detail-ink, #0f172a);
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.news-audio-speed-btn:hover {
    border-color: var(--news-detail-accent, #0284c7);
}

.news-audio-error {
    font-size: 0.78rem;
    color: #b91c1c;
    font-weight: 500;
}

.news-audio-el {
    display: none;
}

@media (max-width: 767.98px), (pointer: coarse) {
    .news-audio-speed-btn {
        min-height: 44px;
        min-width: 48px;
    }
}

html[data-bs-theme="dark"] .news-audio-bar {
    background-color: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .news-audio-speed-btn {
    background-color: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

html[data-bs-theme="dark"] .news-audio-error {
    color: #f87171;
}

[dir="rtl"] .news-audio-main {
    direction: rtl;
}
