/* ===========================
   Carte Broadcast
   =========================== */

.broadcast-status {

    display: inline-block;

    margin: 6px 0 10px;

    font-size: 0.80rem;

    font-weight: 500;

    color: #cbd5e1;

}

.broadcast-preview {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 10px;

    background: #000;

    max-height: 220px;

    margin-top: 12px;

    opacity: 1;

    transition:
        max-height .3s ease,
        opacity .3s ease,
        margin .3s ease;

}

.broadcast-preview.hidden {

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    margin-top: 0;

}

.broadcast-video {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    background: #000;

}

.broadcast-expand {

    position: absolute;

    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 8px;

    background: rgba(0, 0, 0, .55);

    color: #fff;

    font-size: 1.2rem;

    cursor: pointer;

    transition: .2s;

    backdrop-filter: blur(6px);

}

.broadcast-expand:hover {

    background: rgba(0, 0, 0, .75);

}

/* ===========================
   Fenêtre
   =========================== */

.broadcast-modal {

    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .75);

    backdrop-filter: blur(4px);

}

.broadcast-modal.open {

    display: flex;

}


/* ===========================
   Contenu
   =========================== */

.broadcast-modal-content {

    width: min(1200px, 100%);

    max-height: 95vh;

    overflow: hidden;

    border-radius: 14px;

    background: #263446;

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);

}


/* ===========================
   Header
   =========================== */

.broadcast-modal-header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 18px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

}

.broadcast-modal-title {

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-size: 1.1rem;

}

.broadcast-modal-status {

    color: #8bc34a;

    font-size: .9rem;

}


/* ===========================
   Fermeture
   =========================== */

.broadcast-close {

    border: none;

    background: transparent;

    color: #fff;

    font-size: 1.6rem;

    cursor: pointer;

}


/* ===========================
   Vidéo plein écran
   =========================== */

.broadcast-modal-body {

    padding: 16px;

}

.broadcast-modal-body .broadcast-video {

    width: 100%;

    aspect-ratio: 16 / 9;

    max-height: 80vh;

    object-fit: contain;

    border-radius: 10px;

}


/* ===========================
   Mobile
   =========================== */

@media (max-width:768px) {

    .broadcast-modal {

        padding: 10px;

    }

    .broadcast-modal-header {

        padding: 14px 16px;

    }

}


/* ===========================
   Très petits écrans
   =========================== */

@media (max-width:480px) {

    .broadcast-modal {

        padding: 0;

    }

    .broadcast-modal-content {

        width: 100%;
        height: 100vh;

        max-height: 100vh;

        border-radius: 0;

    }

    .broadcast-modal-body {

        padding: 0;

    }

    .broadcast-modal-body .broadcast-video {

        border-radius: 0;

        max-height: none;

        height: 100%;

    }

}