/* Homepage Section Styling */
#videos-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.scrollable-row {
    display: flex;
    overflow-x: scroll;
    padding: 10px;
    gap: 10px;
}

.card {
    width: 200px;
    text-align: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card p {
    margin-top: 10px;
    font-size: 16px;
}

/* Video Player Styling */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-thumbnail {
    background-size: cover;
    background-position: center;
    height: 400px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.play-button {
    font-size: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
}

.video-player {
    width: 100%;
    height: 400px;
    display: none; /* Hide until the thumbnail is clicked */
}

/* Ad Modal Styling */
.ad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ad-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

#ad-video {
    width: 100%;
    height: auto;
}

#skip-ad {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#skip-ad:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Make the related content thumbnails smaller */
.related-thumbnail {
    width: 50%; /* Adjust to fill the card width */
    height: auto; /* Maintain aspect ratio */
    max-width: 75px; /* Set a maximum width for the thumbnail */
    margin: 0 auto; /* Center the image inside the card */
    object-fit: cover; /* Ensure the image covers the given space without distortion */
}
