/* ========================================= */
/* COSMIC BACKGROUND (Unified + Variable Driven) */
/* ========================================= */

:root {
    --cosmic-top: #1a1a1a;
    --cosmic-mid: #0d0d0d;
    --cosmic-bottom: #000;
}

body {
    margin: 0;
    background: radial-gradient(circle at 50% 20%, var(--cosmic-top), var(--cosmic-mid) 60%, var(--cosmic-bottom) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    color: #f2f2f2;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.10), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.08), transparent);
    animation: cosmicFloat 18s linear infinite;
    z-index: 0;
}

@keyframes cosmicFloat {
    0% { transform: translateY(0px); opacity: 0.9; }
    50% { transform: translateY(-12px); opacity: 1; }
    100% { transform: translateY(0px); opacity: 0.9; }
}

/* ========================================= */
/* APP CONTAINER */
/* ========================================= */

#rock-app {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* ========================================= */
/* COSMIC HEADER */
/* ========================================= */

.rock-header {
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #b54a2a;
}

.rock-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(224,208,160,0.15), transparent 70%);
    animation: headerPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.rock-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.12), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(255,255,255,0.10), transparent),
        radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.08), transparent);
    animation: headerStars 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes headerPulse {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(1); }
}

@keyframes headerStars {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.logo, .subtitle {
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 32px;
    letter-spacing: 4px;
    color: #e0d0a0;
}

.subtitle {
    font-size: 14px;
    color: #b54a2a;
}

/* ========================================= */
/* ERA SELECTOR */
/* ========================================= */

.rock-era-select {
    padding: 20px 10px;
    background: #1a1a1a;
    margin: 20px 0;
    position: relative;
    z-index: 5;
}

#rock-era {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 6px;
    font-size: 18px;
}

/* ========================================= */
/* PLAYLIST */
/* ========================================= */

.rock-playlist {
    padding: 20px;
    background: #111;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.playlist-title {
    color: #e0d0a0;
    font-size: 20px;
    margin-bottom: 10px;
}

.playlist-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #333;
    padding: 10px;
    background: #1a1a1a;
}

.rock-track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    background: #222;
    border: 1px solid #333;
    color: #e0d0a0;
}

.rock-track-item button {
    background: #b54a2a;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ========================================= */
/* AMP DECKS */
/* ========================================= */

.rock-decks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    margin-top: 30px;
}

.amp {
    flex: 1;
    min-width: 280px;
    background: #1a1a1a;
    border: 3px solid #333;
    padding: 15px;
    border-radius: 6px;
    box-shadow: inset 0 0 20px #000;
}

.amp-title {
    font-size: 20px;
    color: #e0d0a0;
    margin-bottom: 10px;
}

.amp-btn {
    background: #b54a2a;
    color: #fff;
    padding: 10px 14px;
    border: none;
    margin-right: 6px;
    margin-top: 6px;
    border-radius: 4px;
}

/* ========================================= */
/* WAVEFORMS */
/* ========================================= */

canvas {
    display: block;
}

.rock-waveforms canvas {
    width: 100%;
    height: 120px;
    background: #000;
    margin-bottom: 10px;
}

.progress {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
}

#progressA, #progressB {
    height: 100%;
    width: 0%;
    background: #e0d0a0;
    display: block;
}

/* ========================================= */
/* MIXER */
/* ========================================= */

.rock-mixer {
    padding: 10px;
    background: #1a1a1a;
    border-top: 2px solid #b54a2a;
}

.rock-mixer input[type=range] {
    width: 100%;
    margin-bottom: 12px;
}

/* ========================================= */
/* PEDALBOARD */
/* ========================================= */

.rock-pedalboard {
    padding: 10px;
    background: #111;
    border-top: 2px solid #b54a2a;
}

.pedal {
    background: #333;
    color: #fff;
    padding: 12px;
    margin: 6px;
    border: 2px solid #555;
    border-radius: 6px;
}

/* ========================================= */
/* AUTO-DJ */
/* ========================================= */

.rock-autodj {
    padding: 10px;
    background: #1a1a1a;
    border-top: 2px solid #b54a2a;
}

/* ========================================= */
/* STAGE MODE */
/* ========================================= */

.stage-btn {
    width: 100%;
    padding: 14px;
    background: #b54a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

.rock-footer {
    text-align: center;
    padding: 20px;
    color: #e0d0a0;
    background: #111;
    border-top: 4px solid #b54a2a;
}

/* ========================================= */
/* NOW PLAYING */
/* ========================================= */

#rock-nowplaying {
    position: fixed;
    top: 10px;
    right: 260px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border: 1px solid #444;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    z-index: 9999;
    width: 220px;
}

#rock-nowplaying div {
    margin: 3px 0;
}

/* ========================================= */
/* PERFORMANCE OVERLAY */
/* ========================================= */

#rock-performance-overlay {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 180px;
    background: rgba(0,0,0,0.75);
    color: #e0d0a0;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    border: 2px solid #b54a2a;
    border-radius: 6px;
    z-index: 9999;
    pointer-events: none;
}

#rock-performance-overlay .perf-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
}

/* ========================================= */
/* DEBUG OVERLAY */
/* ========================================= */

#rock-debug-overlay {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 260px;
    background: rgba(0,0,0,0.85);
    color: #e0d0a0;
    font-family: monospace;
    font-size: 11px;
    padding: 12px;
    border: 2px solid #b54a2a;
    border-radius: 6px;
    z-index: 9999;
    pointer-events: none;
}

#rock-debug-overlay .debug-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
}

.debug-line {
    margin-bottom: 4px;
}

/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 768px) {

    #rock-app {
        padding: 0 10px;
    }

    .rock-decks {
        flex-direction: column;
        gap: 30px;
    }

    .amp {
        width: 100%;
        min-width: unset;
    }

    .amp-btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px;
        font-size: 16px;
    }

    .rock-waveforms canvas {
        height: 140px;
    }

    .progress {
        height: 8px;
    }

    input[type=range] {
        height: 40px;
    }

    body {
        overflow-x: hidden;
    }
}
.dt-footer-nav a {
    color: #e0d0a0 !important;
    text-decoration: none;
    margin: 0 8px;
    font-size: 13px;
}

.dt-footer-nav a:visited {
    color: #e0d0a0 !important;
}

.dt-footer-nav a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.dt-footer-nav a:active {
    color: #e0d0a0 !important;
}
