/* Podcast Player Styles v1.9 (Red & Yellow Theme) */
.podcast-player-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 2.5em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* Standard syntax */
}

.podcast-audio-element {
    display: none;
}

.player-background {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    z-index: 1;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(192, 57, 43, 0.7), rgba(231, 76, 60, 0.5));
    z-index: 2;
}

.player-main-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 15px;
}

.player-artwork {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.player-controls-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Prevents flexbox overflow issues */
}

.progress-area {
    width: 100%;
    margin-bottom: 8px;
}

.progress-bar-custom { 
    height: 5px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 2.5px;
    cursor: pointer;
    width: 100%;
}

.progress-filled {
    height: 100%;
    width: 0;
    background-color: #f1c40f;
    /* Yellow */
    border-radius: 2.5px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 13px;
    height: 13px;
    background-color: #f1c40f;
    /* Yellow */
    border-radius: 50%;
}


.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    font-weight: 500;
}

.controls-and-volume {
    display: flex;
    align-items: center;
}

.main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff !important;
    opacity: 0.9;
    transition: all 0.2s ease;
    padding: 5px;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #f1c40f;
    /* Yellow */
}

.play-pause-btn {
    margin: 0 15px;
    color: #f1c40f;
    /* Yellow */
    transform-origin: center;
}

.play-pause-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.volume-control {
    display: flex;
    align-items: center;
    position: relative;
    /* Set as positioning context */
}

.volume-slider-container {
    position: absolute;
    right: calc(100% + 8px);
    /* Position to the left of the parent .volume-control */
    top: 35%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.volume-control:hover .volume-slider-container {
    width: 70px;
    opacity: 1;
    visibility: visible;
}

/* Horizontal Volume Slider Styles */
input[type="range"].volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    /* Make slider fill the container */
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    outline: none;
}

input[type="range"].volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #f1c40f;
    /* Yellow thumb */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -2px;
    /* Center thumb on track */
}

input[type="range"].volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

input[type="range"].volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #f1c40f;
    /* Yellow thumb */
    border-radius: 50%;
    cursor: pointer;
    border: none;
}