/* assets/css/netflix-highlight-carousel.css */

/* Import Swiper CSS (if not loading separately via enqueue) */
/* @import url('https://unpkg.com/swiper/swiper-bundle.min.css'); */

.wpyti-library-wrap.wpyti-style-netflix { /* Target specific style */
    margin-bottom: 30px;
}

/* --- Highlight Area --- */
.wpyti-highlight-area {
    margin-bottom: 20px;
    background-color: #000; /* Optional dark background */
    color: #fff;
    padding: 0; /* Remove padding if player is edge-to-edge */
}

.wpyti-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Black background */
}

.wpyti-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wpyti-highlight-info {
    padding: 15px 10px; /* Padding for text below player */
}

.wpyti-highlight-title {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    color: #fff;
}

.wpyti-highlight-description {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

/* --- Carousel Area --- */
.wpyti-carousel-area {
    position: relative; /* Needed for positioning arrows */
    padding: 0 45px; /* Add padding so arrows don't overlap slides visually */
}

.wpyti-carousel {
    /* Swiper container */
    width: 100%;
    height: auto;
}

.wpyti-carousel-slide {
    cursor: pointer;
    background-color: #141414;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9; /* Match video aspect ratio */
    transition: transform 0.2s ease-in-out;
}

.wpyti-carousel-slide:hover {
    transform: scale(1.08);
    z-index: 10;
}

.wpyti-carousel-slide:focus {
    outline: 2px solid #fff; /* Accessibility focus */
    outline-offset: -2px;
}


.wpyti-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.wpyti-carousel-slide .wpyti-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 0.8em;
    background-color: #333;
}


.wpyti-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.8em;
    padding: 15px 8px 5px 8px;
    text-align: center;
    opacity: 0; /* Hide initially */
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.wpyti-carousel-slide:hover .wpyti-slide-title {
    opacity: 1; /* Show title on hover */
}
.wpyti-play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.wpyti-carousel-slide:hover .wpyti-play-icon-small {
    opacity: 1;
}


/* --- Swiper Navigation Arrows --- */
.wpyti-carousel-area .swiper-button-prev,
.wpyti-carousel-area .swiper-button-next {
    color: #fff; /* Arrow color */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    width: 40px; /* Adjust size */
    height: 60px; /* Adjust size */
    margin-top: -30px; /* Vertically center based on height */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.wpyti-carousel-area .swiper-button-prev:hover,
.wpyti-carousel-area .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.wpyti-carousel-area .swiper-button-prev {
    left: 0px; /* Position inside padding */
}
.wpyti-carousel-area .swiper-button-next {
    right: 0px; /* Position inside padding */
}


.wpyti-carousel-area .swiper-button-prev::after,
.wpyti-carousel-area .swiper-button-next::after {
    font-size: 18px; /* Adjust arrow icon size */
    font-weight: bold;
}

.wpyti-carousel-area .swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
}

.wpyti-error { /* Style error messages */
    color: #dc3232;
    border: 1px solid #dc3232;
    padding: 10px;
    margin: 10px 0;
    background-color: #fdeaea;
}