/* Podcast Player Widget */
.podcast-player-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a2e28; /* Dark green background */
    color: #ffffff;
    z-index: 9999;
    display: none; /* Hidden by default */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: 'Space Grotesk', sans-serif;
    padding-top: 4px; /* Space for progress bar */
}

.podcast-player-widget.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Progress Bar */
.podcast-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    cursor: pointer;
}

.podcast-progress-bar {
    height: 100%;
    background-color: #00d084; /* Bright green */
    width: 0%;
    transition: width 0.1s linear;
}

/* Widget Content */
.podcast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Section: Info */
.podcast-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 250px;
}

.podcast-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
    background-color: #313e3b;
}

.podcast-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.podcast-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.podcast-subtitle {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center Section: Controls */
.podcast-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.podcast-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-btn:hover {
    opacity: 0.8;
}

.podcast-btn-main {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #1a2e28;
    border-radius: 50%;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-btn-main:hover {
    transform: scale(1.05);
    opacity: 1;
}

.podcast-time {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    opacity: 0.7;
    /* Removed absolute positioning to fix overlap */
}

.podcast-controls-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Right Section: Options */
.podcast-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    min-width: 200px;
}

.podcast-speed {
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
    width: 30px;
    text-align: center;
}

.podcast-volume-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
}

.podcast-volume-slider {
    width: 80px; /* Always visible */
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin-left: 10px;
    overflow: hidden;
    cursor: pointer;
}

.podcast-volume-container:hover .podcast-volume-slider {
    width: 80px;
}

.podcast-volume-level {
    height: 100%;
    background-color: #00d084;
    width: 100%;
}

.podcast-close {
    margin-left: 10px;
    opacity: 0.5;
}

.podcast-close:hover {
    opacity: 1;
}

/* Icons */
.icon-play, .icon-pause, .icon-rewind, .icon-forward, .icon-volume, .icon-close {
    fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .podcast-info {
        width: auto;
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }
    .podcast-subtitle {
        display: none;
    }
    .podcast-controls {
        position: absolute;
        top: -50px;
        left: 0;
        width: 100%;
        justify-content: center;
        pointer-events: none;
    }
    .podcast-controls-wrapper {
        pointer-events: auto;
        background: rgba(26, 46, 40, 0.9);
        padding: 5px 15px;
        border-radius: 20px;
        flex-direction: row;
    }
    .podcast-time {
        display: none;
    }
    .podcast-options {
        width: auto;
        min-width: auto; /* Remove large min-width */
        flex: 0 0 auto; /* Don't grow, don't shrink too much */
    }
    .podcast-volume-container {
        display: none;
    }
}
