/* Reset and base styles */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
} */

.podcast-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    align-self: center;
}
.time-stamped {
    color: grey;
    font-size: smaller;
    
}

/* Main Player */
.podcast-player {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

/* Play/Pause Button */
.play-pause-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.play-pause-btn:active {
    transform: scale(0.98);
}

.play-pause-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Waveform Container */
.waveform-wrapper {
    flex: 1;
    position: relative;
    height: 100px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

#waveform {
    width: 100%;
    height: 100%;
}

.waveform-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto Mono', 'Monaco', monospace;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-width: 140px;
    flex-shrink: 0;
}

.current-time {
    color: #667eea;
    font-weight: 600;
}

.time-separator {
    color: #cbd5e0;
}

.total-duration {
    color: #4a5568;
}

/* Additional Controls */
.additional-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.additional-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #667eea;
}

.additional-controls button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 200px;
}

.volume-icon {
    fill: #667eea;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-player {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .play-pause-btn {
        width: 60px;
        height: 60px;
    }
    
    .waveform-wrapper {
        width: 100%;
        height: 80px;
    }
    
    .time-display {
        width: 100%;
        justify-content: center;
    }
    
    .additional-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .volume-control {
        order: 1;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .podcast-container {
        padding: 15px;
    }
    
    .podcast-player {
        padding: 15px;
    }
    
    .additional-controls button {
        width: 45px;
        height: 45px;
    }
}