/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-header: #0a0a1a;
    --accent: #007bff;
    --accent-hover: #0056b3;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-muted: #9a9a9a;
    --border-color: #2a2a4a;
    --quality-4k: #e74c3c;
    --quality-1080p: #2ecc71;
    --quality-720p: #f39c12;
    --quality-cam: #95a5a6;
    --quality-hd: #3498db;
    --imdb-yellow: #f5c518;
    --card-radius: 8px;
    --radius: 6px;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.genre-dropdown {
    display: none;
    min-width: 400px;
    flex-wrap: wrap;
    padding: 15px;
    gap: 5px;
}

.nav-dropdown:hover .genre-dropdown {
    display: flex;
}

.dropdown-item {
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 4px;
    width: calc(50% - 5px);
}

.dropdown-item:hover {
    background: rgba(0,123,255,0.1);
    color: var(--accent);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 44px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid transparent;
    border-radius: 25px;
    padding: 6px 14px;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.lang-toggle .fa-globe {
    font-size: 0.9rem;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 6px 0;
    z-index: 200;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.lang-selector.active .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent);
}

.lang-option .fa-check {
    margin-left: auto;
    font-size: 0.7rem;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
}

/* RTL Support */
[dir="rtl"] .main-nav {
    direction: rtl;
}

[dir="rtl"] .section-title {
    padding-left: 0;
    padding-right: 15px;
}

[dir="rtl"] .section-title::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .card-poster .quality-badge {
    left: auto;
    right: 10px;
}

[dir="rtl"] .rating-badge {
    right: auto;
    left: 10px;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.search-box {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.search-form input {
    background: none;
    border: none;
    outline: none;
    padding: 8px 15px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.85rem;
    width: 220px;
}

.search-form input::placeholder {
    color: var(--text-muted);
}

.search-form button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    color: var(--accent);
}

/* Live search results */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow);
    min-width: 350px;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-item img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
}

.search-result-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-toggle,
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    cursor: pointer;
    padding: 8px;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
}

.slide-content {
    padding: 0 60px;
    max-width: 600px;
    min-height: 250px;
}

.slide-content .quality-badge {
    display: inline-block;
    margin-bottom: 10px;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    min-height: 3rem;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slide-meta .rating {
    color: var(--imdb-yellow);
    font-weight: 600;
}

.slide-synopsis {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* Slider controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
    pointer-events: none;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

/* ===== Section ===== */
.section {
    padding: 30px 0;
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.section-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.section-link:hover {
    color: var(--accent-hover);
}

/* ===== Movie Grid ===== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-card);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Quality Badge */
.quality-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-poster .quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-4k { background: var(--quality-4k); color: #fff; }
.badge-1080p { background: var(--quality-1080p); color: #fff; }
.badge-720p { background: var(--quality-720p); color: #fff; }
.badge-cam { background: var(--quality-cam); color: #fff; }
.badge-hd { background: var(--quality-hd); color: #fff; }

/* Rating Badge */
.rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--imdb-yellow);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.rating-badge i {
    font-size: 0.65rem;
}

/* Card Info */
.card-info {
    padding: 12px;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.card-year {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Filters Bar ===== */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 150px;
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-btn {
    align-self: flex-end;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--accent-hover);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 5px;
}

/* ===== Movie Detail ===== */
.movie-detail-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(15,15,15,0.7) 50%, rgba(15,15,15,0.4) 100%);
}

.movie-detail {
    position: relative;
    margin-top: -150px;
    z-index: 2;
    padding-bottom: 40px;
}

.movie-detail-inner {
    display: flex;
    gap: 35px;
}

.movie-poster {
    flex-shrink: 0;
    width: 280px;
}

.movie-poster img {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.movie-info {
    flex: 1;
}

.movie-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.movie-original-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent);
}

.meta-rating {
    color: var(--imdb-yellow) !important;
    font-weight: 600;
}

.meta-rating i {
    color: var(--imdb-yellow) !important;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    padding: 5px 14px;
    background: rgba(0,123,255,0.2);
    color: #6db3ff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0,123,255,0.4);
    text-decoration: none;
}

.genre-tag:hover {
    background: var(--accent);
    color: #fff;
}

.movie-synopsis {
    margin-bottom: 25px;
}

.movie-synopsis h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.movie-synopsis p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.movie-cast-info {
    margin-bottom: 25px;
}

.movie-cast-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cast-item {
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

a.cast-link {
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

a.cast-link:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: #e50914;
    color: #fff;
}

/* Trailer */
.movie-trailer {
    margin: 30px 0;
}

.movie-trailer h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
}

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

.trailer-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.trailer-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: #e50914;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s, background 0.2s;
}

.trailer-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff1a25;
}

/* Related Movies */
.related-section {
    margin-top: 40px;
}

/* ===== Page Header ===== */
.page-header {
    padding: 40px 0 20px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-genres a {
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-genres a:hover {
    background: var(--accent);
    color: #fff;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
    text-underline-offset: 3px;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Flash Messages ===== */
.flash-message {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.flash-success {
    background: rgba(46,204,113,0.15);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.3);
}

.flash-error {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .movie-detail-inner {
        gap: 25px;
    }

    .movie-poster {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .lang-toggle span {
        display: none;
    }

    .lang-toggle {
        padding: 6px 10px;
    }

    .lang-arrow {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 20px;
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-dropdown:hover .genre-dropdown {
        position: static;
        min-width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .search-box {
        display: none;
    }

    .search-box.active {
        display: block;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        padding: 15px;
        background: var(--bg-header);
        z-index: 998;
    }

    .search-box.active .search-form input {
        width: 100%;
    }

    .search-box.active .search-results {
        min-width: 100%;
    }

    .search-toggle,
    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 350px;
    }

    .slide-content {
        padding: 0 20px;
    }

    .slide-content h2 {
        font-size: 1.6rem;
    }

    .slider-dots {
        left: 20px;
        bottom: 15px;
    }

    .movie-detail-banner {
        height: 300px;
    }

    .movie-detail-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-poster {
        width: 200px;
    }

    .movie-genres,
    .movie-meta {
        justify-content: center;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .card-info {
        padding: 8px;
    }

    .card-title {
        font-size: 0.75rem;
    }

    .hero-slider {
        height: 280px;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }
}

/* ── Breadcrumbs ─────────────────────────────────── */

.breadcrumbs {
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    margin: 0;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: #8a8a8a;
    margin: 0 10px;
}

.breadcrumb-list a {
    color: #ff6b6b;
    text-decoration: underline;
    text-decoration-color: rgba(255,107,107,0.3);
    text-underline-offset: 2px;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #ff4d4d;
}

.breadcrumb-list li.active span {
    color: #a8a8bc;
}

/* ── SEO Content Block ───────────────────────────── */

.seo-content-block {
    margin: 2rem 0;
    padding: 2rem;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2d2d3d;
    line-height: 1.7;
}

.seo-content-block h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e50914;
}

.seo-content-block h3 {
    color: #e0e0e0;
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.seo-content-block p {
    color: #b0b0c4;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.seo-intro {
    color: #b5b5c5 !important;
    font-size: 0.95rem !important;
    font-weight: 400;
}

.seo-faq {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d3d;
}

.seo-faq h3 {
    color: #fff;
    font-size: 1rem;
}

.seo-faq p {
    margin-bottom: 1rem;
}

/* ── Disclaimer Block ────────────────────────────── */

.disclaimer-block {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 12px;
    border: 1px solid #2d2d3d;
    border-left: 4px solid #ffc107;
    text-align: center;
}

.disclaimer-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 0.75rem;
}

.disclaimer-block h4 {
    color: #ffc107;
    font-size: 1rem;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer-block p {
    color: #a8a8bc;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-contact {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid #2d2d3d;
}

.disclaimer-contact a {
    color: #ff6b6b;
    text-decoration: underline;
    font-weight: 500;
}

.disclaimer-contact a:hover {
    color: #ff8a8a;
}

/* ── Footer Disclaimer ───────────────────────────── */

.footer-disclaimer {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.5rem;
    text-align: center;
}

.footer-disclaimer p {
    color: #9a9aae;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 0.25rem;
}

.footer-disclaimer i {
    color: #ffc107;
    margin-right: 4px;
}

.footer-disclaimer a {
    color: #ff6b6b;
    text-decoration: underline;
}

.footer-disclaimer a:hover {
    color: #ff8a8a;
}

/* ── Static Pages (DMCA, Contact) ────────────────── */

/* ── Cast/Actor Page ──────────────────────────────── */

.cast-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914, #b20710);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cast-avatar i {
    font-size: 2rem;
    color: #fff;
}

.cast-info h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
    color: #fff;
}

.cast-stats {
    color: #a8a8bc;
    font-size: 0.9rem;
    margin: 0;
}

.cast-stats i {
    color: #e50914;
    margin-right: 4px;
}

.cast-seo-text {
    padding: 1rem 1.25rem;
    background: #1a1a2e;
    border-radius: 10px;
    border: 1px solid #2d2d3d;
    margin-bottom: 1.5rem;
}

.cast-seo-text p {
    color: #b0b0c4;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.result-count {
    color: #a8a8bc;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .cast-header {
        gap: 1rem;
    }
    .cast-avatar {
        width: 60px;
        height: 60px;
    }
    .cast-avatar i {
        font-size: 1.5rem;
    }
    .cast-info h1 {
        font-size: 1.3rem;
    }
}

/* ── Static Pages (DMCA, Contact) ────────────────── */

.static-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.static-page h1 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e50914;
}

.static-content {
    line-height: 1.7;
}

.static-content p {
    color: #b5b5c5;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dmca-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.dmca-list li {
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    border: 1px solid #2d2d3d;
}

.dmca-list li i {
    color: #28a745;
    margin-right: 8px;
}

.dmca-contact {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #2d2d3d;
}

.dmca-contact h3 {
    color: #fff;
    margin: 0 0 1rem;
}

.dmca-contact a {
    color: #e50914;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
}

.dmca-contact a:hover {
    text-decoration: underline;
}

/* ── Contact Page ────────────────────────────────── */

.contact-card {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid #2d2d3d;
    margin-bottom: 2rem;
}

.contact-card > i {
    font-size: 3rem;
    color: #e50914;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.contact-card p {
    color: #a8a8bc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid #e50914;
    border-radius: 8px;
    margin: 0.5rem 0;
    transition: all 0.2s;
}

.contact-email:hover {
    background: #e50914;
    color: #fff;
}

.contact-response {
    color: #6b6b7e !important;
    font-size: 0.82rem !important;
    margin-top: 1rem !important;
}
