/* Basic reset */
.videos-placeholder *,
.videos-placeholder *::before,
.videos-placeholder *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main container */
.videos-placeholder {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Carousel wrapper */
.carousel {
    position: relative;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

/* Gradient overlays at sides of carousel */
.carousel-wrapper::before,
.carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(249,249,249,1), rgba(249,249,249,0));
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(249,249,249,1), rgba(249,249,249,0));
}

/* Inner carousel container */
.carousel-inner {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth easing */
    position: relative;
    width: 100%;
}

/* Individual carousel items */
.carousel-item {
    position: absolute;
    width: 80%;
    left: 10%;
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateX(-110%);
    transition: all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth easing */
    opacity: 0;
    z-index: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    visibility: hidden;
    will-change: transform, opacity; /* Performance optimization */
}

/* Gradient overlay for previous item */
.carousel-item.prev::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8));
    pointer-events: none;
    z-index: 3;
}

/* Gradient overlay for next item */
.carousel-item.next::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.8));
    pointer-events: none;
    z-index: 3;
}

/* Previous item */
.carousel-item.prev {
    transform: scale(0.8) translateX(-110%);
    opacity: 0.4;
    z-index: 1;
    visibility: visible !important; /* Force visibility */
}

/* Active item */
.carousel-item.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    z-index: 2;
    visibility: visible !important; /* Force visibility */
}

/* Next item */
.carousel-item.next {
    transform: scale(0.8) translateX(110%);
    opacity: 0.4;
    z-index: 1;
    visibility: visible !important; /* Force visibility */
}

/* Video container with 16:9 aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #000; /* Black background for thumbnails */
}

/* Thumbnail styling */
.ytc-thumbnail-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.ytc-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.ytc-thumbnail-link:hover .ytc-thumbnail {
    transform: scale(1.05);
}

/* Custom YouTube-style play button */
.ytc-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.ytc-play-button svg {
    width: 68px;
    height: 48px;
    transition: all 0.3s ease;
}

/* Play button hover effect */
.ytc-thumbnail-link:hover .ytc-play-button {
    opacity: 1;
}

.ytc-thumbnail-link:hover .ytc-play-button svg {
    transform: scale(1.1);
}

/* We've removed the video title bar as requested */

/* Carousel controls - round grey style */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-control {
    background-color: rgba(128, 128, 128, 0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    margin: 0 10px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    opacity: 1;
    background-color: rgba(100, 100, 100, 0.95);
}

/* Making the arrow icons white */
#ytc-prev-button, #ytc-next-button {
    color: white;
}

#ytc-prev-button svg, #ytc-next-button svg {
    width: 24px;
    height: 24px;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px 5px 5px; /* Added bottom margin for wrapped rows */
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth easing */
}

.indicator.active {
    background-color: #ff0000;
}

/* Animation for indicator clicks */
@keyframes indicatorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.indicator:active {
    animation: indicatorPulse 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth easing */
}

/* Adjust control sizes for better visibility but without media queries */
.carousel-control {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ytc-play-button svg {
        width: 48px;
        height: 34px;
    }
    
    .ytc-video-title {
        font-size: 12px;
        padding: 6px 8px;
    }
}