.scroller-div {
    position: relative !important;
    /* padding-left: 40px !important;
    padding-right: 40px !important; */
    background: transparent;
}

.prime-arrow-left,
.prime-arrow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
    cursor: pointer;
    border-radius: 8px;
}

.scroller-div:hover .prime-arrow-left,
.scroller-div:hover .prime-arrow-right {
    opacity: 1;
    visibility: visible;
}

.prime-arrow-left {
    left: 0px;
    margin-left:-30px;
}

.prime-arrow-right {
    right: 0px;
     margin-right:-40px;
}

.prime-arrow-left:hover,
.prime-arrow-right:hover {
    background: rgba(0,0,0,0.6);
}

.prime-arrow-left svg,
.prime-arrow-right svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.uk-slider-items {
    /* width:73% !important; */
    overflow: visible !important;
}


.scroll-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}

.scroll-title h3,
.scroll-title .watch-more {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin: 0;
    -webkit-text-fill-color: #ffffff !important;
}

.scroll-title a {
    color: #aaa;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scroll-title a:hover {
    color: #e50914;
    transform: translateX(5px);
}






.uk-slider-items > div:hover {
    z-index: 2000;
}

.uk-slider-items > div {
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
                opacity 0.3s ease;
}

.uk-slider-items:hover > div:not(:hover) {
    opacity: 1;
}




.prime-arrow-left,
.prime-arrow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
    cursor: pointer;
    border-radius: 8px;
}

.prime-arrow-left {
    left: 0px;
}

.prime-arrow-right {
    right: 0px;
}

.scroller-div:hover .prime-arrow-left,
.scroller-div:hover .prime-arrow-right {
    opacity: 1;
    visibility: visible;
}

.prime-arrow-left:hover,
.prime-arrow-right:hover {
    background: rgba(0,0,0,0.6);
}

.prime-arrow-left svg,
.prime-arrow-right svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}



.scroller-div::before,
.scroller-div::after {
    display: none;
}



/* .custom-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 5;
} */

.custom-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff2a2a);
    box-shadow: 0 0 8px rgba(229,9,20,0.8);
}



.hovered {
    position: relative !important;
    overflow: visible !important;
    z-index: 1;
}

.hovered:hover {
    z-index: 100;
}

.hovercard {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1),
                opacity 0.3s ease;
    z-index: 999;
    pointer-events: none;
    top: 0;
    left: 100%;
}

.hovered:hover .hovercard {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 9999;
    pointer-events: auto;
    margin-left: 25px;
    margin-top: 0;
}



.mx-hover-card {
    width: 366px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 25px 80px rgba(0,0,0,0.9); */
    border: 1px solid rgba(255,255,255,0.1);
    top: 0px;
    left: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mx-hover-video {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.mx-hover-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
}

.mx-hover-content {
    padding: 16px;
    color: #fff;
    background: black;
}

.mx-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff !important;
    color: #000 !important;
    border: none;
    padding: 4px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    /* margin-bottom: 12px; */
    transition: all 0.25s ease;
    cursor: pointer;
    width: 40%;
    box-sizing: border-box;
}

.mx-play-btn span,
.mx-play-btn svg,
.mx-play-btn uk-icon,
.mx-play-btn [uk-icon] {
    color: #000 !important;
    fill: #000 !important;
}

.mx-play-btn:hover {
    background: #D7D6D1 !important;
    color: #000 !important;
    transform: scale(1.02);
    text-decoration: none;
}

.mx-play-btn:hover span,
.mx-play-btn:hover svg,
.mx-play-btn:hover uk-icon,
.mx-play-btn:hover [uk-icon] {
    color: #000 !important;
    fill: #000 !important;
}

.mx-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
}

.mx-three-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* .mx-three-icons .mx-icon-btn:nth-child(3) {
    display: none;
} */

.mx-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:#2a2a2a;
    /* border: 2px solid rgba(255,255,255,0.5); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mx-icon-btn:hover {
    border-color: #fff;
    transform: scale(1.1);
    color: #000;
}

.mx-icon-btn.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.mx-icon-btn svg {
    width: 18px;
    height: 18px;
}

.mx-watch-trailer svg {
    width: 18px;
    height: 18px;
}

.mx-provider {
    font-size: 12px;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mx-provider::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #8bc34a;
    border-radius: 50%;
}

.mx-meta {
    font-size: 12px;
    color:white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mx-meta span {
    color: white;
}

.mx-desc {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}



.mx-icons { margin: 0
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.desc-icons span img {
    background: rgba(255,255,255,0.08);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.desc-icons span img:hover {
    background: #e50914;
    transform: scale(1.1);
}

.mx-icons img:hover,
.mx-icons span:hover {
    background: #333;
}

.mx-meta {
    font-size: 10px;
    /* opacity: 0.8; */
    margin-bottom: 10px;
    /* font-weight:bold; */
}

.mx-desc {
    font-size: 12px;
    color: white;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hidden-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 10px;
}

.hidden-text {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
    padding: 0 10px;
}

.undo-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.undo-btn:hover {
    background: #ff1a1a;
    transform: scale(1.05);
}

.hovered.hidden-state .posterimage {
    filter: blur(8px);
    opacity: 0.6;
}

.hovered.hidden-state {
    position: relative;
}
.posterimage {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

/* Poster container to hold image and progress bar */
.hovered > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.hovered:hover .posterimage {
    transform: scale(1.02);
}

.mx-hover-video video {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mx-hover-video video {
    transition: opacity 0.3s ease;
}

.watch-more span a {
  font-size: 0.7em !important;
 
}

.watch-more:hover span a {
  text-decoration: none;
  cursor: pointer;
}

/* Top 10 Ranking - Amazon Prime Style */
.rank-number {
    font-size: 90px;
    font-weight: 900;
    color: #fff;
    position: absolute;
    left: -5px;
    bottom: 5px;
    z-index: 5;
    line-height: 1;
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.8),
        -2px -2px 0 rgba(0,0,0,0.5);
    -webkit-text-stroke: 2px rgba(0,0,0,0.3);
    letter-spacing: -4px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index:-1;
}

/* Rank number in ott-card */
.ott-card .rank-number {
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.ott-card:hover .rank-number {
    color: #E50914;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.8),
        -2px -2px 0 rgba(229,9,20,0.5);
    -webkit-text-stroke: 2px #E50914;
}

.hovered:hover .rank-number {
    color: #E50914;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.8),
        -2px -2px 0 rgba(229,9,20,0.5);
    -webkit-text-stroke: 2px #E50914;
}

/* Rank card container - extra space for rank number */
.hovered[data-rank="true"] {
    padding-left: 30px;
    z-index: 10;
}

/* Mobile - hide rank numbers and adjust layout */
/* @media (max-width: 768px) {
    .rank-number {
        display: none;
    }
    
    .hovered[data-rank="true"] {
        padding-left: 0;
    }
    
    .hovered {
        overflow: hidden;
    }
} */

.hovered:hover .rank-number {
    transform: scale(1.08) translateX(-8px);
    filter: brightness(1.2);
}

/* OTT Card - Two Section Layout with Overlay */
.ott-card {
    position: relative;
    border-radius: 5px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.35s ease, width 0.35s ease;
    transform-origin: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* IMAGE SECTION - Fixed height */
.ott-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 50px;
    overflow: hidden;
    border-radius: 4px;
}

/* On hover: Remove bottom border-radius for seamless connection */
.ott-card:hover .ott-image {
    border-radius: 5px 5px 0 0;
}

/* Ensure anchor tag doesn't break image positioning */
.ott-image > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.ott-image .lazy-load,
.ott-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.2s ease;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
}

/* Force poster image to show */
.ott-image .lazy-load {
    display: block !important;
    opacity: 1;
    z-index: 1;
}

/* Hide video by default - show poster image */
.ott-image video {
    display: block !important;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.2s ease 0.3s;
}

/* On hover: Image fades out after 2s delay */
/*.ott-card:hover .ott-image .lazy-load {
    opacity: 0;
    transition: opacity 0.2s ease 2s;
}
*/
/* On hover: Video fades in after 2s delay */
/*.ott-card:hover .ott-image video {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.2s ease 2s;
}
/* Image fades only if card has video */
/*.ott-card.has-video:hover .ott-image .lazy-load {
    opacity: 0;
    transition: opacity 0.2s ease 2s;
}*/

/* Video fades in */
/*.ott-card.has-video:hover .ott-image video {
    opacity: 1;
    z-index: 2;
    transition: opacity 0.2s ease 2s;
}*/

.ott-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 5px;
}

/* DETAILS SECTION - Absolute overlay on hover */
.ott-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-radius: 0 0 5px 5px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.35s ease;
    z-index: 10;
    box-shadow: 0 30px 70px rgba(0,0,0,0.9);
}

/* Ensure all content in hover details is left-aligned */
.ott-details > div,
.ott-details > span,
.ott-details p,
.ott-details .mx-title,
.ott-details .mx-meta,
.ott-details .mx-desc {
    text-align: left !important;
}

/* For Type41 with rank numbers - details align with image, not rank */
.ott-card.has-rank .ott-details {
    left: 31px;
    right: 0;
    width: 92%;
}

.ott-details::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%); */
    opacity: 0;
    transition: opacity 0.35s ease;
     border-radius: 0 0 5px 5px;
}

/* Keep existing content styles above overlay */
.ott-details .mx-title,
.ott-details .mx-play-btn,
.ott-details .mx-three-icons,
.ott-details .mx-meta,
.ott-details .mx-desc,
.ott-details span {
    position: relative;
    z-index: 1;
}

/* MAIN HOVER */
.ott-card:hover {
    min-width:280px;
    transform: scale(1.15);
    z-index: 9999;
    position: relative;
    left:0;
    right:0;
    margin-left:30px;
    margin-right:30px;
}

.ott-card:hover .ott-details {
    z-index: 10000;
}

/* Ensure scroller containers don't clip hovercards */
.scroller-div {
    overflow: visible !important;
}

.ott-card:hover .ott-image::after,
.ott-card:hover .ott-details::after {
    opacity: 1;
}

.ott-card:hover .ott-image .lazy-load,
.ott-card:hover .ott-image video {
	 opacity: 1 !important; 
    transform: scale(1.08);
}

.ott-card:hover .ott-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 16px;
    border-radius: 0 0 5px 5px;
}

/* Progress bar in ott-card */
.ott-image .custom-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 2;
}

.ott-image .custom-progress-bar {
    height: 100%;
    background: #E50914;
    transition: width 0.3s ease;
}

/* Hidden overlay in ott-card */
.ott-image .hidden-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 5px;
}

/* License button position */
.ott-image .uk-position-top-right {
    z-index: 3;
}


.top-rank{
position:absolute;
left:0;
bottom:15px;
font-size:90px;
font-weight:800;
color:#e5e5e5;
line-height:0.8;
z-index:0;
}
