        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            text-decoration: none;
            list-style: none;
            scroll-behavior: smooth;
        }
         :root {
            --text-color: #fff;
            --bg-color: #0f1419;
            --second-bg-color: #1a1f27;
            --main-color: #006bd6;
            --other-color: #c3cad5;
            --h1-font: 4.5rem;
            --h2-font: 2.9rem;
            --p-font: 1rem;
        }
        body {
            color: var(--text-color);
            background: var(--bg-color);
            overflow-x: hidden;
            padding-bottom: calc(70px + env(safe-area-inset-bottom)); 
        }
        header {
            position: fixed;
            width: 100%;
            top: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 5%;
            background: rgba(15, 20, 25, 0.9);
            backdrop-filter: blur(10px);
            transition: all .50s ease;
        }
        .logo {
            font-size: 28px;
            color: var(--text-color);
            font-weight: 700;
        }
        span {
            color: var(--main-color);
        }
        .navlist {
            display: flex;
        }
        .navlist a {
            font-size: var(--p-font);
            font-weight: 500;
            color: var(--other-color);
            margin-left: 25px;
            transition: all .50s ease;
        }
        .navlist a:hover, .navlist a.active {
            color: var(--main-color);
        }
        #menu-icon {
            font-size: 32px;
            z-index: 10001;
            cursor: pointer;
            display: none;
        }
        .h-btn {
            display: inline-block;
            padding: 10px 22px;
            background: transparent;
            color: var(--main-color);
            border: 2px solid var(--main-color);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            transition: all .50s ease;
        }
        .h-btn:hover {
            background: var(--main-color);
            color: var(--bg-color);
            box-shadow: 0 0 15px var(--main-color);
        }

   
        .hero {
            width: 100%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 5% 60px;
            position: relative;
        }
        .hero-content {
            width: 100%;
            max-width: 1400px;
            text-align: center;
        }
        .hero-title {
            font-size: 2.8rem;
            margin-bottom: 10px;
            font-weight: 700;
        }
        .hero-subtitle {
            font-size: 1.1rem;
            color: var(--other-color);
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .search-section {
            max-width: 700px;
            margin: 0 auto 40px;
        }
        .input-group {
            margin-bottom: 15px;
            position: relative;
        }
        .input-group input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 12px;
            border: 2px solid var(--main-color);
            background: var(--second-bg-color);
            color: var(--text-color);
            font-size: 16px;
            transition: all 0.3s ease;
        }
        .input-group input:focus {
            outline: none;
            box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
        }
        .input-group input::placeholder {
            color: var(--other-color);
        }
        .search-btn {
            width: 100%;
            padding: 16px;
            background: var(--main-color);
            color: var(--bg-color);
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .search-btn:hover {
            background: transparent;
            color: var(--main-color);
            box-shadow: 0 0 15px var(--main-color);
        }
        
        .hero-slider {
            position: relative;
            height: 500px;
            overflow: hidden;
            margin: 30px 0;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        .swiper {
            width: 100%;
            height: 100%;
        }
        .swiper-slide {
            position: relative;
            background-size: cover;
            background-position: center;
        }
        .swiper-button-next, .swiper-button-prev {
            color: var(--text-color);
            width: 42px;
            height: 42px;
            background: rgba(0,0,0,0.35);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            backdrop-filter: blur(4px);
        }
        .swiper-button-next:after, .swiper-button-prev:after {
            font-size: 18px;
            font-weight: 700;
        }
        .slide-content {
            position: absolute;
            bottom: 15%;
            left: 40px;
            max-width: 600px;
            z-index: 10;
            text-align: left;
        }
        .slide-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        }
        .slide-meta {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .rating {
            color: #46d369;
            font-weight: 600;
        }
        .year, .duration {
            color: var(--other-color);
        }
        .quality {
            background-color: rgba(255,255,255,0.2);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        .slide-description {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.9);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .slide-actions {
            display: flex;
            gap: 1rem;
        }
        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            font-size: 1rem;
            gap: 8px;
        }
        .btn-play {
            background-color: var(--main-color);
            color: var(--bg-color);
        }
        .btn-play:hover {
            background-color: transparent;
            color: var(--main-color);
            box-shadow: 0 0 15px var(--main-color);
        }
        .btn-info {
            background-color: rgba(109, 109, 110, 0.7);
            color: white;
        }
        .btn-info:hover {
            background-color: rgba(109, 109, 110, 0.5);
        }
        .swiper-pagination-bullet {
            background: white;
            opacity: 0.5;
            width: 12px;
            height: 12px;
        }
        .swiper-pagination-bullet-active {
            background: var(--main-color);
            opacity: 1;
        }
        
        .nav-tabs {
            display: flex;
            gap: 1rem;
            margin: 2rem 0;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            scrollbar-width: none;
            justify-content: center;
        }
        .nav-tabs::-webkit-scrollbar {
            display: none;
        }
        .nav-tab {
            padding: 12px 24px;
            background: var(--second-bg-color);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            color: var(--other-color);
            white-space: nowrap;
            font-size: 0.95rem;
            font-weight: 500;
        }
        .nav-tab.active {
            background: var(--main-color);
            color: var(--bg-color);
        }
        .nav-tab:hover {
            background: var(--main-color);
            color: var(--bg-color);
        }
        .content-section {
            padding: 40px 5%;
            max-width: 1400px;
            margin: 0 auto;
        }
        .section {
            margin-bottom: 3rem;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .section-title {
            font-size: 21px;
            font-weight: 600;
        }
        .view-all {
            color: var(--main-color);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            font-weight: 500;
        }
        .view-all:hover {
            text-decoration: underline;
        }
        .movies-grid {
            display: grid;
            gap: 1.5rem;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        }
        .movie-card {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            background: var(--second-bg-color);
        }
        .movie-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }
        .movie-poster {
            width: 100%;
            height: 260px;
            object-fit: cover;
            display: block;
        }
        .movie-content {
            padding: 1rem;
        }
        .movie-title {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.3;
        }
        .movie-meta {
            color: var(--other-color);
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .movie-rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #ffd700;
            font-size: 0.9rem;
        }

    
.horizontal-scroll-section {
    margin-bottom: 3rem;
}

.horizontal-scroll-controls {
    position: relative;
    display: block;
}

.horizontal-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 36px; 
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--second-bg-color);
    flex: 1;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--second-bg-color);
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.horizontal-movie-card {
    min-width: 200px;
    max-width: 200px; 
    flex-shrink: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    background: var(--second-bg-color);
    display: flex;
    flex-direction: column; 
    height: auto; 
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    scroll-snap-align: start;
}

.horizontal-movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.horizontal-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.horizontal-content {
    padding: 14px;
    flex: 1; 
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 90px; 
    width: auto;
}

.horizontal-title {
    font-size: 1rem; 
    margin-bottom: 8px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em; 
    flex: 1; 
}

.horizontal-meta {
    color: var(--other-color);
    font-size: 12px; 
    margin-bottom: 8px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0; 
}

.horizontal-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem; 
    color: #ffd700;
    font-size: 0.95rem; 
    flex-shrink: 0; 
}

.h-scroll-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.45);
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.h-scroll-btn:hover { transform: translateY(-1px); background: rgba(0,0,0,0.6); }
.h-scroll-btn.disabled { opacity: 0.3; pointer-events: none; }
.h-scroll-prev { left: 8px; }
.h-scroll-next { right: 8px; }


.horizontal-scroll-controls::before,
.horizontal-scroll-controls::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 1;
}
.horizontal-scroll-controls::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color) 0%, rgba(15,20,25,0) 100%);
}
.horizontal-scroll-controls::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-color) 0%, rgba(15,20,25,0) 100%);
}


.horizontal-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.horizontal-badges-right {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(3px);
}
.badge-type { background: rgba(0,107,214,0.7); border-color: rgba(255,255,255,0.2); }
.badge-hd { background: rgba(0,0,0,0.55); }
.badge-rating { background: rgba(0,0,0,0.55); color: #ffd700; }

       
        .search-results-section {
            margin-top: 2rem;
            display: none;
        }
        
        .search-results-section.active {
            display: block;
        }
        
        .search-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .clear-search {
            background: var(--second-bg-color);
            color: var(--text-color);
            border: 1px solid var(--main-color);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .clear-search:hover {
            background: var(--main-color);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 1rem;
        }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-container {
            background: var(--bg-color);
            border-radius: 16px;
            max-width: 1000px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid var(--main-color);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
        }
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: white;
            transition: color 0.3s;
            z-index: 10;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-close:hover {
            background: rgba(0, 0, 0, 0.7);
        }
        .modal-content {
            padding: 2rem;
        }
        .movie-detail-header {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        .movie-detail-poster {
            width: 280px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .movie-detail-info {
            flex: 1;
        }
        .movie-detail-title {
            font-size: 2rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }
        .movie-detail-meta {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .meta-item {
            background: var(--second-bg-color);
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .movie-detail-overview {
            margin-bottom: 2rem;
            line-height: 1.6;
            color: var(--other-color);
            font-size: 1rem;
        }
        .download-section {
            margin-top: 1rem;
            margin-bottom: 1.5rem;
            padding: 1.5rem;
            background: var(--second-bg-color);
            border-radius: 12px;
            border: 1px solid rgba(229, 9, 20, 0.3);
        }
        .download-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--main-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .download-title::before {
            content: "↓";
            font-size: 1.1rem;
        }
        .download-options {
            display: grid;
            gap: 1rem;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }
        .download-button {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 14px;
            background: var(--main-color);
            color: var(--bg-color);
            border-radius: 10px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            justify-content: center;
            font-size: 0.95rem;
        }
        .download-button:hover {
            background: transparent;
            color: var(--main-color);
            box-shadow: 0 0 15px var(--main-color);
        }
        .season-selector {
            margin: 1.5rem 0;
        }
        .season-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--main-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .episodes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
            gap: 0.8rem;
            margin-bottom: 1.5rem;
        }
        .episode-card {
            background: var(--second-bg-color);
            border-radius: 8px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        .episode-card:hover {
            background: rgba(229, 9, 20, 0.2);
        }
        .episode-card.active {
            background: var(--main-color);
            color: var(--bg-color);
            border-color: var(--main-color);
        }
        .episode-number {
            font-weight: 600;
            font-size: 0.9rem;
        }
        .current-episode {
            background: var(--second-bg-color);
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
        }
        .current-episode-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--main-color);
        }
        .cast-section {
            margin-top: 2rem;
        }
        .cast-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--main-color);
        }
        .cast-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 1.5rem;
        }
        .cast-card {
            text-align: center;
        }
        .cast-photo {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 0.8rem;
            border: 2px solid var(--main-color);
        }
        .cast-name {
            font-weight: 600;
            margin-bottom: 0.3rem;
            font-size: 0.9rem;
        }
        .cast-character {
            color: var(--other-color);
            font-size: 0.8rem;
        }
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin: 1.5rem 0;
            flex-wrap: wrap;
        }
        .loading {
            display: flex;
            justify-content: center;
            padding: 3rem;
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: var(--main-color);
            animation: spin 1s ease-in-out infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        
        .site-footer {
            margin-top: 5rem;
            padding-top: 3rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            background: var(--second-bg-color);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .footer-section {
            padding: 1rem;
        }

        .footer-title {
            color: var(--main-color);
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
               font-size: 17px;
        }

        .footer-links a:hover {
            color: white;
            text-decoration: underline;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            font-size: 1.5rem;
            color: rgba(255, 255, 255, 0.8);
            transition: color 0.3s;
        }

        .social-icon:hover {
            color: var(--main-color);
        }

        .footer-bottom {
            text-align: center;
            padding: 2rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            max-width: 1200px;
            margin: 0 auto;
        }

        .legal-links {
            margin-top: 1rem;
        }

        .legal-links a {
            color: rgba(255, 255, 255, 0.7);
            margin: 0 0.5rem;
        }

        .trailer-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 1rem;
        }
        
      .trailer-modal-overlay.active {
            opacity: 1;
            visibility: visible;
       }
        
     .trailer-modal-container {
    background: var(--bg-color);
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--main-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--second-bg-color);
}

.trailer-modal-container::-webkit-scrollbar {
    width: 8px;
}

.trailer-modal-container::-webkit-scrollbar-track {
    background: var(--second-bg-color);
    border-radius: 4px;
}

.trailer-modal-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.trailer-modal-container::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
        
      .trailer-modal-close {
    position: absolute;
    top: 6px;
    right: 9px;
    font-size: 18px;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
        .trailer-modal-close:hover {
            background: rgba(0, 0, 0, 0.7);
        }
        
        .trailer-modal-content {
            padding: 2rem;
        }
        
        .trailer-title {
             font-size: 20px;
            margin-bottom: 1.5rem;
            text-align: center;
            color: var(--text-color);
        }
        
        .trailer-video-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
            margin-bottom: 1.5rem;
        }
        
        .trailer-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 12px;
        }
        
        .trailer-info {
            background: var(--second-bg-color);
            padding: 1.5rem;
            border-radius: 12px;
            margin-top: 1.5rem;
        }
        
        .trailer-movie-title {
            font-size: 20px;
            margin-bottom: 0.5rem;
            color: var(--main-color);
        }
        
        .trailer-movie-description {
            color: var(--other-color);
            line-height: 1.5;
        }
        
        .trailer-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            text-align: center;
        }
        
        .trailer-error {
            text-align: center;
            padding: 2rem;
            color: var(--other-color);
        }
        
        .trailer-error i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #ff6b6b;
        }
        
        .trailer-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .trailer-result {
            background: var(--second-bg-color);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s;
        }
        
        .trailer-result:hover {
            transform: translateY(-5px);
        }
        
        .trailer-result-thumbnail {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .trailer-result-content {
            padding: 1rem;
        }
        
        .trailer-result-title {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .trailer-result-meta {
            color: var(--other-color);
            font-size: 0.85rem;
            display: flex;
            justify-content: space-between;
        }

        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--second-bg-color);
            display: none;
            justify-content: space-around;
            padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1000;
        }
        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--other-color);
            font-size: 0.75rem;
            transition: all 0.3s;
        }
        .mobile-nav-item.active {
            color: var(--main-color);
        }
        .mobile-nav-icon {
            font-size: 1.25rem;
            margin-bottom: 4px;
        }
        @media (max-width: 1200px) {
            .hero-title {
                font-size: 2.4rem;
            }
            .slide-title {
                font-size: 2rem;
            }
            .movie-detail-header { grid-template-columns: 1fr; }
            .movie-detail-poster { width: 100%; max-width: 320px; margin: 0 auto; }
        }
        
        @media (max-width: 950px) {
            #menu-icon {
                display: block;
            }
            .navlist {
                position: absolute;
                top: 100%;
                right: -100%;
                width: 280px;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                background: var(--bg-color);
                transition: all .50s ease;
                padding: 40px 20px;
                box-shadow: -5px 0 15px rgba(0,0,0,0.2);
            }
            .navlist a {
                display: block;
                padding: 15px;
                font-size: 18px;
                margin-left: 0;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            .navlist.active {
                right: 0;
            }
            .hero-title {
                font-size: 2rem;
            }
            .hero-slider {
                height: 400px;
            }
            .slide-content {
                left: 25px;
                bottom: 10%;
            }
            .slide-title {
                font-size: 1.8rem;
            }
            .movies-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            .movie-poster {
                height: 220px;
            }
            .horizontal-movie-card {
                min-width: 160px;
            }
            .horizontal-poster {
                height: 240px;
            }
        }
        
        @media (max-width: 768px) {
            .mobile-bottom-nav {
                display: flex;
            }
            .hero {
                padding: 100px 5% 40px;
            }
            .hero-title {
                font-size: 1.8rem;
            }
            .hero-subtitle {
                font-size: 1rem;
            }
            .hero-slider {
                height: 320px;
            }
            .slide-content {
                left: 20px;
                max-width: 85%;
            }
            .slide-title {
                font-size: 1.5rem;
            }
            .slide-description {
                font-size: 0.9rem;
            }
            .slide-actions {
                flex-direction: column;
                gap: 0.8rem;
            }
            .btn {
                width: 164px;
                justify-content: center;
                font-size: 12px;
            }
            .movies-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 1rem;
            }
            .movie-poster {
                height: 257px;
            }
            .modal-content {
                padding: 1.5rem;
            }
            .movie-detail-title { font-size: 1.6rem; }
            .action-buttons {
                flex-direction: column;
            }
            .download-options {
                grid-template-columns: 1fr;
            }
            .footer {
                flex-direction: column;
                text-align: center;
                gap: 7px;
            }
            .episodes-grid {
                grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
                gap: 0.6rem;
            }
            .cast-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 1rem;
            }
            .cast-photo {
                width: 80px;
                height: 80px;
            }
            .horizontal-movie-card {
                min-width: 150px;
            }
            .horizontal-poster {
                height: 198px;
            }
            .horizontal-title {
                font-size: 0.9rem;
            }

            .swiper-button-next, .swiper-button-prev {
                width: 36px; height: 36px;
            }

            .scroll-top {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: var(--main-color);
                width: 45px;
                height: 45px;
                border-radius: 50%;
                color: var(--text-color);
                font-size: 20px;
                transition: all 0.3s;
            }
            .h-scroll-btn { width: 36px; height: 36px; }
            .horizontal-scroll-container { padding: 10px 32px; }
            
            .trailer-modal-content {
                padding: 1rem;
            }
            
            .trailer-results {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.6rem;
            }
            .hero-slider {
                height: 260px;
            }
            .slide-content {
                left: 15px;
                bottom: 8%;
            }
            .slide-title {
                font-size: 1.3rem;
            }
            .slide-meta {
                gap: 0.7rem;
            }
            .nav-tabs {
                justify-content: flex-start;
            }
            .nav-tab {
                padding: 10px 18px;
                font-size: 0.9rem;
            }
            .movies-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            }
            .movie-poster {
                height: 180px;
            }
            .movie-title {
                font-size: 15px;
            }
            .movie-meta {
                font-size: 11px;
            }
            .horizontal-movie-card {
                min-width: 140px;
            }
            .horizontal-poster {
                height: 210px;
            }
            .horizontal-title {
                font-size: 15px;
            }
        }
        
        .hidden {
            display: none !important;
        }
        .fade-in {
            animation: fadeIn 0.8s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

       @media (max-width: 768px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}


@media (max-width: 768px) {
    .trailer-modal-overlay {
        padding: 20px 1rem;
        align-items: flex-start; 
        padding-top: 40px; 
    }
    
    .trailer-modal-container {
        margin-top: 0; 
        max-height: calc(90vh - 40px);
           top: 38px;
    }
}



@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 1rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .footer-links li {
        width: 100%;
    }
    
    .footer-links a {
        display: block;
        padding: 6px 0;
        font-size: 0.9rem;
    }
    
    .legal-links {
        display: flex;
        flex-wrap: nowrap; 
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap; 
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .legal-links a {
        margin: 0;
        padding: 0 6px;
        flex-shrink: 0;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 0.8rem;
    }
    
    .footer-section {
        padding: 0.3rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 5px 0;
    }
    
    .legal-links {
        gap: 0.3rem;
        padding: 0 5px;
    }
    
    .legal-links a {
        font-size: 0.75rem;
        padding: 0 4px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .legal-links {
        gap: 0.2rem;
    }
    
    .legal-links a {
        font-size: 0.7rem;
        padding: 0 3px;
    }
}



.footer-links a,
.legal-links a,
.social-icon {
    transition: all 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a:hover,
.legal-links a:hover,
.social-icon:hover {
    transition-duration: 0.1s !important;
}

.footer-links a:active,
.legal-links a:active,
.social-icon:active {
    transform: scale(0.98);
    transition: none !important;
}

@media (max-width: 768px) {
    .footer-links a,
    .legal-links a,
    .social-icon {
        transition: all 0.1s ease !important;
    }
}
