/* ============================================================
   main.css — TrendLook Media
   Ultra-Modern Animated Dark Design
   Colors: DB via ThemeLoader::injectCssVariables()
   Icons: Font Awesome 6 (add in header.php)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 16px rgba(204,0,0,0.3); }
    50%       { box-shadow: 0 0 36px rgba(204,0,0,0.6), 0 0 72px rgba(204,0,0,0.15); }
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.82); }
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes scanline {
    0%   { top: -15%; }
    100% { top: 115%; }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #080808;
    color: #f0f0f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

a { color: var(--primary, #CC0000); text-decoration: none; }
a:hover { color: var(--primary, #CC0000); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px;  margin: 0 auto; padding: 0 24px; }

.page-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}
@media (max-width: 960px) { .page-wrap { grid-template-columns: 1fr; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: rgba(8,8,8,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 38px; width: auto; }
.logo-light { display: block; }
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }
.site-logo-text {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-logo-icon {
    width: 34px; height: 34px;
    background: var(--primary, #CC0000);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
    animation: pulseGlow 3s ease-in-out infinite;
    flex-shrink: 0;
}
.site-logo-text .dim { color: rgba(255,255,255,0.28); font-weight: 400; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.site-nav a {
    color: rgba(255,255,255,0.5);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 7px;
    position: relative;
    white-space: nowrap;
}
.site-nav a i { font-size: 12px; }
.site-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.site-nav a.active { color: #fff; }
.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 14px; right: 14px;
    height: 2px;
    background: var(--primary, #CC0000);
    border-radius: 2px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search { display: flex; align-items: center; }
.header-search input {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 13px; outline: none; width: 190px;
    background: rgba(255,255,255,0.05);
    color: #fff; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, background 0.2s;
}
.header-search input::placeholder { color: rgba(255,255,255,0.28); }
.header-search input:focus { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.header-search button {
    padding: 8px 14px;
    background: var(--primary, #CC0000);
    border: none; border-radius: 0 10px 10px 0;
    color: #fff; cursor: pointer; font-size: 13px;
    transition: opacity 0.2s;
}
.header-search button:hover { opacity: 0.85; }

.theme-toggle {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; cursor: pointer;
    color: rgba(255,255,255,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun  { display: none; }
.icon-moon { display: block; }

.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #fff;
    width: 38px; height: 38px;
    cursor: pointer; font-size: 15px;
    align-items: center; justify-content: center;
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; flex-direction: column;
        position: absolute; top: 66px; left: 0; right: 0;
        background: rgba(8,8,8,0.97);
        backdrop-filter: blur(24px);
        padding: 12px 20px 20px; gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        z-index: 998;
    }
    .site-nav.open { display: flex; }
    .site-nav a { border-radius: 8px; padding: 11px 14px; justify-content: flex-start; }
    .site-nav a.active::after { display: none; }
    .header-search input { width: 130px; }
}

/* ============================================================
   TRENDING TICKER
   ============================================================ */
.trending-ticker {
    background: rgba(255,255,255,0.018);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 9px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track {
    display: inline-flex; gap: 0;
    animation: tickerScroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 28px; font-size: 12px; color: rgba(255,255,255,0.32);
}
.ticker-item i { font-size: 9px; color: var(--primary, #CC0000); }
.ticker-item strong { color: rgba(255,255,255,0.6); font-weight: 600; }
.ticker-badge {
    background: var(--primary, #CC0000); color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: #080808;
    min-height: 580px;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 0 24px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-glow-red {
    position: absolute; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(204,0,0,0.13) 0%, transparent 65%);
    top: -250px; right: -150px; pointer-events: none;
}
.hero-glow-purple {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(100,0,200,0.07) 0%, transparent 65%);
    bottom: -150px; left: -80px; pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 56px; align-items: center;
    width: 100%; position: relative; z-index: 1;
    padding: 72px 0;
}
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-right  { display: none; }
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(204,0,0,0.07);
    border: 1px solid rgba(204,0,0,0.16);
    padding: 6px 14px; border-radius: 24px;
    margin-bottom: 22px;
    animation: fadeUp 0.5s ease both;
}
.eyebrow-dot {
    width: 7px; height: 7px;
    background: var(--primary, #CC0000);
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.hero-eyebrow span {
    font-size: 10px; font-weight: 700;
    color: rgba(204,0,0,0.85);
    letter-spacing: 2px; text-transform: uppercase;
}

.hero h1 {
    font-size: 54px; font-weight: 900;
    line-height: 1.05; letter-spacing: -2.5px;
    margin-bottom: 18px;
    animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .h-white { display: block; color: #fff; }
.hero h1 .h-red   { display: block; color: var(--primary, #CC0000); }
.hero h1 .h-dim   { display: block; color: rgba(255,255,255,0.18); }

.hero-desc {
    font-size: 15px; color: rgba(255,255,255,0.42);
    line-height: 1.75; margin-bottom: 30px;
    max-width: 420px;
    animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
    display: flex; gap: 12px; margin-bottom: 36px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
    display: flex; gap: 0;
    animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stat { border-left: 2px solid rgba(255,255,255,0.06); padding: 0 24px 0 20px; }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat strong { display: block; font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.1; }
.hero-stat span { display: block; font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

/* Hero floating cards */
.hero-right { position: relative; height: 380px; }
.hero-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; overflow: hidden;
    position: absolute; transition: all 0.3s;
}
.hero-card-main {
    width: 280px; top: 0; left: 20px;
    animation: float 5s ease-in-out infinite, fadeIn 0.8s 0.3s ease both;
}
.hero-card-mini {
    width: 190px; bottom: 10px; right: 0;
    animation: float 5s 1.5s ease-in-out infinite, fadeIn 0.8s 0.5s ease both;
}
.hcard-thumb {
    height: 145px;
    background: linear-gradient(135deg, #1a0505, #3d1010);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hcard-thumb::after {
    content: ''; position: absolute;
    left: 0; right: 0; height: 25px;
    background: linear-gradient(transparent, rgba(255,255,255,0.035), transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}
.hcard-play {
    width: 46px; height: 46px;
    background: var(--primary, #CC0000);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    animation: pulseGlow 2.5s ease-in-out infinite;
    position: relative; z-index: 1;
}
.hcard-rating {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary, #CC0000); color: #fff;
    font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 5px; z-index: 1;
}
.hcard-dur {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
    color: #fff; font-size: 9px; padding: 3px 7px; border-radius: 4px; z-index: 1;
}
.hcard-body { padding: 12px 14px; }
.hcard-body h4 { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 5px; line-height: 1.4; }
.hcard-meta { font-size: 10px; color: rgba(255,255,255,0.32); display: flex; gap: 7px; align-items: center; }
.stars-gold { color: #f59e0b; font-size: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: var(--primary, #CC0000); color: #fff;
    border: none; border-radius: 10px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif; letter-spacing: 0.2px;
    text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,0,0,0.3); color: #fff; }
.btn:active { transform: translateY(0); }
.btn-ghost {
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: #fff; box-shadow: none; opacity: 1; }
.btn-secondary {
    background: transparent; color: rgba(255,255,255,0.65);
    border: 1.5px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); color: #fff; box-shadow: none; opacity: 1; }
.btn-sm  { padding: 7px 16px; font-size: 12px; border-radius: 8px; }
.btn-lg  { padding: 14px 30px; font-size: 14px; border-radius: 12px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section       { padding: 64px 24px; background: #0a0a0a; }
.section-alt   { padding: 64px 24px; background: #0d0d0d; }
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    max-width: 1200px; margin: 0 auto 32px;
}
.section-title {
    font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ''; width: 4px; height: 22px;
    background: var(--primary, #CC0000);
    border-radius: 2px; display: inline-block; flex-shrink: 0;
}
.section-subtitle { font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 4px; }
.section-link {
    font-size: 12px; color: var(--primary, #CC0000); font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 5px;
    transition: gap 0.2s; white-space: nowrap;
}
.section-link:hover { gap: 9px; color: var(--primary, #CC0000); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 12px; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 860px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 20px 12px;
    text-align: center; cursor: pointer;
    transition: all 0.25s; text-decoration: none; display: block;
}
.category-card:hover {
    background: rgba(204,0,0,0.06);
    border-color: rgba(204,0,0,0.18);
    transform: translateY(-4px);
}
.category-card .cat-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.category-card:hover .cat-icon { background: rgba(204,0,0,0.1); color: var(--primary, #CC0000); }
.category-card .cat-name  { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.category-card .cat-count { font-size: 10px; color: rgba(255,255,255,0.2); }

/* ============================================================
   VIDEO GRID & CARDS
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; overflow: hidden;
    transition: all 0.25s; cursor: pointer;
    display: block; text-decoration: none;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(204,0,0,0.2);
    box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.video-thumb {
    position: relative; aspect-ratio: 16/9;
    background: #111; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease; position: absolute; inset: 0;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }

.video-thumb-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 1;
}
.video-card:hover .video-thumb-overlay { background: rgba(0,0,0,0.25); }

.play-btn {
    width: 44px; height: 44px;
    background: var(--primary, #CC0000);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    opacity: 0; transform: scale(0.8);
    transition: all 0.2s;
}
.video-card:hover .play-btn { opacity: 1; transform: scale(1); }
.play-btn-always { opacity: 1 !important; transform: scale(1) !important; }
.video-card:hover .play-btn-always { transform: scale(1.1) !important; }

.video-duration {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(4px);
    color: #fff; font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 5px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
}
.video-rating {
    position: absolute; top: 10px; left: 10px;
    background: var(--primary, #CC0000); color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 4px 9px; border-radius: 6px; z-index: 2;
    display: flex; align-items: center; gap: 4px;
}

.video-info { padding: 14px 16px 16px; }
.video-category-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700;
    color: var(--primary, #CC0000);
    background: rgba(204,0,0,0.08);
    padding: 3px 9px; border-radius: 4px;
    margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase;
}
.video-info h3 {
    font-size: 14px; font-weight: 700; line-height: 1.45;
    margin-bottom: 10px; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-info h3 a { color: #fff; }
.video-info h3 a:hover { color: var(--primary, #CC0000); }
.video-footer { display: flex; justify-content: space-between; align-items: center; }
.video-author { display: flex; align-items: center; gap: 7px; }
.author-avatar-sm {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary, #CC0000);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 9px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.author-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.video-author-name { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 500; }
.video-stars { color: #f59e0b; font-size: 11px; display: flex; align-items: center; gap: 3px; }
.video-meta {
    font-size: 11px; color: rgba(255,255,255,0.28);
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px;
}
.video-meta i { font-size: 10px; }

/* ============================================================
   VIDEO DETAIL
   ============================================================ */
.video-embed-wrap {
    position: relative; aspect-ratio: 16/9;
    background: #000; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-detail-title {
    font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900;
    margin: 22px 0 12px; letter-spacing: -0.5px;
    line-height: 1.25; color: #fff;
}
.video-detail-meta {
    display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.35);
    margin-bottom: 18px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.video-detail-meta i { font-size: 12px; }
.rating-badge {
    background: var(--primary, #CC0000); color: #fff;
    font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 8px;
    display: flex; align-items: center; gap: 5px;
}
.video-description { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.55); }
.video-description p { margin-bottom: 14px; }

/* Tags */
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-pill {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45); padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 500; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 5px;
}
.tag-pill:hover { background: var(--primary, #CC0000); color: #fff; border-color: var(--primary, #CC0000); }
.tag-pill i { font-size: 10px; }

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.author-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 4px solid var(--primary, #CC0000);
    border-radius: 14px; padding: 20px; margin-top: 28px;
}
.author-card img {
    width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; border: 3px solid rgba(255,255,255,0.08);
}
.author-card-info h4 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.author-card-info .designation {
    font-size: 11px; color: var(--primary, #CC0000); font-weight: 700;
    margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
}
.author-card-info p { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.65; }

/* ============================================================
   BLOG GRID & CARDS
   ============================================================ */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; overflow: hidden;
    transition: all 0.25s; cursor: pointer; display: block; text-decoration: none;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: #1a1a1a; position: relative; }
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-date-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--primary, #CC0000); color: #fff;
    padding: 6px 10px; border-radius: 8px; text-align: center; line-height: 1.1;
}
.blog-date-badge strong { display: block; font-size: 16px; font-weight: 900; }
.blog-date-badge span  { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-cat-badge {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 9px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase;
    display: flex; align-items: center; gap: 5px;
}
.blog-card-body { padding: 16px 18px 18px; }
.blog-card-body h3 { font-size: 14px; font-weight: 700; line-height: 1.45; color: #fff; margin-bottom: 8px; }
.blog-card-body h3 a { color: #fff; }
.blog-card-body h3 a:hover { color: var(--primary, #CC0000); }
.blog-card-excerpt {
    font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px;
}
.blog-read-more {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: var(--primary, #CC0000);
    transition: gap 0.2s;
}
.blog-read-more:hover { gap: 9px; color: var(--primary, #CC0000); }
.blog-card-meta {
    font-size: 11px; color: rgba(255,255,255,0.22);
    display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.blog-card-meta i { font-size: 10px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0303 100%);
    padding: 72px 24px;
}
.hiw-section-header { text-align: center; margin-bottom: 44px; }
.hiw-eyebrow {
    font-size: 10px; font-weight: 700;
    color: rgba(204,0,0,0.75); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 10px;
}
.hiw-section-header h2 { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 8px; }
.hiw-section-header p  { font-size: 14px; color: rgba(255,255,255,0.25); }
.hiw-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 1000px; margin: 0 auto;
}
@media (max-width: 720px) { .hiw-grid { grid-template-columns: 1fr; } }
.hiw-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px; padding: 32px 26px;
    position: relative; overflow: hidden; transition: all 0.25s;
}
.hiw-card:hover { border-color: rgba(204,0,0,0.18); background: rgba(204,0,0,0.025); transform: translateY(-4px); }
.hiw-bg-num {
    position: absolute; top: -10px; right: 14px;
    font-size: 100px; font-weight: 900; color: rgba(255,255,255,0.016);
    line-height: 1; pointer-events: none; user-select: none;
}
.hiw-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary, #CC0000), #880000);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; margin-bottom: 18px;
}
.hiw-card h4 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.hiw-card p  { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.75; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 20px; margin-bottom: 24px;
}
.sidebar-widget h3 {
    font-size: 13px; font-weight: 700; color: #fff;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 8px;
}
.sidebar-widget h3 i { color: var(--primary, #CC0000); font-size: 13px; }
.sidebar-video-item {
    display: flex; gap: 12px;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar-video-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-video-item img {
    width: 86px; height: 52px; object-fit: cover;
    border-radius: 8px; flex-shrink: 0; background: #1a1a1a;
}
.sidebar-video-item h4 {
    font-size: 12px; font-weight: 600; line-height: 1.4;
    color: rgba(255,255,255,0.7);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-video-item h4 a { color: rgba(255,255,255,0.7); }
.sidebar-video-item h4 a:hover { color: var(--primary, #CC0000); }
.sidebar-video-meta {
    font-size: 10px; color: rgba(255,255,255,0.22);
    margin-top: 4px; display: flex; align-items: center; gap: 5px;
}
.sidebar-video-meta i { font-size: 9px; }
.categories-list { list-style: none; }
.categories-list li { border-bottom: 1px solid rgba(255,255,255,0.04); }
.categories-list li:last-child { border-bottom: none; }
.categories-list a {
    color: rgba(255,255,255,0.5); font-size: 13px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; font-weight: 500; transition: all 0.15s;
}
.categories-list a i { font-size: 10px; color: rgba(255,255,255,0.18); }
.categories-list a:hover { color: var(--primary, #CC0000); padding-left: 5px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size: 12px; padding: 14px 0; color: rgba(255,255,255,0.25);
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.35); font-weight: 500; transition: color 0.15s; display: flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--primary, #CC0000); }
.breadcrumb .sep { opacity: 0.28; }
.breadcrumb .current { color: rgba(255,255,255,0.7); font-weight: 600; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: rgba(255,255,255,0.45);
    font-size: 13px; font-weight: 600; transition: all 0.18s;
    background: rgba(255,255,255,0.03); gap: 5px;
}
.page-link:hover { background: var(--primary, #CC0000); color: #fff; border-color: var(--primary, #CC0000); transform: translateY(-2px); }
.page-link.active { background: var(--primary, #CC0000); color: #fff; border-color: var(--primary, #CC0000); }
.page-link.disabled { opacity: 0.28; pointer-events: none; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 28px auto; }
.search-form input {
    flex: 1; padding: 13px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; font-size: 14px;
    background: rgba(255,255,255,0.04); color: #fff;
    transition: border-color 0.2s; font-family: 'Inter', sans-serif; outline: none;
}
.search-form input:focus { border-color: var(--primary, #CC0000); }
.search-form input::placeholder { color: rgba(255,255,255,0.22); }
.search-form button {
    padding: 13px 26px; background: var(--primary, #CC0000);
    color: #fff; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: opacity 0.2s; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 8px;
}
.search-form button:hover { opacity: 0.85; }

/* ============================================================
   FORMS
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; margin-bottom: 8px;
    color: rgba(255,255,255,0.5); letter-spacing: 0.3px;
}
.form-group label i { font-size: 12px; color: var(--primary, #CC0000); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.04); color: #fff;
    font-size: 13px; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary, #CC0000);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.07);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: #1a1a1a; color: #fff; }
.review-request-box {
    background: rgba(204,0,0,0.04); border: 1.5px dashed rgba(204,0,0,0.22);
    border-radius: 14px; padding: 28px; margin-top: 36px;
}
.review-request-box h3 {
    color: var(--primary, #CC0000); margin-bottom: 12px;
    font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.static-content { max-width: 860px; margin: 48px auto; padding: 0 24px; }
.static-content h1 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: -1px; }
.static-content .lead {
    font-size: 16px; color: rgba(255,255,255,0.35);
    margin-bottom: 36px; padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06); line-height: 1.75;
}
.static-content h2 { font-size: 20px; font-weight: 800; color: #fff; margin: 36px 0 12px; display: flex; align-items: center; gap: 8px; }
.static-content h2 i { color: var(--primary, #CC0000); font-size: 16px; }
.static-content p  { margin-bottom: 16px; line-height: 1.85; color: rgba(255,255,255,0.5); }
.static-content ul { padding-left: 24px; margin-bottom: 16px; }
.static-content ul li { margin-bottom: 9px; line-height: 1.7; color: rgba(255,255,255,0.5); }

/* ============================================================
   AUTHOR PROFILE
   ============================================================ */
.author-hero {
    background: linear-gradient(135deg, #080808 0%, #120000 100%);
    padding: 56px 24px; color: #fff; position: relative; overflow: hidden;
}
.author-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(204,0,0,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.author-hero-inner { display: flex; gap: 28px; align-items: center; max-width: 900px; margin: 0 auto; position: relative; }
.author-hero img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.author-hero h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 5px; }
.author-hero .designation {
    color: var(--primary, #CC0000); font-weight: 700; font-size: 11px;
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
    letter-spacing: 1px; text-transform: uppercase;
}
.author-hero .bio { opacity: 0.48; margin-top: 10px; max-width: 580px; font-size: 14px; line-height: 1.7; }
.author-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.author-social a {
    color: rgba(255,255,255,0.45); font-size: 13px;
    padding: 6px 14px; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.author-social a:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.18); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #060606; padding: 64px 24px 28px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 36px; max-width: 1200px; margin: 0 auto 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-icon {
    width: 32px; height: 32px; background: var(--primary, #CC0000);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; flex-shrink: 0;
}
.footer-brand-name { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.2); line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.28); font-size: 13px; transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary, #CC0000); border-color: var(--primary, #CC0000); color: #fff; transform: translateY(-3px); }

.footer-col h4 { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); margin-bottom: 16px; letter-spacing: 2px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.22); font-size: 13px;
    transition: color 0.15s; display: flex; align-items: center; gap: 8px;
}
.footer-col ul li a i { font-size: 9px; color: var(--primary, #CC0000); }
.footer-col ul li a:hover { color: rgba(255,255,255,0.65); }

.footer-newsletter {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 16px;
}
.footer-newsletter p { font-size: 12px; color: rgba(255,255,255,0.22); line-height: 1.65; margin-bottom: 12px; }
.newsletter-form {
    display: flex; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px; overflow: hidden;
}
.newsletter-form input {
    flex: 1; background: none; border: none;
    padding: 10px 12px; color: #fff;
    font-size: 12px; outline: none; font-family: 'Inter', sans-serif;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.16); }
.newsletter-form button {
    background: var(--primary, #CC0000); border: none;
    padding: 10px 14px; color: #fff; font-size: 13px;
    cursor: pointer; transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.85; }

.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.04);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.14);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.14); transition: color 0.15s; font-size: 12px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 65vh;
    text-align: center; padding: 40px 24px; background: #080808;
}
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary, #CC0000); line-height: 1; letter-spacing: -6px; animation: pulseGlow 3s ease-in-out infinite; }
.error-msg  { font-size: 20px; font-weight: 800; color: #fff; margin: 14px 0 8px; }
.error-sub  { color: rgba(255,255,255,0.32); margin-bottom: 28px; font-size: 14px; }

/* ============================================================
   ADSENSE
   ============================================================ */
.ad-zone        { text-align: center; margin: 24px 0; }
.ad-zone-header { max-width: 970px; margin: 0 auto 16px; }
.ad-zone-sidebar{ margin-bottom: 28px; }
.ad-label { font-size: 9px; color: rgba(255,255,255,0.15); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; background: #0a0a14; color: #c8c8d4;
    padding: 0; flex-shrink: 0; position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.admin-sidebar .brand {
    padding: 22px 20px; font-weight: 900; font-size: 15px; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .brand i { color: var(--primary, #CC0000); font-size: 16px; }
.admin-sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; color: rgba(255,255,255,0.35);
    font-size: 13px; font-weight: 500;
    transition: all 0.18s; border-left: 3px solid transparent;
    text-decoration: none; cursor: pointer; pointer-events: all;
}
.admin-sidebar nav a i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); border-left-color: rgba(204,0,0,0.35); text-decoration: none; }
.admin-sidebar nav a.active { background: rgba(204,0,0,0.06); color: #fff; border-left-color: var(--primary, #CC0000); }
.admin-sidebar nav .nav-section { padding: 20px 20px 6px; font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.18); text-transform: uppercase; font-weight: 700; }
.admin-main { flex: 1; padding: 32px; background: #f4f6fa; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 22px; font-weight: 900; color: #111; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.admin-topbar h1 i { color: var(--primary, #CC0000); font-size: 18px; }
.admin-card { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 1px 12px rgba(0,0,0,0.06); margin-bottom: 24px; border: 1px solid #eef0f2; }
.admin-card h2 { font-size: 14px; font-weight: 800; margin-bottom: 20px; color: #222; display: flex; align-items: center; gap: 8px; }
.admin-card h2 i { color: var(--primary, #CC0000); font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 10px rgba(0,0,0,0.05); border: 1px solid #eef0f2; border-top: 4px solid var(--primary, #CC0000); text-align: center; }
.stat-card .stat-icon { font-size: 26px; margin-bottom: 8px; color: var(--primary, #CC0000); }
.stat-card .stat-val { font-size: 28px; font-weight: 900; color: var(--primary, #CC0000); letter-spacing: -1px; line-height: 1; }
.stat-card .stat-label { font-size: 11px; color: #aaa; margin-top: 6px; font-weight: 600; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 10px; font-weight: 800; color: #aaa; padding: 11px 14px; border-bottom: 2px solid #f0f0f0; background: #fafafa; text-transform: uppercase; letter-spacing: 1px; }
.admin-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f5f5f5; color: #333; vertical-align: middle; }
.admin-table tr:hover td { background: #fafbff; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-red    { background: #ffebee; color: #c62828; }
.badge-gray   { background: #f5f5f5; color: #666; }
.badge-blue   { background: #e3f2fd; color: #1565c0; }
.badge-yellow { background: #fffde7; color: #f57f17; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.char-counter { font-size: 11px; color: #bbb; text-align: right; margin-top: 4px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.flash-error   { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: rgba(255,255,255,0.32); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }.mb-4 { margin-bottom: 36px; }
.d-flex { display: flex; } .align-center { align-items: center; }
.gap-2  { gap: 16px; } .w-100  { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
img[data-src] { opacity: 0; transition: opacity 0.4s; }
img.loaded    { opacity: 1; }
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================================
   ADMIN FORM FIELDS — Light Background Fix
   ============================================================ */
.admin-main .form-group input,
.admin-main .form-group textarea,
.admin-main .form-group select {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    color: #111;
    border-radius: 8px;
}
.admin-main .form-group input:focus,
.admin-main .form-group textarea:focus,
.admin-main .form-group select:focus {
    border-color: var(--primary, #CC0000);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.07);
    background: #fff;
    color: #111;
}
.admin-main .form-group input::placeholder,
.admin-main .form-group textarea::placeholder {
    color: #bbb;
}
.admin-main .form-group label {
    color: #444;
    font-size: 12px;
    font-weight: 700;
}
.admin-main .form-group label i {
    color: var(--primary, #CC0000);
}
.admin-main select option {
    background: #fff;
    color: #111;
}
.admin-main input[type="checkbox"] {
    accent-color: var(--primary, #CC0000);
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.admin-main input[type="number"],
.admin-main input[type="url"],
.admin-main input[type="email"],
.admin-main input[type="text"],
.admin-main input[type="datetime-local"] {
    background: #fff;
    color: #111;
    border: 1.5px solid #e0e0e0;
}
.admin-main input[type="color"] {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}
/* Admin card text fix */
.admin-main .admin-card { color: #333; }
.admin-main .admin-card h2 { color: #111; }
.admin-main .admin-card p  { color: #555; }
.admin-main .admin-card small { color: #888; }
.admin-main .admin-card code {
    background: #f5f5f5;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
/* Admin topbar text */
.admin-topbar h1 { color: #111 !important; }
/* Char counter */
.admin-main .char-counter { color: #bbb; }

/* ============================================================
   ADMIN SETTINGS TABS + BUTTONS FIX
   ============================================================ */

/* Tab buttons in settings */
.admin-main .tab-btn,
.admin-main button.tab-btn {
    background: #f5f5f5 !important;
    color: #444 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 20px !important;
    padding: 7px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.admin-main .tab-btn:hover {
    background: #eee !important;
    color: #222 !important;
}
/* Active tab — red */
.admin-main .tab-btn[style*="background:#CC0000"],
.admin-main .tab-btn[style*="background: #CC0000"] {
    background: #CC0000 !important;
    color: #fff !important;
    border-color: #CC0000 !important;
}

/* All admin buttons default */
.admin-main .btn {
    background: var(--primary, #CC0000);
    color: #fff !important;
    border: none;
}
.admin-main .btn.btn-secondary,
.admin-main a.btn.btn-secondary {
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1.5px solid #ddd !important;
}
.admin-main .btn.btn-secondary:hover {
    background: #e5e5e5 !important;
    color: #111 !important;
}

/* Flash messages */
.admin-main .flash {
    color: inherit;
}

/* Table badges */
.admin-main .badge {
    font-size: 11px;
    font-weight: 700;
}

/* Small text, links inside admin */
.admin-main small { color: #888; font-size: 11px; }
.admin-main a[href] { color: var(--primary, #CC0000); }
.admin-main a[href]:hover { opacity: 0.8; }

/* Color pickers row */
.admin-main input[type="color"] {
    height: 38px;
    width: 52px;
    padding: 2px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

/* Readonly text inputs next to color pickers */
.admin-main input[readonly] {
    background: #f9f9f9 !important;
    color: #555 !important;
    cursor: default;
}

/* Nav section headings in sidebar */
.admin-sidebar nav .nav-section {
    color: rgba(255,255,255,0.2) !important;
}

/* Quota info box */
.admin-main [style*="background:#fff3e0"] {
    background: #fff8f0 !important;
    color: #664400 !important;
    border-radius: 8px;
    padding: 12px 16px;
}
.admin-main [style*="background:#fff3e0"] strong { color: #882200; }
.admin-main [style*="background:#fff3e0"] small  { color: #664400; }
.admin-main [style*="background:#fff3e0"] code   {
    background: rgba(0,0,0,0.06);
    color: #442200;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Pagination in admin */
.admin-main a[href*="?page"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #333 !important;
    font-size: 13px;
    background: #fff;
    transition: all 0.15s;
}
.admin-main a[href*="?page"]:hover {
    background: var(--primary, #CC0000);
    color: #fff !important;
    border-color: var(--primary, #CC0000);
}

/* Tag checkboxes in video edit */
.admin-main input[type="checkbox"] + span,
.admin-main input[type="checkbox"] ~ span {
    color: #333;
}

/* Table action buttons */
.admin-main .admin-table .btn {
    font-size: 11px;
    padding: 5px 12px;
}

/* ============================================================
   DARK / LIGHT MODE — COMPLETE PROPER FIX
   ============================================================ */

/* ---- LIGHT MODE (data-theme="light") ---- */
[data-theme="light"] body {
    background: #f4f5f7;
    color: #111;
}
[data-theme="light"] .site-header {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e8e8e8;
}
[data-theme="light"] .site-nav a {
    color: #444;
}
[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a.active {
    background: rgba(0,0,0,0.05);
    color: #111;
}
[data-theme="light"] .site-nav a.active::after {
    background: var(--primary, #CC0000);
}
[data-theme="light"] .site-logo-text { color: #111; }
[data-theme="light"] .site-logo-text .dim { color: rgba(0,0,0,0.35); }
[data-theme="light"] .header-search input {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-theme="light"] .header-search input::placeholder { color: rgba(0,0,0,0.35); }
[data-theme="light"] .header-search input:focus { background: rgba(0,0,0,0.07); }
[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #444;
}
[data-theme="light"] .nav-toggle {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-theme="light"] .site-nav {
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid #eee;
}

/* Hero - light */
[data-theme="light"] .hero {
    background: #fff;
}
[data-theme="light"] .hero::before {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .hero h1 .h-white { color: #111; }
[data-theme="light"] .hero h1 .h-dim   { color: rgba(0,0,0,0.18); }
[data-theme="light"] .hero-desc { color: rgba(0,0,0,0.5); }
[data-theme="light"] .hero-stat strong { color: #111; }
[data-theme="light"] .hero-stat span   { color: rgba(0,0,0,0.35); }
[data-theme="light"] .hero-stat { border-left-color: rgba(0,0,0,0.08); }
[data-theme="light"] .hero-card {
    background: #f5f5f5;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hcard-body h4 { color: #111; }
[data-theme="light"] .hcard-meta     { color: rgba(0,0,0,0.4); }

/* Ticker - light */
[data-theme="light"] .trending-ticker {
    background: rgba(0,0,0,0.02);
    border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .ticker-item        { color: rgba(0,0,0,0.45); }
[data-theme="light"] .ticker-item strong { color: rgba(0,0,0,0.7); }

/* Sections - light */
[data-theme="light"] .section     { background: #f4f5f7; }
[data-theme="light"] .section-alt { background: #ffffff; }
[data-theme="light"] .section-title     { color: #111; }
[data-theme="light"] .section-subtitle  { color: rgba(0,0,0,0.4); }

/* Category cards - light */
[data-theme="light"] .category-card {
    background: #fff;
    border-color: #e8e8e8;
}
[data-theme="light"] .category-card:hover {
    background: #fff5f5;
    border-color: var(--primary, #CC0000);
}
[data-theme="light"] .category-card .cat-icon {
    background: #f0f0f0;
    color: #555;
}
[data-theme="light"] .category-card .cat-name  { color: #333; }
[data-theme="light"] .category-card .cat-count { color: #aaa; }

/* Video cards - light */
[data-theme="light"] .video-card {
    background: #fff;
    border-color: #e8e8e8;
}
[data-theme="light"] .video-card:hover { border-color: transparent; }
[data-theme="light"] .video-info h3 a  { color: #111; }
[data-theme="light"] .video-info h3 a:hover { color: var(--primary, #CC0000); }
[data-theme="light"] .video-author-name { color: rgba(0,0,0,0.45); }
[data-theme="light"] .video-meta        { color: rgba(0,0,0,0.35); }
[data-theme="light"] .video-category-tag {
    color: var(--primary, #CC0000);
    background: rgba(204,0,0,0.07);
}

/* Blog cards - light */
[data-theme="light"] .blog-card {
    background: #fff;
    border-color: #e8e8e8;
}
[data-theme="light"] .blog-card-body h3 a { color: #111; }
[data-theme="light"] .blog-card-excerpt    { color: rgba(0,0,0,0.45); }
[data-theme="light"] .blog-card-meta       { color: rgba(0,0,0,0.35); }

/* Sidebar - light */
[data-theme="light"] .sidebar-widget {
    background: #fff;
    border-color: #e8e8e8;
}
[data-theme="light"] .sidebar-widget h3 {
    color: #111;
    border-bottom-color: #eee;
}
[data-theme="light"] .sidebar-video-item { border-bottom-color: #f0f0f0; }
[data-theme="light"] .sidebar-video-item h4 a { color: #333; }
[data-theme="light"] .sidebar-video-meta      { color: rgba(0,0,0,0.35); }
[data-theme="light"] .categories-list li      { border-bottom-color: #f0f0f0; }
[data-theme="light"] .categories-list a       { color: #444; }

/* Tags - light */
[data-theme="light"] .tag-pill {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #555;
}
[data-theme="light"] .tag-pill:hover {
    background: var(--primary, #CC0000);
    color: #fff;
    border-color: var(--primary, #CC0000);
}

/* HIW - light */
[data-theme="light"] .hiw-section { background: #111; }

/* Author hero - light */
[data-theme="light"] .author-hero { background: linear-gradient(135deg, #111 0%, #2a0000 100%); }

/* Video/Blog detail - light */
[data-theme="light"] .video-detail-title { color: #111; }
[data-theme="light"] .video-detail-meta  { color: rgba(0,0,0,0.45); border-bottom-color: #eee; }
[data-theme="light"] .video-description  { color: rgba(0,0,0,0.65); }
[data-theme="light"] .author-card {
    background: #f8f8f8;
    border-color: #e8e8e8;
}
[data-theme="light"] .author-card-info h4 { color: #111; }
[data-theme="light"] .author-card-info p  { color: rgba(0,0,0,0.5); }

/* Search form - light */
[data-theme="light"] .search-form input {
    background: #fff;
    border-color: #ddd;
    color: #111;
}
[data-theme="light"] .search-form input::placeholder { color: #aaa; }

/* Forms - light */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #fff;
    border-color: #ddd;
    color: #111;
}
[data-theme="light"] .form-group label { color: #444; }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #bbb; }
[data-theme="light"] .form-group select option { background: #fff; color: #111; }

/* Breadcrumb - light */
[data-theme="light"] .breadcrumb      { color: rgba(0,0,0,0.4); }
[data-theme="light"] .breadcrumb a    { color: rgba(0,0,0,0.5); }
[data-theme="light"] .breadcrumb .current { color: #111; }

/* Pagination - light */
[data-theme="light"] .page-link {
    background: #fff;
    border-color: #ddd;
    color: #444;
}

/* Static content - light */
[data-theme="light"] .static-content h1      { color: #111; }
[data-theme="light"] .static-content h2      { color: #111; }
[data-theme="light"] .static-content p       { color: rgba(0,0,0,0.65); }
[data-theme="light"] .static-content ul li   { color: rgba(0,0,0,0.65); }
[data-theme="light"] .static-content .lead   { color: rgba(0,0,0,0.5); border-bottom-color: #eee; }

/* Error page - light */
[data-theme="light"] .error-page { background: #f4f5f7; }
[data-theme="light"] .error-msg  { color: #111; }
[data-theme="light"] .error-sub  { color: rgba(0,0,0,0.4); }

/* Footer - light stays dark (intentional) */

/* Page wrap - light */
[data-theme="light"] .page-wrap { background: transparent; }

/* ---- DARK MODE (data-theme="dark") explicit ---- */
[data-theme="dark"] body         { background: #080808; color: #f0f0f0; }
[data-theme="dark"] .section     { background: #0a0a0a; }
[data-theme="dark"] .section-alt { background: #0d0d0d; }
[data-theme="dark"] .section-title    { color: #fff; }
[data-theme="dark"] .section-subtitle { color: rgba(255,255,255,0.25); }
[data-theme="dark"] .video-card  { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .video-info h3 a  { color: #fff; }
[data-theme="dark"] .video-author-name { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .video-meta        { color: rgba(255,255,255,0.28); }
[data-theme="dark"] .blog-card  { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .blog-card-body h3 a { color: #fff; }
[data-theme="dark"] .blog-card-excerpt    { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .sidebar-widget  { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .sidebar-widget h3 { color: #fff; }
[data-theme="dark"] .categories-list a { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .tag-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }
[data-theme="dark"] .breadcrumb       { color: rgba(255,255,255,0.25); }
[data-theme="dark"] .breadcrumb a     { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .breadcrumb .current { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .page-link { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }
[data-theme="dark"] .static-content h1 { color: #fff; }
[data-theme="dark"] .static-content h2 { color: #fff; }
[data-theme="dark"] .static-content p  { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .static-content ul li { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .video-detail-title { color: #fff; }
[data-theme="dark"] .video-detail-meta  { color: rgba(255,255,255,0.35); border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .video-description  { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .author-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .author-card-info h4 { color: #fff; }
[data-theme="dark"] .author-card-info p  { color: rgba(255,255,255,0.38); }
[data-theme="dark"] .search-form input { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: #fff; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #fff; }
[data-theme="dark"] .form-group label { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .error-page { background: #080808; }
[data-theme="dark"] .error-msg  { color: #fff; }
[data-theme="dark"] .error-sub  { color: rgba(255,255,255,0.32); }

/* ============================================================
   MOBILE RESPONSIVE — SIMPLE & CORRECT
   ============================================================ */

/* Overflow fix */
html, body { overflow-x: hidden; }

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {

    /* Header */
    .header-inner { padding: 0 1rem; height: 58px; gap: 8px; }
    .header-search { display: none; }
    .site-logo-text { font-size: 1rem; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 58px; left: 0; right: 0;
        background: #0f0f0f;
        padding: 12px 16px 20px;
        z-index: 998;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 12px; border-radius: 8px; font-size: 0.875rem; }
    .site-nav a.active::after { display: none; }

    /* Hero */
    .hero { padding: 2.5rem 1rem; min-height: auto; }
    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    .hero-right { display: none; }
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }
    .hero-desc { font-size: 0.9rem; max-width: 100%; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 0; flex-wrap: nowrap; }
    .hero-stat { padding: 0 1rem 0 0.875rem; }
    .hero-stat strong { font-size: 1.3rem; }
    .hero-eyebrow { font-size: 0.65rem; }

    /* Sections */
    .section, .section-alt, .hiw-section {
        padding: 2.5rem 1rem;
    }
    .section-header { flex-wrap: wrap; gap: 8px; }
    .section-title { font-size: 1.1rem; }

    /* Category grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .category-card { padding: 12px 6px; }
    .category-card .cat-icon { width: 36px; height: 36px; font-size: 14px; margin-bottom: 6px; }
    .category-card .cat-name { font-size: 0.65rem; }
    .category-card .cat-count { font-size: 0.6rem; }

    /* Video grid */
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-info { padding: 8px 10px 10px; }
    .video-info h3 { font-size: 0.78rem; }
    .video-meta { font-size: 0.65rem; gap: 5px; }

    /* Blog grid */
    .blog-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Page wrap — remove sidebar on mobile */
    .page-wrap {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 1.5rem auto;
        gap: 1.5rem;
    }

    /* HIW */
    .hiw-grid { grid-template-columns: 1fr; gap: 12px; }
    .hiw-card { padding: 1.25rem; }
    .hiw-section-header h2 { font-size: 1.4rem; }

    /* Author hero */
    .author-hero { padding: 2rem 1rem; }
    .author-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .author-hero img { width: 80px; height: 80px; }
    .author-hero h1 { font-size: 1.4rem; }
    .author-social { justify-content: center; flex-wrap: wrap; }

    /* Author card */
    .author-card { flex-direction: column; align-items: center; text-align: center; }

    /* Video detail */
    .video-detail-title { font-size: 1.2rem; }
    .video-detail-meta { font-size: 0.78rem; gap: 8px; }

    /* Search */
    .search-form { flex-direction: column; }
    .search-form input,
    .search-form button { width: 100%; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    /* Buttons */
    .btn { font-size: 0.875rem; }

    /* Footer */
    .site-footer { padding: 2.5rem 1rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

    /* Error page */
    .error-code { font-size: 5rem; }

    /* Static content */
    .static-content { padding: 0 1rem; margin: 2rem auto; }
    .static-content h1 { font-size: 1.6rem; }

    /* Breadcrumb */
    .breadcrumb { font-size: 0.72rem; flex-wrap: wrap; }

    /* Pagination */
    .page-link { min-width: 36px; height: 36px; font-size: 0.78rem; }

    /* Tags */
    .tag-pill { font-size: 0.72rem; padding: 4px 10px; }
}

/* ---- VERY SMALL (max 400px) ---- */
@media (max-width: 400px) {
    .hero h1 { font-size: 1.6rem; }
    .video-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- TABLET (768px - 1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-inner { padding: 0 1.25rem; }
    .header-search input { width: 140px; }
    .hero { padding: 3rem 1.25rem; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-right { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { justify-content: flex-start; }
    .section, .section-alt, .hiw-section { padding: 3rem 1.25rem; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-grid { grid-template-columns: repeat(3, 1fr); }
    .page-wrap { grid-template-columns: 1fr 280px; padding: 0 1.25rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- LARGE (1400px+) ---- */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .video-grid { grid-template-columns: repeat(4, 1fr); }
    .category-grid { grid-template-columns: repeat(8, 1fr); }
}

/* Touch devices — always show play button */
@media (hover: none) {
    .play-btn { opacity: 1 !important; transform: scale(1) !important; }
    .video-thumb-overlay { background: rgba(0,0,0,0.2) !important; }
    .btn, .page-link, .footer-social a, .theme-toggle { min-height: 44px; }
}

/* ---- ADMIN MOBILE ---- */
@media (max-width: 700px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: relative; top: auto; }
    .admin-sidebar nav { display: flex; flex-wrap: wrap; padding: 0.5rem; }
    .admin-sidebar nav a {
        flex: 1 1 45%;
        border-left: none;
        border-bottom: 2px solid transparent;
        justify-content: center;
        font-size: 0.72rem;
        padding: 0.5rem 0.75rem;
    }
    .admin-sidebar nav a.active,
    .admin-sidebar nav a:hover {
        border-left: none;
        border-bottom-color: var(--primary, #CC0000);
    }
    .admin-sidebar nav .nav-section { width: 100%; }
    .admin-main { padding: 1rem; }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .admin-table { display: block; overflow-x: auto; }
}

/* ============================================================
   HERO VIDEO STACK — Floating Cards with Thumbnails & Rating Bubbles
   ============================================================ */
@keyframes floatCard0 { 0%,100%{transform:translateY(0px) rotate(-2deg);} 50%{transform:translateY(-12px) rotate(-2deg);} }
@keyframes floatCard1 { 0%,100%{transform:translateY(0px) rotate(1.5deg);} 50%{transform:translateY(-8px) rotate(1.5deg);} }
@keyframes floatCard2 { 0%,100%{transform:translateY(0px) rotate(-1deg);} 50%{transform:translateY(-14px) rotate(-1deg);} }
@keyframes floatDot   { 0%,100%{transform:translateY(0) scale(1);opacity:0.6;} 50%{transform:translateY(-10px) scale(1.1);opacity:1;} }
@keyframes ratingPop  { 0%{transform:scale(0.8);opacity:0;} 100%{transform:scale(1);opacity:1;} }

.hero-video-stack {
    position: relative;
    width: 100%;
    height: 420px;
}

/* Each card */

/* ============================================================
   HERO VIDEO STACK — COMPLETE REWRITE
   3 Small Floating Cards with Thumbnails + Rating Bubbles
   ============================================================ */

/* Remove old hero-vcard styles */
.hero-video-stack {
    position: relative;
    width: 100%;
    height: 380px;
}

@keyframes hfloat1 {
    0%,100% { transform: rotate(3deg) translateY(0px); }
    50%      { transform: rotate(3deg) translateY(-10px); }
}
@keyframes hfloat2 {
    0%,100% { transform: rotate(-2deg) translateY(0px); }
    50%      { transform: rotate(-2deg) translateY(-12px); }
}

/* Thumbnail */

@keyframes rbrloat { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-4px) scale(1.05);} }

/* Decorative dots */
.hero-float-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.dot-1 {
    width: 10px; height: 10px;
    background: var(--primary, #CC0000);
    opacity: 0.5;
    top: 10px; right: 50px;
    animation: dotfloat 3s ease-in-out infinite;
}
.dot-2 {
    width: 7px; height: 7px;
    background: #f59e0b;
    opacity: 0.6;
    top: 220px; left: 0px;
    animation: dotfloat 4s 1s ease-in-out infinite;
}
.dot-3 {
    width: 8px; height: 8px;
    background: rgba(120,0,255,0.7);
    bottom: 40px; right: 15px;
    animation: dotfloat 3.5s 0.7s ease-in-out infinite;
}
@keyframes dotfloat { 0%,100%{transform:translateY(0);opacity:0.5;} 50%{transform:translateY(-8px);opacity:1;} }

/* Hide on mobile */
@media (max-width: 900px) {
    .hero-video-stack { display: none; }
}

/* ============================================================
   HERO VIDEO STACK — FINAL FIX
   Cards container ke andar rahein, bahar na niklen
   ============================================================ */

/* Container fix */
.hero-right {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.hero-video-stack {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

/* All cards reset */
.hero-vcard-0,
.hero-vcard-1,
.hero-vcard-2 {
    position: absolute;
    width: 180px !important;
    max-width: 180px;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: visible;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s;
}

/* Card positions — inside container */
.hero-vcard-0 {
    top: 10px;
    left: 10px;
    z-index: 3;
    transform: rotate(-3deg);
    animation: hfloat0 4s ease-in-out infinite;
}
.hero-vcard-1 {
    top: 100px;
    right: 10px;
    z-index: 2;
    transform: rotate(2.5deg);
    animation: hfloat1 5s 0.8s ease-in-out infinite;
}
.hero-vcard-2 {
    bottom: 10px;
    left: 40px;
    z-index: 1;
    transform: rotate(-1.5deg);
    animation: hfloat2 4.5s 1.5s ease-in-out infinite;
}

/* Thumb fix */
.hero-vcard-0 .hero-vcard-thumb,
.hero-vcard-1 .hero-vcard-thumb,
.hero-vcard-2 .hero-vcard-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    background: #111;
}

.hero-vcard-0 .hero-vcard-thumb img,
.hero-vcard-1 .hero-vcard-thumb img,
.hero-vcard-2 .hero-vcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Rating bubble stays inside overflow:visible */
.hero-rating-bubble {
    position: absolute;
    top: -10px !important;
    right: -10px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 3px 10px rgba(245,158,11,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 10;
    white-space: nowrap;
    animation: rbpop 0.4s ease both;
}
/* HERO RIGHT — COMPLETE REWRITE — NO ABSOLUTE POSITIONING */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.hero-video-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: auto;
    overflow: visible;
    position: static;
}
.hero-float-dot, .dot-1, .dot-2, .dot-3 { display: none; }

/* Cards — normal flow, no absolute */
.hero-vcard-0,
.hero-vcard-1,
.hero-vcard-2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: visible;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: box-shadow 0.3s, transform 0.3s;
}
.hero-vcard-0 {
    transform: rotate(-1.5deg);
    animation: hfloat0 4s ease-in-out infinite;
}
.hero-vcard-1 {
    transform: rotate(1deg);
    animation: hfloat1 5s 0.6s ease-in-out infinite;
}
.hero-vcard-2 {
    transform: rotate(-0.8deg);
    animation: hfloat2 4.5s 1.2s ease-in-out infinite;
}
@keyframes hfloat0 { 0%,100%{transform:rotate(-1.5deg) translateY(0);} 50%{transform:rotate(-1.5deg) translateY(-6px);} }
@keyframes hfloat1 { 0%,100%{transform:rotate(1deg) translateY(0);} 50%{transform:rotate(1deg) translateY(-8px);} }
@keyframes hfloat2 { 0%,100%{transform:rotate(-0.8deg) translateY(0);} 50%{transform:rotate(-0.8deg) translateY(-5px);} }

.hero-vcard-0:hover,
.hero-vcard-1:hover,
.hero-vcard-2:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    text-decoration: none;
}

/* Thumbnail — left side, fixed size */
.hero-vcard-thumb {
    width: 120px !important;
    min-width: 120px;
    height: 70px !important;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    position: relative;
    background: #111;
    flex-shrink: 0;
}
.hero-vcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-vcard-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#1a0505,#3d1010);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2); font-size: 1.2rem;
}
.hero-vcard-play {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.hero-vcard-play i {
    width: 28px; height: 28px;
    background: var(--primary,#CC0000);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px;
}
.hero-vcard-0:hover .hero-vcard-play,
.hero-vcard-1:hover .hero-vcard-play,
.hero-vcard-2:hover .hero-vcard-play { opacity: 1; }
.hero-vcard-dur {
    position: absolute; bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.8); color: #fff;
    font-size: 8px; font-weight: 600;
    padding: 2px 5px; border-radius: 3px;
    display: flex; align-items: center; gap: 2px;
}

/* Info — right side */
.hero-vcard-info {
    flex: 1;
    padding: 8px 12px;
    min-width: 0;
}
.hero-vcard-title {
    font-size: 11px; font-weight: 700; color: #fff;
    line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-vcard-meta {
    display: flex; gap: 6px; flex-wrap: wrap;
    font-size: 9px; color: rgba(255,255,255,0.35);
}
.hero-vcard-meta i { font-size: 8px; }

/* Rating bubble */
.hero-rating-bubble {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #fff; font-size: 10px; font-weight: 900;
    padding: 3px 8px; border-radius: 20px;
    display: flex; align-items: center; gap: 3px;
    box-shadow: 0 3px 10px rgba(245,158,11,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 10; white-space: nowrap;
    animation: rbpop 0.4s ease both;
}
.hero-rating-bubble i { font-size: 9px; }
@keyframes rbpop { from{transform:scale(0.6);opacity:0;} to{transform:scale(1);opacity:1;} }

@media (max-width:900px) {
    .hero-right { display: none; }
}