/* Custom CSS */
body {
    /* background-image: radial-gradient(circle at center, #ffffff, #ffa200 100%, transparent 100%); */
    font-family: 'Koh Santepheap', 'Poppins';
}

/* Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.nested-spinner {
    position: relative;
}

.nested-spinner .spinner-border {
    position: absolute;
    top: -2.9px;
    left: -3.5px;
}
.btn {
    color: white;
    border-radius: 33px !important;
    padding: 8px 15px;
    transition: background-color 0.3s, color 0.3s;
    margin-bottom: 1%;
    box-shadow: 0 4px 14px rgb(0, 0, 0);
    background-color: #740c16 !important;
}
.btn:hover{
    color:gold;
    border: 1px solid white;  
}

h5 {
    font-size: 1.7rem;
}
.video-section {
    margin-top: 20px;
}

.video-description,
.comments-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.related-video {
    width: 32.2%;
    border-radius: 8px;
    overflow: hidden;
}
.related-video:hover{
    box-shadow: 0 4px 4px rgba(241, 234, 53, 0.521);
}
.related-video img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-video h5 {
    padding: 10px;
    color: rgb(255 190 76);
}

.related-video-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.comments-section {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    height: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.comments-section h4 {
    position: relative;
    z-index: 10;
    background-color: #f9f9f9;
    padding: 10px;
    top: -13px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    animation: scrollComments 10s linear infinite;
}

.comment {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.comment p {
    margin: 0;
}

.comment strong {
    color: #333;
}

.main-video {
    width: 100%;
    height: 550px;
    /* Adjust the height as needed */
    max-height: 600px;
    /* Optional: sets a maximum height */
}
.main-video:hover {
    box-shadow: 0 4px 4px rgba(241, 234, 53, 0.521);
}

@keyframes scrollComments {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .related-video {
        width: 48%;
    }
}

@media (max-width: 992px) {
    .related-video {
        width: 100%;
    }

    .col-lg-9 {
        order: 1;
    }

    .col-lg-3 {
        order: 2;
    }
}

@media (max-width: 768px) {

    .video-description,
    .comments-section {
        padding: 10px;
    }

    .related-video-img {
        max-height: 150px;
    }

    .comments-section {
        height: 300px;
    }

    iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .video-description h4 {
        font-size: 1.2rem;
    }

    .comments-section {
        height: 250px;
    }
}
