/**
 * Movie21 - Professional Movie Website
 * Premium Dark Theme CSS
 */

/* ========================================
   CSS Variables & Root
   ======================================== */
:root {
    /* Colors */
    --color-primary: #e50914;
    --color-primary-dark: #b20710;
    --color-primary-light: #ff3545;

    --color-secondary: #6c5ce7;
    --color-secondary-dark: #5649c7;

    --color-accent: #00d4aa;
    --color-accent-gold: #ffd700;

    /* Background Colors */
    --bg-dark: #0f0f0f;
    --bg-darker: #080808;
    --bg-card: #181818;
    --bg-card-hover: #222222;
    --bg-overlay: rgba(0, 0, 0, 0.85);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #757575;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
    --gradient-hero: linear-gradient(to right, rgba(15, 15, 15, 0.98) 0%, rgba(15, 15, 15, 0.7) 50%, transparent 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(229, 9, 20, 0.3);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --container-padding: 20px;
    --section-gap: 50px;

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-list>li>a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-list .arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Header Search */
.header-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 200px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 10px 16px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.search-btn:hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 30px 20px;
}

.mobile-search-form {
    display: flex;
    margin-bottom: 30px;
}

.mobile-search-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.mobile-search-btn {
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-genres {
    margin-top: 30px;
}

.mobile-genres h4 {
    margin-bottom: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    margin-top: -80px;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    max-width: 650px;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-meta .rating {
    background: rgba(255, 215, 0, 0.2);
    color: var(--color-accent-gold);
}

.hero-overview {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn .icon {
    font-size: 1.2em;
}

/* ========================================
   Movie Sections
   ======================================== */
.movie-section {
    margin: var(--section-gap) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.view-all:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

/* ========================================
   Movie Grid & Slider
   ======================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.movie-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.movie-slider::-webkit-scrollbar {
    height: 6px;
}

.movie-slider::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.movie-slider::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.movie-slider .movie-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* ========================================
   Movie Card
   ======================================== */
.movie-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-normal);
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.movie-card-link {
    display: block;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transform: scale(0.8);
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.movie-card:hover .play-icon {
    transform: scale(1);
}

.movie-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.movie-rating .star {
    font-size: 0.9rem;
}

.movie-rating .score {
    color: var(--color-accent-gold);
}

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.movie-badge.new {
    background: var(--color-primary);
    color: white;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.movie-genre {
    color: var(--color-primary);
}

/* ========================================
   Genre Section
   ======================================== */
.genre-section {
    margin: var(--section-gap) 0;
}

.genre-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: white;
    transition: all var(--transition-fast);
    text-align: center;
}

.genre-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
    color: white;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.genre-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Movie Detail Page
   ======================================== */
.movie-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    margin-top: -80px;
    padding: 120px 0 60px;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.movie-poster-large {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.movie-poster-large img {
    width: 100%;
    height: auto;
}

.movie-detail-info {
    padding-top: 20px;
}

.movie-detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.movie-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.rating-badge small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.meta-item a {
    color: var(--text-primary);
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.movie-overview {
    margin-bottom: 25px;
}

.movie-overview h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.movie-overview p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.movie-director,
.movie-year-link {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.movie-director a,
.movie-year-link a {
    color: var(--color-primary);
    font-weight: 500;
}

.movie-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ========================================
   Video Player
   ======================================== */
.video-section {
    margin: var(--section-gap) 0;
}

.video-player-container {
    background: var(--bg-darker);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-player {
    position: relative;
    padding-top: 56.25%;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-notice {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.player-notice p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Cast Section
   ======================================== */
.cast-section {
    margin: var(--section-gap) 0;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.cast-card {
    text-align: center;
    transition: transform var(--transition-fast);
}

.cast-card:hover {
    transform: translateY(-5px);
}

.cast-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-card);
    transition: border-color var(--transition-fast);
}

.cast-card:hover .cast-photo {
    border-color: var(--color-primary);
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cast-character {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Info Table
   ======================================== */
.movie-info-section {
    margin: var(--section-gap) 0;
}

.info-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table th,
.info-table td {
    padding: 16px 20px;
    text-align: left;
}

.info-table th {
    width: 150px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.info-table td {
    color: var(--text-secondary);
}

.info-table td a {
    color: var(--color-primary);
}

/* ========================================
   Person Profile
   ======================================== */
.person-profile {
    margin: 40px 0;
}

.person-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.person-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.person-photo img {
    width: 100%;
    height: auto;
}

.person-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.person-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.person-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.person-meta .meta-item {
    display: flex;
    gap: 10px;
}

.person-meta strong {
    color: var(--text-muted);
    min-width: 120px;
}

.person-biography {
    margin-top: 25px;
}

.person-biography h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.person-biography p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    text-align: center;
    padding: 50px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========================================
   Year Navigation
   ======================================== */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.year-link {
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.year-link:hover,
.year-link.active {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Search
   ======================================== */
.search-section {
    max-width: 700px;
    margin: 0 auto 50px;
}

.search-form-large {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.search-form-large:focus-within {
    border-color: var(--color-primary);
}

.search-input-large {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
}

.search-input-large::placeholder {
    color: var(--text-muted);
}

.search-btn-large {
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.search-btn-large:hover {
    transform: scale(1.02);
}

.popular-searches {
    text-align: center;
    margin-top: 50px;
}

.popular-searches h3 {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ========================================
   No Results
   ======================================== */
.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.no-results-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results-hint {
    color: var(--text-muted);
    margin-top: 10px;
}

/* ========================================
   Error Page
   ======================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
}

.error-search {
    margin-top: 50px;
    max-width: 500px;
    width: 100%;
}

.error-search p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.page-link.active {
    background: var(--color-primary);
    color: white;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--section-gap);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links li:not(:last-child) {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .movie-detail-grid {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }

    .person-grid {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
        --section-gap: 40px;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .movie-detail-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster-large {
        max-width: 250px;
        margin: 0 auto;
        position: static;
    }

    .movie-detail-info {
        text-align: center;
    }

    .movie-genres,
    .movie-actions {
        justify-content: center;
    }

    .person-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .person-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .person-meta {
        align-items: center;
    }

    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .info-table th {
        width: 120px;
    }

    .search-form-large {
        flex-direction: column;
    }

    .search-btn-large {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .movie-slider .movie-card {
        flex: 0 0 150px;
    }

    .genre-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 1.8rem;
    }

    .person-name {
        font-size: 1.8rem;
    }

    .error-title {
        font-size: 5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .header-search {
        display: none;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeIn 0.5s ease forwards;
}

.movie-grid .movie-card:nth-child(1) {
    animation-delay: 0.05s;
}

.movie-grid .movie-card:nth-child(2) {
    animation-delay: 0.1s;
}

.movie-grid .movie-card:nth-child(3) {
    animation-delay: 0.15s;
}

.movie-grid .movie-card:nth-child(4) {
    animation-delay: 0.2s;
}

.movie-grid .movie-card:nth-child(5) {
    animation-delay: 0.25s;
}

.movie-grid .movie-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-fast);
    opacity: 0.9;
}

.back-to-top:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Accessibility
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Footer Navigation
   ======================================== */
.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-primary);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .footer,
    .mobile-nav,
    .back-to-top,
    .video-section {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}