* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
}

.language-selector {
    text-align: center;
    margin-bottom: 25px;
}

.language-selector label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.language-selector select {
    padding: 8px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #764ba2;
}

.podcast-info {
    margin-bottom: 25px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#podcast-details {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
}

#podcast-artwork {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-text {
    flex: 1;
}

#podcast-title {
    color: #333;
    font-size: 20px;
    margin-bottom: 8px;
}

#podcast-artist {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 5px;
}

#episode-title {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.player-controls {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.progress-container {
    margin-bottom: 20px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.control-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.control-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-icon {
    font-size: 20px;
}

.volume-slider {
    flex: 1;
    max-width: 120px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.next-btn {
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.next-btn:hover {
    background: #667eea;
    color: white;
}

.next-btn:active {
    transform: scale(0.95);
}

.error-message {
    margin-top: 15px;
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    text-align: center;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    #podcast-details {
        flex-direction: column;
        text-align: center;
    }
    
    #podcast-artwork {
        width: 120px;
        height: 120px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
    }
    
    .next-btn {
        width: 100%;
    }
}
