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

:root {
    --bg: #080808;
    --fg: #f5f4f0;
    --card: #0f0f0f;
    --card-hover: #161616;
    --primary: #f2b90d;
    --primary-hover: #f5c73d;
    --primary-dark: #ec8013;
    --secondary: #1f1f1f;
    --muted: #292929;
    --muted-fg: #8c8473;
    --accent: #ee8c2b;
    --accent-hover: #f5a03d;
    --border: #22201c;
    --input: #1a1a1a;
    --destructive: #dc2828;
    --success: #22c55e;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: 0.2s ease;
    --nav-height: 60px;
    --gradient-cta: linear-gradient(135deg, #f2b90d, #ec8013);
    --gradient-gold: linear-gradient(135deg, #ec8013, #cf5417);
    --gradient-text: linear-gradient(135deg, #f4c025, #ee9d2b);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
select, select option { color-scheme: dark; }
select option { background: #1a1a1a; color: #f5f4f0; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== FLASH TOAST ===== */
.flash-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: opacity 0.4s, transform 0.4s;
    animation: flashSlideIn 0.3s ease;
}

/* promo bar is now bottom-floating, no shift needed */

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.flash-toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.flash-toast-inner button {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0 0 8px;
    line-height: 1;
}

.flash-toast-inner button:hover { opacity: 1; }

.flash-success {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.25);
    backdrop-filter: blur(12px);
}

.flash-info {
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.25);
    backdrop-filter: blur(12px);
}

.flash-error {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.25);
    backdrop-filter: blur(12px);
}

/* ===== PROMO BAR (appears on scroll) ===== */
.promo-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(90deg, #ec8013, #ee8c2b, #f2b90d);
    height: 44px;
    display: flex;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.promo-bar.visible {
    transform: translateY(0);
}

.promo-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: #000;
    font-weight: 500;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.promo-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.15);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    background: transparent;
    color: #000;
    border: 1.5px solid #000;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.15s;
    flex-shrink: 0;
}

.promo-cta:hover {
    background: #000;
    color: #f2b90d;
}

.promo-close {
    background: none;
    border: none;
    color: rgba(0,0,0,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.promo-close:hover { color: #000; }

/* Promo bar no longer shifts content (it's a bottom bar now) */

@media (max-width: 768px) {
    .promo-text { display: none; }
    .promo-bar-inner { justify-content: center; gap: 8px; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* All pages: transparent at top, opaque on scroll */

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #000;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Featured nav button */
.nav-feat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(242,185,13,0.15), rgba(168,85,247,0.1));
    border: 1px solid rgba(242,185,13,0.3);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 4px;
    animation: nav-feat-glow 3s ease-in-out infinite;
}
.nav-feat-btn:hover {
    background: linear-gradient(135deg, rgba(242,185,13,0.25), rgba(168,85,247,0.15));
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(242,185,13,0.2);
}
.nav-feat-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
@keyframes nav-feat-glow { 0%,100% { box-shadow: 0 0 0 rgba(242,185,13,0); } 50% { box-shadow: 0 0 12px rgba(242,185,13,0.15); } }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Search icon button */
.nav-search-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.nav-search-icon:hover { color: #fff; }

/* Search form - hidden by default, expands on click */
.nav-search {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    z-index: 10;
}

.nav-search.open {
    display: flex;
}

.search-input {
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 9px 16px;
    color: var(--fg);
    font-size: 0.88rem;
    width: 280px;
    transition: all var(--transition);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { outline: none; border-color: var(--primary); width: 320px; }

/* Subscribe button - orange solid like reference */
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(238,140,43,0.3);
}

.btn-subscribe:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(238,140,43,0.4); }

/* User avatar icon - orange circle */
.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.nav-user-avatar:hover { filter: brightness(1.15); transform: scale(1.05); }

.nav-notif-bell {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
}
.nav-notif-bell:hover { color: #fff; }

/* Notification Dropdown */
.nav-notif-dropdown { position: relative; }
.nav-notif-dropdown .nav-notif-bell { cursor: pointer; background: none; border: none; font-family: inherit; }
.notif-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    animation: dropdownFade 0.15s ease;
    overflow: hidden;
}
.notif-dropdown-menu.open { display: block; }
.notif-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1.3;
}
@keyframes notif-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

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

.nav-user-dropdown .nav-user-avatar {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 0;
    z-index: 2000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.user-dropdown-menu.open {
    display: block;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-header strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.user-dropdown-header span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 2px 12px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.15s;
}

.user-dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.user-dropdown-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.user-dropdown-item:hover svg {
    opacity: 0.8;
}

.user-dropdown-logout {
    color: rgba(239,68,68,0.8);
}

.user-dropdown-logout:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.08);
}

.user-dropdown-logout svg {
    opacity: 0.7;
}

/* Legacy compat */
.nav-user-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
}

.nav-user-icon:hover { filter: brightness(1.15); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }
.nav-search-mobile { margin: 8px 0; }
.nav-search-mobile .search-input { width: 100%; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-primary { background: var(--gradient-cta); color: #000; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--muted-fg); background: var(--card); }
.btn-block { width: 100%; }

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content.is-home {
    padding-top: 0;
    margin-top: 0;
}

/* navbar universal: transparent handled in base .navbar, scrolled in .navbar.scrolled */

/* ===== HERO / BANNER ===== */
/* ═══ HERO (homepage) ═════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 480px;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-height));
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.4) 40%, rgba(8,8,8,0.75) 70%, var(--bg) 92%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.4) 40%, transparent 70%);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg) 0%, var(--bg) 20%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hero brightness auto-adjust for light images */
.hero-brightness-light .hero-bg::after {
    background:
        linear-gradient(180deg, rgba(8,8,8,0.45) 0%, rgba(8,8,8,0.6) 40%, rgba(8,8,8,0.85) 70%, var(--bg) 92%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.6) 40%, rgba(8,8,8,0.2) 70%) !important;
}
.hero-brightness-medium .hero-bg::after {
    background:
        linear-gradient(180deg, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.5) 40%, rgba(8,8,8,0.8) 70%, var(--bg) 92%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.5) 40%, rgba(8,8,8,0.1) 70%) !important;
}

/* ═══ PAGE HERO (all internal pages) ══════════════════════════════════════ */
body.has-global-bg {
    background: #080808 !important;
}
body.has-global-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--hero-bg);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(2px);
}
body.has-global-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(8,8,8,var(--overlay-top,0)) 0%, rgba(8,8,8,var(--overlay-mid1,0.4)) 35%, rgba(8,8,8,var(--overlay-mid2,0.8)) 65%, #080808 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 32px;
}

.hero-left {
    flex-shrink: 0;
}

/* Live pill */
.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.hero-live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: hero-dot 2s ease-in-out infinite;
}

@keyframes hero-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Title */
.hero-h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.95;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.hero-h1 span {
    -webkit-text-fill-color: var(--fg);
    font-size: 1em;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-sub {
    font-size: 0.88rem;
    color: var(--muted-fg);
    margin-top: 4px;
    margin-bottom: 18px;
}

/* CTA */
.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    background: var(--gradient-cta);
    color: #000;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(242, 185, 13, 0.15);
}

.hero-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(242, 185, 13, 0.3);
}

/* Stats grid */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex-shrink: 0;
    max-width: 360px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    backdrop-filter: blur(12px);
}

.hero-stat svg {
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.8;
}

.hero-stat strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stat span {
    font-size: 0.65rem;
    color: var(--muted-fg);
    line-height: 1.2;
}

/* ===== FILTER BAR ===== */
.filter-section {
    padding-bottom: 8px !important;
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    background: var(--card-hover);
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(20,20,20,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    animation: dropdownSlide 0.15s ease;
}
@keyframes dropdownSlide { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.filter-dropdown-menu.open {
    display: block;
}

.filter-option {
    display: block;
    padding: 9px 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    border-radius: 8px;
    transition: all 0.12s;
    white-space: nowrap;
}

.filter-option:hover {
    background: rgba(242,185,13,0.08);
    color: #fff;
}
.filter-option.active {
    background: rgba(242,185,13,0.1);
}

.filter-option.active {
    color: var(--primary);
    font-weight: 600;
}

.filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 100px;
    color: rgba(239,68,68,0.8);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}

.filter-clear:hover {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

/* ===== SECTION HEADERS ===== */
.section {
    padding: 32px 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

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

.section-link {
    font-size: 0.82rem;
    color: var(--muted-fg);
    font-weight: 500;
    transition: color var(--transition);
}

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

/* ===== VIDEO GRID ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.video-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
}

.video-card:hover {
    border-color: rgba(242,185,13,0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Skeleton loading animation */
@keyframes skeletonPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-load {
    background: linear-gradient(90deg, #0a0a0a 25%, #151515 37%, #1a1a1a 50%, #151515 63%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.8s ease infinite;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(90deg, #0a0a0a 25%, #151515 37%, #1a1a1a 50%, #151515 63%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.8s ease infinite;
}
.video-thumb.loaded { animation: none; background: #0a0a0a; }

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-thumb img.loaded { opacity: 1; }

/* YouTube-style watch progress bar on thumbnails */
.video-watch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 2;
}
.video-watch-progress-fill {
    height: 100%;
    background: #ef4444;
    border-radius: 0 1px 1px 0;
    min-width: 3px;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.video-duration:empty { display: none; }


.video-info { padding: 10px 12px 12px; }

.video-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--fg);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--muted-fg);
    flex-wrap: wrap;
}
.video-meta-date {
    font-size: 0.65rem;
    color: var(--muted-fg);
    opacity: 0.7;
}
.video-meta-dot::before { content: '·'; margin: 0 2px; }

/* ===== SHORTS ===== */
.shorts-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.shorts-scroll::-webkit-scrollbar { display: none; }

.short-card {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 9/16;
    background: var(--card);
    cursor: pointer;
    transition: all var(--transition);
}

.short-card:hover { transform: translateY(-3px); }

.short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.short-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.short-views {
    font-size: 0.68rem;
    color: var(--muted-fg);
    margin-top: 2px;
}

.short-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
}

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

/* ===== CATEGORY TAGS ===== */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-tag {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--muted-fg);
    transition: all var(--transition);
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}

/* ===== PLAYER PAGE ===== */
.player-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
    -webkit-transform: translateZ(0);
}

@media (max-width: 600px) {
    .player-wrapper {
        border-radius: 8px;
    }
}

.movie-info-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, var(--card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    align-self: start;
    overflow: hidden;
    min-width: 0;
}
.mv-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    text-align: center;
    word-break: break-word;
}
.mv-chips { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px; max-width:100%; }
.mv-chip {
    display:inline-flex; align-items:center; gap:6px; padding:5px 13px; border-radius:100px;
    font-size:0.75rem; font-weight:600; color:rgba(255,255,255,0.55); text-decoration:none;
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06);
    transition:all 0.2s ease;
}
.mv-chip:hover { background:rgba(242,185,13,0.08); border-color:rgba(242,185,13,0.15); color:var(--primary); }
.mv-chip-star { padding-left:4px; }
.mv-chip-studio { border-color:rgba(242,185,13,0.12); color:rgba(242,185,13,0.7); background:rgba(242,185,13,0.04); }
.mv-chip-studio:hover { background:rgba(242,185,13,0.1); color:var(--primary); }
.mv-chip-img { width:22px; height:22px; border-radius:50%; object-fit:cover; }
.mv-chip-init { width:22px; height:22px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:800; color:#000; }
.mv-warning { margin-bottom:8px; background:rgba(242,185,13,0.03); border:1px solid rgba(242,185,13,0.08); border-radius:10px; overflow:hidden; }
.mv-warning-btn {
    width:100%; padding:10px 14px; display:flex; align-items:center; gap:8px;
    background:none; border:none; color:#fff; cursor:pointer; font-family:inherit; text-align:left;
    font-size:0.78rem; font-weight:600; color:var(--primary);
}
.mv-warning-btn .swa { transition:transform 0.2s; margin-left:auto; flex-shrink:0; }
.mv-warning-body { max-height:0; overflow:hidden; transition:max-height 0.3s ease; }
.mv-warning-body p { padding:0 14px 12px 36px; font-size:0.75rem; color:rgba(255,255,255,0.5); line-height:1.6; }
.mv-cta-btn {
    display:flex; align-items:center; justify-content:center; gap:8px; padding:12px;
    background:var(--gradient-cta); color:#000; border-radius:10px;
    font-size:0.85rem; font-weight:700; text-decoration:none; margin-bottom:16px;
    transition:all 0.25s ease; box-shadow:0 2px 12px rgba(242,185,13,0.15);
}
.mv-cta-btn:hover { filter:brightness(1.1); transform:translateY(-1px); box-shadow:0 4px 20px rgba(242,185,13,0.25); }
.mv-stats {
    border-top:1px solid rgba(255,255,255,0.04); padding-top:14px; margin-bottom:14px;
    display:flex; flex-direction:column; gap:0;
}
.mv-stat {
    display:flex; align-items:center; gap:8px; padding:9px 0;
    border-bottom:1px solid rgba(255,255,255,0.03); font-size:0.82rem;
}
.mv-stat:last-child { border-bottom:none; }
.mv-stat-label { color:var(--muted-fg); flex:1; }
.mv-stat-value { font-weight:600; }
.mv-actions { display:flex; gap:8px; margin-bottom:12px; }
.mv-action-btn {
    flex:1; display:flex; align-items:center; justify-content:center; gap:7px;
    padding:11px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06);
    border-radius:10px; color:rgba(255,255,255,0.6); font-size:0.82rem; font-weight:600;
    cursor:pointer; font-family:inherit; transition:all 0.2s ease;
}
.mv-action-btn:hover { background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.1); color:#fff; }
.mv-action-btn.liked { background:rgba(242,185,13,0.08); border-color:rgba(242,185,13,0.2); color:var(--primary); }
.mv-download-btn {
    display:flex; align-items:center; justify-content:center; gap:8px;
    padding:11px; width:100%; border-radius:10px; font-size:0.82rem; font-weight:700;
    font-family:inherit; cursor:pointer; transition:all 0.2s ease; text-decoration:none;
    background:rgba(242,185,13,0.06); border:1px solid rgba(242,185,13,0.15); color:var(--primary);
}
.mv-download-btn:hover { background:rgba(242,185,13,0.12); border-color:rgba(242,185,13,0.25); }
.mv-download-disabled { cursor:not-allowed; opacity:0.4; color:var(--muted-fg); background:rgba(255,255,255,0.02); border-color:rgba(255,255,255,0.06); }
.mv-download-activate { color:rgba(242,185,13,0.5); }
.mv-download-activate:hover { color:var(--primary); }
.mv-report-btn {
    display:flex; align-items:center; gap:6px; margin-top:8px; padding:8px 14px; width:100%;
    background:none; border:1px solid rgba(255,255,255,0.05); border-radius:8px;
    color:rgba(255,255,255,0.3); font-size:0.75rem; font-family:inherit; cursor:pointer;
    transition:all 0.2s ease;
}
.mv-report-btn:hover { border-color:rgba(239,68,68,0.2); color:#ef4444; }

@media (max-width: 900px) {
    .movie-layout {
        grid-template-columns: 1fr !important;
    }
    .movie-info-panel {
        margin-top: 0;
    }
}

.player-wrapper iframe,
.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-details { margin-bottom: 32px; }

.player-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.player-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--muted-fg);
}

.player-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all var(--transition);
}

.like-btn:hover,
.like-btn.liked {
    background: rgba(242, 185, 13, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.player-description {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 14px;
    color: var(--muted-fg);
    font-size: 0.85rem;
    line-height: 1.7;
    border: 1px solid var(--border);
}

.player-category {
    display: inline-block;
    background: rgba(242, 185, 13, 0.1);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(242, 185, 13, 0.2);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--muted-fg);
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-input:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: var(--muted-fg); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-card {
    max-width: 420px;
    margin: 60px auto;
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border);
}

.form-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.form-card-subtitle {
    text-align: center;
    color: var(--muted-fg);
    font-size: 0.82rem;
    margin-bottom: 24px;
}

.form-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--muted-fg);
}

.form-footer a { color: var(--primary); font-weight: 500; }

.form-error {
    background: rgba(220, 40, 40, 0.1);
    border: 1px solid rgba(220, 40, 40, 0.3);
    color: var(--destructive);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    margin-bottom: 14px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-bottom: 32px;
}

.page-num, .page-btn {
    padding: 7px 13px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted-fg);
    background: var(--card);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.page-num:hover, .page-btn:hover {
    background: var(--card-hover);
    color: var(--fg);
}

.page-num.active {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-color: var(--primary);
}

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

/* ===== STATIC PAGES ===== */
.static-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.static-page h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.static-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
}

.static-page p {
    color: var(--muted-fg);
    margin-bottom: 14px;
    line-height: 1.7;
}

.static-page a { color: var(--primary); }

/* ===== FAQ ===== */
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    transition: background var(--transition);
}

.faq-question:hover { background: var(--card-hover); }
.faq-question::after { content: '+'; font-size: 1.1rem; color: var(--muted-fg); }
.faq-item.open .faq-question::after { content: '−'; color: var(--primary); }

.faq-answer {
    display: none;
    padding: 0 18px 14px;
    color: var(--muted-fg);
    font-size: 0.85rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 80px 20px; }

.error-code {
    font-size: 7rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-message { font-size: 1.3rem; font-weight: 600; margin: 16px 0 8px; }
.error-text { color: var(--muted-fg); margin-bottom: 28px; }

/* ===== SEARCH ===== */
.search-header { margin-bottom: 28px; }
.search-header h1 { font-size: 1.3rem; font-weight: 700; }
.search-header p { color: var(--muted-fg); font-size: 0.85rem; margin-top: 4px; }

.search-empty { text-align: center; padding: 80px 20px; color: var(--muted-fg); }
.search-empty h2 { font-size: 1.15rem; color: var(--fg); margin-bottom: 8px; }

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-text { color: var(--muted-fg); font-size: 0.82rem; line-height: 1.6; }
.footer-subtitle { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--muted-fg); font-size: 0.82rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--fg); }

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

/* ===== INSTALL PAGE ===== */
.install-page { text-align: center; padding: 60px 20px; max-width: 600px; margin: 0 auto; }
.install-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; }
.install-page p { color: var(--muted-fg); margin-bottom: 28px; }

.install-steps {
    text-align: left;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.install-step { display: flex; gap: 14px; margin-bottom: 16px; }
.install-step:last-child { margin-bottom: 0; }

.step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-cta);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text { padding-top: 3px; font-size: 0.85rem; color: var(--muted-fg); }

/* ===== ADMIN PANEL ===== */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
    width: 220px;
    background: #0a0a0a;
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    z-index: 10;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-sidebar-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.admin-logo .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.admin-nav {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

/* Section headers in sidebar */
.admin-nav-section {
    padding: 16px 18px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
}

.admin-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 18px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.15s;
    border-left: 2px solid transparent;
    margin: 1px 0;
}

.admin-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-nav-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.admin-nav-item:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.03);
}

.admin-nav-item.active {
    color: var(--primary);
    background: rgba(242,185,13,0.05);
    border-left-color: var(--primary);
}

.admin-badge {
    background: var(--primary);
    color: #000;
    border-radius: 9px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.admin-nav-back {
    margin-top: 8px;
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 24px 28px;
    min-width: 0;
}

.admin-header {
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-header p {
    font-size: 0.82rem;
    color: var(--muted-fg);
}

.admin-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: opacity 0.3s;
}

.admin-alert-success {
    background: rgba(34,197,94,0.1);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.2);
}

.admin-alert-error {
    background: rgba(220,40,40,0.1);
    color: var(--destructive);
    border: 1px solid rgba(220,40,40,0.2);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.3rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--muted-fg); }

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.admin-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-field { margin-bottom: 14px; }

.admin-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted-fg);
    margin-bottom: 5px;
    font-weight: 500;
}

.admin-input {
    width: 100%;
    padding: 9px 12px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.admin-input:focus { outline: none; border-color: var(--primary); }
textarea.admin-input { resize: vertical; min-height: 60px; }
select.admin-input { cursor: pointer; color-scheme: dark; }
select.admin-input option { background: #1a1a1a; color: #f5f4f0; }

.admin-input-file {
    padding: 8px;
    font-size: 0.82rem;
    color: var(--muted-fg);
}

.admin-input-file::file-selector-button {
    padding: 6px 14px;
    background: var(--secondary);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.78rem;
    margin-right: 10px;
}

.admin-btn {
    padding: 9px 20px;
    background: var(--gradient-cta);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 4px;
}

.admin-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ═══ ADMIN TABLE GLOBAL ═══ */
.admin-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.admin-table thead {
    background: rgba(255,255,255,0.03);
    position: sticky;
    top: 0;
    z-index: 1;
}
.admin-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-fg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.admin-table tbody tr {
    transition: background 0.15s;
}
.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table img {
    max-width: 60px;
    max-height: 40px;
    border-radius: 4px;
    object-fit: cover;
    vertical-align: middle;
}
.admin-table a {
    color: var(--fg);
    text-decoration: none;
}
.admin-table a:hover {
    color: var(--primary);
}
.admin-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--fg);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.admin-table-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}
.admin-table-btn-danger {
    color: #ef4444;
    border-color: rgba(239,68,68,0.2);
}
.admin-table-btn-danger:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
}

/* Status badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}
.admin-badge-success { background: rgba(34,197,94,0.1); color: #22c55e; }
.admin-badge-warning { background: rgba(245,158,11,0.1); color: #f59e0b; }
.admin-badge-danger { background: rgba(239,68,68,0.1); color: #ef4444; }
.admin-badge-info { background: rgba(99,102,241,0.1); color: #818cf8; }
.admin-badge-default { background: rgba(255,255,255,0.06); color: var(--muted-fg); }

.admin-tab { display: none; }
.admin-tab.active { display: block; }

.page-admin .footer { display: none; }
.page-admin .navbar { display: none; }
.page-admin .main-content { padding: 0; min-height: 100vh; }
.page-admin .promo-bar { display: none; }

/* Admin responsive - tablet */
@media (max-width: 900px) {
    .admin-sidebar { width: 52px; }
    .admin-sidebar-header span,
    .admin-nav-section,
    .admin-nav-item span,
    .admin-nav-divider { display: none; }
    .admin-sidebar-header { padding: 12px; justify-content: center; }
    .admin-nav-item { justify-content: center; padding: 10px; }
    .admin-main { margin-left: 52px; padding: 16px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 7px 8px; }
}

/* Admin responsive - mobile */
@media (max-width: 600px) {
    .page-admin .navbar { display: none; }
    .admin-sidebar {
        position: fixed;
        width: 100%;
        height: 52px;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 200;
        overflow-x: auto;
        overflow-y: hidden;
        background: #0a0a0a;
    }
    .admin-sidebar-header,
    .admin-nav-section,
    .admin-nav-divider,
    .admin-nav-back { display: none !important; }
    .admin-nav {
        flex-direction: row;
        padding: 0 4px;
        gap: 0;
        height: 52px;
        align-items: center;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .admin-nav::-webkit-scrollbar { display: none; }
    .admin-nav-item {
        flex-direction: column;
        padding: 6px 12px;
        gap: 2px;
        flex-shrink: 0;
        border-left: none !important;
        font-size: 9px;
        min-width: 48px;
        align-items: center;
        justify-content: center;
    }
    .admin-nav-item span {
        display: block !important;
        font-size: 9px;
        line-height: 1;
        max-width: 56px;
        text-align: center;
    }
    .admin-nav-item.active {
        border-left: none;
        background: rgba(242,185,13,0.1);
        border-radius: 8px;
    }
    .admin-nav-item svg { width: 16px; height: 16px; }
    .admin-main {
        margin-left: 0;
        margin-bottom: 56px;
        padding: 12px;
        margin-top: 0;
    }
    .admin-wrapper { margin-top: 0; }
    .admin-header h1 { font-size: 1.1rem; }
    .admin-header p { font-size: 0.75rem; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 10px; gap: 10px; }
    .stat-icon { width: 36px; height: 36px; }
    .stat-value { font-size: 1rem; }
    .stat-label { font-size: 0.7rem; }
    .admin-card { padding: 14px; border-radius: 10px; }
    .admin-card-title { font-size: 0.88rem; margin-bottom: 12px; padding-bottom: 8px; }
    .admin-field label { font-size: 0.75rem; }
    .admin-input { font-size: 0.82rem; padding: 8px 10px; }
    .admin-btn { padding: 8px 16px; font-size: 0.78rem; }
    .admin-table { font-size: 11px; }
    .admin-table th { font-size: 10px; padding: 6px 6px; }
    .admin-table td { padding: 6px 6px; }
    .admin-table img { max-width: 40px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-feat-btn { display: none; }
    .nav-actions { display: flex; gap: 8px; }
    .nav-toggle { display: none !important; }
    .nav-mobile { display: none !important; }
    .btn-subscribe { display: none !important; }
    .nav-user-dropdown .user-dropdown-menu { width: 300px; right: -8px; }

    .hero { height: auto; min-height: 0; max-height: none; margin-bottom: 0; }
    .hero::after { height: 30px; }
    .hero-inner { flex-direction: column; align-items: center; text-align: center; justify-content: flex-end; padding: calc(var(--nav-height) + 70px) 1.2rem 16px; gap: 16px; }
    .hero-left { width: 100%; }
    .hero-stats { max-width: 100%; width: 100%; gap: 6px; }
    .hero-stat { padding: 10px 12px; border-radius: 8px; gap: 8px; justify-content: center; text-align: center; }
    .hero-stat svg { width: 16px; height: 16px; }
    .hero-stat strong { font-size: 0.72rem; }
    .hero-stat span { font-size: 0.58rem; }
    .hero-h1 { font-size: 1.8rem; line-height: 1.1; }
    .hero-sub { margin-bottom: 8px; font-size: 0.78rem; }
    .filters-bar { gap: 6px; }
    .filter-btn { padding: 6px 10px; font-size: 0.75rem; }
    .category-tags { gap: 6px; }
    .category-tag { padding: 5px 10px; font-size: 0.75rem; }
    .price-current { font-size: 1.6rem; }

    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .short-card { width: 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-card { margin: 20px 16px; padding: 24px; }
    .section-title { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: calc(var(--nav-height) + 60px) 1rem 12px; gap: 12px; align-items: center; text-align: center; }
    .hero-h1 { font-size: 1.5rem; }
    .hero-sub { font-size: 0.72rem; margin-bottom: 4px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 5px; }
    .hero-stat { padding: 8px 10px; gap: 6px; border-radius: 8px; }
    .hero-stat svg { width: 14px; height: 14px; }
    .hero-stat strong { font-size: 0.65rem; }
    .hero-stat span { font-size: 0.55rem; }
    .hero-btn { width: 100%; justify-content: center; }
    .container { padding: 0 1rem; }
    .flash-toast { width: 90%; }
    .flash-toast-inner { white-space: normal; font-size: 0.82rem; }
    .user-dropdown-menu { width: 280px; right: -10px; }
}

/* ═══ PREMIUM BADGE ═══════════════════════════════════════════════════════ */
.video-badge-premium {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e50914, #ff6b35);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ═══ ACTIVE FILTER BUTTON ════════════════════════════════════════════════ */
.filter-btn-active {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: rgba(242, 185, 13, 0.08) !important;
}

/* ═══ STUDIO META ═════════════════════════════════════════════════════════ */
.video-meta-studio {
    color: var(--primary);
    font-weight: 600;
}

/* ═══ PORNSTARS SCROLL ════════════════════════════════════════════════════ */
.ps-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.ps-scroll::-webkit-scrollbar { display: none; }

.ps-card {
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    width: 80px;
    transition: transform 0.2s;
}
.ps-card:hover { transform: translateY(-3px); }

.ps-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 6px;
    border: 2px solid var(--primary);
    padding: 2px;
    background: var(--card);
}
.ps-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* ═══ STUDIO SECTIONS (horizontal scroll) ═════════════════════════════════ */
.studio-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.studio-scroll::-webkit-scrollbar { display: none; }

.studio-video-card {
    flex-shrink: 0;
    width: 280px;
    text-decoration: none;
    transition: transform 0.2s;
}
.studio-video-card:hover { transform: translateY(-2px); }

.studio-video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(90deg, #0a0a0a 25%, #151515 37%, #1a1a1a 50%, #151515 63%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.8s ease infinite;
    margin-bottom: 6px;
}
.studio-video-thumb.loaded { animation: none; background: #0a0a0a; }
.studio-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.studio-video-thumb img.loaded { opacity: 1; }
.studio-video-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.studio-video-info { padding: 0 2px; }

@media (max-width: 480px) {
    .studio-video-card { width: 220px; }
    .studio-scroll { gap: 10px; }
}

.ps-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-count {
    font-size: 0.58rem;
    color: var(--muted-fg);
}

@media (max-width: 480px) {
    .ps-card { width: 70px; }
    .ps-avatar { width: 58px; height: 58px; }
    .ps-scroll { gap: 12px; }
}

/* ═══ IMPROVED VIDEO CARD HOVER ══════════════════════════════════════════ */
.video-card .video-info {
    padding: 10px 12px 12px;
}

/* ═══ FILTER BAR IMPROVEMENTS ═════════════════════════════════════════════ */
.filter-section {
    padding-bottom: 0 !important;
}

.filters-bar {
    padding: 10px 0;
}

/* ═══ SECTION HEADER IMPROVEMENTS ═════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ═══ RESPONSIVE FILTER IMPROVEMENTS ══════════════════════════════════════ */
@media (max-width: 768px) {
    .filters-bar {
        gap: 6px;
        padding: 8px 0;
    }
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
    .filter-dropdown-menu {
        min-width: 140px;
    }
    .video-badge-premium {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .filters-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding-bottom: 6px;
    }
    .filter-dropdown { position: relative; }
    .filter-dropdown-menu { position: absolute; top: 100%; left: 0; right: auto; min-width: 180px; max-height: 250px; overflow-y: auto; z-index: 200; }
    .filter-clear { flex-shrink: 0; }
}
