/* SunPlex Studio CSS */
.tr-wrap {
    --trr: #fb4c01;
    width: 100%;
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tr-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 7px;
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

/* ── Typewriter Animation ───────────────────────────── */
@keyframes sp-typing {
    from {
        max-width: 0;
        opacity: 0;
    }

    to {
        max-width: 400px;
        opacity: 1;
    }
}

@keyframes sp-cursor-blink {

    0%,
    100% {
        border-right-color: #408bea;
    }

    50% {
        border-right-color: transparent;
    }
}

.tr-title-lbl {
    font-size: 20px;
    font-weight: 500;
    padding-left: 10px;
    border-left: solid 3px #408bea;
    color: #fff;
    /* Always visible — animation is pure enhancement */
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    border-right: 2px solid transparent;
}

/* Typewriter play state — added by JS on scroll-into-view */
.tr-title-lbl.sp-typed {
    animation:
        sp-typing 0.65s cubic-bezier(0.2, 0, 0.4, 1) forwards,
        sp-cursor-blink 0.55s step-end 0.65s 4;
    border-right-color: #408bea;
}

.tr-tabs {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    padding: 2px;
    position: relative;
}

.tr-pill {
    position: absolute;
    top: 2px;
    height: calc(100% - 4px);
    background: #fb4c01;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 0;
}

.tr-tab {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    cursor: pointer;
    transition: 0.3s;
}

.tr-tab.active {
    color: #fff;
}

.tr-nav {
    margin-left: auto;
}

.nav_items_module {
    display: flex;
}

.nav_items_module .btn {
    height: 28px;
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    font-size: 14px;
}

.nav_items_module .btn:hover {
    color: #408BEA;
}

.tr-carousel-outer {
    position: relative;
}

.tr-ambient-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity .6s ease;
    background-size: cover;
    background-position: center;
    filter: blur(60px) brightness(0.8);
}

.tr-wrap:hover .tr-ambient-bg {
    opacity: 0;
}

.owl-carousel,
.owl-stage-outer,
.owl-stage,
.owl-item {
    overflow: visible !important;
}

.owl-stage-outer {
    padding: 0 0 100px !important;
    margin-bottom: -90px;
    z-index: 5;
}

.tr-carousel-outer .owl-item {
    position: relative;
    z-index: 1;
    padding: 12px 10px;
    transition: z-index 0s;
    pointer-events: none !important;
    /* Ignore hover/clicks in the empty gap between cards! */
}

.tr-item {
    position: relative;
    cursor: pointer;
    border-radius: 0;
    overflow: visible;
    transition: transform .4s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: auto !important;
    /* Re-enable all pointer events on the card itself! */
}

.tr-item.tr-push-left-full {
    transform: translateX(-100%);
}

.tr-item.tr-push-right-full {
    transform: translateX(100%);
}

@keyframes spShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.tr-poster-wrap {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
    background-size: 200% 100%;
    animation: spShimmer 1.8s infinite linear;
    position: relative;
    transition: opacity .2s;
    border-radius: 0 !important;
}

.tr-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: transform .5s ease !important;
}

.tr-item:hover .tr-poster-img {
    transform: scale(1.2);
}

.tr-rank {
    position: absolute;
    bottom: 0px;
    right: 25px;
    font-size: 120px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    line-height: 0.8;
    z-index: 5;
    pointer-events: none;
    letter-spacing: -12px;
    font-family: sans-serif;
    font-style: italic;
    transition: right 0.6s cubic-bezier(0.33, 1, 0.68, 1), -webkit-text-stroke 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.tr-item.tr-hovered.tr-expand-right .tr-rank {
    z-index: 60;
    right: -85%;
    -webkit-text-stroke: 2px rgba(251, 76, 1, 0.9);
}

.tr-item.tr-hovered.tr-expand-left .tr-rank {
    z-index: 60;
    right: 25px;
    -webkit-text-stroke: 2px rgba(251, 76, 1, 0.9);
}

.tr-top-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #00be08;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .5px;
    padding: 5px 10px;
    text-transform: uppercase;
    z-index: 4;
}

.tr-quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #cd2026;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    z-index: 4;
    border-radius: 3px;
}

.tr-card {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200%;
    background: none;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s;
    transform: scaleX(0.5);
    border-radius: 0;
    box-shadow: none !important;
    overflow: hidden;
}

.tr-item.tr-hovered .tr-card {
    opacity: 1;
    pointer-events: all;
    transform: scaleX(1);
}

.tr-item.tr-expand-right .tr-card {
    left: 0;
    transform-origin: left center;
}

.tr-item.tr-expand-left .tr-card {
    left: auto;
    right: 0;
    transform-origin: right center;
}

.tr-card-media {
    position: absolute;
    inset: 0;
    background: none;
    overflow: hidden;
}

.tr-card-bd {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.tr-card-yt {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none !important;
}

.tr-card-yt.tr-yt-ready {
    opacity: 1;
}

.tr-card-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none !important;
}

.tr-wait-txt {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--trr);
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
    animation: tr-pulse 1.5s infinite;
}

@keyframes tr-pulse {

    0%,
    100% {
        opacity: 0.4
    }

    50% {
        opacity: 1
    }
}

.tr-card-yt.tr-yt-ready+.tr-wait-txt {
    opacity: 0;
    visibility: hidden;
}

.tr-full-link {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
}

.tr-ctrls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.tr-ctrls:hover {
    width: 125px;
    border-radius: 100px;
    padding: 0 10px;
    justify-content: flex-start;
}

.tr-ctrls:hover .tr-vol-container {
    width: 60px;
    margin-left: 5px;
}

.tr-mute {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s;
}

.tr-mute:hover {
    transform: scale(1.1);
}

.tr-request-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 35;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.tr-request-btn:hover {
    background: var(--trr);
    border-color: var(--trr);
    transform: scale(1.1);
}

.tr-request-btn.requested {
    background: #4ade80;
    border-color: #4ade80;
}

.tr-vol-container {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.tr-ctrls:hover .tr-vol-container {
    width: 60px;
    opacity: 1;
    margin-left: 5px;
}

.tr-vol-slider {
    width: 100%;
    height: 3px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}

.tr-vol-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.tr-play-link {
    position: absolute;
    bottom: 10px;
    right: 15px;
    z-index: 25;
    width: 38px;
    height: 38px;
    opacity: 0;
    transition: all .3s;
}

.tr-play-link .see.play4 {
    position: absolute;
    inset: 0;
    background: url('../img/play4.svg') 50% 50% no-repeat;
    background-size: 45%;
    border: none;
    outline: none;
}

.tr-item.tr-hovered .tr-play-link {
    opacity: 1;
    animation: tr-pop 0.35s forwards;
}

@keyframes tr-pop {
    from {
        transform: scale(1.3);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.tr-card-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px;
    z-index: 10;
}

.tr-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: block;
}

.tr-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.tr-genres {
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.tr-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
}

.tr-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-top-color: var(--trr);
    border-radius: 50%;
    animation: tr-spin .7s linear infinite;
}

.tr-loader-txt {
    position: absolute;
    top: calc(50% + 28px);
    left: 50%;
    transform: translateX(-50%);
    color: #fb4c01;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes tr-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg)
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

/* ── USER MAIN SLIDER (Enhanced from Old Plugin) ── */
.sp-main-slider-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    overflow: hidden;
    background: #0d0d0d;
    margin-bottom: 0;
    /* margin-top: -70px; */
    user-select: none;
}

/* ── Owl sizing ─────────────────────────────────────── */
.sp-main-slider-wrap .owl-carousel,
.sp-main-slider-wrap .owl-wrapper-outer,
.sp-main-slider-wrap .owl-wrapper,
.sp-main-slider-wrap .owl-item {
    height: 100% !important;
}

/* ── Background layer system ─────────────────────────── */
.sp-ms-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sp-ms-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sp-ms-bg.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.sp-ms-bg.is-leaving {
    opacity: 0;
    visibility: visible;
    z-index: 1;
    transition: opacity 0.9s ease-out;
}

.sp-ms-bg-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 2.0s ease-in-out !important;
    /* Smooth 2s cinematic fade-out */
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: 1;
}

.sp-ms-bg.is-active .sp-ms-bg-poster {
    animation: sp-ken-burns 10s ease-out forwards;
}

.sp-ms-bg.is-video-playing .sp-ms-bg-poster {
    opacity: 0 !important;
}

.sp-main-slider-wrap {
    margin-bottom: 40px;
}

@keyframes sp-ken-burns {
    0% {
        transform: scale(1.15) translate(0, 0);
    }

    100% {
        transform: scale(1.05) translate(1%, 1%);
    }
}

@keyframes sp-ken-burns-out {
    0% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

/* ── Cinematic overlay layers ───────────────────────── */
.sp-ms-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.sp-ms-overlay--top {
    background: none;
}

.sp-ms-overlay--bottom {
    background: none;
}

.sp-ms-overlay--left {
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 20%, transparent 40%) !important;
}

.sp-ms-overlay--vignette {
    background: none;
}

/* ── Owl slide (content only, no bg) ────────────────── */
.sp-main-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: flex-end;
}

/* ── Content area with Glassmorphism ─────────────────── */
.sp-main-content {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 6% 6% 80px 6%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* ── Inner content block ─────────────────────────────── */
.sp-main-inner {
    max-width: 650px;
    padding: 20px 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

/* Film Grain Texture */
.sp-main-slider-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
}

/* ── Entrance Animation ─────────────────────────────── */
.sp-content-enter .sp-main-inner {
    animation: sp-glass-fade-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-content-enter .sp-ms-badges,
.sp-content-enter .sp-main-title,
.sp-content-enter .sp-ms-meta,
.sp-content-enter .sp-main-buttons {
    animation: sp-slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-content-enter .sp-ms-badges {
    animation-delay: 0.15s;
}

.sp-content-enter .sp-main-title {
    animation-delay: 0.25s;
}

.sp-content-enter .sp-ms-meta {
    animation-delay: 0.35s;
}

.sp-content-enter .sp-main-buttons {
    animation-delay: 0.45s;
}

@keyframes sp-glass-fade-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes sp-slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Badges with Floating Animation ──────────────────── */
.sp-ms-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: sp-float 3s ease-in-out infinite;
}

@keyframes sp-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.sp-main-type,
.sp-main-quality {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
}

.sp-main-type {
    background: #1a73e8 !important;
    /* Flat Netflix-style blue */
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    padding: 7px 16px !important;
    text-transform: uppercase !important;
}

.sp-main-quality {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    padding: 7px 16px !important;
}

/* ── Typography ────────────────────────────────────── */
.sp-main-title {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 56px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    letter-spacing: -1px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.2em;
}

/* ── Trailer Player Container ───────────────────────── */
.sp-trailer-container {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sp-trailer-container.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.sp-trailer-video {
    width: 60%;
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
}

.sp-trailer-video-embed {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.sp-trailer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sp-close-trailer {
    position: absolute;
    top: -14px;
    right: -12px;
    z-index: 120;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.sp-close-trailer:hover {
    opacity: 1;
    background: #fb4c01;
    transform: scale(1.1) rotate(90deg);
    border-color: #fff;
}

.sp-ms-meta {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

.sp-ms-dot {
    color: #fb4c01 !important;
    font-size: 18px !important;
}

.sp-ms-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffb800;
}

/* ── Buttons ────────────────────────────────────────── */
.sp-main-buttons {
    display: flex;
    gap: 16px;
}

.sp-main-watch,
.sp-main-info {
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    /* more rounded block matching the image */
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
}

.sp-main-watch {
    background: #fb4c01 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(251, 76, 1, 0.3) !important;
}

.sp-main-watch::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
    animation: sp-shimmer 3s infinite;
}

@keyframes sp-shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 150%;
    }
}

.sp-main-watch:hover {
    background: #ff5c1a !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(251, 76, 1, 0.45) !important;
    color: #fff !important;
}

.sp-main-watch i {
    font-size: 13px;
}

.sp-main-info {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.sp-main-info:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Navigation arrows ───────────────────────────────── */
.sp-ms-nav {
    position: absolute;
    bottom: 30px;
    top: auto;
    transform: none;
    z-index: 50;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    pointer-events: all;
}

.sp-main-slider-wrap:hover .sp-ms-nav {
    opacity: 1;
}

.sp-ms-prev {
    left: auto;
    right: 70px;
}

.sp-ms-next {
    right: 30px;
}

.sp-ms-nav:hover {
    background: #fb4c01;
    border-color: #fb4c01;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(251, 76, 1, 0.4);
}

/* ── Dot indicators (Progress Bars) ──────────────────── */
.sp-ms-dots {
    position: absolute;
    bottom: 43px;
    right: 130px;
    left: auto;
    z-index: 50;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sp-ms-dot-btn {
    width: 24px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.sp-ms-dot-btn.is-active {
    background: rgba(255, 255, 255, 0.4);
    width: 60px;
}

.sp-ms-dot-btn.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fb4c01;
    animation: sp-dot-progress var(--autoplay-duration, 15s) linear forwards;
    transform-origin: left;
}

@keyframes sp-dot-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.sp-ms-dot-btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.6);
}

/* ── Starring / Cast Info ────────────────────────── */
.sp-ms-cast {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.sp-ms-cast strong {
    color: #fff;
    font-weight: 600;
}

/* ── Auto Preview Background Layer ────────────────── */
.sp-auto-preview {
    position: absolute;
    inset: -5px;
    /* Slightly larger to push any subpixel clipping lines/borders off-screen! */
    width: calc(100% + 10px);
    height: calc(100% + 10px) !important;
    /* Force full height with safety margins */
    z-index: 0;
    /* Align perfectly with sibling poster */
    opacity: 0;
    transition: opacity 2.0s ease-in-out !important;
    /* Smooth 2s cinematic cross-fade */
    pointer-events: none;
    background: transparent !important;
    /* Turn off the black screen! */
    overflow: hidden;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.sp-auto-preview.is-playing {
    opacity: 1 !important;
}

.sp-auto-preview iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio based on width */
    min-height: 100vh;
    min-width: 177.78vh;
    /* 16:9 Aspect Ratio based on height */
    transform: translate(-50%, -50%) scale(var(--hero-video-zoom, 1)) !important;
    /* Center and dynamically scale using settings option! */
    border: 0 !important;
    border-width: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: none !important;
    display: block;
    pointer-events: none;
    backface-visibility: hidden;
}

.sp-auto-preview:not(.is-playing) iframe {
    opacity: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-main-content {
        padding: 6%;
    }

    .sp-main-title {
        font-size: 42px;
    }
}

/* Mobile & Tablet Overrides (max-width: 768px) */
@media (max-width: 768px) {

    /* 1. Full-width homepage layout padding reset */
    .home .full_width_layout,
    .home .full-width-layout {
        padding: 0px 0px !important;
    }

    /* 2. Numbering (Rankings) - Make smaller width/height/weight */
    .tr-rank {
        font-size: 60px !important;
        font-weight: 800 !important;
        letter-spacing: -5px !important;
        right: 15px !important;
        bottom: -5px !important;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25) !important;
    }

    /* 3. Left/Right Navigation Arrows - Make bigger & more visible on mobile */
    .nav_items_module .btn {
        height: 32px !important;
        width: 38px !important;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        /* background: rgba(0, 0, 0, 0.35) !important; */
        color: #fff !important;
    }

    .nav_items_module {
        gap: 5px !important;
    }

    /* 4. Text - Smaller and more beautiful */
    .tr-title-lbl {
        /* font-size: 15px !important; */
        border-left-width: 2.5px !important;
        padding-left: 8px !important;
    }

    .tr-tab {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    .tr-card-title {
        font-size: 11px !important;
    }

    .tr-card-meta {
        font-size: 8px !important;
    }

    .tr-genres {
        font-size: 7px !important;
    }

    /* 5. Disable Hover Zoom Effect on Mobile */
    .tr-item:hover .tr-poster-img {
        transform: none !important;
    }
}

/* Mobile: below 768px - smaller slider */
@media (max-width: 767px) {

    /* Disable card hover zoom and trailer expansion */
    .tr-card {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
    }

    .tr-item:hover .tr-poster-img {
        transform: none !important;
        filter: none !important;
    }

    .tr-item {
        transform: none !important;
    }

    .tr-item:hover {
        transform: none !important;
    }

    .sp-main-slider-wrap {
        height: 56.25vw !important;
        max-height: none !important;
        min-height: 0 !important;
        margin-top: 0 !important;
    }

    .sp-main-inner {
        padding: 8px !important;
        border-radius: 12px;
        max-width: 100%;
    }

    .sp-main-content {
        padding: 2% 5% 40px 4% !important;
        align-items: flex-end;
    }

    .sp-main-title {
        font-size: 20px !important;
    }

    .sp-main-buttons {
        gap: 8px !important;
    }

    .sp-main-watch,
    .sp-main-info {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    .sp-ms-nav {
        display: none;
    }

    .sp-ms-cast {
        display: none !important;
    }

    .sp-ms-dots {
        left: 4% !important;
        right: auto !important;
        transform: none !important;
        bottom: 8px !important;
    }

    .sp-trailer-video {
        width: 100%;
        height: 100%;
    }

    .sp-auto-preview iframe {
        min-height: 0 !important;
        min-width: 0 !important;
        width: 100vw !important;
        height: 56.25vw !important;
        transform: translate(-50%, -50%) scale(1.01) !important;
    }
}

@media (max-width: 480px) {
    .sp-main-slider-wrap {
        height: 56.25vw !important;
        max-height: none !important;
        min-height: 0 !important;
    }

    .sp-main-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
    }

    .sp-ms-meta {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .sp-main-buttons {
        flex-direction: row;
        width: 100%;
        gap: 6px !important;
    }

    .sp-main-watch,
    .sp-main-info {
        justify-content: center;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .sp-ms-cast {
        display: none;
    }
}

@media (min-width: 1920px) {
    .sp-main-slider-wrap {
        max-height: none;
    }

    .sp-main-title {
        font-size: 52px;
    }

    .sp-main-content {
        padding: 6%;
    }
}

/* ── Episode Checkbox Grid Card Styling ── */
.episode-checkbox-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #cbd5e1 !important;
}

.episode-checkbox-card:hover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.08), 0 2px 4px -1px rgba(59, 130, 246, 0.04) !important;
    transform: translateY(-2px);
}

.episode-checkbox-card.is-checked {
    border-color: #2563eb !important;
    background-color: #dbeafe !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

/* Strict global iframe resets to prevent theme border/shadow conflicts across all sites */
.sp-main-slider-wrap iframe,
.sp-trailer-container iframe,
.sp-auto-preview iframe,
.tr-wrap iframe,
.tr-card-yt iframe,
.nx-card-yt iframe,
.trending-owl iframe,
.upcoming-owl iframe,
.sp-main-owl iframe {
    border: 0 !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Instant Hover Play Transitions Reset */
.sp-instant-play .tr-card-yt {
    transition: none !important;
}

/* Hover Exclusivity Style to prevent adjacent collisions and shaking */
.tr-wrap.sp-has-hovered-card .tr-item:not(.tr-hovered) {
    pointer-events: none !important;
}

/* ── Premium Glassmorphism Language Switcher ── */
.sp-lang-switcher-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: center;
}

.sp-lang-btn {
    background: transparent;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: none !important;
}

.sp-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sp-lang-btn.active {
    background: linear-gradient(135deg, #fb4c01 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(251, 76, 1, 0.35) !important;
}

/* Floating Switcher inside Main Slider Hero Banner */
.sp-ms-float-lang {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 999;
}

/* Align switchers beautifully in carousel headers */
.tr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.tr-head .sp-lang-switcher-wrap {
    margin-left: auto;
    margin-right: 15px;
}

/* Page-wide overrides to completely hide Google Translate native popups/banners */
body {
    top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon,
.goog-gt-tt,
#goog-gt-tt,
.skiptranslate iframe,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* ── Premium Glassmorphism Floating Sticky Switcher (Bottom Right) ── */
.sp-floating-switcher-wrap {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 999999 !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 4px 6px !important;
    gap: 4px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.sp-floating-switcher-wrap:hover {
    transform: translateY(-4px) scale(1.02) !important;
    border-color: rgba(251, 76, 1, 0.4) !important;
    box-shadow: 0 15px 45px rgba(251, 76, 1, 0.15) !important;
}

.sp-float-globe {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    margin-left: 6px !important;
    margin-right: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sp-float-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.sp-float-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.sp-float-btn.active {
    background: linear-gradient(135deg, #fb4c01 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(251, 76, 1, 0.35) !important;
}

@media (max-width: 768px) {
    .sp-floating-switcher-wrap {
        bottom: 20px !important;
        right: 20px !important;
        padding: 3px 5px !important;
    }

    .sp-float-globe {
        font-size: 11px !important;
        margin-left: 4px !important;
    }

    .sp-float-btn {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
}

/* ── PREMIUM DUAL-LANGUAGE LIVE SEARCH STYLES ── */
.sp-live-search-form {
    position: relative !important;
    z-index: 2147483647 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.sp-live-search-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 30px !important;
    position: relative !important;
    font-family: 'Inter', sans-serif;
    z-index: 2147483647 !important;
    overflow: visible !important;
    display: block !important;
}

.sp-search-field-wrap {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.sp-live-search-container:focus-within .sp-search-field-wrap {
    border-color: #fb4c01;
    background: transparent !important;
    box-shadow: 0 0 25px rgba(251, 76, 1, 0.25), inset 0 0 10px rgba(251, 76, 1, 0.1);
}

#sp-search-field {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 15px 45px 15px 48px !important;
    border-radius: 14px !important;
    height: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

#sp-search-field::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1;
}

.sp-search-icon,
.sp-search-spinner {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.sp-search-spinner i {
    color: #fb4c01;
}

.sp-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.sp-search-clear:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-50%) scale(1.05);
}

/* Dropdown Wrap with Glassmorphism */
.sp-search-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(10, 15, 30, 0.4);
    z-index: 2147483640 !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    animation: spDropdownFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sp-search-dropdown-scroll {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 14px 0;
}

/* Category Headers */
.sp-search-group-header {
    padding: 8px 20px;
    font-size: 13px !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    margin-top: 14px;
    font-family: 'Outfit', sans-serif;
}

.sp-search-group:first-child .sp-search-group-header {
    margin-top: 0;
}

/* Search Items */
.sp-search-item {
    display: flex !important;
    gap: 18px !important;
    padding: 14px 20px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}

.sp-search-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fb4c01;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sp-search-item:last-child {
    border-bottom: none !important;
}

/* "Show All Results" CTA Button styling */
.sp-search-show-all-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 20px 8px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.sp-search-show-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #fb4c01 0%, #d83d00 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(251, 76, 1, 0.3), 0 0 1px rgba(251, 76, 1, 0.5);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.sp-search-show-all-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.sp-search-show-all-btn:hover {
    background: linear-gradient(135deg, #ff6320 0%, #fb4c01 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(251, 76, 1, 0.5), 0 0 15px rgba(251, 76, 1, 0.3);
}

.sp-search-show-all-btn:hover i {
    transform: translateX(4px);
}

.sp-search-show-all-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(251, 76, 1, 0.4);
}

.sp-search-item:hover,
.sp-search-item.active,
.sp-search-item.is-active {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: transparent !important;
    transform: translateX(6px) !important;
    box-shadow: none !important;
}

.sp-search-item:hover::before,
.sp-search-item.active::before,
.sp-search-item.is-active::before {
    opacity: 1;
}

/* Thumbnail Poster */
.sp-res-thumb {
    position: relative;
    width: 54px !important;
    height: 78px !important;
    border-radius: 8px !important;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45) !important;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.25s ease;
}

.sp-search-item:hover .sp-res-thumb,
.sp-search-item.active .sp-res-thumb {
    border-color: rgba(251, 76, 1, 0.5) !important;
}

.sp-res-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sp-search-item:hover .sp-res-thumb img,
.sp-search-item.active .sp-res-thumb img,
.sp-search-item.is-active .sp-res-thumb img {
    transform: scale(1.1);
}

/* Play button overlay */
.sp-res-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(251, 76, 1, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.sp-res-play-overlay i {
    color: #ffffff;
    font-size: 14px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-search-item:hover .sp-res-play-overlay,
.sp-search-item.active .sp-res-play-overlay,
.sp-search-item.is-active .sp-res-play-overlay {
    opacity: 1;
}

.sp-search-item:hover .sp-res-play-overlay i,
.sp-search-item.active .sp-res-play-overlay i,
.sp-search-item.is-active .sp-res-play-overlay i {
    transform: scale(1);
}

/* Details & Title */
.sp-res-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px !important;
    overflow: hidden;
    padding-right: 10px;
}

.sp-res-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
}

.sp-res-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-shadow: none !important;
    line-height: 1.2 !important;
}

/* Matching highlights */
.sp-highlight {
    color: #fb4c01 !important;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(251, 76, 1, 0.4);
}

/* Badges */
.sp-res-badges {
    display: flex;
    align-items: center;
    gap: 6px !important;
    flex-wrap: wrap;
    margin-top: 6px !important;
}

.sp-res-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3.5px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sp-res-archive-link,
.sp-res-tax-link {
    text-decoration: none !important;
    cursor: pointer;
}

.sp-res-archive-link:hover,
.sp-res-tax-link:hover {
    color: #ffffff !important;
    border-color: rgba(251, 76, 1, 0.45) !important;
}

.sp-res-rating {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.08) !important;
    border: 1px solid rgba(251, 191, 36, 0.18) !important;
    border-radius: 6px !important;
    padding: 3.5px 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    letter-spacing: 0.5px;
    transition: all 0.2s ease !important;
}

.sp-search-rating-link:hover {
    background: rgba(251, 191, 36, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    transform: scale(1.05);
}

.sp-res-badge.sp-res-type {
    background: rgba(251, 76, 1, 0.08) !important;
    border-color: rgba(251, 76, 1, 0.16) !important;
    color: #fb4c01 !important;
}

.sp-res-badge.sp-res-year {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Quality color pills */
.sp-res-quality.sp-q-4k {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.18) !important;
    color: #ef4444 !important;
}

.sp-res-quality.sp-q-1080p {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.18) !important;
    color: #3b82f6 !important;
}

.sp-res-quality.sp-q-720p,
.sp-res-quality.sp-q-dualaudio {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.18) !important;
    color: #10b981 !important;
}

/* Extra meta info */
.sp-res-genres {
    font-size: 12.5px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500;
}

.sp-res-tags {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-weight: 500;
    line-height: 1.45 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    box-sizing: border-box;
}

.sp-res-tax-link {
    color: inherit !important;
    line-height: 1.35 !important;
}

.sp-res-tax-sep {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.35 !important;
}

.sp-res-cast {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.38) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-res-cast strong {
    color: rgba(255, 255, 255, 0.5);
}

.sp-res-match-tag {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-top: 2px !important;
    font-weight: 500;
}

.sp-res-match-tag strong {
    color: #fb4c01 !important;
    font-weight: 600;
}

.sp-search-cast-link {
    text-decoration: none !important;
    outline: none !important;
    color: inherit !important;
    transition: color 0.2s ease !important;
}

.sp-search-cast-link:hover {
    text-decoration: underline !important;
    color: #ff6a28 !important;
    /* Slightly lighter orange on hover for a premium visual feedback */
}

.sp-search-cast-link:hover strong {
    text-decoration: underline !important;
    color: #ff6a28 !important;
}

/* Did you mean suggestion */
.sp-search-didyoumean {
    background: rgba(251, 76, 1, 0.08);
    border: 1px solid rgba(251, 76, 1, 0.2);
    padding: 10px 18px;
    border-radius: 12px;
    margin: 2px 10px 10px 10px;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
}

.sp-dym-label {
    color: rgba(255, 255, 255, 0.7);
}

.sp-dym-link {
    color: #fb4c01 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.sp-dym-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* No results found */
.sp-search-no-results {
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.sp-search-no-results span {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.sp-search-no-results p {
    margin: 0;
    font-size: 15px !important;
}

/* Animation */
@keyframes spDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .sp-search-item {
        padding: 10px 12px;
        gap: 12px;
    }

    .sp-res-title {
        font-size: 13px !important;
    }

    .sp-res-badges {
        gap: 3px;
    }

    .sp-res-badge {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }

    .sp-res-rating {
        font-size: 9px !important;
    }
}

/* Disable SpCore / Dooplay theme's default search dropdown area completely */
.live-search,
.live_search,
#live_search,
.dt_ajax_search,
.ajax_search {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Force parent header containers of SpCore to allow overflowing search results drop-down */
#header,
.hbox,
.fix-hidden,
.headitems,
#advc-menu {
    overflow: visible !important;
}

/* Custom transparent search bar request overrides */
.sp-live-search-form,
.sp-live-search-container,
.sp-search-field-wrap,
#sp-search-field,
.sp-live-search-form input[type="text"],
.sp-live-search-form input[type="search"],
.sp-live-search-form input[type="text"]:focus,
.sp-live-search-form input[type="search"]:focus {
    background: transparent !important;
    background-color: transparent !important;
}

/* ── ADVANCED FILTERS STYLING ── */

/* Position adjustments for clear, voice & filter toggle buttons inside search field wrap */
#sp-search-field {
    padding-right: 120px !important;
}

.sp-search-clear {
    right: 82px !important;
}

.sp-search-voice {
    position: absolute;
    right: 48px !important;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.sp-search-voice:hover {
    color: #fb4c01 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Pulsing Voice Listening Animation */
.sp-search-voice.listening {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
    animation: spMicPulse 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spMicPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* ── Live Trending Search Tags Suggestions ── */
.sp-trending-wrap {
    padding: 10px 20px 14px 20px;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    box-sizing: border-box;
}

.sp-trending-header {
    font-size: 13px !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.sp-trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-trending-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.sp-trending-tag:hover {
    background: rgba(251, 76, 1, 0.12) !important;
    border-color: rgba(251, 76, 1, 0.35) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 76, 1, 0.25);
}

.sp-search-filter-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.sp-search-filter-toggle:hover,
.sp-search-filter-toggle.active {
    color: #fb4c01 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body.sp-adv-overlay-open {
    overflow: hidden !important;
}

.sp-adv-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 0%, rgba(20, 24, 33, 0.98) 0%, rgba(8, 10, 15, 0.99) 100%) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.008);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-adv-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

body.sp-advanced-search-page {
    margin: 0 !important;
    padding: 0 !important;
    background: radial-gradient(circle at 50% 0%, #151922 0%, #06080c 100%) !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.sp-adv-overlay.sp-adv-page {
    position: relative;
    z-index: 1 !important;
    min-height: 100vh;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    background: transparent !important;
}

/* Premium Floating Glass Card Container */
.sp-adv-overlay-inner {
    width: 95% !important;
    max-width: 1480px !important;
    max-height: calc(100vh - 32px);
    margin: 16px auto !important;
    padding: 34px 28px 42px;
    overflow-y: auto;
    box-sizing: border-box !important;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
}

.sp-adv-page .sp-adv-overlay-inner {
    max-height: none;
    min-height: calc(100vh - 32px);
    overflow: visible;
}

/* Beautiful Close Button */
.sp-adv-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 99;
    text-decoration: none !important;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-adv-close:hover {
    background: rgba(251, 76, 1, 0.2) !important;
    border-color: rgba(251, 76, 1, 0.6) !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 20px rgba(251, 76, 1, 0.25);
}

/* Glowing Title Design */
.sp-adv-title {
    margin: 0 auto 32px !important;
    background: linear-gradient(135deg, #ffffff 40%, #c3dafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.sp-adv-title i {
    color: #fb4c01;
    margin-right: 12px;
    filter: drop-shadow(0 0 10px rgba(251, 76, 1, 0.5));
}

.sp-adv-search-box {
    position: relative;
    margin-bottom: 24px;
}

.sp-adv-input-wrap {
    position: relative;
    width: 100%;
}

.sp-adv-form {
    margin: 0 0 24px;
}

/* Search Box Grid styling */
.sp-adv-search-box-has-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
}

.sp-adv-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    font-size: 16px;
}

/* Premium Search Input Box */
.sp-adv-search-input {
    width: 100% !important;
    height: 64px !important;
    padding: 0 60px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: #fff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    font-size: 17px !important;
    outline: none !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sp-adv-search-input:focus {
    border-color: rgba(251, 76, 1, 0.7) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: 0 0 0 4px rgba(251, 76, 1, 0.12), 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* State-of-the-art Search Button */
.sp-adv-search-submit {
    height: 64px;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ff4c00, #ff781e) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer;
    letter-spacing: 0.5px !important;
    box-shadow: 0 12px 30px rgba(255, 76, 0, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.sp-adv-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 76, 0, 0.38) !important;
}

.sp-adv-search-submit:active {
    transform: translateY(1px);
}

.sp-adv-search-submit i {
    margin-right: 8px;
}

.sp-adv-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px !important;
    transition: all 0.2s ease;
}

.sp-adv-search-clear:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.sp-adv-suggestions,
.sp-adv-select-dropdown {
    background: rgba(10, 13, 20, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.sp-adv-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 12px;
    overflow: hidden;
    z-index: 99;
}

.sp-adv-sugg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sp-adv-sugg-item:hover {
    background: rgba(251, 76, 1, 0.14) !important;
}

.sp-adv-sugg-item img {
    width: 36px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.sp-adv-sugg-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-adv-sugg-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-adv-sugg-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 4px;
}

/* Modern Filters Row */
.sp-adv-filters {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 auto 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.sp-adv-filter-group {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}


.sp-adv-filter-group label {
    display: block;
    margin: 0 0 8px 3px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sp-adv-native-select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 36px 0 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='5 7 10 12 15 7'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.sp-adv-native-select:hover,
.sp-adv-native-select:focus {
    border-color: rgba(251, 76, 1, 0.55) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.sp-adv-native-select option {
    background: #0d1017;
    color: #fff;
}

/* Glassmorphic Advanced Select Dropdowns */
.sp-adv-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-adv-select:hover,
.sp-adv-select.open {
    border-color: rgba(251, 76, 1, 0.55);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sp-adv-select-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
}

.sp-adv-select i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    margin-left: 8px;
    transition: transform 0.25s ease;
}

.sp-adv-select.open i {
    transform: rotate(180deg);
}

.sp-adv-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    border-radius: 12px;
    padding: 8px;
    z-index: 95;
    animation: spDropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-adv-select.open .sp-adv-select-dropdown {
    display: block;
}

.sp-adv-dd-search {
    padding: 2px 2px 8px;
}

.sp-adv-dd-search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    outline: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.sp-adv-dd-search-input:focus {
    border-color: rgba(251, 76, 1, 0.4) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.sp-adv-dd-list {
    max-height: 240px;
    overflow-y: auto;
}

/* Custom dropdown scrollbar */
.sp-adv-dd-list::-webkit-scrollbar {
    width: 4px;
}

.sp-adv-dd-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.sp-adv-dd-item {
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sp-adv-dd-item:hover,
.sp-adv-dd-item.active {
    background: rgba(251, 76, 1, 0.15) !important;
    color: #fff !important;
}

/* Results header */
.sp-adv-results-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 2px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Cinematic Cards Grid */
.sp-adv-results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 24px;
    min-height: 180px;
}

.sp-adv-card {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    min-width: 0;
}

/* Modern Poster Card styling */
.sp-adv-card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.sp-adv-card:hover .sp-adv-card-poster {
    transform: translateY(-8px);
    border-color: rgba(251, 76, 1, 0.45);
    box-shadow: 0 20px 45px rgba(251, 76, 1, 0.18), 0 15px 35px rgba(0, 0, 0, 0.55);
}

.sp-adv-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sp-adv-card:hover .sp-adv-card-poster img {
    transform: scale(1.05);
}

.sp-adv-card-poster.no-poster::after {
    content: "No Poster";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
}

/* Sleek Play Button Overlay */
.sp-adv-card-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 15, 0.4);
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.sp-adv-card-overlay i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fb4c01;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(251, 76, 1, 0.4);
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-adv-card:hover .sp-adv-card-overlay {
    opacity: 1;
}

.sp-adv-card:hover .sp-adv-card-overlay i {
    transform: scale(1);
}

/* Beautiful Rating & Quality Badges */
.sp-adv-card-rating,
.sp-adv-card-quality {
    position: absolute;
    top: 10px;
    border-radius: 30px;
    padding: 5px 9px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sp-adv-card-rating {
    left: 10px;
    background: rgba(10, 13, 20, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-adv-card-rating i {
    color: #ffb800;
    margin-right: 4px;
}

.sp-adv-card-quality {
    right: 10px;
    background: rgba(251, 76, 1, 0.92) !important;
    letter-spacing: 0.2px;
}

.sp-adv-card-info {
    padding: 14px 4px 0;
}

.sp-adv-card-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease;
}

.sp-adv-card:hover .sp-adv-card-title {
    color: #ff7524 !important;
}

.sp-adv-card-meta {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 700;
}

/* Premium Pagination */
.sp-adv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.sp-adv-page-btn,
.sp-adv-page-ellipsis {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
}

.sp-adv-page-btn {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sp-adv-page-btn:hover,
.sp-adv-page-btn.active {
    background: linear-gradient(135deg, #ff4c00, #ff7a1a) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 76, 0, 0.25);
}

.sp-adv-page-ellipsis {
    color: rgba(255, 255, 255, 0.35);
}

.sp-adv-loading,
.sp-adv-error {
    margin: 36px auto;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.sp-main-suggestions {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.sp-main-suggestions-title {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-main-suggestion-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif !important;
    transition: background 0.2s ease !important;
}

.sp-main-suggestion-item:hover {
    background: rgba(251, 76, 1, 0.14) !important;
}

.sp-main-suggestion-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 700;
}

.sp-main-suggestion-meta {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 700;
}

/* Responsive Styling Enhancements */
@media (max-width: 1280px) {
    .sp-adv-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .sp-adv-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .sp-adv-results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 18px;
    }
}

@media (max-width: 768px) {
    .sp-adv-overlay-inner {
        width: calc(100% - 24px) !important;
        max-height: calc(100vh - 20px) !important;
        margin: 12px auto !important;
        padding: 24px 16px 32px !important;
        border-radius: 16px !important;
    }

    .sp-adv-title {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }

    .sp-adv-search-input {
        height: 56px !important;
        font-size: 15px !important;
        padding: 0 50px !important;
        border-radius: 10px !important;
    }

    .sp-adv-search-box-has-button {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-adv-search-submit {
        height: 52px;
        border-radius: 10px !important;
        font-size: 14px !important;
    }

    .sp-adv-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px;
    }

    .sp-adv-native-select,
    .sp-adv-select {
        min-height: 44px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    .sp-adv-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .sp-adv-results-info {
        flex-direction: row;
        font-size: 12px;
        margin: 12px 2px 14px;
    }

    .sp-adv-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .sp-adv-overlay-inner {
        width: calc(100% - 16px) !important;
        margin: 8px auto !important;
        padding: 16px 12px 24px !important;
    }

    .sp-adv-filters {
        grid-template-columns: 1fr !important;
        /* 1 column layout on mobile devices */
        gap: 10px;
    }

    .sp-adv-title {
        font-size: 20px !important;
    }

    .sp-adv-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
    }
}

/* ── Ghost Autocomplete / Suggestion Ghost Text ── */
.sp-search-field-wrap,
.sp-adv-search-box {
    position: relative;
}

.sp-search-ghost,
.sp-adv-ghost {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    white-space: pre;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    z-index: 1;
    display: none !important;
    align-items: center;
    background: transparent !important;
}

.sp-search-ghost.visible,
.sp-adv-ghost.visible {
    display: flex !important;
}

.sp-search-ghost {
    left: 48px !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.45) !important;
}

.sp-adv-ghost {
    left: 60px !important;
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Force exact matching 64px height for advanced search page live search bar */
.sp-adv-search-box .sp-live-search-container,
.sp-adv-search-box .sp-search-field-wrap,
.sp-adv-search-box #sp-search-field {
    height: 64px !important;
}

.sp-adv-search-box #sp-search-field {
    font-size: 17px !important;
    padding-left: 60px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: #fff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.sp-adv-search-box #sp-search-field:focus {
    border-color: rgba(251, 76, 1, 0.7) !important;
}

.sp-adv-search-box .sp-search-icon {
    left: 22px !important;
}

/* Force inline search and search page inner containers to expand fully without any viewport height limitations */
.sp-adv-page .sp-adv-overlay-inner,
.inline-shortcode .sp-adv-overlay-inner {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}
