/* =========================
   BASE
========================= */
body {
    margin: 0;
    background: #0b0f14;
    color: white;
    font-family: Arial, sans-serif;
}

/* =========================
   TOP BAR (RESPONSIVE)
========================= */
.topbar {
    display: flex;
    justify-content: flex-start; /* important change */
    align-items: center;

    gap: 16px;

    padding: 12px 16px;
    background: #111923;
    border-bottom: 1px solid #1f2a38;

    position: sticky;
    top: 0;
    z-index: 10;
}

#clock {
    font-size: 14px;
    color: #aaa;
}


#admin_link {
    margin-left: auto;

    color: #00ff99;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    padding: 6px 10px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    border-radius: 8px;

    background: rgba(17, 25, 35, 0.8);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

#admin_link:hover {
    border-color: rgba(0, 255, 153, 0.8);
    transform: translateY(-1px);
}

/* =========================
   MAIN BOX
========================= */
.box {
    padding: 16px;
}

/* =========================
   NOW PLAYING
========================= */
.now {
    font-size: 16px;
    color: #00ff99;
}

.meta {
    color: #aaa;
    margin-top: 6px;
}

#next-info {
    margin-top: 10px;
    color: #ffaa00;
    font-weight: 600;
}

/* =========================
   TABLE (RESPONSIVE)
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #1a1a1a;
    text-align: left;
}

tr.now {
    color: #00ff99;
    font-weight: bold;
}

tr.next {
    color: #ffaa00;
}

/* progress */
.row-progress {
    height: 5px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.row-bar {
    height: 100%;
    width: 0%;
    background: #00ff99;
}

.table-wrapper {
    max-height: 1000px;   /* adjust to your layout */
    overflow-y: auto;
    overflow-x: hidden;

    margin-top: 16px;

    border: 1px solid #1a1a1a;
    border-radius: 8px;
}


thead th {
    position: sticky;
    top: 0;
    background: #111923;
    z-index: 5;
}
/* =========================
   PLAYER (RESPONSIVE CARD)
========================= */
.player-box {
    margin-top: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    max-width: 260px;

    padding: 12px;
    border-radius: 14px;

    background: rgba(17, 25, 35, 0.95);
    border-left: 3px solid rgba(0, 255, 153, 0.8);

    backdrop-filter: blur(8px);
}

/* PLAY BUTTON */
#play-btn {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;

    border-radius: 12px;
    border: 1px solid rgba(0, 255, 153, 0.25);

    background: linear-gradient(135deg, #1a2430, #0d141c);
    color: white;

    cursor: pointer;
    transition: all 0.2s ease;
}

#play-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 153, 0.6);
}

/* playing state */
#play-btn.playing {
    background: linear-gradient(135deg, #00ff99, #00c777);
    color: #06110c;
    border-color: rgba(0, 255, 153, 0.9);
}

/* volume */
#volume {
    width: 100%;
}

/* =========================
   RESPONSIVE LAYOUT
========================= */
@media (min-width: 900px) {
    .layout {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .box {
        flex: 1;
    }

    .player-box {
        position: sticky;
        top: 70px;
    }
}

.spacer-row {
    text-align: center;
    font-weight: bold;
    color: #aaa;
    padding: 10px;
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
    letter-spacing: 2px;
}

.now-container {
    margin-bottom: 15px;
}

/* HEADER (small label) */
.now-header {
    font-size: 14px;
    letter-spacing: 2px;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* MAIN TRACK (big & prominent) */
.now-track {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

/* META (album + genre) */
.now-meta {
    font-size: 14px;
    color: #888;
}

.spacer-row {
    text-align: center;
    font-weight: bold;
    opacity: 0.6;
    padding: 10px;
    letter-spacing: 2px;
}


