/* SOC_LIVESTREAM_BROADCAST_STUDIO_V13_20260812 */

.livestream-operations-view {
    overflow: auto;
}

.livestream-operations-panel {
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.livestream-ops-shell {
    display: grid;
    gap: 14px;
}

.ls-ops-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(115px, 1fr)) auto;
    gap: 9px;
}

.ls-ops-metric,
.ls-ops-refresh {
    min-height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(12, 13, 20, 0.84);
}

.ls-ops-metric {
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 11px 13px;
}

.ls-ops-metric > span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.ls-ops-metric strong {
    color: #fff;
    font-size: 1.12rem;
}

.ls-ops-metric strong.ok,
.ls-status-pill.ok {
    color: #71f0ab;
}

.ls-ops-metric strong.warning,
.ls-status-pill.warning {
    color: #ffc06c;
}

.ls-ops-metric small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.33);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-ops-refresh {
    padding: 0 17px;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.ls-ops-refresh:hover,
.ls-link-button:hover {
    border-color: rgba(124, 91, 255, 0.46);
    background: rgba(108, 79, 227, 0.13);
}

.ls-ops-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 0.72rem;
}

.ls-ops-banner.ok {
    border: 1px solid rgba(56, 217, 127, 0.17);
    background: rgba(37, 136, 82, 0.07);
    color: #9aefbd;
}

.ls-ops-banner.warning {
    border: 1px solid rgba(255, 181, 76, 0.18);
    background: rgba(133, 82, 17, 0.08);
    color: #ffd095;
}

.ls-ops-banner strong {
    color: #fff;
    white-space: nowrap;
}

.ls-ops-banner > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.ls-ops-banner > div span::before {
    content: "• ";
}

.ls-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ls-ops-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 19, 28, 0.96),
            rgba(10, 11, 17, 0.96)
        );
}

.ls-ops-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.ls-ops-card h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 1rem;
}

.ls-ops-kicker {
    color: #8d76ff;
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.ls-status-pill {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.62rem;
    font-weight: 900;
}

.ls-track {
    display: grid;
    gap: 5px;
    min-height: 98px;
    align-content: center;
    padding: 14px;
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(113, 79, 255, 0.16),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.025);
}

.ls-track span {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.ls-track strong {
    color: #fff;
    font-size: 1rem;
}

.ls-track small {
    color: rgba(255, 255, 255, 0.52);
}

.ls-radio-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ls-radio-controls button,
.ls-link-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.ls-radio-controls input {
    width: 100%;
}

.ls-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0 0;
}

.ls-facts > div {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.ls-facts dt {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.ls-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-room-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.ls-room-stats span {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.028);
}

.ls-room-stats small {
    color: rgba(255, 255, 255, 0.31);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ls-room-stats strong {
    color: #fff;
    font-size: 1.08rem;
}

.ls-cam-list,
.ls-playlists,
.ls-readiness {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.ls-cam-row,
.ls-playlist-row,
.ls-readiness-row {
    min-width: 0;
    display: grid;
    align-items: center;
    gap: 3px 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ls-cam-row,
.ls-playlist-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ls-cam-row > div,
.ls-playlist-row > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ls-cam-row strong,
.ls-playlist-row strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-cam-row small,
.ls-playlist-row small,
.ls-playlist-row > span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.62rem;
}

.ls-cam-row > span {
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.57rem;
    font-weight: 900;
}

.ls-cam-row > span.live {
    background: rgba(36, 154, 88, 0.13);
    color: #71efaa;
}

.ls-readiness-row {
    grid-template-columns: 125px auto;
}

.ls-readiness-row > span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.67rem;
    font-weight: 750;
}

.ls-readiness-row > strong {
    justify-self: start;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.53rem;
    letter-spacing: 0.06em;
}

.ls-readiness-row > strong.ok {
    background: rgba(34, 146, 82, 0.12);
    color: #75efad;
}

.ls-readiness-row > small {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.61rem;
}

.ls-honesty-note {
    margin: 10px 0 0;
    padding: 9px 10px;
    border-left: 2px solid rgba(125, 91, 255, 0.45);
    background: rgba(123, 91, 255, 0.05);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.64rem;
    line-height: 1.5;
}

.ls-library-total {
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.7rem;
    font-weight: 800;
}

.ls-empty-small,
.ls-error-small {
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.67rem;
    text-align: center;
}

.ls-error-small {
    color: #ffb0b7;
}

.ls-loading,
.ls-load-error {
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.43);
    text-align: center;
}

.ls-loading i {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.09);
    border-top-color: #8067ff;
    border-radius: 50%;
    animation: lsOpsSpin 0.8s linear infinite;
}

.ls-loading strong,
.ls-load-error strong {
    color: #fff;
}

@keyframes lsOpsSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1240px) {
    .ls-ops-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .ls-ops-grid {
        grid-template-columns: 1fr;
    }

    .ls-facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .ls-ops-summary {
        grid-template-columns: 1fr 1fr;
    }

    .ls-radio-controls {
        grid-template-columns: 1fr;
    }

    .ls-readiness-row {
        grid-template-columns: 1fr;
    }

    .ls-readiness-row > small {
        grid-column: auto;
    }
}


/* Broadcast Studio V13 */

.ls-broadcast-card {
    grid-column: 1 / -1;
}

.ls-status-pill.live {
    border-color: rgba(255, 70, 90, 0.25);
    background: rgba(164, 29, 44, 0.14);
    color: #ff9ca7;
    box-shadow: 0 0 20px rgba(255, 59, 79, 0.08);
}

.ls-broadcast-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ls-broadcast-form label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ls-broadcast-form label.wide {
    grid-column: 1 / -1;
}

.ls-broadcast-form label > span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
    font-weight: 800;
}

.ls-broadcast-form input,
.ls-broadcast-form select {
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    outline: none;
}

.ls-broadcast-form option {
    color: #111;
}

.ls-broadcast-preview {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(118, 87, 255, 0.10),
            transparent 48%
        ),
        #08090d;
}

.ls-broadcast-preview video {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #050506;
}

.ls-audio-meter {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(4, 5, 8, 0.72);
    backdrop-filter: blur(8px);
}

.ls-audio-meter > span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ls-audio-meter > div {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.ls-audio-meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #55e89b,
        #f1d65a,
        #ff686f
    );
    transition: width 70ms linear;
}

.ls-broadcast-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ls-broadcast-buttons button,
.ls-broadcast-active-actions button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.ls-broadcast-buttons button.primary {
    border-color: rgba(255, 71, 91, 0.28);
    background: linear-gradient(
        135deg,
        rgba(197, 38, 57, 0.80),
        rgba(121, 39, 165, 0.72)
    );
}

.ls-broadcast-buttons button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ls-broadcast-active {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 69, 90, 0.20);
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(255, 50, 73, 0.13),
            transparent 55%
        ),
        rgba(255, 255, 255, 0.025);
}

.ls-broadcast-active > span {
    color: #ff7f8d;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.ls-broadcast-active > strong {
    color: #fff;
    font-size: 1.15rem;
}

.ls-broadcast-active > small {
    color: rgba(255, 255, 255, 0.48);
}

.ls-broadcast-active-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.ls-broadcast-active-actions button.danger {
    border-color: rgba(255, 73, 93, 0.30);
    background: rgba(163, 30, 44, 0.17);
    color: #ffadb5;
}

.ls-broadcast-active-actions small {
    color: rgba(255, 255, 255, 0.40);
}

@media (max-width: 720px) {
    .ls-broadcast-form {
        grid-template-columns: 1fr;
    }

    .ls-broadcast-form label.wide {
        grid-column: auto;
    }

    .ls-broadcast-buttons,
    .ls-broadcast-active-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
