/* ðŸŒŸ General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #480d0b, #0a5b72); /* Blue gradient background */
    margin: 0;
    padding: 0;
    text-align: center;
}


/* ðŸŒ™ Dark Mode */
body.dark-mode {
    background: linear-gradient(to right, #222, #555);
    color: #fff;
}

.dark-mode .video-container,
.dark-mode .lecture-details {
    background: rgba(30, 30, 30, 0.9);
    color: white;
}


/* ðŸŽ¬ Theater Mode */
.theater-mode {
    max-width: 97% !important;
    width: 97% !important;
    height: 90vh !important;
}

/* 🖥️ Mini Player */
.mini-player {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 300px;
    height: 200px;
    z-index: 1000;
    border: 2px solid #007bff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* ðŸŽ¥ Video Container */
.video-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.video-container video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}



.autoplay-next {
    border: 4px solid white;
    border-radius: 7px;
    margin-left: 4px;
    margin-right: 4px;
    background-color: maroon;
}

.autoplay-next a {
    color: yellow;
    font-size: 22px;
    
}

/* ðŸŒ“ Dark Mode & Theater Mode Buttons */
.toggle-container {
    margin: 20px;
}

.toggle-container button {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.toggle-container button:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
}

/* ðŸŽ¯ Responsive Design */
@media (max-width: 900px) {
    .video-container {
        max-width: 90%;
    }
}




/* ⚡ Video Speed Controls */
.video-controls {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #ddd;
    margin-top: 10px;
}

.progress {
    height: 5px;
    width: 0%;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    transition: width 0.2s ease-in-out;
}









/* ðŸ“œ Lecture Details */
.lecture-details {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.lecture-details h1 {
    font-size: 26px;
    color: #a16565;
    font-weight: bold;
}

.lecture-details .description {
    font-size: 16px;
    color: #555;
}

.lecture-details .instructor,
.lecture-details .views {
    font-size: 14px;
    color: #777;
}

/* ðŸŽ¯ Engagement Buttons */
.engagement {
    margin: 20px auto;
}

.engagement button {
    background: linear-gradient(45deg, #1c1919, #ff4b2b);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.engagement button:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
}

/* ðŸ’¬ Comments Section */
.comments-section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.comments-section h2 {
    font-size: 20px;
    color: #333;
}

.comment-box {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.comment-btn {
    margin-top: 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.comment-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* ðŸ”„ Related Videos Section */
.related-videos-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.related-videos-container h2 {
    font-size: 22px;
    color: #333;
}

.related-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.related-video-box {
    width: 220px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.related-video-box:hover {
    transform: scale(1.05);
}

.related-video-thumbnail img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.related-video-title {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.related-video-views {
    font-size: 12px;
    color: #777;
    text-decoration: none;
}

.related-video-box a {
    text-decoration: none; 
    color: inherit; /* Keeps the text color unchanged */
}

.related-video-info p {
    color: grey;
}



/* ðŸŽ¯ Mobile Responsiveness */
@media (max-width: 900px) {
    .video-container {
        max-width: 90%;
    }

    .related-video-box {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .video-container {
        max-width: 100%;
    }

    .related-video-box {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .related-video-thumbnail img {
        height: 180px;
    }
}




