/* css style netflix */
.slider-wrapper {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
    padding: 0;
    transition: padding 0.3s ease;
}

.slider-wrapper:hover {
    padding: 0 35px;
}

.movie-container {
    display: flex;
    padding: 10px 0;
    position: relative;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #222, #222 10px, #333 10px, #333 20px);
    transition: background 0.5s ease;
}

.movie-container .owl-carousel {
    width: 100%;
}

.movie-container .owl-stage {
    display: flex;
}

.movie-container .owl-item {
    width: auto !important;
    margin-right: 10px !important;
}

.movie-item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-image: url('https://file001.nxtengine.net/theme/v2025/bg.png');
    background-size: cover;
    background-repeat: repeat;
}

.movie-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.movie-image {
    position: relative;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.3s ease;
}

.movie-image::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 3px solid #e5e7eb;
    border-radius: 11px;
    pointer-events: none;
}

.movie-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-image img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.movie-image .badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.movie-image .badge img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white) drop-shadow(0 0 1px white);
}

@media (min-width: 768px) {
    .movie-image .badge {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 1200px) {
    .movie-image .badge {
        width: 38px;
        height: 38px;
    }
}

/* Button slide */
.btn-slide {
    display: none;
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: transparent;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.slider-wrapper:hover .btn-slide {
    display: block;
}

.btn-slide-left {
    left: 1px;
    border-width: 12px 18px 12px 0;
    border-color: transparent white transparent transparent;
}

.btn-slide-right {
    right: 1px;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent white;
}

.btn-slide:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Rank number */
.rank-number {
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    font-size: 15rem;
    line-height: 1;
    color: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-right: -50px;
    margin-top: 55px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    -webkit-text-stroke: 2px white;
}

.rank-number:hover {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 1);
    color: white;
    -webkit-text-stroke: 0px transparent;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .rank-number {
        font-size: 12rem;
        margin-right: -35px;
    }

    .movie-image {
        width: 225px;
    }
}

@media (max-width: 992px) {
    .rank-number {
        font-size: 10rem;
        margin-right: -20px;
    }

    .movie-image {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .rank-number {
        font-size: 8rem;
        margin-right: -25px;
    }

    .movie-image {
        width: 175px;
    }
}

@media (max-width: 576px) {
    .rank-number {
        font-family: 'Inter', sans-serif;
        font-size: 6rem;
        margin-right: -22px;
    }

    .movie-image {
        width: 150px;
    }
}

.brand-blink {
    border: 2px solid #aaa;
    border-radius: 12px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 40%, #c8c8c8 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -4px 6px rgba(0, 0, 0, 0.3),
        0 6px 10px rgba(0, 0, 0, 0.4),
        0 3px 0 #aaa;
    position: relative;
    overflow: hidden;
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brand-blink::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.brand-blink:active {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 #aaa;
    transform: translateY(2px);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.brand-glow {
    border: 2px solid rgb(247, 228, 122);
    border-radius: 12px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #555 0%, #222 40%, #000 100%);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -6px 8px rgba(0, 0, 0, 0.7),
        0 10px 15px rgba(0, 0, 0, 0.7),
        0 4px 0 #111,
        0 0 20px rgb(252, 232, 119);
    position: relative;
    overflow: hidden;
    color: #fce877;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brand-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.brand-glow:active {
    box-shadow:
        inset 0 3px 5px rgba(0, 0, 0, 0.6),
        inset 0 -3px 4px rgba(0, 0, 0, 0.8),
        0 4px 6px rgba(0, 0, 0, 0.5),
        0 1px 0 #111,
        0 0 25px #ffd700;
    transform: translateY(2px);
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
    }

    50% {
        box-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700;
    }
}

@media (max-width: 768px) {

    .brand-blink,
    .brand-glow {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {

    .brand-blink,
    .brand-glow {
        padding: 8px 12px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }
}

.btn.no-glass {
    all: unset;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: #343a40;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

a.btn:not(.no-glass),
button.btn:not(.no-glass),
input.btn:not(.no-glass) {
    position: relative;
    border: none;
    border-radius: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 6px 0 rgba(0, 0, 0, 0.3),
        0 8px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease-in-out;
    top: 0;
    padding: 0.75rem 1.2rem;
    color: #111;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
}

a.btn:not(.no-glass)::after,
button.btn:not(.no-glass)::after,
input.btn:not(.no-glass)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    z-index: 1;
}

a.btn:not(.no-glass) span,
button.btn:not(.no-glass) span,
input.btn:not(.no-glass) span {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

a.btn:not(.no-glass):hover,
button.btn:not(.no-glass):hover,
input.btn:not(.no-glass):hover {
    color: #fff;
}

a.btn:not(.no-glass):active,
button.btn:not(.no-glass):active,
input.btn:not(.no-glass):active {
    top: 4px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 6px rgba(0, 0, 0, 0.15);
}

.img-3d {
    display: block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    animation: float3d 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes float3d {
    0% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(0);
    }

    25% {
        transform: perspective(1000px) rotateX(-1deg) rotateY(3deg) translateY(-2px);
    }

    50% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(0);
    }

    75% {
        transform: perspective(1000px) rotateX(3deg) rotateY(1deg) translateY(2px);
    }

    100% {
        transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(0);
    }
}

@media (max-width: 768px) {
    .img-3d {
        animation: float3d-mobile 5s ease-in-out infinite;
    }

    @keyframes float3d-mobile {
        0% {
            transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(0);
        }

        50% {
            transform: perspective(800px) rotateX(-4deg) rotateY(4deg) translateY(3px);
        }

        100% {
            transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(0);
        }
    }
}