/* ============================================================
   KivoPlay — Main Stylesheet
   Premium Dark OTT Platform | Black + White + Red
   ============================================================ */

/* ── Google Font Import ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    /* Colors */
    --bg: #050505;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --surface-3: #222222;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);

    --red: #e50914;
    --red-hover: #ff1f2b;
    --red-soft: rgba(229, 9, 20, 0.15);
    --red-glow: rgba(229, 9, 20, 0.3);

    --white: #ffffff;
    --off-white: #f0f0f0;
    --muted: #888888;
    --muted-2: #555555;

    /* Gradients */
    --gradient-hero: linear-gradient(to right, rgba(5, 5, 5, 1) 30%, rgba(5, 5, 5, 0.4) 70%, transparent 100%);
    --gradient-card: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.5) 60%, transparent 100%);
    --gradient-red: linear-gradient(135deg, #e50914 0%, #b8060f 100%);
    --gradient-hover: linear-gradient(135deg, #ff1f2b 0%, #e50914 100%);
    --yellow: #ffb400;

    /* Typography */
    --font-primary: 'Inter', 'Outfit', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --container: 1400px;
    --nav-height: 68px;
    --section-gap: 60px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.8);
    --shadow-red: 0 4px 20px rgba(229, 9, 20, 0.4);

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-med: 0.3s ease;
    --t-slow: 0.5s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-2);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.text-muted {
    color: var(--muted);
}

.text-danger {
    color: var(--red);
}

.text-sm {
    font-size: 0.85rem;
}

.mt-2 {
    margin-top: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--t-med);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    border: 1px solid rgba(255, 180, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4), 0 0 15px rgba(255, 180, 0, 0.3);
    background: var(--gradient-hover);
    border-color: rgba(255, 180, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--r-md);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 10px;
    border-radius: var(--r-full);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, transparent 100%);
    transition: all var(--t-slow);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.75);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-red);
}

.logo-accent {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 6px 14px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--off-white);
    transition: all var(--t-fast);
    position: relative;
}

.nav-link.active {
    color: var(--white);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: var(--gradient-red);
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--red);
    border-radius: var(--r-full);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-med);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    color: var(--off-white);
    transition: all var(--t-fast);
}

.dropdown-menu a:hover {
    background: var(--red-soft);
    color: var(--red);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    color: var(--off-white);
    transition: all var(--t-fast);
    font-size: 1rem;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

/* Search */
.nav-search {
    position: relative;
}

.search-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    background: transparent;
    border: none;
    color: var(--off-white);
    font-size: 1rem;
    transition: all var(--t-fast);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: transparent;
    border-radius: var(--r-full);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
}

.search-box.open {
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s 0.2s;
}

.search-box.open::before {
    opacity: 1;
}

.search-box input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 42px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    border-radius: var(--r-full);
}

.search-box input:focus {
    box-shadow: inset 0 0 0 1px var(--red);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    max-height: 380px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.search-results.visible {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--r-md);
    transition: background var(--t-fast);
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 44px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.search-result-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: 0.8rem;
    color: var(--muted);
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .search-box.open {
        width: calc(100vw - 140px);
        max-width: 320px;
    }

    .search-results {
        width: calc(100vw - 140px);
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .search-box.open {
        width: calc(100vw - 130px);
    }

    .search-results {
        width: calc(100vw - 130px);
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 0 14px 0 38px;
    }

    .search-box::before {
        left: 12px;
    }
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--r-full);
    background: var(--gradient-red);
    border: 2px solid rgba(229, 9, 20, 0.4);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast);
}

.user-avatar:hover {
    border-color: var(--red);
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-med);
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 10px 12px;
}

.user-info strong {
    display: block;
    font-size: 0.95rem;
}

.user-info small {
    color: var(--muted);
    font-size: 0.8rem;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 0.88rem;
    color: var(--off-white);
    transition: all var(--t-fast);
}

.user-dropdown a:hover {
    background: var(--surface-2);
    color: var(--white);
}

.user-dropdown a.text-danger:hover {
    background: var(--red-soft);
    color: var(--red);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--r-sm);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: var(--r-full);
    transition: all var(--t-med);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--surface);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform var(--t-med);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    color: var(--off-white);
    transition: all var(--t-fast);
}

.sidebar-nav a:hover {
    background: var(--surface-2);
    color: var(--white);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-med);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Nav Accordion / Dropdown */
.sidebar-nav button.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    color: var(--off-white);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast);
}

.sidebar-nav button.dropdown-trigger:hover {
    background: var(--surface-2);
    color: var(--white);
}

.sidebar-nav button.dropdown-trigger .trigger-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-nav button.dropdown-trigger .dropdown-chevron {
    font-size: 0.8rem;
    color: var(--off-white);
    transition: transform var(--t-fast);
}

.sidebar-nav button.dropdown-trigger:hover .dropdown-chevron {
    color: var(--white);
}

.sidebar-nav button.dropdown-trigger.active .dropdown-chevron {
    transform: rotate(180deg);
}

.sidebar-nav .cat-list-dropdown {
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-out, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.2s ease-out;
    margin-left: 23px;
    padding-left: 13px;
}

.sidebar-nav .cat-list-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.sidebar-nav .cat-list-dropdown.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 4px;
    margin-bottom: 8px;
}

.sidebar-nav .cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    padding: 2px 0;
    background: none;
    border: none;
    border-radius: 0;
}

.sidebar-nav .cat-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 !important;
    font-size: 0.84rem !important;
    font-weight: 500;
    color: var(--off-white) !important;
    background: none !important;
    border: none !important;
    border-radius: var(--r-sm);
    transition: color var(--t-fast), transform var(--t-fast) !important;
    text-decoration: none;
}

.sidebar-nav .cat-grid-item:hover {
    color: var(--white) !important;
    transform: translateX(3px);
}

.sidebar-nav .cat-grid-item.active {
    color: var(--white) !important;
    font-weight: 600;
}

.sidebar-nav .cat-grid-item.active i {
    filter: drop-shadow(0 0 5px currentColor);
    transform: scale(1.1);
}

.sidebar-nav .cat-grid-item i {
    font-size: 0.85rem;
    transition: transform var(--t-fast), filter var(--t-fast);
}

.sidebar-nav .cat-grid-item:hover i {
    transform: scale(1.15);
}

.sidebar-nav .text-trending {
    color: #ff512f;
}

.sidebar-nav .text-bollywood {
    color: #e50914;
}

.sidebar-nav .text-hollywood {
    color: #00a8ff;
}

.sidebar-nav .text-south {
    color: #fbc531;
}

.sidebar-nav .text-korean {
    color: #e84393;
}

.sidebar-nav .text-action {
    color: #ff4757;
}

.sidebar-nav .text-comedy {
    color: #ffa502;
}

.sidebar-nav .text-horror {
    color: #a4b0be;
}

.sidebar-nav .text-scifi {
    color: #1e90ff;
}

.sidebar-nav .text-romance {
    color: #e84393;
}

@media (max-width: 340px) {
    .sidebar-nav .cat-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .sidebar-nav .cat-grid-item {
        padding: 5px 0 !important;
    }
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    margin-top: calc(-1 * var(--nav-height));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(5, 5, 5, 0.98) 30%, rgba(5, 5, 5, 0.6) 70%, rgba(5, 5, 5, 0.2) 100%),
        linear-gradient(to top, rgba(5, 5, 5, 1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 0 24px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--red-soft);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-meta .rating {
    color: #fbbf24;
}

.hero-synopsis {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--t-med);
    border: none;
}

.hero-dot.active {
    width: 28px;
    background: var(--red);
}

/* ── Content Sections ────────────────────────────────────────── */
.content-section {
    padding: 40px 0;
}

.content-section+.content-section {
    padding-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 24px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-red);
    border-radius: var(--r-full);
    display: block;
}

.section-link {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color var(--t-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--red);
}

/* ── Cards Scroll Row ─────────────────────────────────────────── */
.cards-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 24px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cards-row::-webkit-scrollbar {
    display: none;
}

/* ── Movie Card ─────────────────────────────────────────────── */
.movie-card {
    position: relative;
    flex-shrink: 0;
    width: 175px;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t-med), box-shadow var(--t-med);
    scroll-snap-align: start;
    background: var(--surface);
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.card-poster {
    position: relative;
    padding-top: 148%;
    overflow: hidden;
}

.card-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.movie-card:hover .card-poster img {
    transform: scale(1.07);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--t-med);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

/* Top 10 Rank Styling */
.top10-card {
    display: flex;
    align-items: center;
    position: relative;
    width: 210px;
    /* Wider to fit number */
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.top10-card:hover {
    transform: translateY(-6px);
    z-index: 20;
}

.rank-number {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.8;
    color: var(--bg);
    -webkit-text-stroke: 4px var(--off-white);
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.8);
    margin-right: -25px;
    z-index: 1;
    transition: all var(--t-med);
}

.top10-card:hover .rank-number {
    color: var(--red);
    -webkit-text-stroke: 2px var(--red);
}

.top10-poster-wrap {
    position: relative;
    width: 140px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-med);
}

.top10-card:hover .top10-poster-wrap {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.top10-poster {
    width: 100%;
    padding-top: 148%;
    position: relative;
}

.top10-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* End Top 10 */

.card-play-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 8px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: var(--shadow-red);
    border: none;
}

.card-play-btn:hover {
    transform: scale(1.1);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #fbbf24;
    font-weight: 600;
}

.card-info {
    padding: 10px 12px 12px;
}

.card-title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    background: var(--red);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Watchlist button on card */
.card-watchlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: var(--r-full);
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--white);
    cursor: pointer;
    transition: all var(--t-fast);
    opacity: 0;
}

.movie-card:hover .card-watchlist-btn {
    opacity: 1;
}

.card-watchlist-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ── Grid View ──────────────────────────────────────────────── */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    padding: 0 24px;
}

.movies-grid .sv-card {
    width: 100%;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--muted);
    font-size: 1rem;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.filter-chip {
    padding: 7px 16px;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--off-white);
    cursor: pointer;
    transition: all var(--t-fast);
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--red-soft);
    border-color: rgba(229, 9, 20, 0.5);
    color: var(--red);
}

.filter-select {
    padding: 7px 28px 7px 14px;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: var(--surface-2);
    color: var(--white);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
    transition: all var(--t-fast);
}

.filter-select:hover {
    border-color: var(--border-hover);
    background-color: var(--surface-3);
}

.filter-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

/* ── Detail Page ────────────────────────────────────────────── */
.detail-hero {
    position: relative;
    padding-top: var(--nav-height);
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.5);
}

.detail-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #050505 0%, transparent 50%),
        linear-gradient(to right, #050505 0%, rgba(5, 5, 5, 0.5) 50%, transparent 100%);
}

.detail-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    padding: 40px 24px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    align-items: flex-end;
}

.detail-poster {
    flex-shrink: 0;
    width: 220px;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.detail-info {
    flex: 1;
}

.detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge {
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-red {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.badge-grey {
    background: rgba(255, 255, 255, 0.08);
    color: var(--off-white);
    border: 1px solid var(--border);
}

.badge-gold {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.detail-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--muted);
}

.detail-rating {
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-synopsis {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin-bottom: 28px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.detail-cast {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--muted);
}

.detail-cast strong {
    color: var(--white);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--white);
}

.tab-btn.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Episode List ───────────────────────────────────────────── */
.episode-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t-fast);
}

.episode-item:hover {
    border-color: var(--red);
    background: var(--surface-2);
}

.episode-thumb {
    width: 120px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-number {
    font-size: 0.75rem;
    color: var(--muted);
}

.episode-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.episode-desc {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background:
        radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        #050505;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 120px rgba(229, 9, 20, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtitle {
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--t-fast);

}

.form-input:focus {
    border-color: rgba(229, 9, 20, 0.8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.15);
}

.form-input.error {
    border-color: var(--red);
}

.form-error {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-success {
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-footer a {
    color: var(--red);
    font-weight: 600;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff6b76;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ── Profile Page ────────────────────────────────────────────── */
.profile-header {
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    display: flex;
    gap: 28px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}

.profile-avatar-lg {
    width: 90px;
    height: 90px;
    border-radius: var(--r-full);
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-red);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.stat-box {
    text-align: center;
}

.stat-box strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-box span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Search Page ────────────────────────────────────────────── */
.search-page {
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    max-width: var(--container);
    margin: 0 auto;
}

.search-hero {
    text-align: center;
    margin-bottom: 40px;
}

.search-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.search-bar-lg {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.search-bar-lg input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    color: var(--white);
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-bar-lg input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.search-bar-lg .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .search-hero h1 {
        font-size: 2rem;
    }

    .search-bar-lg {
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .search-bar-lg input {
        padding: 14px 45px 14px 18px;
        font-size: 1rem;
    }

    .search-bar-lg .search-icon {
        right: 15px;
        font-size: 1rem;
    }
}

/* ── Ultra Premium Search Bar (For Category Headers) ───────── */
.ultra-search-wrapper {
    max-width: 550px;
    margin: 30px auto 0;
    position: relative;
    z-index: 20;
}

.ultra-search-form {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 15, 0.4);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ultra-search-form:focus-within {
    background: rgba(20, 20, 20, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(229, 9, 20, 0.15);
    transform: translateY(-2px);
}

.ultra-search-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 0 12px 0 18px;
    transition: color 0.3s;
}

.ultra-search-form:focus-within .ultra-search-icon {
    color: #fff;
}

.ultra-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 10px 12px 0;
    outline: none;
}

.ultra-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.ultra-search-btn {
    background: linear-gradient(135deg, #e50914, #b9090b);
    color: #fff;
    border: none;
    border-radius: 50px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.ultra-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.ultra-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-right: 6px;
}

.ultra-search-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

@media (max-width: 600px) {
    .ultra-search-wrapper {
        margin-top: 24px;
        max-width: 90%;
    }

    .ultra-search-form {
        padding: 5px;
        border-radius: 50px;
    }

    .ultra-search-icon {
        font-size: 1.05rem;
        padding: 0 10px 0 14px;
    }

    .ultra-search-input {
        font-size: 1rem;
        padding: 10px 5px 10px 0;
    }

    .ultra-search-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .ultra-search-clear {
        width: 42px;
        height: 42px;
        margin-right: 5px;
    }
}

/* ── Admin ───────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-main {
    flex: 1;
    padding: 32px;
    overflow: hidden;
}

.admin-sidebar .nav-logo {
    margin-bottom: 28px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    color: var(--off-white);
    transition: all var(--t-fast);
    margin-bottom: 2px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--red-soft);
    color: var(--red);
}

.admin-nav .nav-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-2);
    padding: 14px 14px 6px;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--t-fast);
}

.stat-card:hover {
    border-color: var(--red);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--red-soft);
    color: var(--red);
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.admin-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.admin-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--surface-2);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.4rem;
    color: var(--off-white);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto 24px;
}

/* ── Loading Skeleton ────────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-sm);
}

.skeleton-card {
    width: 175px;
    height: 260px;
    border-radius: var(--r-md);
    flex-shrink: 0;
}

/* ── Glassmorphism Card ─────────────────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
}

/* ── Rating Stars ───────────────────────────────────────────── */
.stars {
    display: flex;
    gap: 3px;
    color: #fbbf24;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
    height: 3px;
    background: var(--surface-3);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: var(--r-full);
    transition: width var(--t-med);
}

/* ── Toast Notification ─────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--surface);
    border-left: 3px solid var(--red);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform var(--t-med);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 360px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: #10b981;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 32px 24px;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--off-white);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--t-fast);
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient-red);
    border-color: transparent;
    color: var(--white);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 12px;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--t-fast);
}

.footer-socials a:hover {
    background: var(--red);
    border-color: var(--red);
}

.footer-links-group h4 {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-links-group a {
    display: block;
    font-size: 0.88rem;
    color: var(--off-white);
    padding: 4px 0;
    transition: color var(--t-fast);
}

.footer-links-group a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── Continue Watching Card ──────────────────────────────────── */
.cw-card {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: transform var(--t-med);
}

.cw-card:hover {
    transform: translateY(-4px);
}

.cw-thumb {
    position: relative;
    padding-top: 56%;
}

.cw-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.cw-progress-fill {
    height: 100%;
    background: var(--red);
}

.cw-info {
    padding: 12px;
}

.cw-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cw-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .detail-poster {
        width: 180px;
    }

    .detail-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-right: -4px;
    }

    .nav-actions {
        gap: 4px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .nav-icon-btn,
    .search-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .navbar .btn-ghost,
    .navbar .btn-primary {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-synopsis {
        font-size: 0.9rem;
    }

    .hero-actions .btn-lg {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .detail-content {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .detail-poster {
        width: 140px;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .section-header {
        padding: 0 16px;
    }

    .cards-row {
        padding: 8px 16px 16px;
    }

    .container,
    .movies-grid {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .site-footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .footer-tagline {
        font-size: 0.75rem;
        margin-top: 6px;
    }

    .footer-socials {
        margin-top: 10px;
    }

    .footer-socials a {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .footer-links-group h4 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .footer-links-group a {
        font-size: 0.8rem;
        padding: 2px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 12px 0;
        gap: 4px;
        font-size: 0.7rem;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .movie-card {
        width: 140px;
    }

    .auth-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
    }

    .hero-bg::after {
        background:
            linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(5, 5, 5, 0.5) 100%);
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .movie-card {
        width: 100%;
    }

    .detail-poster {
        display: none;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 32px 24px;
        margin: 0 16px;
        border-radius: 24px;
        background: rgba(15, 15, 15, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 80px rgba(229, 9, 20, 0.2);
        -webkit-backdrop-filter: blur(40px);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }

    .auth-logo {
        margin-bottom: 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        margin-bottom: 20px;
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-input {
        padding: 13px 16px;
        font-size: 0.95rem;
    }

    .btn-full {
        padding: 14px;
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .search-hero h1 {
        font-size: 1.8rem;
    }

    /* Bottom nav spacing is now handled via body:not(.page-watch) padding-bottom
       to avoid conflict with body-level safe-area padding */
    main,
    #main-content {
        width: 100%;
    }
}

/* ── Mobile Bottom Navigation ────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(11, 11, 11, 0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
    padding-bottom: 16px;
    /* Safe area for iPhone X+ notch/home bar */
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: calc(10px + constant(safe-area-inset-bottom));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
    /* Critical iOS Safari fix: forces its own GPU compositing layer
       which prevents the element from "jumping" during scroll/bounce */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    isolation: isolate;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 0.7rem;
    color: var(--muted);
    transition: all var(--t-fast);
    border-radius: var(--r-sm);
    flex: 1 1 0%;
    text-align: center;
    min-width: 0; /* Flexbox trick to prevent overflow on narrow screens */
}

.mbn-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mbn-item span {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mbn-item.active {
    color: var(--red);
}

.mbn-item:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Prevent content from hiding behind the fixed bottom nav */
    body:not(.page-watch) {
        padding-bottom: 70px;
        padding-bottom: calc(70px + constant(safe-area-inset-bottom));
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    /* Watch page — hide bottom nav to avoid covering player controls */
    body.page-watch .mobile-bottom-nav {
        display: none;
    }
}

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-page {
    padding: calc(var(--nav-height) + 40px) 0 80px;
}

.legal-header {
    text-align: center;
    padding: 0 24px 40px;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.legal-header p {
    color: var(--muted);
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content strong {
    color: var(--white);
}

.legal-content code {
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 20px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }
}

/* ── Admin Extra Styles ───────────────────────────────────────── */
.admin-body {
    background: radial-gradient(ellipse at top left, rgba(229, 9, 20, 0.15), transparent 40%), var(--bg);
}

.admin-sidebar {
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-header {
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.admin-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    color: var(--muted);
    transition: all var(--t-fast);
}

.admin-sidebar-footer a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav a {
    position: relative;
    border: 1px solid transparent;
}

.admin-nav a.active {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.05));
    border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.1);
}

.admin-nav a.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--red);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--red);
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-breadcrumb a {
    color: var(--red);
}

.admin-card {
    background: rgba(20, 20, 20, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.admin-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-body {
    padding: 24px;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.admin-search-input {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-full);
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
    min-width: 280px;
    flex: 1;
    transition: all 0.3s ease;
}

.admin-search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    background: rgba(0, 0, 0, 0.8);
}

.table-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.table-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.status-published {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-draft {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-archived {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-inactive {
    background: rgba(229, 9, 20, 0.15);
    color: #ff6b76;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--t-fast);
    border: none;
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-btn.delete {
    background: rgba(229, 9, 20, 0.15);
    color: var(--red);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.action-btn.view {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn:hover {
    transform: scale(1.15);
}

.admin-form .form-group {
    margin-bottom: 22px;
}

.admin-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--off-white);
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--red);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 120px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form .form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Glowing Stat Cards */
.stat-card {
    background: rgba(20, 20, 20, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, transparent, #e50914, transparent);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.stat-icon.amber {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.stat-icon.red {
    background: rgba(229, 9, 20, 0.15);
    color: var(--red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

@media (max-width: 768px) {

    .admin-form .form-row,
    .admin-form .form-row-3 {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Premium Listing Pages ────────────────────────────────────── */
.premium-page-header {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 24px 80px;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.premium-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center 0%, rgba(229, 9, 20, 0.25) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.premium-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
    z-index: 2;
    pointer-events: none;
}

.premium-page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.premium-page-header-content {
    position: relative;
    z-index: 3;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.premium-page-header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.premium-page-header p {
    color: var(--muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.premium-page-header p .highlight {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.premium-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: -40px auto 40px;
    padding: 15px 25px;
    background: rgba(20, 20, 20, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    width: fit-content;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.premium-filter-bar .filter-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    padding: 10px 35px 10px 18px;
    border-radius: var(--r-md);
    transition: all 0.3s ease;
    color: var(--white);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.premium-filter-bar .filter-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-2px);
}

.premium-filter-bar .filter-select:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

@media (max-width: 768px) {
    .premium-page-header h1 {
        font-size: 2.8rem;
    }

    .premium-page-header p {
        font-size: 1rem;
    }

    .premium-page-header {
        padding: calc(var(--nav-height) + 40px) 20px 40px;
    }

    .premium-filter-bar {
        margin: -20px auto 30px;
        flex-direction: column;
        width: 90%;
    }
}