/* =========================================================
BASE
========================================================= */

body {
    margin: 0;
    background-color:#020617;
    font-family: Arial, sans-serif;
}

/* =========================================================
DEFAULT THEME
========================================================= */

body.default {
    background-image: url('/assets/imgs/background.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================================
PLAYER
========================================================= */

.xr-player {
    max-width: 900px;
    margin: 30px auto;
    background: rgba(2,6,23,0.85);
    backdrop-filter: blur(4px);
    border: 6px solid #251e27;
}

.xr-top {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    gap: 10px;
    background: linear-gradient(#1e3247, #162534);
    border: 4px solid #020617;
}

.xr-art {
    width: 135px;
    height: 85px;
    background: #020617;
    border:solid 2px #020617;
}

.xr-art img {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

.xr-meta {
    flex: 1;
}

#title {
    font-size: 16px;
    font-weight: bold;
    color: #b0bd0d;
    margin-top:8px;
}

#artist {
    font-size: 12px;
    color: #d8d8d8;
    margin-top: 4px;
}

#duration {
    font-size: 11px;
    color: #afafaf;
    margin-top: 5px;
}

.xr-logo img {
    width: 200px;
}

#schedule-banner {
    border-left:3px solid #d33661;
    padding:5px 10px;
    margin-top:4px;
    font-size:11px;
    color:#afafaf;
    display:none;
    border-radius:4px;
}

.xr-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    height: 22px;
    background: linear-gradient(#1e3247, #162534);
    border-left: 4px solid #020617;
    border-right: 4px solid #020617;
    border-bottom: 4px solid #020617;
    margin-bottom:6px;
}

#request {
    color: #b0bd0d;
    font-size: 12px;
}

.xr-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volume {
    width: 90px;
    height: 4px;
    accent-color: #24a6aa;
}

#play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #141c30, #0d1320);
    border: 2px solid #222632;
    color: #24a6aa;
    font-size: 24px;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: 0.2s ease;
}

#play-btn:hover {
    background: radial-gradient(circle at 30% 30%, #0d1320, #141c30);
}

#visualiser {
    width: 100%;
    height: 180px;
    background: #020617;
    border-top: 2px solid #020617;
}

/* =========================================================
HALLOWEEN
========================================================= */

body.halloween {
    background-color:#05010a;
    background-image: url('/assets/imgs/halloween-background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body.halloween .xr-top,
body.halloween .xr-middle {
    background: linear-gradient(#2a0f0f, #140707);
}

body.halloween #title,
body.halloween #request {
    color:#ff6600;
}

body.halloween #play-btn {
    color:#ff6600;
    border-color:#ff6600;
}
body.halloween #volume {
    accent-color: #ff7a00;
}
/* =========================================================
CHRISTMAS
========================================================= */

body.christmas {
    background-color:#02110a;
    background-image: url('/assets/imgs/christmas/bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.christmas .xr-player {
    border-color:#2ecc71;
    box-shadow: 0 0 20px rgba(46,204,113,0.3);
}

body.christmas .xr-top,
body.christmas .xr-middle {
    background: linear-gradient(#0f2a1a, #07140d);
}

body.christmas #title {
    color:#2ecc71;
}

body.christmas #request {
    color:#e74c3c;
}

body.christmas #play-btn {
    color:#2ecc71;
    border-color:#2ecc71;
}

/* =========================================================
NEW YEAR
========================================================= */

body.newyear {
    background-color:#020617;
    background-image: url('/assets/imgs/bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.newyear .xr-player {
    border-color:#ffd700;
    box-shadow: 0 0 25px rgba(255,215,0,0.4);
}

body.newyear .xr-top,
body.newyear .xr-middle {
    background: linear-gradient(#1a1a2e, #0a0a14);
}

body.newyear #title,
body.newyear #request {
    color:#ffd700;
}

body.newyear #play-btn {
    color:#ffd700;
    border-color:#ffd700;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {

    .xr-player {
        margin: 10px;
        border-width: 4px;
    }

    .xr-art {
        width: 110px;
        height: 70px;
    }

    #title {
        font-size: 13px;
    }

    #artist {
        font-size: 11px;
    }

    .xr-logo {
        display: none;
    }

    .xr-middle {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    .xr-controls {
        width: 100%;
        justify-content: space-between;
    }

    #play-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    #volume {
        flex: 1;
        min-width: 80px;
    }

    #visualiser {
        margin-top: 16px;
    }
}