﻿/* =============================================
   MOVIES PAGE — Premium Styles
   ============================================= */

/* ----------------------------------------------
   HERO BANNER (Cinematic)
   ---------------------------------------------- */
.movies-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    background: #0d0b13;
    overflow: hidden;
}

.movies-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.movies-hero-backdrop.active {
    opacity: 1;
}

.movies-hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0d0b13 15%, rgba(13,11,19,0.3) 50%, rgba(13,11,19,0.7) 100%),
                linear-gradient(0deg, #0d0b13 0%, rgba(13,11,19,0.1) 40%, transparent 60%);
    z-index: 1;
}

.movies-hero-backdrop.ken-burns {
    animation: kenBurns 8s ease forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1.15); }
    100% { transform: scale(1.08); }
}

.movies-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.movies-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.movies-hero-content {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
    padding-top: 8rem;
}

.movies-hero-poster-wrap {
    flex: 0 0 22rem;
    max-width: 22rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 4rem rgba(0,0,0,0.6);
    transform: translateY(3rem);
}

.movies-hero-poster {
    width: 100%;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movies-hero-info {
    flex: 1;
    padding-bottom: 1.5rem;
}

.movies-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.3);
}

.movies-hero-badge::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0.8rem rgba(123, 77, 255, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

.movies-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-shadow: 0 0.2rem 1rem rgba(0,0,0,0.4);
}

.movies-hero-year {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    margin-left: 0.8rem;
}

.movies-hero-meta {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.6rem;
    text-shadow: 0 0.1rem 0.3rem rgba(0,0,0,0.3);
}

.movies-hero-meta i {
    color: #f5c518;
    margin-right: 0.2rem;
}

.movies-hero-genres {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.movies-hero-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.6rem;
}

.movies-hero-extra i {
    margin-right: 0.3rem;
    color: rgba(255,255,255,0.2);
}

.movies-hero-genre {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 0.3rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.movies-hero-overview {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 60rem;
    text-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.3);
}

.movies-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.movies-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movies-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: #fff;
}

.movies-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.movies-hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Hero bottom controls */
.movies-hero-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.2rem 0 2rem;
    background: linear-gradient(0deg, rgba(13,11,19,0.6), transparent);
}

.movies-hero-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 4;
    overflow: hidden;
}

.movies-hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), #a855f7);
    transition: none;
}

.movies-hero-progress-bar.animate {
    width: 100%;
    transition: width 6s linear;
    box-shadow: 0 0 12px rgba(123,77,255,0.4);
}

.movies-hero-ctrl-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.movies-hero-ctrl-btn:hover {
    background: rgba(123,77,255,0.2);
    border-color: rgba(123,77,255,0.3);
    color: #fff;
}

.movies-hero-dots {
    display: flex;
    gap: 0.5rem;
}

.movies-hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.movies-hero-dot.active {
    background: var(--color-primary);
    transform: scale(1.4);
    box-shadow: 0 0 1rem rgba(123,77,255,0.4);
}

/* ----------------------------------------------
   SECTION — Shared layout
   ---------------------------------------------- */
.movies-section {
    position: relative;
    background: #0d0b13;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.movies-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,77,255,0.08), transparent);
}
.movies-section .container,
.movies-hero-section .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.movies-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.movies-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.movies-section-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.2);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

.movies-section-seeall {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.movies-section-seeall:hover {
    color: var(--color-primary);
}

/* ----------------------------------------------
   CARD ROW (Horizontal slider)
   ---------------------------------------------- */
.movies-row-wrap {
    position: relative;
}

.movies-row {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 0.4rem;
}

.movies-row::-webkit-scrollbar {
    display: none;
}

.movies-row-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,11,19,0.7);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.movies-row-arrow:hover {
    background: rgba(13,11,19,0.9);
    color: #fff;
}

.movies-row-arrow.left {
    left: 0;
    border-radius: 0 0.6rem 0.6rem 0;
}

.movies-row-arrow.right {
    right: 0;
    border-radius: 0.6rem 0 0 0.6rem;
}

/* ----------------------------------------------
   MOVIE CARD (Netflix-style)
   ---------------------------------------------- */
.movies-card {
    flex: 0 0 160px;
    width: 160px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: rgba(255,255,255,0.02);
    scroll-snap-align: start;
}

.movies-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(123, 77, 255, 0.2), 0 0 30px rgba(123, 77, 255, 0.08);
    border-color: rgba(123, 77, 255, 0.25);
    z-index: 3;
}

.movies-card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movies-card-fallback {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.movies-card-title-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem 0.5rem 0.4rem;
    background: linear-gradient(to top, rgba(13,11,19,0.92) 30%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.movies-card-title-strip-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movies-card-new-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,200,83,0.3);
    pointer-events: none;
}

.movies-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,11,19,0.97) 15%, rgba(13,11,19,0.5) 55%, transparent 75%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.8rem;
    pointer-events: none;
    z-index: 2;
}

.movies-card:hover .movies-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.movies-card-overlay-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movies-card-overlay-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.movies-card-overlay-year {
    font-size: 1rem;
    color: rgba(255,255,255,0.35);
}

.movies-card-overlay-date {
    font-size: 1rem;
    font-weight: 600;
    color: #f7c948;
}

.movies-card-overlay-date i {
    margin-right: 0.2rem;
    font-size: 0.65rem;
}

.movies-card-overlay-rating i {
    color: #f5c518;
    font-size: 0.65rem;
}

.movies-card-overlay-rating {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

.movies-card-overlay-rating i {
    color: #f5c518;
    font-size: 0.55rem;
    margin-right: 0.05rem;
}

.movies-card-overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movies-card-overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 1rem rgba(123,77,255,0.4);
}

/* ----------------------------------------------
   SKELETON LOADING
   ---------------------------------------------- */
.movies-skeleton-row {
    display: flex;
    gap: 0.6rem;
    overflow: hidden;
}

.movies-skeleton-card {
    flex: 0 0 150px;
    width: 150px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}

.movies-skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ----------------------------------------------
   NUMBERED CARDS
   ---------------------------------------------- */
.movies-card-number {
    position: absolute;
    left: -1.2rem;
    bottom: 0.5rem;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    pointer-events: none;
    z-index: 0;
    font-family: 'Sora', sans-serif;
    -webkit-text-stroke: 2px rgba(255,255,255,0.08);
    text-stroke: 2px rgba(255,255,255,0.08);
}

.movies-card-numbered .movies-card-overlay {
    padding-left: 2rem;
}

.movies-card-numbered {
    flex: 0 0 180px;
    width: 180px;
}

/* ----------------------------------------------
   CARD OVERLAY — GENRE TAG + ADD TO LIST
   ---------------------------------------------- */
.movies-card-overlay-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
    display: block;
}

.movies-card-overlay-btns {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.movies-card-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 0.65rem;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    transition: all 0.2s ease;
}

.movies-card-list-btn:hover {
    background: rgba(123,77,255,0.2);
    border-color: rgba(123,77,255,0.3);
    color: #fff;
}

.movies-card-list-btn.added {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ----------------------------------------------
   HERO — FEATURED BADGE
   ---------------------------------------------- */
.movies-hero-featured {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 3;
    display: none;
}

.movies-hero-featured.show {
    display: block;
}

.movies-hero-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}

.movies-hero-featured-badge i {
    font-size: 0.55rem;
}

/* ----------------------------------------------
   SCROLL TO TOP
   ---------------------------------------------- */
.movies-scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 99;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: rgba(123,77,255,0.15);
    border: 1px solid rgba(123,77,255,0.2);
    color: var(--color-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.movies-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.movies-scroll-top:hover {
    background: rgba(123,77,255,0.25);
    border-color: rgba(123,77,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(123,77,255,0.2);
}

/* ----------------------------------------------
    TRAILER MODAL
    ---------------------------------------------- */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trailer-modal.open {
    opacity: 1;
    visibility: visible;
}

.trailer-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.trailer-modal-wrap {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #0d0b13;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.trailer-modal.open .trailer-modal-wrap {
    transform: scale(1);
}

.trailer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.trailer-modal-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.trailer-modal-label i {
    margin-right: 0.4rem;
    color: var(--color-primary);
}

/* =============================================
   GENRE FILTER BAR
   ============================================= */
.movies-genre-bar {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0.3rem 0 0.8rem;
}
.movies-genre-bar::-webkit-scrollbar { display: none; }
.movies-genre-btn {
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: 'Sora', sans-serif;
}
.movies-genre-btn:hover {
    background: rgba(123,77,255,0.1);
    border-color: rgba(123,77,255,0.2);
    color: #fff;
}
.movies-genre-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(123,77,255,0.25);
}

/* =============================================
   RATING BADGE ON POSTER
   ============================================= */
.movies-card-rating-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 4px;
    pointer-events: none;
    line-height: 1.3;
}
.movies-card-rating-badge i {
    color: #f5c518;
    font-size: 0.45rem;
}

/* =============================================
   OVERLAY SYNOPSIS
   ============================================= */
.movies-card-overlay-synopsis {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   RESULT COUNT
   ============================================= */
.movies-section-count {
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(255,255,255,0.12);
    margin-left: 0.4rem;
}

/* =============================================
   BROWSE SECTION HEADER
   ============================================= */
.movies-browse-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.2);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

/* =============================================
   CONTENT TYPE BADGE (TV / Anime)
   ============================================= */
.movies-card-type-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 3;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    pointer-events: none;
    line-height: 1.3;
}
.movies-card-type-badge.tv {
    background: linear-gradient(135deg, #7c5cff, #a855f7);
    color: #fff;
}
.movies-card-type-badge.anime {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

/* =============================================
   ORIGIN COUNTRY BADGE (TV)
   ============================================= */
.movies-card-country-badge {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    z-index: 3;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    line-height: 1.3;
}

/* =============================================
   GENRE BAR RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .movies-genre-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

.trailer-modal-close {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.trailer-modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.trailer-modal-iframe-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.trailer-modal-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ----------------------------------------------
    CINEMATIC PRELOADER
    ---------------------------------------------- */
.cinema-preloader {
    background: #08070e !important;
}

.cinema-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.cinema-preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cinema-preloader-logo-wrap {
    position: relative;
}

.cinema-preloader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.12em;
    animation: cinemaLogoPulse 2s ease-in-out infinite;
}

@keyframes cinemaLogoPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(123,77,255,0.15); }
    50% { text-shadow: 0 0 40px rgba(123,77,255,0.35); }
}

.cinema-preloader-bar-wrap {
    width: 220px;
    height: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
}

.cinema-preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c5cff, #b45eff);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(123,77,255,0.3);
    animation: cinemaLoaderBar 1.8s ease-in-out infinite;
}

@keyframes cinemaLoaderBar {
    0%   { width: 0%;   margin-left: 0; }
    50%  { width: 100%; margin-left: 0; }
    100% { width: 0%;   margin-left: 100%; }
}

.cinema-preloader-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.12);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: cinemaTextFade 2s ease-in-out infinite;
}

@keyframes cinemaTextFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.cinema-preloader.cinema-exit {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.cinema-preloader.cinema-exit.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ----------------------------------------------
    CURSOR FOLLOWER
    ---------------------------------------------- */
.cursor-follower {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,255,0.12), transparent 70%);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%) translate(0, 0);
    mix-blend-mode: screen;
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .cursor-follower {
        opacity: 1;
    }
}

/* ----------------------------------------------
    FADE IN ANIMATION
    ---------------------------------------------- */
.movies-fade-section {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.movies-fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------
    INFINITE SCROLL GRID
    ---------------------------------------------- */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}

.movies-grid .movies-card {
    flex: none;
    width: 100%;
    scroll-snap-align: none;
}

.movies-infinite-loader {
    text-align: center;
    padding: 2rem 0 1rem;
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    pointer-events: none;
}

.movies-loading-spinner i {
    margin-right: 0.4rem;
}

@media (max-width: 1200px) {
    .movies-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
    .movies-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .movies-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .movies-grid { grid-template-columns: repeat(2, 1fr); }
    .movies-infinite-loader { font-size: 0.75rem; padding: 1.5rem 0 0.5rem; }
}

/* ----------------------------------------------
    FOOTER
    ---------------------------------------------- */
.movies-footer {
    text-align: center;
    padding: 2.5rem 0;
    background: #0a0812;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.movies-footer p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.15);
}

/* ----------------------------------------------
   RESPONSIVE
   ---------------------------------------------- */
@media (max-width: 992px) {
    .movies-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .movies-hero-poster-wrap {
        flex: 0 0 12rem;
        max-width: 12rem;
        transform: translateY(0);
    }
    .movies-hero-title {
        font-size: 2.4rem;
    }
    .movies-hero-year {
        font-size: 1.4rem;
    }
    .movies-hero-content {
        padding-top: 10rem;
    }
    .movies-card-number {
        font-size: 4rem;
        left: -0.8rem;
    }
}

@media (max-width: 768px) {
    .movies-hero-section {
        min-height: 400px;
        height: 60vh;
    }
    .movies-hero-poster-wrap {
        display: none;
    }
    .movies-hero-info {
        padding-bottom: 0;
    }
    .movies-hero-title {
        font-size: 2rem;
    }
    .movies-hero-year {
        font-size: 1.2rem;
        margin-left: 0.4rem;
    }
    .movies-hero-overview {
        -webkit-line-clamp: 2;
        font-size: 1rem;
    }
    .movies-hero-genre {
        font-size: 0.6rem;
    }
    .movies-hero-btn, .movies-hero-btn-outline {
        font-size: 1rem;
        padding: 0.7rem 1.4rem;
    }
    .movies-hero-content {
        padding-top: 8rem;
    }
    .movies-hero-extra {
        font-size: 0.7rem;
        gap: 0.6rem;
    }
    .movies-section-title {
        font-size: 1.4rem;
    }
    .movies-section-subtitle {
        font-size: 0.65rem;
    }
    .movies-section {
        padding: 3.5rem 0 3rem;
    }
    .movies-card {
        flex: 0 0 120px;
        width: 120px;
    }
    .movies-card-numbered {
        flex: 0 0 140px;
        width: 140px;
    }
    .movies-card-number {
        font-size: 3.5rem;
        left: -0.6rem;
    }
    .movies-skeleton-card {
        flex: 0 0 120px;
        width: 120px;
    }
    .movies-scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .movies-hero-section {
        min-height: 350px;
        height: 50vh;
    }
    .movies-hero-title {
        font-size: 1.6rem;
    }
    .movies-hero-meta {
        font-size: 1rem;
    }
    .movies-hero-extra {
        font-size: 0.65rem;
        gap: 0.4rem;
    }
    .movies-hero-content {
        padding-top: 7rem;
    }
    .movies-card {
        flex: 0 0 100px;
        width: 100px;
    }
    .movies-card-numbered {
        flex: 0 0 115px;
        width: 115px;
    }
    .movies-card-number {
        font-size: 2.8rem;
        left: -0.4rem;
    }
    .movies-skeleton-card {
        flex: 0 0 100px;
        width: 100px;
    }
    .movies-row {
        gap: 0.4rem;
    }
    .movies-row-arrow {
        display: none;
    }
    .trailer-modal-wrap {
        width: 96%;
        border-radius: 0.6rem;
    }
    .trailer-modal-header {
        padding: 0.6rem 1rem;
    }
    .trailer-modal-label {
        font-size: 0.75rem;
    }
}
