:root {
    --primary: #1c4b5d;
    --secondary: white;
    --danger: #db2c2c;
    --live-red: #eb0909;
    --gray-light: #f4f2f2;
    --gray-border: #e3e3e3;
}

.stream-interface-wrapper {
    position: relative;
    max-width: 800px;
    border-radius: 15px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 80px 0 80px;
    min-height: 99vh !important;
}
.video-background1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.video-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*Déplacement du stream quand les flottantes sont ouverts === */
.stream-interface-wrapper.with-comments,
.stream-interface-wrapper.with-viewers,
.stream-interface-wrapper.with-total-viewers,
.stream-interface-wrapper.with-shares {
    transform: translateX(-190px);
    max-width: 500px;
}

.stream-interface {
    position: relative;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stream Container */
.stream-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 93vh;
}

.stream-background {
    width: 100%;
    height: 100%;
    background: var(--bg-card-start-lives-kikof);
    position: relative;
}

/* Live Indicator */
.live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
}

.live-circle {
    width: 20px;
    height: 20px;
    border: 1px solid rgb(150, 147, 147);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-dot {
    width: 14px;
    height: 14px;
    background: rgb(150, 147, 147);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.video-label {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* User Tag */
.user-tag {
    position: absolute;
    top: 60px;
    left: 20px;
    background: rgba(255, 255, 255, 0.87);
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 10px;
    color: black;
    opacity: 0.8;
    border: 0.28px solid rgba(255, 255, 255, 0.27);
    z-index: 20;
}

/* Start Live Buttons */
.start-live-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    z-index: 20;
}

.start-live-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid var(--primary);
    margin: 0 auto 20px;
}

.start-live-profile {
    background: var(--secondary);
    color: var(--color-kikof);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

/* Bottom Controls */
.controls-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.control-btn {
    background: var(--gray-light);
    border: 0.5px solid var(--gray-border);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.control-btn:hover {
    transform: translateY(-2px);
}

.control-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    font-size: 18px;
}

.side-controls {
    position: absolute;
    bottom: 0 !important;
    /* transform: translateX(-50%); */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 25;
}

.side-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.side-btn:hover {
    background: #153945;
    transform: scale(1.1);
}

.side-icon {
    width: 24px;
    height: 24px;
    color: white;
    font-size: 18px;
}

/* Fenêtre flottantes fixe  */
.comments-panel,
.viewers-panel,
.shares-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: var(--card-bg-kikof);
    border-radius: 16px 0 0 16px;
    color: var(--color-kikof);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid var(--border-aside-kikof);
    border-right: none;
}

.comments-panel.active,
.viewers-panel.active,
.shares-panel.active {
    right: 0;
}

.comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.comments-overlay.active,
.viewers-overlay.active,
.shares-overlay.active {
    opacity: 1;
    visibility: visible;
}

.comments-header,
.viewers-header,
.shares-header {
    padding: 0px 10px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.comments-header h6,
.viewers-header h6,
.shares-header h6 {
    margin: 0;
    font-weight: 500;
    color: var(--color-kikof);
    font-size: 16px;
}

.btn-close-comments,
.btn-close-viewers,
.btn-close-shares {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-kikof);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-reaction-button-kikof);
    color: white;
    border-radius: 5px;
}

.btn-close-comments:hover,
.btn-close-viewers:hover,
.btn-close-shares:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.comments-body,
.viewers-body,
.shares-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: var(--card-bg-kikof);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}

.comments-body::-webkit-scrollbar,
.viewers-body::-webkit-scrollbar,
.shares-body::-webkit-scrollbar {
    width: 6px;
}

.comments-body::-webkit-scrollbar-track,
.viewers-body::-webkit-scrollbar-track,
.shares-body::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}

.comments-body::-webkit-scrollbar-thumb,
.viewers-body::-webkit-scrollbar-thumb,
.shares-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.comments-body::-webkit-scrollbar-thumb:hover,
.viewers-body::-webkit-scrollbar-thumb:hover,
.shares-body::-webkit-scrollbar-thumb:hover {
    background: #153945;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    display: flex;
    gap: 10px;
    animation: slideInComment 0.4s ease-out;
    padding: 5px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.comment-item:hover {
    opacity: 0.5;
    border-color: var(--gray-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.comment-avatar,
.viewer-avatar,
.shares-avatar {
    flex-shrink: 0;
}

.comment-avatar img,
.viewer-avatar img,
.shares-avatar img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

.comment-item:hover .comment-avatar img {
    transform: scale(1.1);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.comment-time {
    font-size: 12px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 10px;
}

.comment-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-kikof);
    word-wrap: break-word;
}

.comments-input {
    padding: 20px;
    position: relative;
}

.comments-input .input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 50% !important;
}

.comments-input .form-control {
    padding: 12px 20px;
    font-size: 14px;
    flex: 1;
    transition: all 0.3s ease;
    background: var(--bg-search-main-kikof);
    border-color: var(--border-aside-kikof);
}
.comments-input .form-control::placeholder{
    color: var(--text-placeholder-kikof) !important;
}

.comments-input .form-control:focus {
    border-color: var(--border-aside-kikof);
    box-shadow: 0 0 0 3px rgba(28, 75, 93, 0.1);
    transform: translateY(-1px);
    color: var(--color-kikof);
}

.comments-input .btn {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-reaction-button-kikof);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(28, 75, 93, 0.3);
}

.comments-input .btn:hover {
    opacity: 0.5;
    transform: scale(1.1) rotate(15deg);
}

.comments-input .btn:active {
    transform: scale(0.95);
}
#content-shares-2 input.form-control,
#content-shares-1 input.form-control{
    background-color: var(--bg-search-main-kikof) !important;
    border: none !important;
    color: var(--color-kikof) !important;
}
#content-shares-2 input.form-control::placeholder,
#content-shares-1 input.form-control::placeholder
{
    color: var(--text-placeholder-kikof) !important;
}

/* Animations */
@keyframes slideInComment {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 769px) {
    #commentsContainer,
    #viewersContainer,
    #sharesContainer {
        display: none;
    }
    .stream-interface-wrapper {
        max-width: 500px;
        max-height: 200px;
    }

    /*  Déplacement desktop */
    .stream-interface-wrapper.with-comments,
    .stream-interface-wrapper.with-viewers,
    .stream-interface-wrapper.with-shares {
        transform: translateX(-190px);
    }

    .side-controls {
        right: -64px;
        /* top: 50%;
        transform: translateY(-50%); */
    }

    .side-btn {
        background: var(--bg-reaction-button-kikof);
        backdrop-filter: none;
    }
    .side-btn:hover{
        opacity: 0.5;
    }

    .comments-panel {
        width: 380px;
        right: -380px;
    }

    .comments-panel.active {
        right: 0;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}
.slide-in-bottom {
    animation: slideInBottom 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.viewer-name {
    font-size: 12px;
}

.btns-shares .btn-1,
.btns-shares .btn-2 {
    color: var(--color-kikof);
    min-width: 49% !important;
    border-color:var(--color-kikof);
    transition: all 0.3s ease-in-out;
}
.btns-shares .btn-1:hover,
.btns-shares .btn-2:hover {
  opacity: 0.5;
  background-color: var(--bg-reaction-button-kikof) !important;
}

.btn-1.active,
.btn-2.active {
    border-color: var(--bg-reaction-button-kikof)  !important;
    min-width: 49% !important;
    background-color: var(--bg-reaction-button-kikof) !important;
    color: white !important;
    animation: pulse 0.6s ease-in-out;
}
.btn-1.active:hover,
.btn-2.active:hover{
    background-color: transparent !important;
}

.btns-shares {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 450px;
    padding: 0 !important;
    margin: 0 auto;
}
.btn-animate {
    transform: scale(0.95);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
.footer-shares-2 {
    transition: all 0.5s ease-in-out;
}

.user-item-shares {
    animation: slideInUp 0.5s ease-out;
}

.user-item-shares {
    padding: 6px 14px 6px 0;
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.user-info-shares {
    width: 216px;
    gap: 8px;
}

.user-avatar-shares {
    width: 48px;
    height: 48px;
    position: relative;
}

.user-avatar-img-shares {
    width: 45px;
    height: 45px;
    left: 1px;
    top: 1px;
    position: absolute;
}

/* Détails utilisateur */
.user-details-shares {
    width: 148px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.user-name-shares {
    color: #2b2b2b;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    width: 100%;
}

/* Checkbox circulaire */
.checkbox-container {
    width: 36px;
    height: 36px;
    position: relative;
}

.circle-checkbox {
    width: 36px;
    height: 36px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.circle-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.circle-checkbox:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.circle-checkbox:hover {
    border-color: var(--primary);
}
.btn-shares-bottom,
.btn-viewer-bottom {
    background-color: var(--bg-reaction-button-kikof) !important;
    color: white;
}
.btn-shares-bottom:hover,
.btn-shares-bottom:hover {
  opacity: 0.5;
}

.content-shares-1,
.content-shares-2 {
    transition: all 0.4s ease-in-out;
}

.comments-in-stream {
    display: none;
    padding: 5px 5px !important;
    max-height: 200px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}
.bottom-comment-in-stream {
    bottom: 8% !important;
}

.btn-cancel-stop-live {
    background-color: var(--primary) !important;
    color: white;
}

@media (max-width: 768px) {
    /* ===== Interface principale ===== */
    .stream-interface {
        max-width: 100%;
        padding: 0 !important;
    }

    .stream-interface-wrapper {
        padding: 0 !important;
    }

    .stream-interface-wrapper.with-comments,
    .stream-interface-wrapper.with-viewers,
    .stream-interface-wrapper.with-shares {
        transform: translateX(0);
    }

    .stream-container {
        height: 90vh;
        border-radius: 12px;
        margin-top: 70px !important;
    }

    /* ===== Contrôles latéraux ===== */
    /* .side-controls {
        right: 0px !important;
        bottom: 0% !important;
        transform: translateY(-50%);
        display: none;
    }
    .side-controls > * + * {
        margin-top: 8px;
    } */
    .side-controls {
        position: absolute !important;
        bottom: -15% !important;
        left: 85% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        z-index: 50 !important;
    }

    .side-btn {
        width: 40px;
        height: 40px;
        background: var(--bg-reaction-button-kikof);
        backdrop-filter: blur(15px);
        color: var(--color-kikof);
    }

    .side-icon {
        width: 18px;
        height: 18px;
        font-size: 20px;
    }

    /* ===== Profil et live ===== */
    .profile-avatar {
        width: 50px;
        height: 50px;
    }

    .start-live-profile {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* ===== Boutons inférieurs ===== */
    .controls-bottom {
        bottom: 10px;
        gap: 6px;
        display: flex;
    }

    .control-btn {
        padding: 8px 12px;
    }

    /* ===== Indicateurs ===== */
    .live-indicator {
        top: 15px;
        left: 15px;
    }

    .user-tag {
        top: 50px;
        left: 15px;
    }

    .start-live-top {
        top: 15px;
        right: 15px;
    }

    /* ===== Panneaux de commentaires, viewers, shares ===== */
    .comments-panel {
        width: 100vw;
        height: 50vh;
        top: 50%;
        right: 0;
        border-radius: 12px 0 0 12px;
        background-color: transparent !important;
        pointer-events: none;
        color: white;
        display: none !important;
    }

    .comments-panel.active {
        right: 0;
    }

    /* ===== Overlay sombre ===== */
    .comments-overlay-test,
    .viewers-overlay-test,
    .shares-overlay-test {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .comments-overlay-test.active,
    .viewers-overlay-test.active,
    .shares-overlay-test.active {
        opacity: 1;
        visibility: visible;
    }

    /* ===== Containers ===== */
    .comments-container,
    .viewers-container,
    .shares-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50vh;
        background: var(--card-bg-kikof);
        border-radius: 20px 20px 0 0;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .comments-container.active,
    .viewers-container.active,
    .shares-container.active {
        transform: translateY(0);
    }

    /* ===== Header ===== */
    .comments-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-aside-kikof);
        background-color: transparent !important;
    }

    .comments-count {
        font-weight: 600;
        font-size: 16px;
        color: var(--color-kikof);
    }

    .btn-close-comments,
    .btn-close-viewers,
    .btn-close-shares {
        background: var(--bg-reaction-button-kikof) !important;
        border-radius: 50% !important;
        border: 1px solid var(--color-kikof);
        font-size: 20px;
        color: var(--color-kikof) !important;
        padding: 8px;
    }

    /* ===== Liste des commentaires mobile ===== */
    .comments-list {
        flex: 1;
        overflow-y: auto;
        padding: 0 20px;
    }

    .comment-item {
        display: flex;
        padding: 12px 0;
        border-bottom: 1px solid #f8f8f8;
        animation: slideInUp 0.3s ease-out forwards;
        opacity: 0;
        transform: translateY(20px);
    }

    .comment-avatar,
    .viewer-avatar,
    .shares-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .comment-avatar img,
    .viewer-avatar img,
    .shares-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .comment-content {
        flex: 1;
    }

    .comment-author {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .comment-time {
        font-size: 12px;
        color: #999;
    }

    .comment-content .text-muted {
    }

    /* ===== Zone d’entrée ===== */
    .comment-input-container,
    .viewer-input-container {
        padding: 16px 20px;
        border-top: 1px solid var(--border-aside-kikof);

    }

    .comment-input {
        border-radius: 20px;
        padding: 12px 16px;
        background-color: var(--bg-search-main-kikof) !important;
        border-color: var(--bg-search-main-kikof) !important;
        color: var(--color-kikof) !important;
    }
    .comment-input::placeholder{
        color: var(--text-placeholder-kikof) !important;
    }

    .btn-send-comment {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
    }

    /* ===== Animation ===== */
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .comment-item:nth-child(1) {
        animation-delay: 0.1s;
    }
    .comment-item:nth-child(2) {
        animation-delay: 0.2s;
    }
    .comment-item:nth-child(3) {
        animation-delay: 0.3s;
    }
    .comment-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .comment-item {
        border-bottom: none !important;
    }

    .live-comment {
        border-bottom: none !important;
    }

    .comment {
        border-bottom: none !important;
    }

    .comments-stack .comment-item {
        border-bottom: none !important;
    }
}

      .dropdown-live-actions {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 5 !important;
      }

      #adminDropdownBtn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
      }

      .dropdown-live-menu {
        display: none;
        position: absolute;
        right: 0;
        top: 60px;
        background: #1e1e2e;
        border: 1px solid #444;
        border-radius: 8px;
        min-width: 180px;
        z-index: 5 !important;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
      }

      .dropdown-live-menu.open {
        display: block !important;
      }

      .dropdown-live-menu form {
        margin: 0;
      }

      .dropdown-live-menu button {
        width: 100%;
        padding: 10px 16px;
        background: none;
        border: none;
        color: #fff;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
      }

      .dropdown-live-menu button:hover {
        background: #2e2e3e;
      }
      /* L'overlay global reste transparent */
      .floating-comments-overlay {
          position: absolute;
          bottom: 100px;
          left: 15px;
          width: 320px;
          height: 350px;
          pointer-events: none;
          z-index: 50;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          gap: 8px;
          overflow: hidden;
          background: transparent !important;
          -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
          mask-image: linear-gradient(to top, black 80%, transparent 100%);
      }

      /* Le conteneur du message : TOTALEMENT TRANSPARENT */
      .floating-comment {
          margin-top: -10;
          background: transparent !important;
          border: none !important;
          box-shadow: none !important;
          padding: 2px 0;
          opacity: 0;
          transform: translateY(10px);
          transition: all 0.4s ease-out;
          
          /* Flexbox pour avatar + texte */
          display: flex;
          align-items: flex-start;
          gap: 8px;
          
          /* STYLE DU TEXTE */
          color: white !important;
          font-weight: 600;
          font-size: 14px;
      }

      .floating-comment.show {
          opacity: 1;
          transform: translateY(0);
      }

      /* Avatar dans le commentaire flottant */
      .floating-comment .comment-avatar-img {
          width: 32px;
          height: 32px;
          border-radius: 50%;
          object-fit: cover;
          flex-shrink: 0; /* Ne pas rétrécir */
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
      }
      .name-stream{
        color: var(--color-kikof);
      }

      /* Conteneur pour username + texte */
      .floating-comment .comment-content-text {
          display: flex;
          flex-direction: column;
          gap: 0;
          flex: 1;
          min-width: 0;
          margin-top: -7px;
      }

      /* Style spécifique pour le nom d'utilisateur */
      .floating-comment .username {
          font-weight: 800;
          margin-right: 6px;
          text-transform: lowercase;
          display: inline; /* username et texte sur la même ligne */
      }

      /* Le texte du commentaire */
      .floating-comment .comment-content-text span:not(.username) {
          display: inline;
          word-wrap: break-word;
      }

      /* Animation de disparition */
      .floating-comment.hide {
          opacity: 0;
          transform: translateY(-10px);
      }
      /* Badge "+X" pour le compteur */
      .extra-videos-badge {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 20px 30px;
        border-radius: 20%;
        font-size: 32px;
        font-weight: 700;
        z-index: 15;
        min-width: 80px;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid rgba(255, 255, 255, 0.3);
        cursor: pointer;
      }
      .stream-interface-wrapper {
          position: relative;
          max-width: 800px !important;
          border-radius: 15px;
          margin: 0 auto;
          transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
          padding: 0 80px 0 80px;
          min-height: 99dvh !important;
      }
      #videos,
      .video-preview {
          display: grid !important;
          grid-template-columns: 1fr 1fr !important;
          grid-template-rows: 1fr !important;
          gap: 10px;
          width: 100% !important;
          height: 100% !important;
          position: relative !important;
          overflow: visible !important;
          padding: 10px;
          box-sizing: border-box;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
      }
      .video-preview video {
          width: 100% !important;
          height: 100% !important;
          position: relative !important;
          top: auto !important;
          left: auto !important;
          transform: none !important;
          object-fit: cover;
      }
      .video-container {
          position: relative !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 56.25% !important;
          background-color: #1a1a1a;
          border-radius: 5px;
          overflow: hidden;
          box-sizing: border-box;
      }
      .video-container video {
          position: absolute !important;
          top: 0 !important;
          left: 0 !important;
          width: 100% !important;
          height: 100% !important;
          object-fit: cover !important;
          display: block;
      }
      .video-label {
          position: absolute !important;
          bottom: 20px !important;
          left: 50% !important;
          transform: translateX(-50%) !important;
          background-color: rgba(0, 0, 0, 0.7);
          color: white;
          padding: 6px 12px;
          border-radius: 6px;
          font-size: 14px;
          z-index: 10;
          text-align: center;
      }
      .user-badge {
          position: absolute !important;
          top: 10px !important;
          right: 10px !important;
          background-color: #ff4444;
          color: white;
          padding: 6px 12px;
          border-radius: 6px;
          font-size: 12px;
          font-weight: 600;
          z-index: 10;
      }
      .avatar-overlay {
          position: absolute !important;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          display: none;
          align-items: center;
          justify-content: center;
          z-index: 8;
      }
      .avatar-overlay.active {
          display: flex !important;
      }
      .avatar-circle {
          width: 100px;
          height: 100px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          overflow: hidden;
          background: rgba(255, 255, 255, 0.2);
          border: 4px solid rgba(255, 255, 255, 0.3);
      }
      .avatar-circle img {
          width: 100%;
          height: 100%;
          object-fit: cover;
      }
      .avatar-initials {
          font-size: 48px;
          font-weight: 700;
          color: white;
          text-transform: uppercase;
      }
       .comment-input-container .comment-send-btn{
        background-color: var(--bg-reaction-button-kikof) !important;
        border-color: var(--color-kikof) !important;
      }
      /* Stream container - hauteur ajustée pour format paysage */
      .stream-container {
          border-radius: 16px;
          overflow: hidden;
          position: relative;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
          height: 90dvh;
      }
      .stream-background {
          width: 100%;
          height: 100%;
          background: var(--bg-card-start-lives-kikof);
          position: relative;
          display: flex;
          flex-direction: column;
          padding-bottom: 10px; /* Espace pour les contrôles */
      }
      .side-controls {
          position: absolute !important;
          right: -70px !important;
          bottom: 50% !important;
          transform: translateY(50%);
          display: flex;
          flex-direction: column;
          gap: 12px;
          z-index: 30;
      }
      /* Ajustements pour les panneaux ouverts - conserver la taille */
      .stream-interface-wrapper.with-comments,
      .stream-interface-wrapper.with-viewers,
      .stream-interface-wrapper.with-total-viewers,
      .stream-interface-wrapper.with-shares {
          transform: translateX(-190px);
          max-width: 600px !important; /* Réduit légèrement pour laisser place au panneau */
      }
      /* Responsive - Tablette */
      @media (min-width: 769px) and (max-width: 1200px) {
          .floating-comments-overlay {
              bottom: 100px;
              left: 12px;
              width: 300px;
          }
          .stream-interface-wrapper {
              max-width: 700px !important;
              padding: 0 60px;
              min-height: 95vh !important;
          }
          /* Ajustements wrapper avec panneaux ouverts */
          .stream-interface-wrapper.with-comments,
          .stream-interface-wrapper.with-viewers,
          .stream-interface-wrapper.with-total-viewers,
          .stream-interface-wrapper.with-shares {
              transform: translateX(-150px);
              max-width: 550px !important;
          }
          /* Container principal */
          .stream-container {
              height: 85dvh;
          }
          /* Contrôles latéraux */
          .side-controls {
              right: -60px !important;
              gap: 10px;
          }
          /* Grille vidéos de base */
          #videos,
          .video-preview {
              display: grid !important;
              gap: 8px;
              padding: 8px;
              align-content: center !important;
              justify-content: center !important;
          }
        /* 1 seul video */
        #videos:has(.video-container:first-child:last-child),
        .video-preview:has(.video-container:first-child:last-child) {
            min-height: 100% !important;
            padding: 60px 2px !important;
        }
        #videos:has(.video-container:first-child:last-child) .video-container,
        .video-preview:has(.video-container:first-child:last-child) .video-container {
            width: 100% !important;
            height: 100% !important;
            padding-bottom: 0 !important; 
            position: relative !important;
            grid-column: 1 / -1 !important;
            margin: 0 !important;
        }
        /* 2 videos */
        #videos:has(> .video-container:nth-child(2):last-child),
        .video-preview:has(> .video-container:nth-child(2):last-child) {
            /* Deux vidéos empilées verticalement */
            grid-template-columns: 1fr !important;
            grid-template-rows: min-content min-content !important;
            gap: 6px !important;
            align-content: center !important;
            justify-content: center !important;
            min-height: 70dvh !important;
        }
        #videos:has(> .video-container:nth-child(2):last-child) .video-container,
        .video-preview:has(> .video-container:nth-child(2):last-child) .video-container {
            grid-column: 1 / -1 !important;
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 90% !important;
            position: relative !important;
            margin: 0 !important;
        }

      /* 3 VIDÉOS - 1 vidéo par ligne */
      #videos:has(> .video-container:nth-child(3):last-child),
          .video-preview:has(> .video-container:nth-child(3):last-child) {
              grid-template-columns: 1fr !important;
              grid-template-rows: min-content min-content min-content !important;
              gap: 8px !important;
          }
          /* Toutes les vidéos - taille identique */
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container,
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
              max-width: none !important;
          }
          /* 4 VIDÉOS */
          #videos:has(> .video-container:nth-child(4):last-child),
          .video-preview:has(> .video-container:nth-child(4):last-child) {
              grid-template-columns: 1fr 1fr !important;
              grid-template-rows: min-content min-content !important;
              gap: 8px !important;
          }
          #videos:has(> .video-container:nth-child(4):last-child) > .video-container,
          .video-preview:has(> .video-container:nth-child(4):last-child) > .video-container {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
          }
        /* 5 VIDÉOS - 2+2+1 sur 3 lignes */
        #videos:has(> .video-container:nth-child(5):last-child),
          .video-preview:has(> .video-container:nth-child(5):last-child) {
              grid-template-columns: 1fr 1fr !important;
              grid-template-rows: min-content min-content min-content !important;
              gap: 8px !important;
          }

          /* Première rangée - 2 vidéos côte à côte */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(1),
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(2),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(1),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(2) {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
          }

          /* Deuxième rangée - 2 vidéos côte à côte */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(3),
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(4),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(3),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(4) {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
          }

          /* Troisième rangée - 1 vidéo pleine largeur */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(5),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(5) {
              grid-column: 1 / 3 !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 50% !important;
              position: relative !important;
              margin: 0 !important;
          }

      /* 6 VIDÉOS - 1+1+2+2 sur 4 lignes */
      #videos:has(> .video-container:nth-child(6):last-child),
          .video-preview:has(> .video-container:nth-child(6):last-child) {
              grid-template-columns: 1fr 1fr !important;
              grid-template-rows: min-content min-content min-content min-content !important;
              gap: 8px !important;
          }

          /* Première video */
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(1),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(1) {
              grid-column: 1 / 3 !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 50% !important;
              position: relative !important;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(2),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(2) {
              grid-column: 1 / 3 !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 50% !important;
              position: relative !important;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(3),
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(4),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(3),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(4) {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(5),
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(6),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(5),
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container:nth-child(6) {
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              position: relative !important;
              margin: 0 !important;
          }
          /* ÉLÉMENTS VIDÉO */
          .video-container {
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
          }
          .video-container video,
          .video-container canvas {
              position: absolute !important;
              top: 0 !important;
              left: 0 !important;
              width: 100% !important;
              height: 100% !important;
              object-fit: cover !important;
              display: block;
          }
          /* BADGES ET LABELS */
          .video-label {
              position: absolute !important;
              bottom: 15px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              background-color: rgba(0, 0, 0, 0.7);
              color: white;
              padding: 5px 10px;
              border-radius: 5px;
              font-size: 11px;
              z-index: 10;
          }

          .user-badge {
              position: absolute !important;
              top: 8px !important;
              right: 8px !important;
              background-color: #ff4444;
              color: white;
              padding: 5px 10px;
              border-radius: 5px;
              font-size: 10px;
              font-weight: 600;
              z-index: 10;
          }

          .host-badge {
              position: absolute !important;
              top: 8px !important;
              left: 8px !important;
              background: linear-gradient(135deg, #32333a 0%, #171619 100%);
              color: white;
              padding: 5px 10px;
              border-radius: 5px;
              font-size: 10px;
              font-weight: 600;
              z-index: 10;
              box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
          }
          /* AVATAR OVERLAY */
          .avatar-overlay {
              position: absolute !important;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              display: none;
              align-items: center;
              justify-content: center;
              z-index: 8;
          }
          .avatar-overlay.active {
              display: flex !important;
          }
          .avatar-circle {
              width: 80px;
              height: 80px;
              border-radius: 50%;
              display: flex;
              align-items: center;
              justify-content: center;
              overflow: hidden;
              background: rgba(255, 255, 255, 0.2);
              border: 3px solid rgba(255, 255, 255, 0.3);
          }
          .avatar-initials {
              font-size: 36px;
              font-weight: 700;
              color: white;
              text-transform: uppercase;
          }
          /* CONTRÔLES */
          .controls-bottom {
              position: absolute;
              bottom: 20px;
              left: 50%;
              transform: translateX(-50%);
              display: flex;
              gap: 10px;
              z-index: 25;
          }
          /* ANIMATIONS */
          @keyframes videoAppear {
              from {
                  opacity: 0;
                  transform: scale(0.95);
              }
              to {
                  opacity: 1;
                  transform: scale(1);
              }
          }
          .video-container {
              animation: videoAppear 0.3s ease-out;
          }
          /* ÉTAT DE CHARGEMENT */
          .video-container.loading::after {
              content: "Connexion...";
              position: absolute;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
              background: rgba(0, 0, 0, 0.8);
              color: white;
              padding: 8px 16px;
              border-radius: 6px;
              font-size: 12px;
              z-index: 15;
          }
          /* INDICATEURS DE STATUT MÉDIA */
          .media-status {
              position: absolute;
              bottom: 50px;
              left: 8px;
              display: flex;
              gap: 6px;
              z-index: 10;
          }
          .media-status-icon {
              width: 28px;
              height: 28px;
              background: rgba(0, 0, 0, 0.7);
              border-radius: 50%;
              display: flex;
              align-items: center;
              justify-content: center;
              color: white;
              font-size: 14px;
          }
          .media-status-icon.muted,
          .media-status-icon.camera-off {
              background: rgba(255, 68, 68, 0.8);
          }
          /* Labels plus petits pour 6 vidéos */
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container .video-label {
              font-size: 9px;
              padding: 4px 8px;
              bottom: 10px !important;
          }
          #videos:has(> .video-container:nth-child(6):last-child) > .video-container .host-badge,
          .video-preview:has(> .video-container:nth-child(6):last-child) > .video-container .host-badge {
              font-size: 8px;
              padding: 4px 8px;
          }
          /* Labels plus petits pour 5 vidéos */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container .video-label {
              font-size: 9px;
              padding: 4px 8px;
          }
      }
      /* Desktop large */
      @media (min-width: 1201px){
        /* Styles pour le modal des vidéos supplémentaires */
      #extraVideosModal .modal-content {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
      }

      #extraVideosGrid .video-item {
        position: relative;
        background: #2a2a3e;
        border-radius: 10px;
        overflow: hidden;
        padding-bottom: 56.25%; /* Ratio 16:9 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      #extraVideosGrid .video-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
      }

      #extraVideosGrid .video-item video,
      #extraVideosGrid .video-item canvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
      }

      #extraVideosGrid .video-item .video-label {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        z-index: 10;
        white-space: nowrap;
      }

      #extraVideosGrid .video-item .host-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: linear-gradient(135deg, #32333a 0%, #171619 100%);
        color: white;
        padding: 4px 10px;
        border-radius: 5px;
        font-size: 10px;
        font-weight: 600;
        z-index: 10;
      }

      #extraVideosGrid .video-item .avatar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 8;
      }

      #extraVideosGrid .video-item .avatar-overlay.active {
        display: flex !important;
      }

      #extraVideosGrid .video-item .avatar-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.2);
        border: 3px solid rgba(255, 255, 255, 0.3);
      }

      #extraVideosGrid .video-item .avatar-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      #extraVideosGrid .video-item .avatar-initials {
        font-size: 36px;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
      }
          .stream-interface-wrapper {
              max-width: 800px !important;
          }
          /* Grilles dynamiques selon le nombre de vidéos */
          #videos:has(.video-container:first-child:last-child),
          .video-preview:has(.video-container:first-child:last-child) {
              /* 1 seule vidéo - plein écran */
              grid-template-columns: 1fr !important;
              grid-template-rows: 1fr !important;
          }

          #videos:has(.video-container:nth-child(2):last-child) .video-container,
          .video-preview:has(.video-container:nth-child(2):last-child) .video-container {
              max-width: 100% !important;   
              margin: 0 !important;         
              grid-column: auto !important;
          }

          /* 3 vidéos */
          #videos:has(> .video-container:nth-child(3):last-child),
          .video-preview:has(> .video-container:nth-child(3):last-child) {
              display: grid !important;
              grid-template-columns: 1fr 1fr !important; /* 2 colonnes égales */
              grid-template-rows: min-content min-content !important;
              column-gap: 10px !important; 
              row-gap: 10px !important;
              align-items: center !important; 
              justify-items: center !important;
              align-content: center !important;
              justify-content: center !important;
              padding: 10px;
              height: 100%;
          }
          /* Les 2 premières vidéos : taille normale */
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(1),
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(2),
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(1),
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(2) {
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important; 
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          /* 3ème vidéo */
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(3),
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(3) {
              grid-column: 1 / 3 !important; /* Span 2 colonnes */
              position: relative !important;
              /* Largeur = largeur d'une colonne (50% du container moins la moitié du gap) */
              width: calc((100% - 10px) / 2) !important; 
              height: 0 !important;
              /* Hauteur = 56.25% de la largeur pour garder ratio 16:9 */
              padding-bottom: calc(((100% - 10px) / 2) * 0.5625) !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 auto !important;
              justify-self: center !important; /* Centrer dans la grille */
          }
          /* Les vidéos à l'intérieur des containers */
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container video,
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container video {
              position: absolute !important;
              top: 0 !important;
              left: 0 !important;
              width: 100% !important;
              height: 100% !important;
              object-fit: cover !important;
              display: block;
          }
          /* Labels et badges */
          #videos:has(> .video-container:nth-child(3):last-child) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container .video-label {
              position: absolute !important;
              bottom: 10px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              z-index: 10;
          }

          #videos:has(> .video-container:nth-child(3):last-child) > .video-container .user-badge,
          .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container .user-badge {
              position: absolute !important;
              top: 10px !important;
              right: 10px !important;
              z-index: 10;
          }
          /* 4 vidéos */
          #videos:has(> .video-container:nth-child(4):last-child),
          .video-preview:has(> .video-container:nth-child(4):last-child) {
              display: grid !important;
              grid-template-columns: 1fr 1fr !important;
              grid-template-rows: min-content min-content !important;
              gap: 10px;
              align-items: center;
              justify-items: center;
              align-content: center !important;
              justify-content: center !important;
              height: 100%;
              padding: 10px;
          }
          /* 04 cadre videos*/
          #videos:has(> .video-container:nth-child(4):last-child) > .video-container,
          .video-preview:has(> .video-container:nth-child(4):last-child) > .video-container {
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(4):last-child) > .video-container > video,
          .video-preview:has(> .video-container:nth-child(4):last-child) > .video-container > video {
              position: absolute !important;
              top: 0 !important;
              left: 0 !important;
              width: 100%;
              height: 100%;
              object-fit: cover;
          }
          #videos:has(> .video-container:nth-child(4):last-child) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(4):last-child) > .video-container .video-label {
              position: absolute !important;
              bottom: 10px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              z-index: 10;
              font-size: 9px;
          }
            #videos:has(> .video-container:nth-child(5):last-child),
          .video-preview:has(> .video-container:nth-child(5):last-child) {
              display: grid !important;
              grid-template-columns: repeat(6, 1fr) !important; /* 6 colonnes pour placement précis */
              grid-template-rows: min-content min-content !important;
              gap: 5px;
              align-items: center;
              justify-items: center;
              align-content: center !important;
              justify-content: center !important;
              height: 100%;
              padding: 10px;
          }
          /* Les 2 premières vidéos : occupent 3 colonnes chacune (première rangée) */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(1),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(1) {
              grid-column: 1 / 4 !important;
              grid-row: 1 !important;
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(2),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(2) {
              grid-column: 4 / 7 !important;
              grid-row: 1 !important;
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(3),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(3) {
              grid-column: 1 / 3 !important;
              grid-row: 2 !important;
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(4),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(4) {
              grid-column: 3 / 5 !important;
              grid-row: 2 !important;
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }

          #videos:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(5),
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container:nth-child(5) {
              grid-column: 5 / 7 !important;
              grid-row: 2 !important;
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }
          /* Vidéos à l'intérieur des containers pour 5 vidéos */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container video,
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container video {
              position: absolute !important;
              top: 0 !important;
              left: 0 !important;
              width: 100% !important;
              height: 100% !important;
              object-fit: cover !important;
              display: block;
          }
          /* Labels et badges pour 5 vidéos */
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container .video-label {
              position: absolute !important;
              bottom: 10px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              z-index: 10;
              font-size: 9px;
          }
          #videos:has(> .video-container:nth-child(5):last-child) > .video-container .user-badge,
          .video-preview:has(> .video-container:nth-child(5):last-child) > .video-container .user-badge {
              position: absolute !important;
              top: 10px !important;
              right: 10px !important;
              z-index: 10;
          }
          /* 6 cadres videos */
          #videos:has(> .video-container:nth-child(6):last-child),
          #videos:has(> .video-container:nth-child(6)) {
              display: grid !important;
              grid-template-columns: 1fr 1fr 1fr !important;
              grid-template-rows: min-content min-content !important;
              gap: 5px;
              align-items: center;
              justify-items: center;
              align-content: center !important;
              justify-content: center !important;
              height: 100%;
              padding: 10px;
          }

          /* Toutes les vidéos (vraies + placeholder) ont la même taille */
          #videos:has(> .video-container:nth-child(6)) > .video-container,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container {
              position: relative !important;
              width: 100% !important;
              height: 0 !important;
              padding-bottom: 56.25% !important;
              background-color: #1a1a1a;
              border-radius: 5px;
              overflow: hidden;
              box-sizing: border-box;
              margin: 0 !important;
          }

          /* Le placeholder a un fond gris au lieu de noir */
          #videos > .video-container.placeholder-video-container,
          .video-preview > .video-container.placeholder-video-container {
              background-color: #808080 !important;
          }

          /* Vidéos à l'intérieur des containers pour 6+ vidéos */
          #videos:has(> .video-container:nth-child(6)) > .video-container video,
          #videos:has(> .video-container:nth-child(6)) > .video-container canvas,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container video,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container canvas {
              position: absolute !important;
              top: 0 !important;
              left: 0 !important;
              width: 100% !important;
              height: 100% !important;
              object-fit: cover !important;
              display: block;
          }

          /* Labels pour 6+ vidéos */
          #videos:has(> .video-container:nth-child(6)) > .video-container .video-label,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container .video-label {
              position: absolute !important;
              bottom: 10px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              z-index: 10;
              font-size: 8px;
              background-color: rgba(0, 0, 0, 0.7);
              color: white;
              padding: 6px 12px;
              border-radius: 6px;
              text-align: center;
          }

          /* Host badge pour 6+ vidéos */
          #videos:has(> .video-container:nth-child(6)) > .video-container .host-badge,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container .host-badge {
              position: absolute !important;
              top: 10px !important;
              left: 10px !important;
              background: linear-gradient(135deg, #32333a 0%, #171619 100%);
              color: white;
              padding: 6px 12px;
              border-radius: 6px;
              font-size: 9px;
              font-weight: 600;
              z-index: 10;
              box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
          }
          /* User badge pour 6+ vidéos */
          #videos:has(> .video-container:nth-child(6)) > .video-container .user-badge,
          .video-preview:has(> .video-container:nth-child(6)) > .video-container .user-badge {
              position: absolute !important;
              top: 10px !important;
              right: 10px !important;
              z-index: 10;
          }
          /* Icône caméra dans le placeholder */
          .placeholder-video-container .bi-camera-video {
              opacity: 0.5 !important;
          }
          .placeholder-video-container:hover {
              background-color: #909090 !important;
              transform: scale(1.02);
              transition: all 0.3s ease;
          }
      }
      /* mobile */
      @media (max-width: 768px) {  

        #toggleScreenBtn {
            display: none !important;
        }

        .comment-input-container {
          min-height: 60px !important;
          width: 100% !important;
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          position: relative !important;
          z-index: 9999 !important;
        }
        .comment-input-container .d-flex {
          display: flex !important;
          width: 100% !important;
        }

        .comment-input-container .form-control {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          height: 45px !important;
          width: 100% !important;
        }

        .comment-input-container .comment-send-btn {
          display: flex !important;
          visibility: visible !important;
          opacity: 1 !important;
          width: 45px !important;
          height: 45px !important;
          flex-shrink: 0 !important;
        }
        #extraVideosGrid .col-12 {
            padding-left: 5px !important;
            padding-right: 5px !important;
        }
        #extraVideosModal .modal-body {
            padding: 10px 5px !important;
            max-height: 80vh;
            overflow-y: auto;
        }
        #extraVideosGrid .video-label {
            bottom: 5px !important;
            font-size: 10px !important;
        }
        #extraVideosGrid .host-badge {
            top: 5px !important;
            left: 5px !important;
            padding: 2px 6px !important;
        }
        /*scroll*/
        #extraVideosModal .modal-body::-webkit-scrollbar {
            width: 4px;
        }
        #extraVideosModal .modal-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
        }
        #extraVideosModal .modal-content {
            padding: 10px;
            border-radius: 5px;
            margin: 10px 5px;
        }
        /* Ajuste le corps du modal pour scroller sur toute la hauteur */
        #extraVideosModal .modal-body {
            max-height: 90dvh !important;
            padding: 10px 0 !important;
            overflow-y: auto;
            border-radius: 5px;
            margin: 10px 5px;        }
        #extraVideosGrid .col-12 {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        #extraVideosGrid .video-item {
            border-radius: 0;
            margin-bottom: 2px;
        }
        .floating-comments-overlay {
          bottom: 140px;
          left: 10px;
          width: 250px;
          height: 350px;
        }
        
        .floating-comments-overlay {
        bottom: 140px;
        left: 10px;
        width: 280px;
        height: 300px;
        gap: 6px;
        }
        
        .floating-comment {
            font-size: 13px;
            gap: 6px;
        }
        
        .floating-comment .comment-avatar-img {
            width: 28px;
            height: 28px;
            border-width: 1.5px;
        }
        #videos,
        .video-preview {
            display: grid !important;
            grid-template-columns: 1fr !important;
            grid-template-rows: min-content min-content !important;
            gap: 6px !important;
            padding: 6px !important;
            align-content: center !important;
            justify-content: center !important;
            min-height: 70dvh !important;
            height: auto !important;
        }
        /* BADGES ET LABELS */
        .host-badge {
            font-size: 10px;
            padding: 4px 8px;
            top: 8px !important;
            left: 8px !important;
        }
        /* CONTRÔLES LATÉRAUX */
        .side-controls {
            position: absolute !important;
            bottom: -6% !important;
            left: 85% !important;
            transform: translateY(-50%) !important;
            display: flex !important;
            flex-direction: column;
            gap: 12px;
            z-index: 50 !important;
        }
        /* CONTRÔLES BAS */
        .controls-bottom {
          bottom: calc(20px + env(safe-area-inset-bottom));
            gap: 6px;
            display: flex;
        }
        /* CONTAINER STREAM */
        .stream-container {
            height: calc(88dvh - env(safe-area-inset-bottom));
        }
        .stream-background,
        .stream-interface-wrapper {
            padding-bottom: 0 !important;
        }
        /* 1 seul video */
        #videos:has(.video-container:first-child:last-child),
        .video-preview:has(.video-container:first-child:last-child) {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-height: 100% !important;
            padding: 3% 2px 7% 2px !important;
        }
        #videos:has(.video-container:first-child:last-child) .video-container,
        .video-preview:has(.video-container:first-child:last-child) .video-container {
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 177.78% !important;
            position: relative !important;
            grid-column: 1 / -1 !important;
            margin: 0 !important;
            max-height: calc(100dvh - 117px) !important;
        }
        /* 2 videos */
        #videos:has(> .video-container:nth-child(2):last-child),
        .video-preview:has(> .video-container:nth-child(2):last-child) {
            /* Deux vidéos empilées verticalement */
            grid-template-columns: 1fr !important;
            grid-template-rows: min-content min-content !important;
            gap: 6px !important;
            align-content: center !important;
            justify-content: center !important;
            min-height: 70dvh !important;
        }
        #videos:has(> .video-container:nth-child(2):last-child) .video-container,
        .video-preview:has(> .video-container:nth-child(2):last-child) .video-container {
            grid-column: 1 / -1 !important;
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 96% !important;
            position: relative !important;
            margin: 0 !important;
        }
      /* 3 videos */
      #videos:has(> .video-container:nth-child(3):last-child),
      .video-preview:has(> .video-container:nth-child(3):last-child) {
          grid-template-columns: 1fr 1fr !important;
          grid-template-rows: min-content min-content !important;
          gap: 6px !important;
          align-content: center !important;
          justify-content: center !important;
          min-height: 70dvh !important;
      }
      /* Première vidéo : pleine largeur */
      #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(1),
      .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(1) {
          grid-column: 1 / 3 !important;
          grid-row: 1 !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 70% !important;
          position: relative !important;
          margin: 0 !important;
          overflow: hidden !important;
      }
      /* 2ème vidéo : gauche carrée */
      #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(2),
      .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(2) {
          grid-column: 1 / 2 !important;
          grid-row: 2 !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 100% !important;
          position: relative !important;
          margin: 0 !important;
          overflow: hidden !important;
      }
      /* 3ème vidéo */
      #videos:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(3),
        .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container:nth-child(3) {
            grid-column: 2 / 3 !important;
            grid-row: 2 !important;
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 100% !important;
            position: relative !important;
            margin: 0 !important;
            overflow: hidden !important;
            max-width: none !important;
        }
      #videos:has(> .video-container:nth-child(3):last-child) > .video-container video,
      #videos:has(> .video-container:nth-child(3):last-child) > .video-container canvas,
      .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container video,
      .video-preview:has(> .video-container:nth-child(3):last-child) > .video-container canvas {
          position: absolute !important;
          top: 0 !important;
          left: 0 !important;
          width: 100% !important;
          height: 100% !important;
          object-fit: cover !important;
          display: block !important;
      }
        /* 4 videos*/
        #videos:has(> .video-container:nth-child(4):last-child),
        .video-preview:has(> .video-container:nth-child(4):last-child) {
            grid-template-columns: 1fr 1fr !important;
            grid-template-rows: min-content min-content !important;
            gap: 6px !important;
            align-content: center !important;
            justify-content: center !important;
            min-height: 70dvh !important;
        }

        #videos:has(> .video-container:nth-child(4):last-child) > .video-container,
        .video-preview:has(> .video-container:nth-child(4):last-child) > .video-container {
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 100% !important; /* Carré pour 4 vidéos */
            position: relative !important;
            margin: 0 !important;
        }
        /* CAS 5+ : 5 VIDÉOS ET PLUS (afficher max 4) */
        #videos:has(> .video-container:nth-child(5)),
        .video-preview:has(> .video-container:nth-child(5)) {
            grid-template-columns: 1fr 1fr !important;
            grid-template-rows: min-content min-content !important;
            gap: 6px !important;
            align-content: center !important;
            justify-content: center !important;
            min-height: 70dvh !important;
        }
        /* Masquer les vidéos au-delà de 4 */
        #videos > .video-container:nth-child(n+5),
        .video-preview > .video-container:nth-child(n+5) {
            display: none !important;
        }
        /* Les 4 premières vidéos en carré */
        #videos:has(> .video-container:nth-child(5)) > .video-container:nth-child(-n+4),
        .video-preview:has(> .video-container:nth-child(5)) > .video-container:nth-child(-n+4) {
            width: 100% !important;
            height: 0 !important;
            padding-bottom: 100% !important; /* Carré */
            position: relative !important;
            margin: 0 !important;
        }
        .video-container video {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block;
        }
      }
      /* Animations pour l'apparition des vidéos */
      @keyframes videoAppear {
          from {
              opacity: 0;
              transform: scale(0.95);
          }
          to {
              opacity: 1;
              transform: scale(1);
          }
      }
      .video-container {
          animation: videoAppear 0.4s ease-out;
      }
      /* État de chargement */
      .video-container.loading::after {
          content: "Connexion...";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          background: rgba(0, 0, 0, 0.8);
          color: white;
          padding: 10px 20px;
          border-radius: 8px;
          font-size: 14px;
          z-index: 15;
      }
      /* Indicateurs de statut média */
      .media-status {
          position: absolute;
          bottom: 60px;
          left: 10px;
          display: flex;
          gap: 8px;
          z-index: 10;
      }
      .media-status-icon {
          width: 32px;
          height: 32px;
          background: rgba(0, 0, 0, 0.7);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          color: white;
          font-size: 16px;
      }
      .media-status-icon.muted,
      .media-status-icon.camera-off {
          background: rgba(255, 68, 68, 0.8);
      }
      .stream-background .video-preview {
          flex: 1;
          display: grid !important;
          position: relative;
      }
      /* S'assurer que les contrôles ne bloquent pas la vue */
      .controls-bottom {
          position: absolute;
          bottom: 20px;
          left: 50%;
          transform: translateX(-50%);
          display: flex;
          gap: 12px;
          z-index: 25;
          pointer-events: auto;
      }
      .control-btn {
          pointer-events: auto;
      }
      /* Grille spécifique pour 3 vidéos - centrer la 3ème */
      #videos .video-container:nth-child(3):last-child,
      .video-preview .video-container:nth-child(3):last-child {
          grid-column: 1 / -1;
          max-width: 50%;
          margin: 0 auto;
      }
      .video-container::before {
          /* content: attr(id); */
          position: absolute;
          top: 5px;
          left: 5px;
          background: rgba(0, 0, 0, 0.7);
          color: white;
          padding: 2px 8px;
          border-radius: 4px;
          font-size: 10px;
          z-index: 100;
          display: none;
      }
        /* Styles pour la recherche dans le panel de partage */
        .user-item-shares.search-hidden {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
            opacity: 0 !important;
        }
        
        .user-item-shares.search-visible {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        /* Badge Hôte */
      .host-badge {
          position: absolute !important;
          top: 10px !important;
          left: 10px !important;
          background: linear-gradient(135deg, #32333a 0%, #171619 100%);
          color: white;
          padding: 6px 12px;
          border-radius: 6px;
          font-size: 12px;
          font-weight: 600;
          z-index: 10;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      /* S'assurer que le badge reste visible même quand la caméra est désactivée */
      .avatar-overlay .host-badge {
          z-index: 9; /* Juste au-dessus de l'avatar mais en dessous de la vidéo */
      }


      .user-item-shares.search-hidden {
         display: none !important;
      }
      .user-item-shares.search-visible {
          display: flex !important;
      }
      .shares-title h6 {
        margin: 0;
        font-weight: 600;
        color: var(--color-kikof);
      }
      .stream-interface-wrapper {
          position: relative;
          max-width: 800px !important;
          border-radius: 15px;
          margin: 0 auto;
          transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
          padding: 0 80px 0 80px;
          min-height: 99vh !important;
      }
      #videos,
      .video-preview {
          width: 100% !important;
          height: 100% !important;
          position: relative !important;
          overflow: visible !important;
          padding: 10px;
          box-sizing: border-box;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
      }
      .video-preview video {
          width: 100% !important;
          height: 100% !important;
          position: relative !important;
          top: auto !important;
          left: auto !important;
          transform: none !important;
          object-fit: cover;
      }
      .video-container {
          position: relative !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 56.25% !important;
          background-color: #1a1a1a;
          border-radius: 5px;
          overflow: hidden;
          box-sizing: border-box;
      }
      .name-stream{
        color: var(--color-kikof) !important;
      }
      .video-container video {
          position: absolute !important;
          top: 0 !important;
          left: 0 !important;
          width: 100% !important;
          height: 100% !important;
          object-fit: cover !important;
          display: block;
      }
      .video-label {
          position: absolute !important;
          bottom: 20px !important;
          left: 50% !important;
          transform: translateX(-50%) !important;
          background-color: rgba(0, 0, 0, 0.7);
          color: white;
          padding: 6px 12px;
          border-radius: 6px;
          font-size: 14px;
          z-index: 10;
          text-align: center;
      }
      .avatar-overlay {
          position: absolute !important;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          display: none;
          align-items: center;
          justify-content: center;
          z-index: 8;
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      }
      .avatar-overlay.active {
          display: flex !important;
      }
      .avatar-circle {
          width: 100px;
          height: 100px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          overflow: hidden;
          background: rgba(255, 255, 255, 0.2);
          border: 4px solid rgba(255, 255, 255, 0.3);
      }
      .avatar-circle img {
          width: 100%;
          height: 100%;
          object-fit: cover;
      }
      .avatar-initials {
          font-size: 48px;
          font-weight: 700;
          color: white;
          text-transform: uppercase;
      }
      /* Stream container - hauteur ajustée pour format paysage */
      .stream-container {
          border-radius: 16px;
          overflow: hidden;
          position: relative;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
          height: 90vh;
      }
      .stream-background {
          width: 100%;
          height: 100%;
          position: relative;
          display: flex;
          flex-direction: column;
          padding-bottom: 10px; /* Espace pour les contrôles */
      }
     
      .side-controls {
          position: absolute !important;
          right: -70px !important;
          bottom: 50% !important;
          transform: translateY(50%);
          display: flex;
          flex-direction: column;
          gap: 12px;
          z-index: 30;
      }
      /* Ajustements pour les panneaux ouverts - conserver la taille */
      .stream-interface-wrapper.with-comments,
      .stream-interface-wrapper.with-viewers,
      .stream-interface-wrapper.with-total-viewers,
      .stream-interface-wrapper.with-shares {
          transform: translateX(-190px);
          max-width: 600px !important; /* Réduit légèrement pour laisser place au panneau */
      }
      /* tablette */
      @media (max-width: 1200px) {
        .video-preview {
          padding: 0 1px !important;
      }
        .video-container {
          position: relative !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 205% !important;
          border-radius: 5px;
          overflow: hidden;
          box-sizing: border-box;
      }
        /* CONTRÔLES BAS */
        .controls-bottom {
            bottom: 20px;
            gap: 6px;
            display: flex;
        }
        /* CONTAINER STREAM */
        .stream-container {
            height: 88vh;
        }
        .stream-background,
        .stream-interface-wrapper {
            padding-bottom: 0 !important;
        }
        .video-container video {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block;
        }
      }
            /* mobile */
      @media (max-width: 768px) {

        #toggleScreenBtn {
            display: none !important;
        }

        .video-preview {
          padding: 0 1px !important;
      }
        .video-container {
          position: relative !important;
          width: 100% !important;
          height: 0 !important;
          padding-bottom: 188% !important;
          background-color: #1a1a1a;
          border-radius: 5px;
          overflow: hidden;
          box-sizing: border-box;
      }
        /* CONTRÔLES LATÉRAUX */
        .side-controls {
            position: absolute !important;
            bottom: -6% !important;
            left: 85% !important;
            transform: translateY(-50%) !important;
            display: flex !important;
            flex-direction: column;
            gap: 12px;
            z-index: 50 !important;
        }
        /* CONTRÔLES BAS */
        .controls-bottom {
            bottom: 20px;
            gap: 6px;
            display: flex;
        }
        /* CONTAINER STREAM */
        .stream-container {
            height: 88vh;
        }
        .stream-background,
        .stream-interface-wrapper {
            padding-bottom: 0 !important;
        }
        .video-container video {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block;
        }
      }


