:root {
    --bg-primary: #0a0510;
    --text-main: #fcfcfc;
    --text-muted: #aab;
    --accent-glow: #8e2de2;
    --accent-secondary: #4a00e0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

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

body {
    background: var(--bg-primary);
    min-height: 100vh;
    overflow: hidden; /* Stop scrolling as it's an app */
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.bg-fx {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1b0c2c 0%, var(--bg-primary) 70%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: var(--accent-glow); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-secondary); bottom: -50px; right: -50px; animation-duration: 25s; }
.orb-3 { width: 250px; height: 250px; background: #e91e63; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.2; }

@keyframes drift {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(50px) translateX(-50px) scale(1.1); }
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%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;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* App Container */
.app-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.brand-logo {
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
    transition: transform 0.3s;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.live-badge {
    background: rgba(255, 45, 85, 0.15);
    color: #ff2d55;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 45, 85, 0.3);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff2d55;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff2d55;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 45, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

/* Now Playing Section */
.now-playing-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-grow: 1;
    padding-bottom: 2rem;
}

.album-art-container {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(142, 45, 226, 0.2);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.album-art-container:hover {
    transform: translateY(-10px) scale(1.02);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.default-art {
    object-fit: contain;
    background: #0f0a1c;
    padding: 2rem;
}

.art-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    z-index: 2;
}

/* EQ Visualizer */
.eq-bars {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
}

.eq-bars.hidden { display: none; }

.bar {
    width: 6px;
    background: var(--accent-glow);
    border-radius: 3px;
    height: 5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.eq-bars:not(.hidden) .bar {
    animation: eqPlay 1s infinite alternate ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.2s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes eqPlay {
    0% { height: 5px; }
    100% { height: 25px; }
}

/* Track Info */
.track-info {
    max-width: 500px;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--accent-glow);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.track-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #d2b4f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.track-artist {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

.metadata-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #e0e0e0;
    backdrop-filter: blur(10px);
}

.tag i {
    margin-right: 0.5rem;
    color: var(--accent-glow);
}

/* Sticky Footer Player Dock */
.player-dock {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(10, 5, 16, 0.75);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 0;
    z-index: 100;
}

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

.player-controls {
    display: flex;
    align-items: center;
    flex: 1;
}

.btn-ctrl {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-secondary));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.3);
    transition: all 0.3s;
}

.btn-ctrl:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(142, 45, 226, 0.5);
}

.btn-ctrl.paused i {
    transform: translateX(2px);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.volume-control i {
    color: var(--text-muted);
}

.styled-slider {
    -webkit-appearance: none;
    width: 150px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.2s;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.station-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.station-name {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.bitrate {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 800px) {
    .now-playing-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .metadata-tags { justify-content: center; }
    .dock-container { gap: 1rem; }
    .styled-slider { width: 80px; }
    .track-title { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .dock-container { flex-direction: column; gap: 1.5rem; }
    .station-meta { align-items: center; }
    .btn-ctrl { width: 50px; height: 50px; font-size: 1.2rem; }
}
