/* ============================================================
   DivineTunes — Lucian Rock CSS
   Warm Analog + Cosmic Aesthetic (No Neon)
   ============================================================ */

/* GLOBAL */
body {
    margin: 0;
    padding: 0;
    color: #e6e6e6;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 40%, #0b0f14 100%);
    background-attachment: fixed;
}

/* COSMIC BORDER */
#cosmic-border {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    pointer-events: none;
    border-radius: 22px;
    border: 2px solid rgba(120, 200, 255, 0.25);
    box-shadow:
        0 0 25px rgba(120, 200, 255, 0.4),
        0 0 60px rgba(80, 160, 255, 0.25),
        inset 0 0 30px rgba(120, 200, 255, 0.2);
    animation: cosmicPulse 6s ease-in-out infinite;
    z-index: 999;
}

@keyframes cosmicPulse {
    0% { box-shadow: 0 0 25px rgba(120,200,255,0.4), 0 0 60px rgba(80,160,255,0.25), inset 0 0 30px rgba(120,200,255,0.2); }
    50% { box-shadow: 0 0 45px rgba(120,200,255,0.8), 0 0 90px rgba(80,160,255,0.4), inset 0 0 40px rgba(120,200,255,0.35); }
    100% { box-shadow: 0 0 25px rgba(120,200,255,0.4), 0 0 60px rgba(80,160,255,0.25), inset 0 0 30px rgba(120,200,255,0.2); }
}

/* HEADER */
#dt-header {
    width: 100%;
    padding: 20px 20px;
    font-size: 28px;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVIGATION BAR */
#nav-bar {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    font-size: 16px;
    flex-wrap: wrap;
}

#nav-bar a {
    color: #e6e6e6;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    transition: 0.3s;
}

#nav-bar a:hover {
    background: #333;
}

/* GENRE HEADER */
.lucian-header {
    text-align: center;
    padding: 20px 0;
    font-size: 32px;
    letter-spacing: 3px;
    color: #d9d9d9;
    text-transform: uppercase;
}

/* PLAYER CONTAINER */
#player-container {
    width: 90%;
    margin: auto;
    margin-bottom: 20px;
}

/* PLAYLIST */
#playlist {
    width: 90%;
    height: 250px;
    margin: auto;
    overflow-y: scroll;
    border: 1px solid #333;
    background: rgba(20, 20, 20, 0.85);
    padding: 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.track-item {
    padding: 14px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    color: #e6e6e6;
}

.track-item:hover {
    background: #222;
}

.active-track {
    background: #333;
    color: #fff;
}

/* AUDIO PLAYER */
audio {
    width: 100%;
    margin-top: 20px;
}

/* CONTROLS */
#controls {
    width: 90%;
    margin: 20px auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#controls button {
    padding: 12px 18px;
    background: #222;
    border: 1px solid #555;
    color: #e6e6e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

#controls button:hover {
    background: #444;
}

/* MODE ACTIVE (ORANGE HIGHLIGHT) */
.mode-active {
    background: #ff8c00 !important;
    color: #000 !important;
    border-color: #ff8c00 !important;
    box-shadow: 0 0 10px #ff8c00;
}

/* NOW PLAYING */
#nowPlaying {
    width: 90%;
    margin: 10px auto;
    font-size: 18px;
    letter-spacing: 1px;
    opacity: 0.85;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-size: 14px;
}

/* FLOATING DONATE BUTTON */
#floating-donate {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 99999;
    padding: 16px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 40%, #ffffff 100%);
    color: #111;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(212,175,55,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#floating-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(212,175,55,0.85);
    opacity: 0.95;
}
/* ============================================================
   COSMIC FLOATING STARFIELD
   ============================================================ */

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* IMPORTANT: allows clicking through */
    overflow: hidden;
    z-index: 9999; /* now ABOVE background, BELOW UI */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    opacity: 0.8;
    animation: drift 12s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0px); opacity: 0.9; }
    to { transform: translateY(120px); opacity: 0.2; }
}
.star {
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
@keyframes drift {
    from { transform: translate(0px, 0px); opacity: 0.9; }
    to { transform: translate(40px, 120px); opacity: 0.2; }
}
