@charset "UTF-8";

:root {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #fff;
    background: transparent;
    --cyan: #18d8ff;
    --blue: #0878e8;
    --navy: rgba(4, 20, 38, .92);
    --glass: rgba(5, 23, 42, .82);
    --safe-x: 54px;
    --safe-y: 42px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: transparent; }
body { min-width: 960px; min-height: 540px; }

.overlay {
    position: relative;
    width: 100vw;
    height: 100vh;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .72);
}

.topbar {
    position: absolute;
    z-index: 10;
    top: var(--safe-y);
    left: var(--safe-x);
    right: var(--safe-x);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.live-card, .brand-card, .lower-third {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .38));
}

.live-card { display: flex; min-height: 76px; }

.live-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-left: 8px solid var(--cyan);
    border-radius: 12px 0 0 12px;
    background: linear-gradient(135deg, #e92141, #b90e28);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.35s infinite;
}

.camera-copy {
    min-width: 470px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, rgba(5, 26, 49, .95), rgba(7, 52, 88, .9));
    backdrop-filter: blur(8px);
}

.camera-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 28px;
    line-height: 1.1;
}

.camera-copy span { color: #b9d6e8; font-size: 16px; letter-spacing: .5px; }

.brand-card {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    padding: 11px 20px 9px;
    border-top: 3px solid var(--cyan);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(4, 28, 50, .96), rgba(5, 64, 105, .9));
}

.brand-mark { grid-row: 1 / 3; color: var(--cyan); font-size: 39px; font-weight: 950; letter-spacing: -3px; }
.brand-name { font-size: 25px; font-weight: 950; letter-spacing: 3px; }
.brand-card small { color: #bce9f6; font-size: 10px; letter-spacing: 1.7px; }

.lower-third {
    position: absolute;
    z-index: 10;
    left: var(--safe-x);
    right: var(--safe-x);
    bottom: var(--safe-y);
    height: 88px;
    display: grid;
    grid-template-columns: 255px 1fr 150px 170px;
    overflow: hidden;
    border: 1px solid rgba(129, 209, 255, .3);
    border-left: 8px solid var(--cyan);
    border-radius: 14px;
    background: var(--navy);
    backdrop-filter: blur(9px);
}

.signal, .ticker, .rotation, .clock { display: flex; align-items: center; }
.signal { gap: 13px; padding: 0 20px; background: rgba(2, 43, 70, .88); }
.signal-icon { color: #43ee9d; font-size: 22px; text-shadow: 0 0 16px #43ee9d; }
.signal div, .rotation, .clock { flex-direction: column; justify-content: center; }
.signal small, .rotation small { color: #9fc7dd; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; }
.signal strong { font-size: 24px; }

.ticker { min-width: 0; gap: 18px; padding: 0 24px; font-size: 21px; }
.ticker-label { flex: 0 0 auto; padding: 7px 10px; border-radius: 6px; background: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
#nextCamera { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.rotation { border-left: 1px solid rgba(129, 209, 255, .22); background: rgba(10, 41, 69, .78); }
.rotation strong { margin-top: 2px; color: var(--cyan); font-size: 28px; }

.clock { border-left: 1px solid rgba(129, 209, 255, .22); background: linear-gradient(135deg, #086cc9, #084a8a); }
.clock strong { font-size: 31px; line-height: 1; }
.clock span { margin-top: 5px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; }

.offline {
    position: absolute;
    left: 50%;
    bottom: 145px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(174, 12, 40, .92);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.4px;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: .25s ease;
}

.overlay.is-offline .offline { opacity: 1; transform: translate(-50%, 0); }
.overlay.is-loading .lower-third, .overlay.is-loading .live-card { opacity: .8; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); }
    70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
