html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* overridden from config.json objectFit */
    opacity: 0;
    transition: opacity 250ms linear;
    background: #000;
}

.player.is-active {
    opacity: 1;
}

/* Shown when no video matches the current time window. */
#standby {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #6b6b6b;
    font: 400 2vw/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
}

#standby[hidden] { display: none; }

.standby-title { font-size: 1em; }
.standby-sub { font-size: 0.6em; margin-top: 0.8em; color: #444; }

/* Only appears if autoplay is blocked (i.e. config muted:false). */
#startButton {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40vw;
    height: 12vh;
    font: 600 2vw system-ui, sans-serif;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    z-index: 10000;
}

#startButton[hidden] { display: none; }

#svgOverlay {
    position: fixed;
    bottom: 0;
    right: 0;

    width: 5vw;
    height: 5vw;

    min-width: 32px;
    min-height: 32px;

    max-width: 96px;
    max-height: 96px;

    pointer-events: none;
    z-index: 9999;
    display: none;
}

#debugPanel {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 60vw;
    max-height: 100vh;
    overflow: auto;
    margin: 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #7fe07f;
    font: 400 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 10001;
}

#debugPanel[hidden] { display: none; }
