/* ── Podcast plugin ── */

/* ── Sidebar widget ── */
.podcast-widget {
    margin-bottom: 1.5rem;
}


.podcast-widget__empty {
    font-size: 0.85rem;
    color: #999;
}

/* ── Pochette ── */
.podcast-cover {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #e8e8e8;
    cursor: pointer;
}

.podcast-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Dropdown ── */
.podcast-select-wrap {
    position: relative;
    margin-bottom: 0.6rem;
}

.podcast-select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 0.78rem;
    padding: 0.5rem 2rem 0.5rem 0.7rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.35;
}

.podcast-select-wrap select:hover,
.podcast-select-wrap select:focus {
    border-color: #888;
}

.podcast-select-arrow {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    display: flex;
    align-items: center;
}

/* ── Bouton écouter ── */
.podcast-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    letter-spacing: 0.03em;
}

.podcast-play-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ── Mini-player (bas de page) ── */
.podcast-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #f5f6f7;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem;
    z-index: 9998;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.podcast-player[hidden] {
    display: none;
}

/* Compensation page content so player doesn't hide anything */
body:has(#podcast-player:not([hidden])) {
    padding-bottom: 32px;
}

.podcast-player__art {
    flex-shrink: 0;
    height: 26px;
    display: flex;
    align-items: center;
}

.podcast-player__art img {
    height: 26px;
    width: auto;
    max-width: 26px;
    border-radius: 2px;
    object-fit: contain;
    display: block;
}

.podcast-player__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.podcast-player__title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.podcast-player__desc {
    font-size: 0.63rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* ── Controls ── */
.podcast-player__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.podcast-player__btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: color 0.15s;
    height: auto;
}

.podcast-player__btn:hover {
    color: #333;
}

.podcast-player__btn--main {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    color: #333;
    flex-shrink: 0;
}

.podcast-player__btn--main:hover {
    background: #e8e8e8;
    border-color: #999;
}

/* ── Progress ── */
.podcast-player__progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    max-width: 360px;
}

.podcast-player__time {
    font-size: 0.65rem;
    color: #aaa;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: center;
}

.podcast-player__seek {
    flex: 1;
    min-width: 0;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

.podcast-player__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: transform 0.1s;
}

.podcast-player__seek::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.podcast-player__seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    border: none;
}

/* ── Close button ── */
.podcast-player__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #bbb;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    transition: color 0.15s;
    height: auto;
}

.podcast-player__close:hover {
    color: #555;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .podcast-player__progress {
        display: none;
    }
    .podcast-player__info {
        max-width: 140px;
    }
}
