/* =============================================================
   Podcast Player – DCE Stylesheet
   TYPO3 12.4 | ArminVieweg/dce
   ============================================================= */

.podcast-player {
    font-family: inherit;
    max-width: 500px;
    margin-top: -10px;
}

/* Title */
.podcast-player__title {
    margin: 0 0 10px 0;
    color: inherit;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Player Bar */
.podcast-player__bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #5a5a5a;
    border-radius: 10px;
    padding: 0 1rem;
    height: 52px;
}

/* Buttons – shared */
.podcast-player__btn-play,
.podcast-player__btn-mute {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: opacity 0.15s ease;
    line-height: 0;
}

.podcast-player__btn-play {
    width: 30px;
    height: 30px;
}

.podcast-player__btn-mute {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.75);
}

.podcast-player__btn-play:hover  { opacity: 0.7; }
.podcast-player__btn-mute:hover  { opacity: 0.7; }

.podcast-player__icon {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}

.podcast-player__btn-mute .podcast-player__icon {
    width: 30px;
    height: 30px;
}

/* Timeline */
.podcast-player__timeline {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    min-width: 0;
}
 
.podcast-player__timeline:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}
 
.podcast-player__timeline-progress {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.1s linear;
}
 
.podcast-player__timeline:hover .podcast-player__timeline-progress {
    background: #cccccc;
}
 
/* Time display */
.podcast-player__time {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 1);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
 
/* Volume wrap – groups mute button + slider */
.podcast-player__volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    position: relative;
}
 
/* Volume slider container – collapses when not hovered/focused */
.podcast-player__volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}
 
.podcast-player__volume-wrap:hover .podcast-player__volume-slider-wrap,
.podcast-player__volume-wrap:focus-within .podcast-player__volume-slider-wrap {
    width: 72px;
}
 
/* Range input – volume */
.podcast-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 68px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    display: block;
    /* filled portion via JS inline style on --val */
    background-image: linear-gradient(
        to right,
        #fff var(--volume-pct, 100%),
        rgba(255,255,255,0.2) var(--volume-pct, 100%)
    );
}
 
.podcast-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
    transition: transform 0.15s ease;
}
 
.podcast-player__volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
    transition: transform 0.15s ease;
}
 
.podcast-player__volume-slider::-webkit-slider-thumb:hover,
.podcast-player__volume-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
}
 
/* Hidden audio */
.podcast-player__audio {
    display: none;
}