/* fichier : assets/css/wssg-tv.css */

.wssg-tv {
    position: relative;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(46, 8, 8, .96), rgba(8, 8, 8, .98) 24%, #050505 100%);
    color: #fff;
    border: 1px solid rgba(191, 139, 42, .34);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 18px 55px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.035);
}


.wssg-tv__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    background:
        radial-gradient(circle at 18% 0%, rgba(150,0,0,.32), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(191,139,42,.10), transparent 28%),
        linear-gradient(135deg, #070707, #111);
    overflow: hidden;
}

.wssg-tv__stage {
    position: absolute;
    inset: 0;
}

.wssg-tv__stage iframe,
.wssg-tv__stage video,
.wssg-tv__stage img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.wssg-tv__loading {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(255,255,255,.75);
    font: 700 18px/1.2 system-ui, sans-serif;
}


.wssg-tv__live-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    background: linear-gradient(180deg, rgba(147,0,0,.95), rgba(100,0,0,.95));
    padding: 6px 9px;
    border-radius: 999px;
    font: 800 11px/1 system-ui, sans-serif;
    letter-spacing: .05em;
    white-space: nowrap;
}


.wssg-tv__title {
    color: #fff;
    font: 900 clamp(17px, 2vw, 25px)/1.05 system-ui, sans-serif;
    letter-spacing: -.02em;
}

.wssg-tv__meta {
    margin-top: 5px;
    color: rgba(255,255,255,.70);
    font: 600 13px/1.35 system-ui, sans-serif;
}

.wssg-tv__actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.wssg-tv__actions a {
    padding: 10px 13px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    font: 800 13px/1 system-ui, sans-serif;
    border: 1px solid rgba(255,255,255,.14);
}

.wssg-tv__actions a[data-primary-action] {
    background: rgba(110,0,0,.92);
}

.wssg-tv__footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    font: 800 13px/1 system-ui, sans-serif;
}

.wssg-tv__socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wssg-tv__socials a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
}

.wssg-tv__transition {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #050505;
}

.wssg-tv__transition img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 720px) {
    .wssg-tv__overlay {
        padding: 38px 12px 12px;
        align-items: start;
        flex-direction: column;
    }

    .wssg-tv__actions {
        justify-content: start;
    }

    .wssg-tv__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 430px) {
    .wssg-tv__screen {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}


.wssg-tv__brand {
    min-width: 52px;
    display: flex;
    align-items: center;
}

.wssg-tv__brand img {
    display: block;
    max-width: 74px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wssg-tv__footer {
    position: relative;
    background:
        linear-gradient(90deg, rgba(90,0,0,.18), transparent 35%),
        rgba(5,5,5,.96);
    border-top: 1px solid rgba(191,139,42,.16);
}

.wssg-tv__socials a:hover,
.wssg-tv__socials a:focus {
    color: #d8b55b;
}

.wssg-tv__actions a[data-primary-action] {
    background: linear-gradient(180deg, rgba(145,0,0,.96), rgba(96,0,0,.96));
    border-color: rgba(220, 57, 57, .30);
}

.wssg-tv__actions a[data-primary-action]:hover,
.wssg-tv__actions a[data-primary-action]:focus {
    background: linear-gradient(180deg, rgba(170,0,0,.98), rgba(112,0,0,.98));
}

.wssg-tv__donate {
    border-color: rgba(191,139,42,.28) !important;
    background: linear-gradient(180deg, rgba(191,139,42,.16), rgba(191,139,42,.07)) !important;
}


.wssg-tv__twitch-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #000;
}

.wssg-tv__twitch-player,
.wssg-tv__twitch-player > div,
.wssg-tv__twitch-player iframe {
    width: 100% !important;
    height: 100% !important;
    min-width: 400px;
    min-height: 300px;
    border: 0;
}


@media (max-width: 430px) {
    .wssg-tv__twitch-shell {
        min-height: 0;
    }

    .wssg-tv__twitch-player,
    .wssg-tv__twitch-player > div,
    .wssg-tv__twitch-player iframe {
        min-width: 0;
        min-height: 0;
    }
}


.wssg-tv__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    background:
        linear-gradient(90deg, rgba(100,0,0,.16), transparent 34%),
        rgba(7,7,7,.98);
    border-top: 1px solid rgba(191,139,42,.20);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.wssg-tv__info-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wssg-tv__identity {
    min-width: 0;
}

.wssg-tv__identity-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 720px) {
    .wssg-tv__info {
        align-items: flex-start;
        flex-direction: column;
    }

    .wssg-tv__actions {
        justify-content: flex-start;
    }
}


.wssg-tv__classified-cta {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.wssg-tv__classified-cta[hidden] {
    display: none;
}

.wssg-tv__classified-box {
    max-width: 430px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(205, 158, 57, .46);
    background:
        linear-gradient(180deg, rgba(18,18,18,.94), rgba(5,5,5,.96));
    box-shadow: 0 16px 40px rgba(0,0,0,.42);
    text-align: center;
    pointer-events: auto;
}

.wssg-tv__classified-title {
    color: #e0bc65;
    font: 900 18px/1.15 system-ui, sans-serif;
}

.wssg-tv__classified-text {
    margin-top: 7px;
    color: rgba(255,255,255,.74);
    font: 600 13px/1.45 system-ui, sans-serif;
}

.wssg-tv__classified-play {
    margin-top: 14px;
    appearance: none;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    padding: 11px 16px;
    color: #fff;
    background: linear-gradient(180deg, rgba(160,0,0,.98), rgba(102,0,0,.98));
    font: 900 13px/1 system-ui, sans-serif;
    cursor: pointer;
}

.wssg-tv__classified-play:hover,
.wssg-tv__classified-play:focus {
    background: linear-gradient(180deg, rgba(185,0,0,1), rgba(120,0,0,1));
}


/* WSSG TV 0.2.6 : rotation manuelle + chat Twitch */

.wssg-tv {
    container-type: inline-size;
}

.wssg-tv__media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
    align-items: stretch;
    background: #050505;
}

.wssg-tv__media-layout:has(.wssg-tv__chat[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

.wssg-tv__chat {
    min-width: 0;
    min-height: 300px;
    border-left: 1px solid rgba(191,139,42,.20);
    background: #0e0e10;
    overflow: hidden;
}

.wssg-tv__chat[hidden] {
    display: none;
}

.wssg-tv__chat-head {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(90deg, rgba(110,0,0,.22), transparent),
        #090909;
    color: rgba(255,255,255,.82);
    font: 900 11px/1 system-ui, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wssg-tv__chat-body {
    height: calc(100% - 38px);
    min-height: 262px;
}

.wssg-tv__chat-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 262px;
    border: 0;
    background: #0e0e10;
}

.wssg-tv__rotation-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.wssg-tv__control {
    appearance: none;
    min-height: 36px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.88);
    font: 800 12px/1 system-ui, sans-serif;
    cursor: pointer;
}

.wssg-tv__control:hover,
.wssg-tv__control:focus {
    border-color: rgba(216,181,91,.46);
    color: #e2c16d;
    background: rgba(216,181,91,.08);
}

.wssg-tv__control[data-rotation-resume] {
    border-color: rgba(216,181,91,.30);
    background: linear-gradient(180deg, rgba(117,87,20,.25), rgba(57,39,5,.18));
    color: #e1bd61;
}

@container (max-width: 850px) {
    .wssg-tv__media-layout {
        grid-template-columns: 1fr;
    }

    .wssg-tv__chat {
        min-height: 340px;
        border-left: 0;
        border-top: 1px solid rgba(191,139,42,.20);
    }

    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        min-height: 302px;
        height: 302px;
    }
}

@media (max-width: 720px) {
    .wssg-tv__rotation-controls {
        width: 100%;
    }

    .wssg-tv__control {
        flex: 1 1 auto;
    }
}


/* WSSG TV 0.3.0 : bandeau stable + contrôles live uniquement */

.wssg-tv__info {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.wssg-tv__info-main {
    display: grid;
    grid-template-rows: auto auto;
    gap: 7px;
    min-width: 0;
}

.wssg-tv__status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}

.wssg-tv__brand {
    flex: 0 0 78px;
    min-width: 78px;
    width: 78px;
}

.wssg-tv__brand img {
    width: 74px;
    max-width: 74px;
    height: 32px;
    max-height: 32px;
    object-fit: contain;
}

.wssg-tv__live-badge {
    flex: 0 0 auto;
}

.wssg-tv__identity {
    min-width: 0;
    padding-left: 0;
}

.wssg-tv__title {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.08;
}

.wssg-tv__meta {
    margin-top: 5px;
}

.wssg-tv__actions {
    min-width: max-content;
}

.wssg-tv__rotation-controls[hidden] {
    display: none !important;
}

@container (max-width: 900px) {
    .wssg-tv__info {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wssg-tv__actions {
        min-width: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .wssg-tv__info {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wssg-tv__brand {
        flex-basis: 70px;
        min-width: 70px;
        width: 70px;
    }

    .wssg-tv__brand img {
        width: 66px;
        max-width: 66px;
    }
}


/* WSSG TV 0.3.3 : bandeau compact */

.wssg-tv__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    min-height: 74px;
}

.wssg-tv__info-main {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wssg-tv__status-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    white-space: nowrap;
}

.wssg-tv__brand {
    flex: 0 0 64px;
    min-width: 64px;
    width: 64px;
}

.wssg-tv__brand img {
    width: 62px;
    max-width: 62px;
    height: 28px;
    max-height: 28px;
    object-fit: contain;
}

.wssg-tv__live-badge {
    padding: 5px 7px;
    font-size: 10px;
}

.wssg-tv__identity {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.wssg-tv__title {
    margin: 0;
    font-size: clamp(16px, 1.65vw, 22px);
    line-height: 1.08;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wssg-tv__meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.wssg-tv__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.wssg-tv__rotation-controls {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.wssg-tv__control,
.wssg-tv__actions a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

@container (max-width: 820px) {
    .wssg-tv__info {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wssg-tv__actions {
        justify-content: flex-start;
    }
}

@container (max-width: 560px) {
    .wssg-tv__info-main {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px;
    }

    .wssg-tv__rotation-controls {
        flex-wrap: wrap;
    }

    .wssg-tv__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}


/* WSSG TV 0.3.4 : commandes 2x2 compactes */

.wssg-tv__info {
    padding: 7px 10px;
    min-height: 64px;
    gap: 10px;
}

.wssg-tv__actions {
    min-width: 300px;
    justify-content: flex-end;
}

.wssg-tv__action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    grid-template-rows: 34px 34px;
    gap: 6px;
    width: 300px;
}

.wssg-tv__control,
.wssg-tv__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
}

.wssg-tv__control--hold,
.wssg-tv__control--resume {
    grid-column: 1;
    grid-row: 1;
}

.wssg-tv__control--next {
    grid-column: 2;
    grid-row: 1;
}

.wssg-tv__action-spacer {
    display: none;
}

.wssg-tv__action-link[data-primary-action] {
    grid-column: 1;
    grid-row: 2;
}

.wssg-tv__donate {
    grid-column: 2;
    grid-row: 2;
}

.wssg-tv__action-grid > [hidden] {
    display: none !important;
}

.wssg-tv__actions a[data-primary-action],
.wssg-tv__donate {
    padding: 0 10px !important;
    min-height: 34px;
    height: 34px;
    font-size: 11px;
}

@container (max-width: 760px) {
    .wssg-tv__info {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wssg-tv__actions {
        min-width: 0;
        width: 100%;
    }

    .wssg-tv__action-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 460px) {
    .wssg-tv__action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .wssg-tv__control,
    .wssg-tv__action-link,
    .wssg-tv__actions a[data-primary-action],
    .wssg-tv__donate {
        font-size: 10px;
        padding: 0 7px !important;
    }
}


/* WSSG TV 0.3.5 : alignement définitif du bandeau */

.wssg-tv__info {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 10px 14px !important;
    min-height: 0 !important;
    height: auto !important;
}

.wssg-tv__info-main {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__status-row {
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__identity {
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.05 !important;
}

.wssg-tv__meta {
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

.wssg-tv__actions {
    flex: 0 0 316px !important;
    width: 316px !important;
    min-width: 316px !important;
    display: block !important;
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__action-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 154px) !important;
    grid-template-rows: 36px 36px !important;
    gap: 8px !important;
    width: 316px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__control,
.wssg-tv__action-link,
.wssg-tv__actions a[data-primary-action],
.wssg-tv__donate {
    box-sizing: border-box !important;
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.wssg-tv__control--hold,
.wssg-tv__control--resume {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.wssg-tv__control--next {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.wssg-tv__action-link[data-primary-action] {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.wssg-tv__donate {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

@container (max-width: 700px) {
    .wssg-tv__info {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wssg-tv__actions {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .wssg-tv__action-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .wssg-tv__control,
    .wssg-tv__action-link,
    .wssg-tv__actions a[data-primary-action],
    .wssg-tv__donate {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}



/* WSSG TV 0.3.6 : réseaux centrés */

.wssg-tv__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 8px 14px !important;
}

.wssg-tv__socials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.wssg-tv__socials a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    .wssg-tv__socials {
        gap: 14px !important;
        flex-wrap: wrap !important;
    }
}


/* WSSG TV 0.3.7 : alignement bandeau supérieur */

.wssg-tv__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.wssg-tv__header-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
}

.wssg-tv__eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.wssg-tv__heading {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.wssg-tv__status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

@media (max-width: 720px) {
    .wssg-tv__header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .wssg-tv__header-left {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
}


/* WSSG TV 0.3.8 : chat Twitch latéral desktop */

.wssg-tv__media-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 270px !important;
    align-items: stretch !important;
    width: 100% !important;
    background: #050505 !important;
}

.wssg-tv__media-layout:has(.wssg-tv__chat[hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.wssg-tv__screen {
    min-width: 0 !important;
}

.wssg-tv__chat {
    display: block !important;
    width: 270px !important;
    min-width: 270px !important;
    min-height: 300px !important;
    border-left: 1px solid rgba(191,139,42,.20) !important;
    border-top: 0 !important;
    background: #0e0e10 !important;
    overflow: hidden !important;
}

.wssg-tv__chat[hidden] {
    display: none !important;
}

.wssg-tv__chat-body {
    width: 100% !important;
    height: calc(100% - 38px) !important;
    min-height: 300px !important;
}

.wssg-tv__chat-body iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
    border: 0 !important;
}

@container (max-width: 850px) {
    .wssg-tv__media-layout {
        grid-template-columns: minmax(0, 1fr) 250px !important;
    }

    .wssg-tv__chat {
        width: 250px !important;
        min-width: 250px !important;
        min-height: 300px !important;
        border-left: 1px solid rgba(191,139,42,.20) !important;
        border-top: 0 !important;
    }

    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        min-height: 300px !important;
    }
}

@media (max-width: 620px) {
    .wssg-tv__media-layout {
        grid-template-columns: 1fr !important;
    }

    .wssg-tv__chat {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 300px !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(191,139,42,.20) !important;
    }

    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        min-height: 300px !important;
        height: 300px !important;
    }
}


/* WSSG TV 0.3.9 : chat Twitch large et non rogné */

@media (min-width: 900px) {
    .wssg-tv {
        width: calc(100% + 56px) !important;
        max-width: none !important;
        margin-left: -56px !important;
    }

    .wssg-tv__media-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 340px !important;
        align-items: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .wssg-tv__screen {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .wssg-tv__chat {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        overflow: hidden !important;
    }

    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        height: 100% !important;
        min-height: 300px !important;
        overflow: hidden !important;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .wssg-tv__media-layout {
        grid-template-columns: minmax(0, 1fr) 310px !important;
    }

    .wssg-tv__chat,
    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 310px !important;
        min-width: 310px !important;
        max-width: 310px !important;
    }
}

@media (max-width: 699px) {
    .wssg-tv {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wssg-tv__media-layout {
        grid-template-columns: 1fr !important;
    }

    .wssg-tv__chat,
    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* WSSG TV 0.4.0 : largeur desktop étendue vers la marge gauche */

@media (min-width: 1100px) {
    .wssg-tv {
        position: relative !important;
        width: calc(100% + 150px) !important;
        max-width: none !important;
        margin-left: -150px !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .wssg-tv__media-layout {
        display: grid !important;
        grid-template-columns: minmax(520px, 1fr) 390px !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .wssg-tv__screen {
        min-width: 520px !important;
        overflow: hidden !important;
    }

    .wssg-tv__chat {
        width: 390px !important;
        min-width: 390px !important;
        max-width: 390px !important;
        overflow: hidden !important;
    }

    .wssg-tv__chat-body {
        width: 390px !important;
        min-width: 390px !important;
        max-width: 390px !important;
        overflow: hidden !important;
    }

    .wssg-tv__chat-body iframe {
        display: block !important;
        width: 390px !important;
        min-width: 390px !important;
        max-width: 390px !important;
        height: 100% !important;
        border: 0 !important;
    }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .wssg-tv {
        position: relative !important;
        width: calc(100% + 90px) !important;
        max-width: none !important;
        margin-left: -90px !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }

    .wssg-tv__media-layout {
        grid-template-columns: minmax(480px, 1fr) 360px !important;
    }

    .wssg-tv__chat,
    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .wssg-tv {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wssg-tv__media-layout {
        grid-template-columns: minmax(0, 1fr) 320px !important;
    }

    .wssg-tv__chat,
    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;
    }
}

@media (max-width: 699px) {
    .wssg-tv {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .wssg-tv__media-layout {
        grid-template-columns: 1fr !important;
    }

    .wssg-tv__chat,
    .wssg-tv__chat-body,
    .wssg-tv__chat-body iframe {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* WSSG TV 0.4.1 : layout sans chat, propre et centré */

.wssg-tv {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

.wssg-tv__media-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.wssg-tv__screen {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.wssg-tv__stage,
.wssg-tv__twitch-shell,
.wssg-tv__twitch-player,
.wssg-tv__twitch-player > div,
.wssg-tv__twitch-player iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.wssg-tv__chat {
    display: none !important;
}

/* Bandeau infos */
.wssg-tv__info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 316px !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 10px 14px !important;
    min-height: 0 !important;
}

.wssg-tv__info-main {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__status-row {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__brand {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
}

.wssg-tv__brand img {
    display: block !important;
    width: 62px !important;
    max-width: 62px !important;
    height: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
}

.wssg-tv__identity {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__title {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(17px, 1.7vw, 23px) !important;
    line-height: 1.05 !important;
}

.wssg-tv__meta {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
}

/* Boutons 2x2 */
.wssg-tv__actions {
    width: 316px !important;
    min-width: 316px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__action-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 154px) !important;
    grid-template-rows: repeat(2, 36px) !important;
    gap: 8px !important;
    width: 316px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wssg-tv__control,
.wssg-tv__action-link,
.wssg-tv__actions a[data-primary-action],
.wssg-tv__donate {
    box-sizing: border-box !important;
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.wssg-tv__control--hold,
.wssg-tv__control--resume {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.wssg-tv__control--next {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.wssg-tv__action-link[data-primary-action] {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.wssg-tv__donate {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Réseaux */
.wssg-tv__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
}

.wssg-tv__socials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive */
@container (max-width: 760px) {
    .wssg-tv__info {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .wssg-tv__actions,
    .wssg-tv__action-grid {
        width: 100% !important;
        min-width: 0 !important;
    }

    .wssg-tv__action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .wssg-tv__control,
    .wssg-tv__action-link,
    .wssg-tv__actions a[data-primary-action],
    .wssg-tv__donate {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

@container (max-width: 520px) {
    .wssg-tv__info-main {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .wssg-tv__socials {
        gap: 14px !important;
        flex-wrap: wrap !important;
    }
}
