/* ATIZA public display module (live). Component styles belong here, not in PHP.
 * The standalone 16:9 display/streaming UI intentionally has no commercial header.
 * Brand font is assets/atiza-fonts.css; Carta and its styles are excluded.
 */
:root {
    color-scheme: dark;
    --bg: #000;
    --panel: rgba(10, 10, 10, .74);
    --panel-strong: rgba(14, 14, 14, .9);
    --border: rgba(255, 255, 255, .08);
    --text: #fff7eb;
    --muted: rgba(255, 247, 236, .68);
    --accent: #fb6d01;
    --accent-2: #ff4f1f;
    --good: #7fed9f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: 'Raleway', sans-serif; }
body { overflow: hidden; }

.live-app {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 141, 0, .10), transparent 36%),
        radial-gradient(circle at 12% 88%, rgba(255, 88, 0, .08), transparent 22%),
        #000;
}

.live-app.mode-event .topbar {
    display: none !important;
}

.live-app.mode-event .stage {
    padding: 0 !important;
}

.live-app.mode-event .screen {
    height: 100vh !important;
    border-radius: 0 !important;
}

.live-app.mode-event .meta-card {
    display: none !important;
}

.live-app.mode-event .meta-overlay {
    inset: auto 16px 16px 16px !important;
    justify-content: flex-end !important;
}

.live-app.mode-event .controls {
    padding: 10px !important;
    border-radius: 999px;
    background: rgba(0, 0, 0, .36);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);
}

.live-app.mode-event .status-line {
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
}

.topbar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 12px;
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    display: block;
    height: clamp(38px, 4vw, 58px);
    width: auto;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.brand-copy .kicker {
    margin: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 2px 0 0;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.05em;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: auto;
    white-space: nowrap;
}

.live-pill::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 5px rgba(127, 237, 159, .18);
}

.stage {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 78px 18px 18px;
}

.screen {
    position: relative;
    width: 100%;
    height: calc(100vh - 96px);
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .04), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, .50), rgba(0, 0, 0, .94));
    z-index: 3;
    transition: opacity .25s ease, transform .25s ease;
}

.placeholder.hidden {
    opacity: 0;
    transform: scale(.98);
    pointer-events: none;
}

.placeholder-card {
    max-width: 760px;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.placeholder-card img {
    width: min(32vw, 220px);
    max-width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 34px rgba(0, 0, 0, .40));
}

.placeholder-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 64px);
    line-height: .94;
    letter-spacing: -.05em;
}

.placeholder-card p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.6;
    color: var(--muted);
}

.meta-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    pointer-events: none;
}

.meta-card {
    max-width: min(760px, 100%);
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(14, 14, 14, .86), rgba(14, 14, 14, .56));
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    pointer-events: auto;
}

.meta-card .label {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 800;
}

.meta-card .title {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 44px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.meta-card .sub {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    pointer-events: auto;
}

.btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 13px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #140800;
    border-color: transparent;
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.status-line {
    position: absolute;
    top: 92px;
    left: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.status-line .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(255, 143, 31, .14);
}

@media (max-width: 900px) {
    body { overflow: auto; }
    .topbar {
        position: sticky;
        top: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .72));
        backdrop-filter: blur(12px);
        padding: 14px 14px 10px;
    }

    .stage {
        padding: 12px;
    }

    .screen {
        height: calc(100vh - 128px);
        border-radius: 20px;
    }

    .live-app.mode-event .screen {
        height: calc(100vh - 24px);
    }

    .status-line {
        top: 86px;
        left: 14px;
        right: 14px;
        width: auto;
        justify-content: center;
    }

    .meta-overlay {
        inset: auto 12px 12px 12px;
    }

    .controls {
        justify-content: stretch;
        width: 100%;
    }

    .btn {
        flex: 1 1 0;
    }

    .live-app.mode-event .controls {
        width: 100%;
        justify-content: stretch;
    }
}
