/* =========================
   Statusbar
   ========================= */

.statusbar {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    right: 0;
    bottom: 0;

    height: 42px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(15, 15, 15, 0.90);
    color: whitesmoke;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    z-index: 1000;
    box-sizing: border-box;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
}

.statusbar-state{
    display: flex;

}

/* Indicator dot (JS changes the background-color) */
.statusbar-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 12px;

    margin-right: 8px;

    background: whitesmoke; /* default; overridden by JS */

    /* glow */
    box-shadow:
        0 0 6px currentColor,
        0 0 12px currentColor,
        inset 0 0 2px rgba(255, 255, 255, 0.6);

    /* make currentColor follow background-color */
    color: whitesmoke;
}

/* Left lane: fixed/capped so buttons never "wiggle" */
.statusbar-mode, .statusbar-playing {
    display: inline-block;
    width: clamp(160px, 22vw, 280px); /* stable lane + responsive */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0.95;
}


/* Version pinned right */
.statusbar-version {
    margin-left: auto;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
    letter-spacing: 0.2px;
}

/* =========================
   Responsive tweaks
   ========================= */

@media (max-width: 420px) {
    .statusbar-version {
        display: none;
    }
}