.html{
background: black;
}
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
text-decoration: none;
}

body {

background: url(bgAll.webp) fixed;
background-size: cover;
    font-family: 'Roboto', sans-serif;

    color: white;
    display: flex;
    min-height: 100vh;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;

}

/* Sidebar */
.sidebar {
   width: 250px;
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-right: 2px solid rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(35px);
    background: transparent;
}

.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.sidebar-nav ul {
    list-style: none;
    margin-top: 40px;
}

.sidebar-nav ul li {
    margin: 15px 0;
}

.sidebar-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-nav ul li a:hover {
    background-color: #8e24aa;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    width: 100%;
    padding: 20px;
}

.header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(35px);
    background: transparent;
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
}
.header-search {
    display: flex;
    justify-content: space-between;  /* Aligne les éléments à gauche et à droite */
    align-items: center;  /* Centrage vertical */
    width: 100%;
}

.header-search input {
    padding: 12px;
    width: 100%;  /* Permet à l'input de prendre toute la largeur disponible */
        border-radius: 25px;
    background: transparent;
    border: 2px solid rgb(255, 255, 255, 0.2);
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.header-search input:focus {
    border-color: #6a1b9a;
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.3);
}

.header-search button {
    background-color: #6a1b9a;
    border: none;
    padding: 12px;
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    cursor: pointer;
margin-top: 0;
}

.header-right .user-icon a {
    font-size: 24px;
    color: #6a1b9a;
    margin-left: 20px;
    text-decoration: none;
}

.header-right .user-icon a:hover {
    color: #D6955B;
}
/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.video-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-bottom: 4px solid #6a1b9a;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #6a1b9a;
}

.video-info p {
    font-size: 14px;
    color: white;
}

/* Footer */
footer {
    background-color: #6a1b9a;
    color: white;
    text-align: center;
    padding: 15px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile Navbar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(35px);
    background: transparent;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.mobile-nav ul li {
    width: 50px;
    height: 50px;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
}

.hamburger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6a1b9a;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
}

.hamburger i {
    color: white;
    font-size: 24px;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .header-right .user-icon {
        display: none; /* Cache l'icône du login sur mobile */
    }
    .main-content {
        margin-left: 0px;
        width: 100%;
        padding: 20px;
    }
    /* Sidebar - Réduit et cache sur mobile */
    .sidebar {
        width: 70px;
        padding: 10px;
        position: fixed;
        z-index: 10;
    }

    .sidebar-header h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .sidebar-nav ul li a {
        font-size: 16px;
        padding: 8px;
    }

    /* Masque le texte dans la sidebar */
    .sidebar-nav ul li a i {
        font-size: 20px;
    }

    /* Header sur mobile */
    .header {
        padding: 10px;
        flex-direction: column;
        justify-content: flex-start;
    }

    .header-logo h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .header-right {
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
    }

    /* Barre de recherche */
    .header-search {
        width: 80%;  /* Réduit la largeur de la barre de recherche sur mobile */
    }

    .header-search input {
        width: calc(100% - 50px);  /* Laisser de l'espace pour le bouton */
    }

    .header-search button {
        margin-left: 10px;
    }

    .header-right .user-icon a {
        font-size: 30px;
    }

    /* Vidéos */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-card {
        border-radius: 8px;
    }

    /* Mobile Navbar */
    .mobile-nav {
        display: block;
        z-index: 1;
    }

    /* Masquer la navbar classique */
    .sidebar {
        display: none;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
    }

    footer {
        padding: 10px;
    }
}

.logout-btn {
    background-color: #6a1b9a;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #8e24aa;
}

.logout-btn i {
    font-size: 20px;
}







/* Main content */
.main-content {
    flex-grow: 1;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: white;
}

.header-logo h1 {
    margin: 0;
}

.header-logout {
    font-size: 16px;
}

.logout-btn {
    background-color: #8e24aa;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #6a1b9a;
}

/* Container for the main content */
.video-page-content {
    display: flex;             /* Flexbox for horizontal layout */
    justify-content: space-between;  /* Space between video and suggestions */
    gap: 20px; /* Space between the main video and the suggested videos */
    flex-wrap: wrap; /* Ensure content wraps in case of smaller screen sizes */
    padding: 20px;
}

/* Video and comments section */
.video-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Video player and info (left side) */
.video-section {
    display: flex;
    flex-direction: column;
}

.video-player video {
    width: 100%;
    max-height: 550px;
    border-radius: 10px;
}
@media (min-width: 1920px) {
  .video-player video {
    max-height: 800px;
}
}
.video-info-comments {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.video-info h1 {
    font-size: 24px;
}

.channel-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.channel-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.like-btn, .dislike-btn {
    padding: 8px 15px;
    background-color: #9C27B0;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.like-btn:hover, .dislike-btn:hover {
    background-color: #7B1FA2;
}

/* Description */
.video-description {
    margin-top: 10px;
    font-size: 16px;
}

/* Right section for suggestions */
.suggestions {
    flex: 0 0 300px; /* Width fixed for suggested videos */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggested-videos {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.suggested-video {
    position: relative; 
    flex-direction: column;
    align-items: center;
   
    border-radius: 10px;
background: transparent;
    backdrop-filter: hue-rotate(-1deg) blur(35px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgb(0 0 0 / 43%);
    transition: transform 0.2s;
height: 150px;
}

.suggested-video:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}
.suggested-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.54) 66%);
    z-index: 1;
pointer-events: none;
}
.suggested-thumbnail {
    width: 100%; /* Fixed width for thumbnails */
    height: 100%; /* Fixed height for thumbnails */
    object-fit: cover;  /* Ensures the image covers the area without  stretching */
    border-radius: 10px;
position: relative;
    z-index: 1; 
}

.suggested-video h4 {
position: relative;
z-index: 2;  
    font-size: 14px;
    text-align: center; 
    color: white;
    margin-top: -27px;
}

/* Comments Section */
.comments-section {
    margin-top: 20px;
}

.comments-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.comment {
    backdrop-filter: blur(71px); 
    padding: 10px;
    border-radius: 25px; 
margin-top: 10px;
    margin-bottom: 10px;
    border: 2px solid rgb(255, 255, 255, 0.2);
}

.comment p {
    margin: 0;
}

form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    border: 2px solid rgb(255, 255, 255, 0.2);
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
backdrop-filter: blur(75px);
}

form textarea:focus {
    border-color: #6a1b9a;
}

form button {
    background-color: #6A1B9A;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 10px;
}

form button:hover {
    background-color: #4A148C;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-page-content {
        flex-direction: column;  /* Stack elements vertically on smaller screens */
        align-items: center;
    }

    .suggestions {
        flex: 1 0 auto;
        width: 100%;
    }

    .video-section video {
        max-width: 100%;  /* Ensure video is responsive */
    }
.video-player video {
    
    max-height: 200px;
   
}
}

.like-btn.active, .dislike-btn.active {
    background-color: #4CAF50; /* Vert pour le like */
    color: white;
}

.dislike-btn.active {
    background-color: #f44336; /* Rouge pour le dislike */
    color: white;
}















/* Personnalisation des contrôles (play, pause, etc.) */
.video-js .vjs-play-control {
    
    color: #fff;  /* Texte blanc */
    border-radius: 50%;
}

.video-js .vjs-play-control:hover {
     color: #a06fad;
}

.video-js .vjs-pause-control {
    
    color: #fff;
    border-radius: 50%;
}

.video-js .vjs-pause-control:hover {
    background-color: #a06fad;
}

.video-js .vjs-progress-control {
    color: #4A148C;
    height: 8px;
}





.video-js .vjs-load-progress {
    background-color: #6A2D91;  /* Violet foncé pour le chargement */
}

/* Personnalisation des autres boutons (mute, volume, fullscreen) */


.video-js .vjs-fullscreen-control:hover,
.video-js .vjs-picture-in-picture-control:hover {
    background-color: #9A4EAE;  /* Violet clair au survol */
}

.video-js .vjs-volume-control {
    color: #9A4EAE;
}

/* Personnalisation de la barre de contrôle */
.video-js .vjs-control-bar {
    background-color: rgb(240, 19, 19); /* Noir transparent pour la barre de contrôle */
}
