/* Hindi News Audio Player — hnap-player.css */

.hnap-player-wrap {
    --hnap-color: #e8232a;
    margin: 16px 0 20px;
    font-family: inherit;
}

.hnap-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e5e5e5;
    border-left: 4px solid var(--hnap-color);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Left: buttons ─────────────────────────────── */
.hnap-player-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hnap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    padding: 0;
}

.hnap-play {
    background: var(--hnap-color);
}

.hnap-play:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.hnap-stop {
    background: #f0f0f0;
}

.hnap-stop:hover {
    background: #ddd;
}

.hnap-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    pointer-events: none;
}

.hnap-stop svg {
    fill: #555;
}

/* ── Center: label + progress + status ─────────── */
.hnap-player-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hnap-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hnap-color);
    letter-spacing: 0.3px;
}

.hnap-progress-wrap {
    width: 100%;
}

.hnap-progress-bar {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 99px;
    overflow: hidden;
    cursor: pointer;
}

.hnap-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--hnap-color);
    border-radius: 99px;
    transition: width 0.4s linear;
}

.hnap-status {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Right: speed selector ──────────────────────── */
.hnap-player-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.hnap-speed-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hnap-speed {
    font-size: 12px;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    color: #444;
}

/* ── Credit line ────────────────────────────────── */
.hnap-credit {
    font-size: 10px;
    color: #bbb;
    text-align: right;
    margin-top: 4px;
    letter-spacing: 0.2px;
}

.hnap-credit strong {
    color: #999;
}

/* ── Unsupported message ────────────────────────── */
.hnap-unsupported {
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
}

/* ── Playing state ──────────────────────────────── */
.hnap-player-wrap.hnap-playing .hnap-status {
    color: var(--hnap-color);
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
    .hnap-player {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hnap-player-center {
        order: 3;
        width: 100%;
    }

    .hnap-player-right {
        order: 2;
        flex-direction: row;
        gap: 6px;
    }
}
