/* LiveLyrics — vMix output page.
   Transparent background + chroma-safe defaults so this page can drop
   straight into a vMix Web Browser input at 1920x1080. */

:root {
    --ll-bg: transparent;
    --ll-fg: #ffffff;
    --ll-next-fg: rgba(255, 255, 255, 0.55);
    --ll-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
    --ll-font: "Inter", "Segoe UI", Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--ll-bg);
    color: var(--ll-fg);
    font-family: var(--ll-font);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6vw 8vh;
    text-align: center;
    text-shadow: var(--ll-shadow);
}

#current, #next {
    width: 100%;
    line-height: 1.15;
    transition: opacity 220ms ease, transform 220ms ease;
    will-change: opacity, transform;
}

#current {
    font-size: 6vw;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#next {
    margin-top: 1.5vh;
    font-size: 3vw;
    font-weight: 500;
    color: var(--ll-next-fg);
}

/* Fade+lift when the active line changes. JS toggles .swap for one frame
   to retrigger the transition. */
.swap #current, .swap #next {
    opacity: 0;
    transform: translateY(1vh);
}

body.blackout #stage { opacity: 0; }

/* Tiny transport indicator — visible only when ?debug=1 is present. */
#status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    opacity: 0;
    pointer-events: none;
}
body.debug #status { opacity: 1; }
#status[data-transport="sse"]     { color: #6ee7b7; }
#status[data-transport="polling"] { color: #fbbf24; }
#status[data-transport="offline"] { color: #f87171; }
