:root {
    --bg: #0b0d12;
    --panel: #12151c;
    --panel-2: #1b1f29;
    --text: #f3f3f3;
    --muted: #a8a8a8;
    --red: #e50914;
    --red-dark: #be0811;
    --border: #2c2c2c;
    --accent: #e50914;
    --surface: #12151c;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
    animation: popupFade 0.3s ease-out;
}
@keyframes popupFade { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.popup-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: var(--muted); font-size: 1.5rem;
    cursor: pointer;
}
.popup-close:hover { color: #fff; }

/* Search Section Styles */
.search-section {
    margin: 2rem 0;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-btn {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--red-dark);
}

/* Episode List Styles */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}
.episode-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}
.episode-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.ep-num { font-weight: bold; font-size: 1.1rem; color: #fff; }
.ep-btn {
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1300px, 94%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 10, 14, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

@media (max-width: 640px) {
    .top-nav {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 0.5rem;
        gap: 1.2rem;
    }
    .logo {
        width: 100%;
        justify-content: center;
    }
    .logo img {
        height: 48px; /* Bigger logo on mobile like image */
    }
    .logo .logo-favicon {
        height: 48px;
        width: 48px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .main-nav {
        order: 2; /* Nav goes second */
        width: 100%;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding: 5px 0;
        gap: 0.8rem;
    }
    .nav-link.active {
        background: #1f2430;
        border-color: #2b3140;
        color: #fff;
    }
}

.nav-link {
    border: 1px solid transparent;
    background: transparent;
    color: #cfd3db;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: #1f2430;
    border-color: #2b3140;
    color: #fff;
}

.search-wrap input {
    width: min(340px, 50vw);
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 30px;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-wrap input:focus {
    border-color: var(--red);
}

.page-home {
    padding: 1rem 0 3rem;
}

.thumb-banner {
    width: 100%;
    background: #0a0d13;
    border-top: 1px solid #242a38;
    border-bottom: 1px solid #242a38;
    overflow: hidden;
}

.thumb-banner-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    animation: slideThumbs 48s linear infinite;
}

.thumb-banner-item {
    flex: 0 0 auto;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2f3546;
    background: #12151c;
}

.thumb-banner-item img {
    display: block;
    width: 96px;
    height: 140px;
    object-fit: cover;
}

.thumb-banner:hover .thumb-banner-track {
    animation-play-state: paused;
}

.hero-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0.4rem 0 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #161c2b 0%, #0d111a 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-text-content {
    flex: 1;
    min-width: 300px;
}

.hero-text-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero-text-content p {
    color: #a0a8b9;
    font-size: 0.95rem;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-strip {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 1.5rem;
    }
    .hero-text-content h1 {
        font-size: 1.5rem;
    }
}

.hero-strip h1 {
    margin: 0.45rem 0 0.25rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-strip p {
    margin: 0;
    color: #b2bac8;
    font-size: 0.9rem;
}

.hero-badge {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.2);
    color: #ffd6d9;
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 0.15rem 0.55rem;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
    background: #1a1f2e;
    border: 1px solid #2d3446;
    color: #cfd3db;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transform: translateY(-2px);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 540px) {
    .movie-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
}

@media (min-width: 1024px) {
    .movie-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

@media (min-width: 1440px) {
    .movie-grid { grid-template-columns: repeat(6, 1fr); }
}

.movie-card {
    background: #10131a;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fadeIn 0.35s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border-color: #3a4663;
}

.movie-thumb {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

.movie-meta {
    padding: 0.48rem 0.52rem 0.62rem;
}

.movie-title {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    line-height: 1.3;
    min-height: 2em;
}

.movie-sub {
    margin: 0;
    color: #9aa3b5;
    font-size: 0.7rem;
}

.movie-rating {
    font-weight: 700;
    color: #ffbf00;
}

.ad-slot, 
.ad-leaderboard, 
.ad-hero-right,
.side-ad {
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure iframe ads don't break layout */
iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* Global Responsive Ad Handling */
@media (max-width: 768px) {
    .side-ad, .ad-hero-right { display: none !important; }
    .ad-slot { margin: 10px 0; }
}

.top-ad {
    margin-top: 0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.1rem;
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 1.3rem;
    border: 1px solid #6e7480;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pagination-item {
    min-width: 72px;
    height: 56px;
    border: none;
    border-right: 1px solid #6e7480;
    background: #22252d;
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.9rem;
}

.pagination-item:last-child {
    border-right: none;
}

.pagination-item.is-active {
    background: #2d78db;
}

.pagination-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pagination-dots {
    cursor: default;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--red);
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
}

.btn-danger {
    background: #7f1111;
}

.hidden {
    display: none;
}

.btn-blue {
    background: #1d4ed8;
    color: #fff;
}

.btn-blue:hover {
    background: #1e40af;
}

/* Green Telegram Button */
.btn-green {
    background: linear-gradient(135deg, #00b894 0%, #00a884 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-green:hover {
    background: linear-gradient(135deg, #00a884 0%, #009670 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.action-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem;
}

.action-buttons-wrap .btn {
    min-width: 200px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.action-buttons-wrap .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #262626;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: shimmer 1.2s infinite linear;
}

.skeleton-image {
    aspect-ratio: 16 / 9;
    height: auto;
}

.skeleton-title {
    height: 18px;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.skeleton-text {
    height: 14px;
    width: 70%;
    border-radius: 6px;
}

.detail-page,
.download-page,
.admin-page,
.form-page {
    padding: 2rem 0;
}

.detail-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 1.5rem;
    gap: 1.5rem;
}

.detail-banner {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.detail-banner:hover {
    transform: scale(1.02);
}

.detail-content {
    padding: 0;
    flex: 1;
}

@media (min-width: 768px) {
    .detail-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .detail-banner {
        margin: 0;
    }
}

.description {
    color: #ddd;
    line-height: 1.6;
}

.movie-info {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 0.35rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.screenshots-section {
    margin-top: 1.25rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
}

.screenshot-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.download-box {
    max-width: 640px;
    margin: 3rem auto;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.static-page {
    padding: 1.2rem 0 2.4rem;
}

.content-panel {
    background: #111722;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
    line-height: 1.6;
}

.content-panel h1 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.content-panel h2 {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1.02rem;
}

.muted-note {
    color: #9aa3b5;
    margin-top: 1rem;
}

.request-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.request-form label {
    display: grid;
    gap: 0.35rem;
    color: #d3d8e3;
    font-size: 0.9rem;
}

.request-form input,
.request-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0f131b;
    color: #fff;
    border-radius: 10px;
    padding: 0.65rem 0.72rem;
}

.request-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-alert {
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.form-alert.success {
    border: 1px solid #1f6c3f;
    background: #103021;
    color: #b8f1cc;
}

.form-alert.error {
    border: 1px solid #703233;
    background: #2a1214;
    color: #f3c5c8;
}

.form-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 13, 19, 0.8));
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-footer a:hover {
    color: var(--red);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

/* Modern Admin UI */
.admin-page {
    padding: 3rem 0;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-head h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}

.stat-icon {
    width: 54px;
    height: 54px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-info p {
    margin: 0.2rem 0 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* Modern Admin Table */
.admin-table-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255,255,255,0.02);
    padding: 1.2rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.01);
}

.admin-thumb {
    width: 64px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-red { background: rgba(229, 9, 20, 0.15); color: #ff4d4d; }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.admin-table .feedback-info {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-table .actions {
    display: flex;
    gap: 0.6rem;
}

.admin-table .btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.admin-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.admin-form h2 {
    grid-column: span 2;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.admin-form label {
    display: grid;
    gap: 0.6rem;
    color: #cfcfcf;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-form label.full-width {
    grid-column: span 2;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #0f1218;
    color: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
    outline: none;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

@keyframes shimmer {
    100% {
        transform: translateX(320px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideThumbs {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.trailer-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.trailer-section h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.trailer-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
}

.trailer-container {
    max-width: 850px;
    margin: 0 auto;
}

.trailer-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.trailer-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Extra Info Grid (Storyline & Review) */
.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.3);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.storyline-card h3::before { content: '📖'; }
.review-card h3::before { content: '⭐'; }

.info-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Feedback Section */
.feedback-section {
    max-width: 1000px;
    margin: 6rem auto;
    background: var(--bg); 
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.reactions-box {
    text-align: center;
    margin-bottom: 4rem;
}

.reactions-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.reactions-count {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 2rem;
}

.reactions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.reaction-btn {
    background: #1a1e26;
    border: 1px solid #2d3442;
    color: #eee;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 100px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.reaction-btn span {
    font-size: 1.5rem;
}

.reaction-btn small {
    margin-top: 0.5rem;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1rem;
}

.reaction-btn:hover {
    background: #252b38;
    border-color: #3b82f6;
}

.reaction-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.reaction-btn.active small {
    color: #fff;
}

/* Comments Box */
.comments-box {
    border-top: 1px solid #2d3442;
    padding-top: 2rem;
}

.subscribe-row {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.comment-input-area {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar.small {
    width: 40px;
    height: 40px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-field {
    flex-grow: 1;
    border-bottom: 2px solid #2d3442;
}

.input-field input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    font-size: 1.1rem;
    outline: none;
}

.comments-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.4s ease;
}

.comment-content {
    flex: 1;
}

.comment-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.comment-content p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.comment-content small {
    color: #777;
    font-size: 0.8rem;
}

.comments-footer {
    border-top: 1px solid #2d3442;
    padding-top: 1rem;
    color: #888;
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 1100px) {
    .admin-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .admin-form {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }
    .admin-form h2,
    .admin-form label,
    .form-actions {
        grid-column: span 1 !important;
    }
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .admin-head h1 {
        font-size: 1.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-nav {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
        gap: 1rem;
    }
    .header-right {
        order: 3; /* Search goes third (bottom) */
        width: 100%;
        margin-top: 0;
    }
    .search-wrap {
        width: 100%;
    }
    .search-wrap input {
        width: 100%;
        background: #1a1f29;
        border: none;
        padding: 0.9rem 1.5rem;
        border-radius: 12px;
    }
}
@media (max-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .episode-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .action-buttons-wrap .btn {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-table-wrap {
        border-radius: 10px;
    }
}
@media (max-width: 768px) {
    .feedback-section {
        padding: 1.5rem;
        margin: 3rem auto;
    }
    .reactions-grid {
        gap: 0.6rem;
    }
    .reaction-btn {
        min-width: 80px;
        padding: 0.6rem;
    }
}

/* Global Links & Watch Page Styles (Responsive) */
.links-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.links-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.links-card-wrap {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.links-thumb {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

@media (max-width: 1024px) {
    .links-page-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .links-card-wrap {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .links-thumb {
        max-width: 200px;
    }
}

/* Footer Styles */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}

/* Official Trailer Styles */
.trailer-section {
    margin: 4rem auto !important;
    padding: 0 1rem !important;
    clear: both !important;
}

/* Heading */
.trailer-section h2 {
    margin-bottom: 2rem !important;
    font-size: 1.8rem !important;
    text-align: center !important;
    position: relative;
    padding-bottom: 10px;
}

.trailer-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--red);
    border-radius: 10px;
}

/* Container */
.trailer-container {
    max-width: 750px;
    margin: 0 auto !important;
}

/* 16:9 Responsive Video */
.trailer-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important; /* ✅ Perfect Ratio */
    background: #000 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important;
}

/* iframe full fit */
.trailer-wrap iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trailer-section {
        margin: 2.5rem auto !important;
    }

    .trailer-section h2 {
        font-size: 1.4rem !important;
    }

    .trailer-container {
        max-width: 100% !important;
    }
}


/* ===== SCROLLBAR (CHROME, EDGE, SAFARI) ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--red),
        var(--red-dark)
    );
    border-radius: 10px;
    border: 2px solid var(--bg);
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--accent),
        var(--red-dark)
    );
}

::-webkit-scrollbar-corner {
    background: var(--bg);
}


/* ===== FIREFOX SUPPORT ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--bg);
}

/* ========================================
   MODERN HEADER STYLES - 2024 Design
   ======================================== */

/* Header Base */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.98) 0%, rgba(11, 13, 18, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.99) 0%, rgba(11, 13, 18, 0.98) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
    min-height: 70px;
}

/* Logo Styles */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-favicon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-text {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(229, 9, 20, 0.2));
    transition: filter 0.3s ease;
}

.logo:hover .logo-text {
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.4));
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #a0a8b9;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link .nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover .nav-icon {
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* Header Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--red);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    padding: 0;
}

.search-box input::placeholder {
    color: #6b7280;
}

.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1f2a 0%, #151921 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-loading,
.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
    text-align: center;
}

.search-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(229, 9, 20, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
}

.search-no-results svg {
    width: 48px;
    height: 48px;
    color: #3f4654;
    margin-bottom: 0.75rem;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #2a303c;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu - Hidden on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(180deg, #151921 0%, #0f1218 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #a0a8b9;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Mobile Search */
.mobile-search-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.mobile-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.mobile-search-results {
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

/* Mobile Homepage Search - Hidden by default */
.mobile-home-search {
    display: none;
    margin: 1rem 0;
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    /* Show mobile search on homepage */
    .mobile-home-search {
        display: block;
    }
    
    .mobile-home-search .search-box {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .mobile-home-search .search-icon {
        width: 20px;
        height: 20px;
        color: #6b7280;
        flex-shrink: 0;
    }
    
    .mobile-home-search input {
        flex: 1;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1rem;
        outline: none;
    }
    
    .mobile-home-search input::placeholder {
        color: #6b7280;
    }
    
    .nav-container {
        min-height: 60px;
        padding: 0.5rem 0;
        gap: 1rem;
        justify-content: center; /* Center logo */
    }
    
    /* Hide desktop nav, menu toggle, and search */
    .nav-links,
    .mobile-menu-toggle,
    .header-search {
        display: none !important;
    }
    
    .mobile-menu {
        display: none;
    }
    
    /* Center logo and prevent cutoff */
    .logo {
        justify-content: center;
        max-width: 100%;
        overflow: visible;
    }
    
    .logo-favicon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .logo-text {
        height: 32px;
        display: block !important;
        max-width: calc(100vw - 100px);
        object-fit: contain;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .nav-container {
        min-height: 60px;
        padding: 0.5rem 0;
        gap: 0.75rem;
        justify-content: center; /* Center logo */
    }
    
    /* Hide desktop nav, menu toggle and search */
    .nav-links,
    .mobile-menu-toggle,
    .header-search {
        display: none !important;
    }
    
    .mobile-menu {
        display: none;
    }
    
    /* Center logo and prevent cutoff */
    .logo {
        justify-content: center;
        max-width: 100%;
        overflow: visible;
    }
    
    .logo-favicon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
    
    .logo-text {
        height: 28px;
        display: block !important;
        max-width: calc(100vw - 80px);
        object-fit: contain;
    }
    
    /* Filter buttons - allow horizontal scroll */
    .filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .nav-container {
        justify-content: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo-text {
        display: block !important;
        height: 26px;
        max-width: calc(100vw - 60px);
        object-fit: contain;
    }
    
    .logo-favicon {
        width: 32px;
        height: 32px;
    }
    
    /* Filter buttons - allow horizontal scroll */
    .filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

/* Hide old header styles (backward compatibility) */
.top-nav {
    display: none;
}

.header-right {
    display: none;
}

.search-wrap {
    display: none;
}

/* ========================================
   MODERN FOOTER STYLES - 2024 Design
   ======================================== */

.modern-footer {
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.98) 0%, rgba(7, 9, 13, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

/* Footer Top Layout */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-logo-text {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #a0a8b9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Links Columns */
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links-list li a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links-list li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links-list li a:hover svg {
    opacity: 1;
    transform: translateX(0);
    color: var(--red);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright,
.footer-credit {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.footer-copyright a,
.footer-credit a {
    color: #a0a8b9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover,
.footer-credit a:hover {
    color: var(--red);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    
    .footer-desc {
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .modern-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links-col {
        align-items: center;
    }
    
    .footer-links-list li a {
        justify-content: center;
    }
    
    .footer-links-list li a svg {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide old footer */
.site-footer .footer-content,
.site-footer .footer-links {
    display: none;
}