/* Epic Radio Player - Epic Styling */

.epic-radio-player {
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 400px;
}

/* Animated Background */
.epic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.epic-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 25%, 
        transparent 50%, 
        rgba(168, 85, 247, 0.1) 75%, 
        transparent 100%);
    animation: epicWave 8s ease-in-out infinite;
}

.epic-waves::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(236, 72, 153, 0.1) 25%, 
        transparent 50%, 
        rgba(59, 130, 246, 0.1) 75%, 
        transparent 100%);
    animation: epicWave 6s ease-in-out infinite reverse;
}

@keyframes epicWave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-20px);
    }
}

.epic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: epicParticles 20s linear infinite;
}

@keyframes epicParticles {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* Player Container */
.epic-player-container {
    position: relative;
    z-index: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Station Info */
.epic-station-info {
    text-align: center;
    width: 100%;
}

.epic-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.epic-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: epicLogoPulse 3s ease-in-out infinite;
}

.epic-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: epicGlow 2s ease-in-out infinite;
}

@keyframes epicLogoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.8);
    }
}

@keyframes epicGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.epic-station-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(99, 102, 241, 1), 0 0 60px rgba(99, 102, 241, 0.8), 0 4px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epic-genre {
    display: inline-block;
    padding: 5px 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.epic-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 15px 0 0;
    line-height: 1.5;
}

/* Now Playing */
.epic-now-playing {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.epic-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    padding: 10px;
}

.epic-bar {
    width: 6px;
    background: linear-gradient(to top, #6366f1, #a855f7, #ec4899);
    border-radius: 3px;
    animation: epicBar 0.5s ease-in-out infinite alternate;
}

.epic-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.epic-bar:nth-child(2) { animation-delay: 0.1s; height: 35px; }
.epic-bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
.epic-bar:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.epic-bar:nth-child(5) { animation-delay: 0.4s; height: 30px; }
.epic-bar:nth-child(6) { animation-delay: 0.5s; height: 45px; }
.epic-bar:nth-child(7) { animation-delay: 0.6s; height: 20px; }
.epic-bar:nth-child(8) { animation-delay: 0.7s; height: 35px; }

@keyframes epicBar {
    0% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

.epic-track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.epic-track-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.epic-track-artist {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Controls */
.epic-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.epic-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.epic-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.epic-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

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

.epic-play-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.epic-play-btn:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6);
}

.epic-stop-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.epic-stop-btn:hover {
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

.epic-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.epic-volume-icon {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.7);
}

.epic-volume-slider {
    width: 100px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.epic-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.epic-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Status */
.epic-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.epic-status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.epic-status-text::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: epicStatusPulse 2s ease-in-out infinite;
}

@keyframes epicStatusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #10b981;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 20px #10b981;
    }
}

.epic-bitrate {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .epic-radio-player {
        min-height: auto;
        border-radius: 15px;
    }
    
    .epic-player-container {
        padding: 20px;
        gap: 20px;
    }
    
    .epic-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .epic-logo-glow {
        width: 100px;
        height: 100px;
    }
    
    .epic-station-name {
        font-size: 1.5rem;
    }
    
    .epic-now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .epic-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .epic-btn {
        width: 50px;
        height: 50px;
    }
    
    .epic-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .epic-volume-slider {
        width: 80px;
    }
}

/* Light Theme */
.epic-radio-player[data-theme="light"] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.epic-radio-player[data-theme="light"] .epic-station-name {
    color: #1e293b;
    text-shadow: none;
}

.epic-radio-player[data-theme="light"] .epic-description {
    color: #475569;
}

.epic-radio-player[data-theme="light"] .epic-track-title {
    color: #1e293b;
    text-shadow: none;
}

.epic-radio-player[data-theme="light"] .epic-track-artist {
    color: #64748b;
}

.epic-radio-player[data-theme="light"] .epic-status-text {
    color: #475569;
}

.epic-radio-player[data-theme="light"] .epic-bitrate {
    color: #64748b;
}

/* Playing State Animation */
.epic-radio-player.playing .epic-bar {
    animation-play-state: running;
}

.epic-radio-player.paused .epic-bar {
    animation-play-state: paused;
}
