body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', Courier, monospace;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    transition: opacity 2s;
}

body.active #controls {
    opacity: 0;
}

/* ===== DOOM OVERLAY ===== */
#doom-overlay {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#doom-overlay.active {
    opacity: 1;
}

#doom-status {
    color: rgba(255, 80, 20, 0.85);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(255, 50, 0, 0.4),
        0 0 20px rgba(200, 0, 0, 0.2);
    margin-bottom: 8px;
}

#riff-name {
    color: rgba(255, 140, 40, 0.0);
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow:
        0 0 15px rgba(255, 60, 0, 0.6),
        0 0 40px rgba(255, 0, 0, 0.3),
        0 0 80px rgba(200, 0, 0, 0.15);
    transition: color 0.3s ease;
}

#riff-name.show {
    color: rgba(255, 140, 40, 0.9);
    animation: riffFade 4s ease forwards;
}

@keyframes riffFade {
    0% { color: rgba(255, 200, 100, 1.0); text-shadow: 0 0 30px rgba(255, 100, 0, 0.9), 0 0 60px rgba(255, 50, 0, 0.5); }
    20% { color: rgba(255, 140, 40, 0.9); }
    70% { color: rgba(255, 140, 40, 0.7); }
    100% { color: rgba(255, 140, 40, 0.35); }
}

/* ===== GENRE INDICATOR ===== */
#genre-indicator {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 12px;
    transition: color 2s ease, text-shadow 2s ease;
}

#genre-indicator.doom-mode {
    color: rgba(255, 80, 20, 0.7);
    text-shadow:
        0 0 8px rgba(255, 50, 0, 0.4),
        0 0 20px rgba(200, 0, 0, 0.2);
}

#genre-indicator.space-mode {
    color: rgba(100, 180, 255, 0.8);
    text-shadow:
        0 0 8px rgba(80, 140, 255, 0.5),
        0 0 25px rgba(120, 80, 255, 0.3),
        0 0 50px rgba(0, 200, 255, 0.15);
}

/* Doom active: subtle red tint on the controls if visible */
body.doom-active #controls p {
    color: rgba(255, 80, 40, 0.35);
}

/* ===== SONG PICKER ===== */
#song-picker {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    user-select: none;
}

#song-picker.active {
    opacity: 1;
    pointer-events: auto;
}

#song-picker-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255, 100, 30, 0.6);
    text-shadow: 0 0 10px rgba(255, 50, 0, 0.3);
    margin-bottom: 10px;
}

#song-list {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 10px;
}

#song-list .song-btn {
    background: rgba(255, 60, 0, 0.08);
    border: 1px solid rgba(255, 80, 20, 0.25);
    color: rgba(255, 140, 60, 0.7);
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#song-list .song-btn:hover {
    background: rgba(255, 60, 0, 0.2);
    border-color: rgba(255, 100, 30, 0.6);
    color: rgba(255, 180, 80, 0.95);
    text-shadow: 0 0 12px rgba(255, 80, 0, 0.5);
}

#song-list .song-btn.active {
    background: rgba(255, 60, 0, 0.25);
    border-color: rgba(255, 120, 30, 0.7);
    color: rgba(255, 200, 100, 1.0);
    text-shadow: 0 0 15px rgba(255, 80, 0, 0.6), 0 0 30px rgba(255, 40, 0, 0.3);
}

#song-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

#song-controls button {
    background: rgba(255, 60, 0, 0.06);
    border: 1px solid rgba(255, 80, 20, 0.2);
    color: rgba(255, 140, 60, 0.65);
    font-size: 16px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

#song-controls button:hover {
    background: rgba(255, 60, 0, 0.18);
    border-color: rgba(255, 100, 30, 0.5);
    color: rgba(255, 200, 100, 0.95);
}

#song-controls button.shuffle-active {
    background: rgba(80, 200, 255, 0.15);
    border-color: rgba(80, 180, 255, 0.5);
    color: rgba(120, 220, 255, 0.95);
    text-shadow: 0 0 10px rgba(80, 180, 255, 0.4);
}