/**
 * Leak Masti - Main Stylesheet (style.css)
 * Premium Dark-Themed Media & Video Streaming Platform
 * Version: 1.0.0
 */

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #0f0f0f;       /* Deep obsidian black */
    --bg-secondary: #1a1a2e;     /* Dark navy blue */
    --bg-card: #16213e;          /* Rich dark card background */
    --bg-card-hover: #1b2749;    /* Elevated card hover */
    --bg-glass: rgba(22, 33, 62, 0.75);
    
    --text-primary: #ffffff;     /* Pure white */
    --text-secondary: #a0a0a0;   /* Muted gray */
    --text-muted: #6c757d;       /* Subdued gray */
    
    --accent: #e94560;           /* Vibrant red/pink accent */
    --accent-hover: #ff6b81;     /* Lighter red/pink hover */
    --accent-glow: rgba(233, 69, 96, 0.35);
    --accent-soft: rgba(233, 69, 96, 0.15);
    
    --gold: #ffd700;             /* VIP gold */
    --gold-glow: rgba(255, 215, 0, 0.4);
    
    --border: #2a2a3e;           /* Subtle dark border */
    --border-light: rgba(255, 255, 255, 0.08);
    
    --success: #00c853;          /* Bright green */
    --warning: #ffab00;          /* Amber */
    --danger: #ff1744;           /* Alert red */
    --info: #00b0ff;             /* Sky blue */
    
    /* Layout & Geometry */
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 0 20px var(--accent-glow);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection Highlight */
::selection {
    background-color: var(--accent);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--accent);
    color: #ffffff;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #25253b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Links & Typography */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

/* Helper Utilities */
.text-accent {
    color: var(--accent) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-accent-soft {
    background-color: var(--accent-soft) !important;
    color: var(--accent) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
    color: #000000 !important;
    font-weight: 700;
}

.badge-vip-pill {
    background: linear-gradient(135deg, var(--accent), #ff1744);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ==========================================================================
   3. HEADER & NAVIGATION STYLING
   ========================================================================== */
.site-header {
    background-color: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.navbar-brand:hover {
    color: #ffffff;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #c2185b);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 0 15px var(--accent-glow);
    transition: var(--transition);
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.05) rotate(5deg);
}

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

/* Search Bar (Center) */
.header-search {
    max-width: 650px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: #ffffff;
    padding: 10px 105px 10px 42px;
    font-size: 0.92rem;
    transition: var(--transition);
    height: 44px;
}

.search-input:focus {
    background-color: #16213e;
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.search-clear-btn {
    position: absolute;
    right: 80px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
}

.search-clear-btn:hover {
    color: #ffffff;
}

.search-submit-btn {
    position: absolute;
    right: 4px;
    height: 36px;
    padding: 0 16px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Search Live Autocomplete Dropdown */
.search-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1060;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-autocomplete-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease forwards;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-fast);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.selected {
    background-color: var(--bg-card-hover);
}

.autocomplete-thumb {
    width: 60px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 12px;
}

.autocomplete-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.autocomplete-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* User Menu & Auth Buttons */
.btn-user-menu {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: #ffffff;
    padding: 4px 14px 4px 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-user-menu:hover, .btn-user-menu:focus {
    background: #1a1a2e;
    border-color: var(--accent);
    color: #ffffff;
}

.user-avatar-wrapper {
    position: relative;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-secondary);
}

.vip-crown-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Dark Dropdown */
.dark-dropdown {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
}

.dark-dropdown .dropdown-header {
    padding: 10px 16px;
}

.dark-dropdown .dropdown-divider {
    border-color: var(--border);
}

.dark-dropdown .dropdown-item {
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.dark-dropdown .dropdown-item:hover, .dark-dropdown .dropdown-item:focus {
    background-color: var(--accent);
    color: #ffffff;
}

/* Mega Categories Grid in Dropdown */
.mega-categories-dropdown {
    width: 520px;
    max-width: 90vw;
    padding: 14px;
}

.categories-grid-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: 8px 12px !important;
}

.cat-count-badge {
    background-color: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.category-item-link:hover .cat-count-badge {
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Main Navigation Bar */
.main-navbar {
    padding: 4px 0;
    background-color: rgba(26, 26, 46, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.main-navbar .nav-link {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-navbar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(233, 69, 96, 0.12);
}

.main-navbar .nav-link.active {
    color: var(--accent);
    background-color: rgba(233, 69, 96, 0.15);
    font-weight: 600;
}

.nav-vip-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: var(--transition);
}

.nav-vip-link:hover {
    color: #000000;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* ==========================================================================
   4. CATEGORY HORIZONTAL PILLS SCROLL BAR
   ========================================================================== */
.category-scroll-bar {
    background-color: #12121e;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    position: relative;
}

.category-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    padding: 4px 35px;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-pill:hover {
    background-color: #22223b;
    color: #ffffff;
    border-color: var(--accent);
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--accent), #c2185b);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 12px var(--accent-glow);
    font-weight: 600;
}

.pill-count {
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.75;
}

.cat-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.cat-scroll-arrow:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.cat-scroll-left {
    left: 8px;
}

.cat-scroll-right {
    right: 8px;
}

/* ==========================================================================
   5. MARQUEE TICKER BAR (CSS Infinite Animation)
   ========================================================================== */
.marquee-ticker-bar {
    display: flex;
    align-items: center;
    background-color: #0c0c14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 36px;
    overflow: hidden;
}

.marquee-badge {
    background: linear-gradient(135deg, #1f1b2e, #16213e);
    border-right: 2px solid var(--accent);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    z-index: 2;
}

.marquee-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-ticker-bar:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.marquee-item:hover {
    color: var(--accent);
}

.marquee-dot {
    color: var(--accent);
    font-weight: 700;
    margin-right: 6px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 290px;
    height: 100vh;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 1080;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    left: 0;
}

.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1070;
}

.mobile-drawer-backdrop.active {
    display: block;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}

.drawer-body {
    padding: 16px 20px;
}

.drawer-nav-list li a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-nav-list li a:hover {
    color: var(--accent);
}

.drawer-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.mobile-menu-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 18px var(--accent-glow);
}

/* Thumbnail Wrapper */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0b0b14;
    overflow: hidden;
}

.video-thumbnail-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.08);
}

/* Badges on Thumbnail */
.badge-video-num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 15, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.badge-video-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--accent), #ff1744);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 0 10px var(--accent-glow);
}

.badge-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 3;
}

/* Corner Lock Badge (Full Lock) */
.badge-lock-corner {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 4;
}

.badge-lock-corner.has-new {
    top: 36px;
}

/* 15-Second Preview Circle Icon in Corner */
.badge-preview-circle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffca28 0%, #f59e0b 50%, #d97706 100%);
    color: #0f172a;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 10px rgba(245, 158, 11, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    z-index: 4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-preview-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65), 0 0 14px rgba(245, 158, 11, 0.7);
}

.badge-preview-circle i {
    font-size: 0.62rem;
    margin-bottom: 1px;
    color: #0f172a;
}

.badge-preview-circle span {
    font-size: 0.62rem;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.3px;
    color: #0f172a;
    line-height: 1;
}

.badge-preview-circle.has-new {
    top: 36px;
}

@media (max-width: 576px) {
    .badge-preview-circle {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }
    .badge-preview-circle i {
        font-size: 0.54rem;
    }
    .badge-preview-circle span {
        font-size: 0.58rem;
    }
    .badge-preview-circle.has-new {
        top: 30px;
        right: 6px;
    }
    .badge-lock-corner {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
        font-size: 0.75rem;
    }
    .badge-lock-corner.has-new {
        top: 30px;
        right: 6px;
    }
}

/* Play Hover Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.play-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.9);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 3px;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 0 15px var(--accent-glow);
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-card:hover .play-circle-icon {
    transform: scale(1);
}

/* Lock Overlay for Subscribed Videos */
.video-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 12px;
    text-align: center;
    z-index: 4;
}

.lock-icon-pulse {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.25);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
    box-shadow: 0 0 15px var(--accent-glow);
    animation: pulse-glow 2s infinite ease-in-out;
}

.lock-text {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-glow);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(233, 69, 96, 0.7);
    }
}

/* Card Body & Details */
.video-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.video-title a {
    color: #ffffff;
}

.video-title a:hover {
    color: var(--accent);
}

.video-meta-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.video-cat-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-cat-badge:hover {
    color: #ffffff;
    background: rgba(233, 69, 96, 0.2);
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   7. FEATURED SECTION & HERO HERO CAROUSEL
   ========================================================================== */
.featured-hero-section {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.4) 0%, rgba(15, 15, 15, 0) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 30px;
}

.featured-main-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background-color: #000;
}

.featured-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.featured-content-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 15, 25, 0.95) 0%, rgba(15, 15, 25, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

/* ==========================================================================
   8. SIDEBAR COMPONENT
   ========================================================================== */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.widget-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

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

/* Popular Videos List */
.popular-videos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-video-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.popular-video-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-rank {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-muted);
    min-width: 28px;
    flex-shrink: 0;
}

.popular-rank-1 { color: #ffd700; }
.popular-rank-2 { color: #e0e0e0; }
.popular-rank-3 { color: #cd7f32; }

.popular-thumb-wrapper {
    position: relative;
    width: 80px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #000;
}

.popular-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-duration {
    position: absolute;
    bottom: 3px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: monospace;
}

.popular-lock-icon {
    position: absolute;
    top: 3px;
    left: 4px;
    color: var(--accent);
    font-size: 0.68rem;
}

.popular-video-title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
}

.popular-video-title a {
    color: #ffffff;
}

.popular-video-title a:hover {
    color: var(--accent);
}

/* Sidebar Categories List */
.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category-item a {
    padding: 7px 10px;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.sidebar-category-item a:hover {
    background-color: #1f2d52;
    color: #ffffff;
}

.sidebar-cat-count {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 3px 8px;
}

/* Tag Cloud */
.tag-pill {
    display: inline-block;
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 4px 10px;
    transition: var(--transition-fast);
}

.tag-pill:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* VIP Subscribe CTA Card */
.subscribe-cta-card {
    background: linear-gradient(145deg, #1f1b2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.cta-crown-icon {
    font-size: 2rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cta-heading {
    font-weight: 800;
    color: #ffffff;
}

.cta-features li {
    margin-bottom: 6px;
    color: #e0e0e0;
}

/* ==========================================================================
   9. AD PLACEMENT CONTAINERS
   ========================================================================== */
.ad-placement {
    margin: 10px auto;
    position: relative;
    max-width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    width: 100%;
    padding: 16px;
    border: 2px dashed rgba(233, 69, 96, 0.4);
    background-color: rgba(233, 69, 96, 0.04);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ad-header_banner {
    max-width: 970px;
    min-height: 90px;
}

.ad-before_footer {
    max-width: 970px;
    min-height: 90px;
}

.ad-sidebar_rect_1, .ad-sidebar_rect_2 {
    max-width: 300px;
    min-height: 250px;
}

/* ==========================================================================
   10. VIDEO PLAYER PAGE & PLYR CUSTOMIZATION
   ========================================================================== */
.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Custom Plyr Theme */
.plyr--video {
    width: 100%;
    height: 100%;
    --plyr-color-main: var(--accent);
    --plyr-video-background: #000000;
    --plyr-control-icon-size: 18px;
    --plyr-font-family: var(--font-body);
}

/* Video Lock & Preview Overlay */
.player-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #ffffff;
}

.player-locked-overlay.d-none {
    display: none !important;
}

.lock-modal-box {
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 0 35px rgba(233, 69, 96, 0.25);
}

.video-detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 18px;
}

.video-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   11. BUTTONS & FORMS
   ========================================================================== */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #c2185b);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover), #d81b60);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid var(--border);
    color: #ffffff;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 8px 18px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.08);
}

.btn-subscribe {
    background: linear-gradient(135deg, #ffd700, #ff8f00);
    border: none;
    color: #000000;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 15px var(--gold-glow);
    transition: var(--transition);
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #ffe033, #ffa000);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* Blinking Pulsing VIP CTA Button */
@keyframes vipBtnBlinkGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.75), 0 0 30px rgba(233, 69, 96, 0.45);
        border-color: #ffffff;
    }
    50% {
        transform: scale(1.04);
        filter: brightness(1.25);
        box-shadow: 0 0 35px rgba(255, 215, 0, 1), 0 0 65px rgba(255, 69, 96, 0.85), inset 0 0 15px rgba(255, 255, 255, 0.9);
        border-color: #ffe066;
    }
}

.btn-vip-blink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9000 45%, #e94560 100%);
    background-size: 200% auto;
    color: #0b0c10 !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 12px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: 2px solid #ffffff;
    text-decoration: none !important;
    animation: vipBtnBlinkGlow 1.15s infinite ease-in-out;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.btn-vip-blink:hover {
    transform: scale(1.08);
    box-shadow: 0 0 45px rgba(255, 215, 0, 1), 0 0 75px rgba(233, 69, 96, 1);
    color: #000000 !important;
    border-color: #ffffff;
}

/* Dark Forms */
.form-dark .form-control,
.form-dark .form-select {
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.form-dark .form-control:focus,
.form-dark .form-select:focus {
    background-color: #16213e;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: #ffffff;
}

.form-dark label {
    color: #e0e0e0;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ==========================================================================
   AUTH PAGES & FORM CONTROLS (Login, Register, Password Recovery)
   ========================================================================== */
.auth-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 170, 0, 0.06) 0%, transparent 50%),
                var(--bg-primary);
}

.auth-card {
    background-color: #141724 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

.bg-dark-card {
    background-color: #141724 !important;
}

.auth-card-header {
    background: linear-gradient(180deg, rgba(26, 30, 46, 0.6) 0%, rgba(20, 23, 36, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.auth-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.12);
    border: 2px solid rgba(233, 69, 96, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.25);
}

/* Fix writing text color and dark background on inputs */
.bg-dark-input,
.input-group-text.bg-dark-input {
    background-color: #1a1e2e !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #cbd5e1 !important;
}

.form-control.bg-dark-input,
.auth-form .form-control,
.form-control.bg-dark-input:focus,
.auth-form .form-control:focus {
    background-color: #1a1e2e !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    font-size: 0.95rem;
    padding: 10px 14px;
}

.form-control.bg-dark-input:focus,
.auth-form .form-control:focus {
    border-color: #ff9000 !important;
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.25) !important;
    color: #ffffff !important;
    outline: none !important;
}

.form-control.bg-dark-input::placeholder,
.auth-form .form-control::placeholder {
    color: #64748b !important;
    opacity: 1;
}

/* Fix browser autofill from turning inputs white */
input.bg-dark-input:-webkit-autofill,
input.bg-dark-input:-webkit-autofill:hover,
input.bg-dark-input:-webkit-autofill:focus,
input.bg-dark-input:-webkit-autofill:active,
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1e2e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.custom-input-group .btn-outline-secondary {
    background-color: #1a1e2e;
    border-color: rgba(255, 255, 255, 0.14);
    color: #94a3b8;
}
.custom-input-group .btn-outline-secondary:hover {
    background-color: #24293e;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.form-check-input.bg-dark-input {
    background-color: #1a1e2e !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.form-check-input.bg-dark-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Google Auth Button */
.btn-google-auth {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    width: 100%;
}
.btn-google-auth:hover {
    background: #f8fafc !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   12. PAGINATION
   ========================================================================== */
.pagination-dark .page-item .page-link {
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    color: #ffffff;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.pagination-dark .page-item .page-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-dark .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-glow);
}

.pagination-dark .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   13. FLASH MESSAGES & ALERTS
   ========================================================================== */
.custom-alert {
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 12px 18px;
    margin-bottom: 16px;
    color: #ffffff;
}

.alert-success {
    background-color: rgba(0, 200, 83, 0.15);
    border-color: rgba(0, 200, 83, 0.4);
    color: #b9f6ca;
}

.alert-danger {
    background-color: rgba(255, 23, 68, 0.15);
    border-color: rgba(255, 23, 68, 0.4);
    color: #ff80ab;
}

.alert-warning {
    background-color: rgba(255, 171, 0, 0.15);
    border-color: rgba(255, 171, 0, 0.4);
    color: #ffe57f;
}

.alert-info {
    background-color: rgba(0, 176, 255, 0.15);
    border-color: rgba(0, 176, 255, 0.4);
    color: #80d8ff;
}

/* ==========================================================================
   14. FOOTER & BACK TO TOP
   ========================================================================== */
.site-footer {
    background-color: #0b0b12;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links li a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.adult-warning-box {
    background-color: rgba(255, 171, 0, 0.08);
    border: 1px solid rgba(255, 171, 0, 0.25);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1a1a2e;
    border: 1px solid var(--border);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.telegram-btn:hover { background-color: #229ED9; border-color: #229ED9; color: #fff; }
.twitter-btn:hover { background-color: #000000; border-color: #fff; color: #fff; }
.email-btn:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }

/* Back to Top Floating Button */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

/* ==========================================================================
   15. ANIMATIONS & SPINNERS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
