:root {
    --bg-base: #0a0a0c;
    --text-main: #f0f0f5;
    --text-muted: #9494a0;
    
    --glass-bg: rgba(20, 20, 24, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --accent: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Backgrounds & Ambient Elements */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, var(--accent-glow) 0%, transparent 60%);
    z-index: -3;
    transition: background 1s ease;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.3;
    animation: drift 20s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; left: -100px; transition: background 1s ease; }
.orb-2 { width: 600px; height: 600px; background: #ff00ff; bottom: -200px; right: -150px; opacity: 0.15; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: #0088ff; top: 40%; left: 60%; opacity: 0.1; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); }

/* Navigation */
.top-nav {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 15px; font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; }
.logo-eg { color: var(--accent); transition: color 0.5s ease; text-shadow: 0 0 15px var(--accent-glow); }
.logo-radio { color: var(--text-main); }

.live-indicator {
    display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #ff3366;
    background: rgba(255, 51, 102, 0.1); padding: 5px 12px; border-radius: 12px; border: 1px solid rgba(255, 51, 102, 0.2);
}
.live-indicator.hidden { display: none; }
.pulse-dot { width: 8px; height: 8px; background-color: #ff3366; border-radius: 50%; animation: pulse 1.5s infinite; }

.nav-links { display: flex; gap: 10px; align-items: center; }

.nav-btn {
    background: transparent; border: none; color: var(--text-muted); font-family: var(--font-body);
    font-weight: 600; font-size: 0.95rem; padding: 10px 20px; cursor: pointer; border-radius: 10px; transition: all 0.3s ease; text-decoration: none;
}
.nav-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-btn.active { color: var(--text-main); background: rgba(255,255,255,0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* VK Link */
.vk-btn { color: #4C93FF; border: 1px solid rgba(76, 147, 255, 0.3); margin-left: 10px; }
.vk-btn:hover { color: #fff; background: rgba(76, 147, 255, 0.2); border-color: rgba(76, 147, 255, 0.5); }

/* Main Area & Views */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 2rem 130px 2rem; /* padding bottom for footer player */
}

.view { display: none; animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.view.active { display: block; }

/* Glass Panel Reusable */
.glass-panel {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Stations Grid */
.section-heading { font-size: 2.2rem; margin-bottom: 2rem; text-shadow: 0 0 10px rgba(255,255,255,0.1); }

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.station-card {
    position: relative;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.station-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.station-card.active { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }

.station-card-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.station-card:hover .station-card-bg { transform: scale(1.08); }

.station-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.4) 50%, rgba(10,10,12,0.1) 100%);
}

.station-card-content {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem;
    display: flex; align-items: center; gap: 1.5rem; z-index: 2;
}

.station-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.station-card-content h3 { font-size: 1.8rem; margin-bottom: 4px; }
.station-card-content p { color: var(--text-muted); font-size: 1rem; }

/* Widgets Row */
.widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.widget, .community-box { padding: 2rem; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; }
.widget-title, .box-title { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.widget-text { font-size: 1.2rem; font-weight: 600; }
.widget-text.highlight { color: var(--accent); transition: color 0.5s; }

.widget-progress { margin-top: 20px; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill { width: 65%; height: 100%; background: var(--accent); transition: background 0.5s; }

.box-desc { color: var(--text-main); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.4; }
.vk-button-large {
    display: inline-block; background: #4C93FF; color: #fff; padding: 12px 24px; border-radius: 12px;
    text-decoration: none; font-weight: 600; text-align: center;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
}
.vk-button-large:hover { background: #3a7ce0; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(76, 147, 255, 0.3); }

/* Footer Player */
.footer-player {
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 100px;
    background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--glass-border); z-index: 200;
}

.footer-progress-bar {
    position: absolute; top: 0; left: 0; height: 2px; background: var(--accent); width: 100%;
    box-shadow: 0 0 10px var(--accent-glow); transition: background 0.5s;
}

.footer-content {
    max-width: 1400px; margin: 0 auto; height: 100%; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.footer-left { display: flex; align-items: center; gap: 1.5rem; width: 350px; }
.footer-art { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.footer-track-info h4 { font-size: 1.2rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-track-info p { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.footer-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.footer-controls { display: flex; align-items: center; gap: 1.5rem; }

.btn-skip { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; justify-content: center; align-items: center; transition: color 0.3s; }
.btn-skip svg { width: 22px; height: 22px; fill: currentColor; }
.btn-skip:hover { color: var(--text-main); }

.btn-play-footer {
    width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--accent); color: #000;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow); transition: transform 0.2s, background 0.5s, box-shadow 0.5s;
}
.btn-play-footer:hover { transform: scale(1.05); }
.btn-play-footer:active { transform: scale(0.95); }
.btn-play-footer svg { width: 24px; height: 24px; fill: currentColor; }
.btn-play-footer .hidden { display: none; }

.footer-status-container { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; }
.visualizer { display: flex; gap: 4px; height: 14px; align-items: flex-end; opacity: 0; transition: opacity 0.3s; }
.visualizer.active { opacity: 1; }
.visualizer span { width: 3px; background: var(--accent); border-radius: 2px; transition: background 0.5s; }
.visualizer.active span { animation: eq 0.6s infinite alternate ease-in-out; }
.visualizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.visualizer span:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.visualizer span:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.visualizer span:nth-child(4) { height: 60%; animation-delay: 0.1s; }
.visualizer span:nth-child(5) { height: 50%; animation-delay: 0.3s; }

.status-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.footer-right { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; width: 350px; }
.quality-badge {
    padding: 6px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    color: var(--accent); background: rgba(0,255,204,0.1); border: 1px solid rgba(0,255,204,0.2); transition: all 0.5s;
}

.volume-control { display: flex; align-items: center; gap: 10px; width: 140px; }
.icon-volume { width: 20px; height: 20px; fill: var(--text-muted); }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; outline: none; transition: background 0.3s; }
input[type="range"]:hover { background: rgba(255,255,255,0.3); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px; background: #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.5); transition: transform 0.2s;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.2); }

/* Schedule View */
.schedule-container { padding: 3rem; }
.schedule-header { margin-bottom: 4rem; text-align: center; }
.schedule-header h2 { font-size: 3rem; margin-bottom: 15px; text-shadow: 0 0 20px rgba(255,255,255,0.1); }
.schedule-header p { color: var(--text-muted); font-size: 1.1rem; }

.schedule-timeline { display: flex; flex-direction: column; gap: 2rem; position: relative; max-width: 800px; margin: 0 auto; }
.schedule-timeline::before { content: ''; position: absolute; left: 160px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); }

.schedule-item { display: flex; gap: 4rem; align-items: center; position: relative; }
.schedule-item::before {
    content: ''; position: absolute; left: 154px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-muted); z-index: 1; border: 3px solid var(--bg-base);
}
.schedule-item:hover::before { background: var(--text-main); box-shadow: 0 0 10px rgba(255,255,255,0.5); }

.time-block { width: 120px; font-weight: 800; font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-main); text-align: right; }
.show-details { background: rgba(255,255,255,0.02); padding: 2rem; border-radius: 20px; flex: 1; border: 1px solid var(--glass-border); transition: transform 0.3s ease, background 0.3s; }
.show-details:hover { transform: translateX(10px); background: rgba(255,255,255,0.05); }

.channel-badge { display: inline-block; padding: 6px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.channel-badge.main { background: rgba(0,255,204,0.1); color: #00ffcc; border: 1px solid rgba(0,255,204,0.3); }
.channel-badge.breaks { background: rgba(255,0,255,0.1); color: #ff00ff; border: 1px solid rgba(255,0,255,0.3); }
.channel-badge.chill { background: rgba(0,136,255,0.1); color: #0088ff; border: 1px solid rgba(0,136,255,0.3); }

.show-details h3 { font-size: 1.6rem; margin-bottom: 8px; }
.show-details p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.5; }

/* Animations */
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }

/* Responsive */
@media (max-width: 1024px) {
    .stations-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .schedule-timeline::before { left: 20px; }
    .schedule-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .schedule-item::before { left: 14px; top: 4px; }
    .time-block { text-align: left; padding-left: 45px; }
    .show-details { width: 100%; }
}

@media (max-width: 768px) {
    /* Global */
    .main-content { padding: 1.5rem 1rem 110px 1rem; }
    .section-heading { font-size: 1.8rem; margin-bottom: 1.5rem; }
    
    /* Navigation */
    .nav-content { padding: 1rem; flex-direction: column; gap: 1rem; }
    .logo { justify-content: center; font-size: 1.5rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .nav-btn { padding: 8px 12px; font-size: 0.85rem; }
    .vk-btn { margin-left: 0; }

    /* Stations */
    .stations-grid { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 2rem; }
    .station-card { height: 200px; border-radius: 16px; }
    .station-card-content { padding: 1.5rem; }
    .station-card-content h3 { font-size: 1.5rem; }
    
    /* Widgets */
    .widgets-row { grid-template-columns: 1fr; gap: 1rem; }
    .widget, .community-box { padding: 1.5rem; border-radius: 16px; }
    .widget-text { font-size: 1.1rem; }
    
    /* Schedule */
    .schedule-container { padding: 1.5rem; }
    .schedule-header h2 { font-size: 2rem; margin-bottom: 10px; }
    .show-details { padding: 1.5rem; }
    .show-details h3 { font-size: 1.3rem; }

    /* Footer Player */
    .footer-player { height: 85px; border-radius: 16px 16px 0 0; background: rgba(10, 10, 12, 0.95); }
    .footer-content { padding: 0 1rem; justify-content: space-between; }
    
    .footer-right { display: none; }
    .footer-left { width: auto; gap: 1rem; flex: 1; overflow: hidden; }
    .footer-art { width: 50px; height: 50px; border-radius: 8px; }
    .footer-track-info { display: flex; flex-direction: column; overflow: hidden; }
    .footer-track-info h4 { font-size: 1rem; }
    
    .footer-center { flex: 0 0 auto; justify-content: flex-end; }
    .footer-controls { gap: 1rem; }
    .btn-play-footer { width: 50px; height: 50px; }
    .btn-play-footer svg { width: 22px; height: 22px; }
    .footer-status-container { display: none; } /* hide text/visualizer to fit phone */
}

@media (max-width: 480px) {
    .nav-btn { font-size: 0.8rem; padding: 6px 10px; }
    .logo { font-size: 1.3rem; }
    .station-card { height: 160px; }
}
