/* ===================================
   URBAN RADIO // DIRECTOR'S CUT
   =================================== */

:root {
    --bg-color: #000000;
    --hud-color: #00f5ff;
    --hud-dim: rgba(0, 245, 255, 0.3);
    --accent: #ff00ff;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
    /* Technical cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--hud-color);
    font-family: var(--font-mono);
    overflow: hidden;
    /* Prevent scrolling */
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Background Image */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cyberpunk City Atmosphere via CSS Gradients */
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 245, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(100, 0, 255, 0.05) 0%, transparent 40%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%),
        /* Vignette bottom */
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%),
        /* Vignette top */
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 40px),
        /* Vertical grid lines */
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 40px);
    /* Horizontal grid lines */
    background-color: #050508;
    opacity: 1;
    z-index: -2;
    /* Behind particles */
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* HUD Layer */
.hud-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to canvas where needed */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Enable pointer events for interactive elements */
.hud-top-left,
.hud-top-right,
.hud-bottom-left,
.hud-bottom-right,
.hud-center-hint {
    pointer-events: auto;
}

/* Typography & Layout */
.brand {
    font-size: 1.5rem;
    letter-spacing: -1px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--hud-dim);
}

.meta {
    font-size: 0.75rem;
    color: var(--hud-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Buttons */
.hud-btn {
    background: transparent;
    border: 1px solid var(--hud-dim);
    color: var(--hud-color);
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: var(--hud-dim);
    border-color: var(--hud-color);
    box-shadow: 0 0 15px var(--hud-dim);
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--hud-dim);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-width: 150px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.menu-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    color: var(--hud-color);
    font-family: var(--font-mono);
    padding: 1rem;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--hud-dim);
    padding-right: 1.5rem;
}

.menu-item.disabled {
    color: var(--hud-dim);
    cursor: not-allowed;
}

/* Track Info */
.hud-bottom-left {
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}



.label {
    font-size: 0.6rem;
    color: var(--hud-dim);
    margin-bottom: 0.25rem;
}

.track-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.track-artist {
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
}

/* Controls Container */
.controls-container {
    display: flex;
    justify-content: flex-start;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid var(--hud-dim);
    backdrop-filter: blur(5px);
    height: 50px;
    /* Explicit height constraint */
}

.hud-control-btn {
    background: transparent;
    border: 1px solid var(--hud-color);
    color: var(--hud-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-control-btn:hover {
    background: var(--hud-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--hud-color);
}

/* Pulse animation to draw attention to play button on first load */
.hud-control-btn.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--hud-color);
    }

    50% {
        box-shadow: 0 0 25px var(--hud-color), 0 0 40px var(--hud-color);
    }
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.hud-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: var(--hud-dim);
    outline: none;
}

.hud-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--hud-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--hud-color);
}

/* Center Hint */
.hud-center-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--hud-dim);
    letter-spacing: 2px;
    animation: blink 2s infinite;
    pointer-events: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Positioning */
.hud-top-left {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.hud-top-right {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 50;
}

.hud-bottom-left {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

.hud-bottom-right {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .track-title {
        font-size: 1.5rem;
    }

    .track-artist {
        font-size: 1rem;
    }

    .hud-layer {
        padding: 1rem;
    }

    .hud-top-left {
        top: 1rem;
        left: 1rem;
    }

    .hud-top-right {
        top: 1rem;
        right: 1rem;
    }

    .hud-bottom-left {
        bottom: 6rem;
        left: 1rem;
        right: 1rem;
        max-width: 100%;
        text-align: center;
    }

    .hud-bottom-right {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        align-items: center;
    }

    .controls {
        width: 100%;
        justify-content: center;
    }
}

/* Schedule Overlay */
.schedule-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.schedule-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--hud-dim);
    padding-bottom: 1rem;
}

.schedule-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hud-color);
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--hud-dim);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--hud-color);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    cursor: pointer;
}

.schedule-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.schedule-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid var(--hud-dim);
    transition: all 0.2s ease;
}

.schedule-item:hover,
.schedule-item.active {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--hud-color);
    box-shadow: 0 0 15px var(--hud-dim);
}

.schedule-item.active {
    border-left: 4px solid var(--accent);
}

.time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    border-right: 1px solid var(--hud-dim);
    padding-right: 1.5rem;
}

.time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hud-color);
}

.ampm {
    font-size: 0.8rem;
    color: var(--hud-dim);
}

.info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.show-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.show-host {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.show-desc {
    font-size: 0.8rem;
    color: #aaa;
}

.live-badge {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px var(--accent);
}