/* Slider Container */
/* Center video and keep background */
/* Video wrapper fallback */
.ycfs-video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.ycfs-video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Keep proper aspect ratio (16:9) */
.ycfs-video-wrapper iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
}


/* Thumbnail Container */
.ycfs-thumbnail {
    position: relative;
    cursor: pointer;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.ycfs-thumbnail:hover {
    transform: scale(1.03);
}

/* Thumbnail Image */
.ycfs-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.ycfs-thumbnail:hover img {
    filter: brightness(0.8);
}

/* Play Button */
.ycfs-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,0,0,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.ycfs-thumbnail:hover .ycfs-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255,0,0,1);
}

/* Play Button Pulse */
.ycfs-play-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,0,0,0.6);
    animation: ycfs-pulse 1.5s infinite;
}

@keyframes ycfs-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Hover Title Overlay */
.ycfs-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.ycfs-thumbnail:hover .ycfs-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.ycfs-slider-wrapper {
    position: relative;
    min-height: 200px;
}

.ycfs-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.ycfs-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #ddd;
    border-top: 4px solid #e60023;
    border-radius: 50%;
    animation: ycfs-spin 1s linear infinite;
}

@keyframes ycfs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Remove old caption */
.ycfs-caption {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ycfs-title-overlay {
        font-size: 14px;
        padding: 8px;
    }
    .ycfs-play-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .ycfs-title-overlay {
        font-size: 12px;
        padding: 6px;
    }
    .ycfs-play-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
