:root {
    --primary: #888;
    --glass: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #f2f0e9;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f0e9;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease;
}

.loader {
    text-align: center;
}

.loader h1 {
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.loader p {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 30px;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: #ddd;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: #1a1a1a;
    box-shadow: none;
    transition: width 0.2s;
}

/* Instructions */
#instructions {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0.5;
}

#instructions p {
    margin: 5px 0;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    color: #1a1a1a;
}

#instructions .sub {
    font-size: 10px;
    opacity: 0.6;
}

/* Station Info Panel */
#station-info {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 20;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#station-info.hidden {
    opacity: 0;
    transform: translateX(50px);
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 24px;
    width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    color: #1a1a1a;
}

#station-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

#station-location {
    margin: 0 0 20px 0;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#radio-player {
    width: 100%;
    height: 35px;
    opacity: 0.9;
}

#close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    opacity: 0.3;
    font-size: 20px;
}

#close-btn:hover {
    opacity: 1;
}

/* Audio Visualizer Animation */
.signal-wave {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 20px;
    margin-bottom: 15px;
    gap: 3px;
    flex-shrink: 0;
}

.signal-wave span {
    display: block;
    width: 3px;
    height: 100%;
    background: #1a1a1a;
    animation: wave 1s infinite ease-in-out;
    border-radius: 3px;
}

.signal-wave span:nth-child(1) { animation-delay: 0.0s; height: 40%; }
.signal-wave span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.signal-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.signal-wave span:nth-child(4) { animation-delay: 0.1s; height: 70%; }
.signal-wave span:nth-child(5) { animation-delay: 0.0s; height: 40%; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 8px var(--primary); }
}
