/* ______                     _       _                        
-- |  _  \                   (_)     | |                       
-- | | | |_   _ ___  ___ _ __ _ _ __ | |_   ___ ___  _ __ ___  
-- | | | | | | / __|/ __| '__| | '_ \| __| / __/ _ \| '_ ` _ \ 
-- | |/ /| |_| \__ \ (__| |  | | |_) | |_ | (_| (_) | | | | | |
-- |___/  \__, |___/\___|_|  |_| .__/ \__(_)___\___/|_| |_| |_|
--         __/ |               | |                             
--        |___/                |_|                             
-- © Copyright 2024 - 2025 DyScript.com tous droits réservés */
/** Theme HTML Base */
body {
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif !important;
    background-color: #1c1c1c;
    color: #fff;
}

/** Reset CSS **/
h1 {
    padding: 0;
    margin: 0;
}
h2 {
    padding: 0;
    margin: 0;
}
h3 {
    padding: 0;
    margin: 0;
}
h4 {
    padding: 0;
    margin: 0;
}
p {
    padding: 0;
    margin: 0;
}
ul{
    padding: 0;
    margin: 0;
}
li {
    padding: 0;
    margin: 0;
}

.logo {
    width: 100%;
    height: auto;
    max-width: 200px; /* Limite la largeur de l'image */
    margin: 20px auto; /* Centre l'image horizontalement */
}

.container {
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* Assure que les boîtes ont la même hauteur */
    gap: 10px;
}

.container .video {
    flex: 0 0 60%; /* La vidéo occupe 60% de la largeur */
    padding: 15px; /* Ajoute le padding ici */
    border-radius: 15px;
    background: #0000006e;
    position: relative;
    overflow: hidden; /* Empêche le débordement */
}

.container .video .header {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.container .video .header h1 {
    background-color: #5f27cd;
    padding: 10px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 400;
}

.container .video .header .data {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.container .video .header .data .badge {
    padding: 10px;
    border-radius: 15px;
    background: #0000006e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.container .video .header .data .badge i {
    font-size: 20px;
}

.container .video .header .data {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container .video .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste la vidéo pour qu'elle reste dans le cadre */
    box-sizing: border-box; /* Respecte les dimensions */
}

.container .chat {
    flex: 1; /* La boîte de chat occupe le reste de l'espace */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 10px;
    height: 6R0px; /* Même hauteur que la boîte vidéo */
    width: 100%; /* Même largeur que la boîte vidéo */
    border-radius: 15px;
    background: #0000006e;
    box-sizing: border-box; /* Inclut les paddings dans les dimensions */
}

.container .chat #messages {
    flex-grow: 1;
    overflow-y: auto;
    background: #1e1e1e;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    scrollbar-width: thin; /* Pour les navigateurs compatibles */
    scrollbar-color: #5f27cd #1e1e1e; /* Couleur de la barre et du fond */
}

#messages::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre de défilement */
}

#messages::-webkit-scrollbar-track {
    background: #1e1e1e; /* Couleur de fond */
    border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb {
    background-color: #5f27cd; /* Couleur de la barre */
    border-radius: 10px;
    border: 2px solid #1e1e1e; /* Ajoute un espace autour de la barre */
}

.container .chat input, .container .chat button {
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    border: none;
    box-sizing: border-box;
}

.container .chat input {
    width: calc(100% - 20px); /* Ajuste la largeur pour rester dans la box */
}

.container .chat button {
    background-color: #5f27cd;
    color: white;
    cursor: pointer;
}

.container .chat h1 {
    padding: 10px;
    text-transform: uppercase;
    text-align: center;
    background-color: #5f27cd;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.container .chat .chat-twitch {
    width: 100%;
    height: 100%; /* Ajustement pour correspondre à la taille de la boîte de chat */
}

.input-field {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 0px solid #5f27cd;
    border-radius: 5px;
    background-color: #1e1e1e;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #9b59b6;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .container .video {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px;
    }

    .container .video .video-player {
        width: 100%;
        height: auto;
    }

    .container .chat {
        flex: 0 0 auto;
        width: 100%;
        padding: 10px;
        height: auto;
    }

    .container .chat #messages {
        max-height: 300px;
    }
}

.video-player::-webkit-media-controls-timeline,
.video-player::-webkit-media-controls-current-time-display,
.video-player::-webkit-media-controls-time-remaining-display {
    display: none !important; /* Masque la timeline et les affichages de temps */
}

button {
    font-family: "Poppins", sans-serif !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

button:hover {
    transform: scale(0.98);
}