/* Immersive Premium Radio CSS for Kafomnak */

:root {
    --purple-glow: rgba(147, 51, 234, 0.15);
    --neon-blue: #00d2ff;
    --neon-pink: #ff007f;
    --neon-green: #00ffa3;
    --glass-background: rgba(15, 15, 15, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.radio-mode {
    background-color: #050505;
    color: var(--text-pure);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Moving ambient background blobs */
.bg-glow-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(140px);
    opacity: 0.45;
}

.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: floatBlob 25s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.blob-2 {
    bottom: -15%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, transparent 70%);
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 60px) scale(1.15);
    }
    100% {
        transform: translate(-40px, 120px) scale(0.9);
    }
}

/* Header customization */
.radio-header {
    background: rgba(5, 5, 5, 0.4) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    z-index: 10;
}

.neon-text {
    background: linear-gradient(135deg, var(--accent-neon) 0%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-to-main-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-premium);
    text-decoration: none;
}

.back-to-main-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 25px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Main Layout */
.radio-main-dashboard {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    z-index: 1;
    position: relative;
    padding-bottom: 50px;
    width: 100%;
}

.simplified-layout .radio-dashboard-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Area */
.radio-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Immersive Player Card */
.immersive-player-section {
    width: 100%;
}

.glass-player-card {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.player-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

.glass-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 163, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Spinning Vinyl Turntable */
.visualizer-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 163, 0.15);
    transition: var(--transition-premium);
}

.playing .glowing-ring {
    border-color: var(--accent-neon);
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(0.98); opacity: 0.6; }
    to { transform: scale(1.02); opacity: 1; }
}

.vinyl-disc-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #000;
    border: 6px solid #151515;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: repeating-radial-gradient(circle, #080808, #080808 2px, #121212 4px, #121212 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateVinyl 8s linear infinite;
    animation-play-state: paused;
}

.playing .vinyl-disc {
    animation-play-state: running;
}

@keyframes rotateVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.playing .vinyl-center {
    background: linear-gradient(135deg, var(--accent-neon), var(--neon-blue));
}

.vinyl-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

/* EQ wave bars */
.wave-equalizer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    height: 35px;
    z-index: 1;
    opacity: 0.3;
    transition: var(--transition-premium);
}

.playing .wave-equalizer {
    opacity: 0.8;
}

.wave-bar {
    width: 3px;
    height: 3px;
    background: var(--accent-neon);
    border-radius: 10px;
}

.playing .wave-bar:nth-child(even) { animation: danceWave 0.8s ease-in-out infinite alternate; }
.playing .wave-bar:nth-child(odd) { animation: danceWave 1.2s ease-in-out infinite alternate; }
.playing .wave-bar:nth-child(3n) { animation: danceWave 0.5s ease-in-out infinite alternate; }
.playing .wave-bar:nth-child(4n) { animation: danceWave 1.5s ease-in-out infinite alternate; }

@keyframes danceWave {
    0% { height: 3px; }
    100% { height: 32px; background-color: var(--neon-blue); }
}

/* Player Meta Details */
.player-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.2);
    color: var(--accent-neon);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-neon);
    box-shadow: 0 0 10px var(--accent-neon);
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.player-meta h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 5px 0;
    letter-spacing: -1px;
}

.player-meta p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
}

/* Player Controls Grid */
.premium-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.icon-btn-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-pure);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-premium);
}

.icon-btn-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: scale(1.05);
}

.play-btn-circle {
    background: #fff;
    color: #000;
    border: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    transition: var(--transition-premium);
    position: relative;
}

.play-btn-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.35);
}

.playing .play-btn-circle {
    background: var(--accent-neon);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.play-arrow {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000;
    margin-right: 4px;
}

.pause-bars {
    display: flex;
    gap: 4px;
}

.pause-bars span {
    width: 4px;
    height: 16px;
    background: #000;
    border-radius: 2px;
}

/* Volume Slider */
.volume-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin-top: 15px;
}

.volume-mute-btn {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-premium);
}

.volume-mute-btn:hover {
    color: #fff;
}

.premium-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.playing .premium-slider::-webkit-slider-thumb {
    background: var(--accent-neon);
    box-shadow: 0 0 10px var(--accent-glow);
}

.premium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Immersive player layout */
.immersive-player-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Loading layout */
.loading-stations {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .glass-player-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
        gap: 25px;
    }
    .player-info-container {
        align-items: center;
        text-align: center;
    }
    .player-meta {
        align-items: center;
    }
    .premium-controls {
        justify-content: center;
    }
    .volume-slider-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .glass-player-card {
        padding: 20px;
        gap: 15px;
        border-radius: var(--radius-md);
    }
    .visualizer-container {
        width: 150px;
        height: 150px;
    }
    .glowing-ring {
        width: 140px;
        height: 140px;
    }
    .vinyl-disc-wrapper {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
    .vinyl-center {
        width: 36px;
        height: 36px;
    }
    .vinyl-logo-img {
        width: 22px;
        height: 22px;
    }
    .wave-equalizer {
        height: 25px;
        gap: 2px;
    }
    .wave-bar {
        width: 2px;
    }
    .player-meta h2 {
        font-size: 1.5rem;
    }
    .player-meta p {
        font-size: 12px;
        max-width: 100%;
    }
    .play-btn-circle {
        width: 52px;
        height: 52px;
    }
    .play-arrow {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 13px;
        margin-right: 3px;
    }
    .pause-bars span {
        width: 3px;
        height: 13px;
    }
    .volume-slider-wrapper {
        max-width: 200px;
    }
}
