:root {
    --primary-color: #e50914;
    --primary-dark: #b30710;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --background-dark: #141414;
    --background-light: #181818;
    --card-bg: #1f1f1f;
    --card-hover: #2a2a2a;
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --spacing: 1rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    font-family: 'Prompt', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
}

.container {
    max-width: 1440px;
    padding: 0 var(--spacing);
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    margin: 0 auto 1rem;
    position: relative;
}

.hero-section .swiper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.hero-banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0.4) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    position: relative;
}

.hero-tag {
    position: absolute;
    top: -2rem;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-tag.special {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

.hero-tag.trending {
    background: linear-gradient(45deg, #FF512F, #DD2476);
}

.hero-tag.popular {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.hero-tag i {
    font-size: 1rem;
}

.hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-meta {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.hero-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
}

.hero-buttons .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 500;
    gap: 0.3rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.hero-section .swiper-pagination {
    bottom: 10px;
}

.hero-section .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.hero-section .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Hero Section Navigation Buttons */
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    width: 40px;
    height: 40px;
    top: 50%;
    margin-top: -20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section .swiper-button-next {
    right: 15px;
}

.hero-section .swiper-button-prev {
    left: 15px;
}

.hero-section .swiper-button-next:after,
.hero-section .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: bold;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .swiper {
        height: 180px;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .hero-tag {
        top: -1.8rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    .hero-content h1 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .hero-meta {
        gap: 0.4rem;
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .hero-meta span {
        padding: 0.2rem 0.5rem;
    }

    .hero-description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 2;
    }

    .hero-buttons .btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .hero-section .swiper-button-next,
    .hero-section .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }

    .hero-section .swiper-button-next {
        right: 10px;
    }

    .hero-section .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section .swiper {
        height: 160px;
    }

    .hero-overlay {
        padding: 0.8rem;
    }

    .hero-tag {
        top: -1.6rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .hero-content h1 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .hero-meta {
        gap: 0.3rem;
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .hero-meta span {
        padding: 0.15rem 0.4rem;
    }

    .hero-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-buttons .btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }

    .hero-section .swiper-button-next,
    .hero-section .swiper-button-prev {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }

    .hero-section .swiper-button-next {
        right: 8px;
    }

    .hero-section .swiper-button-prev {
        left: 8px;
    }

    .hero-section .swiper-button-next:after,
    .hero-section .swiper-button-prev:after {
        font-size: 0.8rem;
    }
}

/* Movie Sections */
.movie-section {
    margin-bottom: 2rem;
}

.movie-section.small {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.section-title i {
    color: var(--primary-color);
}

.view-all {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Movie Grid */
.movie-grid {
    display: block;
    margin: 1.5rem 0;
}

.movie-grid .swiper-wrapper {
    display: flex;
    gap: 1rem;
}

.movie-grid .swiper-slide {
    width: calc(100% / 7);
    height: auto;
}

/* Movie Cards */
.movie-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    padding-top: 150%;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-button {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.movie-card:hover .play-button {
    transform: scale(1.1);
}

.movie-description {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0 1rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.views-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.badge-container {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.quality-badge,
.series-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.quality-badge {
    background: rgba(26, 115, 232, 0.9);
    color: #fff;
}

.series-badge {
    background: rgba(123, 47, 247, 0.9);
    color: #fff;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    color: #fff;
}

.movie-title h3 {
    font-size: 0.9rem;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.movie-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

.movie-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Badges */
.views-count,
.quality-badge,
.series-badge,
.netflix-badge,
.uhd-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.views-count {
    background: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.quality-badge {
    background: rgba(26, 115, 232, 0.9);
}

.series-badge {
    background: rgba(123, 47, 247, 0.9);
}

.netflix-badge {
    background: rgba(229, 9, 20, 0.9);
}

.uhd-badge {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
}

/* Swiper Customization */
.swiper {
    padding: 0.25rem;
    margin: -0.25rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1rem;
}

/* Swiper Navigation */
.movie-grid .swiper-button-next,
.movie-grid .swiper-button-prev {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.movie-grid .swiper-button-next:after,
.movie-grid .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: bold;
}

.movie-grid .swiper-button-next:hover,
.movie-grid .swiper-button-prev:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .movie-grid .swiper-slide {
        width: calc(100% / 6);
    }
}

@media (max-width: 1200px) {
    .movie-grid .swiper-slide {
        width: calc(100% / 5);
    }
}

@media (max-width: 992px) {
    .movie-grid .swiper-slide {
        width: calc(100% / 4);
    }
}

@media (max-width: 768px) {
    .movie-grid .swiper-slide {
        width: calc(100% / 3);
    }
}

@media (max-width: 576px) {
    .movie-grid .swiper-slide {
        width: calc(100% / 2);
    }
}

/* Categories Page Styles */
.category-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 3rem 0 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('path/to/pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.category-info {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    animation: fadeIn 0.6s ease-out;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.category-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.2);
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.movie-count {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.count-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.count-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 300;
}

.pagination-info {
    background: rgba(0,0,0,0.2);
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.page-indicator {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.page-indicator .current {
    color: #fff;
    font-weight: 600;
}

.page-indicator .separator {
    margin: 0 0.8rem;
    color: rgba(255,255,255,0.4);
}

.quick-nav {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.movie-grid {
    display: grid
;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pagination-container {
    margin: 2rem 0;
}

.page-link {
    background-color: var(--card-bg);
    border-color: var(--card-hover);
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.page-link:hover {
    background-color: var(--card-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.disabled .page-link {
    background-color: var(--card-bg);
    border-color: var(--card-hover);
    color: var(--text-secondary);
}

.no-movies {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: 8px;
}

.no-movies i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Design for Categories Page */
@media (max-width: 768px) {
    .category-header {
        padding: 2rem 0 1.5rem;
    }

    .category-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .category-title {
        gap: 1.2rem;
    }

    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .title-wrapper h1 {
        font-size: 1.8rem;
    }

    .movie-count {
        padding: 0.4rem 0.8rem;
    }

    .count-number {
        font-size: 1.1rem;
    }

    .pagination-info {
        width: 100%;
        padding: 1rem;
        justify-content: space-between;
    }

    .page-indicator {
        font-size: 1rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
    }
}