/* ==============================
   DESIGN SYSTEM - CYBER PREMIUM (LIGHT DEFAULT)
   ============================== */
:root {
    /* Color Palette (Light) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: #ffffff;
    
    /* Accents */
    --accent-primary: #0044ff; /* Strong Blue */
    --accent-secondary: #ff0000; /* Strong Red */
    --accent-pink: #ff0000; /* Strong Red fallback */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: rgba(37, 99, 235, 0.2);
    
    /* Text */
    --text-1: #0f172a;
    --text-2: #334155;
    --text-3: #64748b;
    
    /* UI Elements */
    --border-glass: rgba(0, 0, 0, 0.05);
    --border-accent: rgba(59, 130, 246, 0.3);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-accent: 0 0 20px rgba(59, 130, 246, 0.1);
    
    /* Utils */
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Colors for status */
    --color-success: #10b981;
    --color-error: #ef4444;
}

/* ==============================================================================
   TEMAS WP-SCRIPT INSPIRED (ULTIMATUBE, FAMOUSTUBE, KOLORTUBE, KINGTUBE, RETROTUBE)
   ============================================================================== */

/* 1. Ultimatube (Tema Padrao Clean / Light - BennSoft Systems) */
:root,
body[data-theme="ultimatube"],
body.theme-ultimatube {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --accent-primary: #e11d48;
    --accent-secondary: #ff0033;
    --accent-pink: #f43f5e;
    --accent-gradient: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    --accent-glow: rgba(225, 29, 72, 0.2);
    --text-1: #0f172a;
    --text-2: #334155;
    --text-3: #64748b;
    --border-glass: #e2e8f0;
    --border-accent: rgba(225, 29, 72, 0.3);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-accent: 0 0 20px rgba(225, 29, 72, 0.1);
}

/* 2. FamousTube (Dark Gold / Amber - Inspirado no maior porn tube do mundo) */
body[data-theme="famoustube"],
body.theme-famoustube {
    --bg-base: #0f0f12;
    --bg-surface: #18181f;
    --bg-card: #20202a;
    --bg-card-hover: #282836;
    --accent-primary: #ff9000;
    --accent-secondary: #f59e0b;
    --accent-pink: #d97706;
    --accent-gradient: linear-gradient(135deg, #ff9000 0%, #d97706 100%);
    --accent-glow: rgba(255, 144, 0, 0.3);
    --text-1: #ffffff;
    --text-2: #e4e4e7;
    --text-3: #a1a1aa;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 144, 0, 0.35);
    --shadow-premium: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
    --shadow-accent: 0 0 25px rgba(255, 144, 0, 0.2);
}

/* 3. KolorTube (Modern Purple / Deep Indigo) */
body[data-theme="kolortube"],
body.theme-kolortube {
    --bg-base: #0f0720;
    --bg-surface: #180d32;
    --bg-card: #241348;
    --bg-card-hover: #311a60;
    --accent-primary: #a855f7;
    --accent-secondary: #ec4899;
    --accent-pink: #c084fc;
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --accent-glow: rgba(168, 85, 247, 0.35);
    --text-1: #ffffff;
    --text-2: #f3e8ff;
    --text-3: #c084fc;
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(168, 85, 247, 0.4);
    --shadow-premium: 0 20px 50px -10px rgba(15, 7, 32, 0.9);
    --shadow-accent: 0 0 30px rgba(168, 85, 247, 0.25);
}

/* 4. KingTube (Dark Slate / Teal & Cyan) */
body[data-theme="kingtube"],
body.theme-kingtube {
    --bg-base: #0b1120;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #27354f;
    --accent-primary: #06b6d4;
    --accent-secondary: #0ea5e9;
    --accent-pink: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --accent-glow: rgba(6, 182, 212, 0.3);
    --text-1: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(6, 182, 212, 0.35);
    --shadow-premium: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 0 25px rgba(6, 182, 212, 0.2);
}

/* 5. RetroTube (Neon Crimson / Retro Dark) */
body[data-theme="retrotube"],
body.theme-retrotube {
    --bg-base: #0e0e14;
    --bg-surface: #161620;
    --bg-card: #1f1f2e;
    --bg-card-hover: #2a2a3e;
    --accent-primary: #f43f5e;
    --accent-secondary: #fb7185;
    --accent-pink: #e11d48;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --accent-glow: rgba(244, 63, 94, 0.35);
    --text-1: #ffffff;
    --text-2: #e4e4e7;
    --text-3: #a1a1aa;
    --border-glass: rgba(244, 63, 94, 0.15);
    --border-accent: rgba(244, 63, 94, 0.4);
    --shadow-premium: 0 20px 45px -10px rgba(0, 0, 0, 0.85);
    --shadow-accent: 0 0 30px rgba(244, 63, 94, 0.25);
}

/* Ajustes de contraste para tema claro (Ultimatube) */
body[data-theme="ultimatube"] .blob,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .blob {
    opacity: 0.08;
    filter: blur(80px);
}
body[data-theme="ultimatube"] .input-group input,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .input-group input {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}
body[data-theme="ultimatube"] .result-actions .result-action-btn,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .result-actions .result-action-btn {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
body[data-theme="ultimatube"] .tab.active,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .tab.active {
    color: #ffffff;
}
body[data-theme="ultimatube"] .btn-primary,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .btn-primary {
    color: #ffffff;
}
body[data-theme="ultimatube"] .header,
body:not(.dark-mode):not([data-theme="famoustube"]):not([data-theme="kolortube"]):not([data-theme="kingtube"]):not([data-theme="retrotube"]) .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-1);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.2;
    animation: blobFloat 25s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}
.blob-1 { width: 600px; height: 600px; background: var(--accent-primary); top: -150px; left: -100px; }
.blob-2 { width: 700px; height: 700px; background: var(--accent-secondary); bottom: -200px; right: -100px; animation-delay: -7s; }
.blob-3 { width: 500px; height: 500px; background: var(--accent-pink); top: 30%; left: 50%; animation-delay: -12s; }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, 50px) scale(1.1) rotate(120deg); }
    66% { transform: translate(-50px, 150px) scale(0.9) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* ==============================
   HEADER & NAVIGATION
   ============================== */
.header {
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 40px;
    position: sticky; top: 0; z-index: 1000;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-heading);
}
.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}
.logo h1 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0;
}
.logo .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.version-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    color: var(--accent-primary);
    font-weight: 800;
    vertical-align: middle;
    margin-left: 8px;
}
.header-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-2);
    width: 42px; height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg);
}
.theme-toggle svg { width: 20px; height: 20px; }

/* ==============================
   MAIN LAYOUT
   ============================== */
.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    overflow: hidden;
}
.glass-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), var(--shadow-accent);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

/* ==============================
   UI COMPONENTS
   ============================== */
.tabs-wrapper {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 8px;
}
.tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.tab:hover { color: var(--text-2); background: rgba(255, 255, 255, 0.05); }
.tab.active {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}
.tab svg { width: 18px; height: 18px; }

/* Panels */
.panel { display: none; flex-direction: column; gap: 32px; animation: slideUp 0.5s ease-out; }
.panel.active { display: flex; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs & Forms */
.input-card { padding: 48px; text-align: center; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.section-desc { font-size: 1rem; color: var(--text-3); margin-bottom: 32px; }

.input-group {
    display: flex;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.input-group input {
    flex: 1;
    padding: 18px 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-1);
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}
.input-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 5px rgba(0, 242, 255, 0.1);
}

/* Source Filters */
.source-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 10px 20px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-3);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}
.filter-chip:hover { border-color: var(--text-3); color: var(--text-2); transform: scale(1.05); }
.filter-chip.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

/* ==============================
   RESULTS GRID
   ============================== */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.result-card {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition);
}
.result-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-accent);
}

.result-thumb-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.result-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-card:hover .result-thumb { transform: scale(1.1); }

.result-duration {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    color: #fff; padding: 4px 10px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.result-source {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 14px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}
.result-source.premium-badge { background: linear-gradient(135deg, var(--accent-primary), #a00); color: #fff; box-shadow: 0 0 10px rgba(255,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); }

.result-quality {
    position: absolute; top: 12px; left: 12px; z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    color: var(--accent-primary);
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 900;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-info { padding: 20px; }
.result-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Result Card Actions & Checkbox */
.result-checkbox {
    position: absolute; top: 12px; left: 12px; z-index: 20;
    width: 24px; height: 24px; border-radius: 8px;
    background: rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(4px);
}
.result-card.selected .result-checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}
.result-card.selected .result-checkbox::after {
    content: '✓'; color: #000; font-size: 0.85rem; font-weight: 900;
}

.result-actions {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.9);
    transition: var(--transition);
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}
.result-card:hover .result-actions { opacity: 1; transform: scale(1); }

.result-action-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent-primary); border: none;
    color: #000; display: flex; align-items: center; justify-content: center;
    cursor: pointer; backdrop-filter: blur(10px); transition: var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
}
.result-action-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

/* Batch Bar & Status */
.batch-bar {
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 100px; z-index: 500;
    margin-bottom: 20px; border-radius: var(--radius-md);
    animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.batch-info { display: flex; align-items: center; gap: 16px; }
.batch-count { font-weight: 700; color: var(--accent-primary); font-size: 0.9rem; }

.batch-status { padding: 32px; margin-bottom: 32px; }
.batch-status-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.batch-status-title { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.batch-counter { background: rgba(0, 242, 255, 0.1); color: var(--accent-primary); padding: 4px 14px; border-radius: 20px; font-weight: 800; font-size: 0.85rem; }

.batch-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.batch-progress-fill { height: 100%; width: 0%; background: var(--accent-gradient); transition: width 0.5s ease; }

.current-download { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.current-download-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.current-download-name { font-weight: 700; color: var(--text-2); font-size: 0.9rem; }
.current-progress-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.current-progress-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.current-progress-fill { height: 100%; width: 0%; background: var(--accent-gradient); transition: width 0.4s ease; }
.current-progress-pct { font-weight: 800; color: var(--accent-primary); font-size: 1rem; min-width: 50px; text-align: right; }
.current-download-stats { display: flex; gap: 20px; font-size: 0.8rem; color: var(--text-3); font-weight: 600; }

.batch-results-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; padding-right: 10px; }
.batch-result-item { padding: 10px 16px; border-radius: 8px; background: rgba(255,255,255,0.02); font-size: 0.85rem; font-weight: 600; border-left: 4px solid transparent; }
.batch-result-item.success { border-left-color: var(--color-success); color: var(--color-success); }
.batch-result-item.failed { border-left-color: var(--color-error); color: var(--color-error); }

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 25px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px var(--accent-glow);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    border: 1px solid var(--border-glass);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-1);
    border-color: var(--text-3);
}

/* ==============================
   DOWNLOADED FILES
   ============================== */
.files-card { padding: 32px; }
.files-list { display: flex; flex-direction: column; gap: 12px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(10px);
}
.file-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.file-details { flex: 1; }
.file-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.file-size { font-size: 0.8rem; color: var(--text-3); }

/* ==============================
   FOOTER
   ============================== */
.footer {
    padding: 60px 40px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface);
    margin-top: 100px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy { color: var(--text-3); font-size: 0.9rem; font-weight: 500; }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-primary); }

/* ==============================
   UTILITIES
   ============================== */
.hidden { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ==============================
   MODALS & VIDEO PLAYER
   ============================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; padding: 24px;
    animation: fadeIn 0.3s ease;
}
.modal-content {
    width: 100%; max-width: 600px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px; position: relative;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
}
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none; color: var(--text-2);
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--color-error); color: #fff; transform: rotate(90deg); }

.modal-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.modal-body { color: var(--text-2); line-height: 1.8; font-size: 0.95rem; }
.modal-body h3 { color: var(--text-1); margin: 24px 0 12px; font-family: var(--font-heading); }

/* Video Modal */
.video-modal-content {
    width: 100%; max-width: 900px;
    padding: 0; overflow: hidden;
    background: #000; border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}
.video-modal-header {
    padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-surface); border-bottom: 1px solid var(--border-glass);
}
.video-modal-title { font-weight: 700; font-size: 1rem; color: var(--text-1); }
.video-player-wrapper { aspect-ratio: 16/9; background: #000; }
#video-player { width: 100%; height: 100%; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Footer Premium */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 60px 20px 30px;
    margin-top: 80px;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}
.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.footer-brand p {
    color: var(--text-2);
    font-size: 0.95rem;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent-primary);
}
.footer-warning {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    max-width: 800px;
}
.footer-warning p {
    color: var(--text-2);
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-copyright {
    color: var(--text-3);
    font-size: 0.85rem;
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
}

/* Age Verification Modal */
.age-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.4); /* Fundo semi-transparente para ver os vídeos */
    backdrop-filter: blur(8px); /* Borrão para manter o foco no aviso */
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 1; transition: opacity 0.4s ease;
}
html.age-verified .age-overlay {
    display: none !important;
}
.age-overlay.hidden {
    opacity: 0; pointer-events: none;
}
.age-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px; max-width: 500px; width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: ageSlideUp 0.3s ease-out;
}
@keyframes ageSlideUp { from { transform: translateY(15px); } to { transform: translateY(0); } }
.age-icon { font-size: 4rem; display: block; margin-bottom: 20px; }
.age-modal-content h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 16px; color: var(--text-1); }
.age-modal-content p { color: var(--text-2); line-height: 1.6; margin-bottom: 24px; font-size: 0.95rem; }
.age-cookies-text { font-size: 0.8rem !important; color: var(--text-3) !important; margin-bottom: 30px !important; }
.age-actions { display: flex; flex-direction: column; gap: 12px; }
.age-actions .btn { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ==============================
   COMPACT HEADER SEARCH & CATEGORIES BAR
   ============================== */
.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 32px;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Escondido na Home até rolar o scroll */
.header-search.hidden-search {
    display: none !important;
}

.header-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 2px 4px 2px 16px;
    transition: var(--transition);
}

.header-search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}

.header-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-1);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    padding: 8px 0;
}

.header-search-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--accent-primary);
}

/* Categorias de navegação rápida */
.header-categories-bar {
    background: rgba(8, 8, 18, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 40px;
    position: sticky;
    top: 75px;
    z-index: 999;
}

.categories-scroll-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS swipe */
}

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

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-2);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.category-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--text-1);
    transform: translateY(-1px);
}

.category-tag.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Ajustes de responsividade para Mobile */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
    }
    
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
        max-width: 100%;
    }
    
    .logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    
    .header-search {
        grid-column: 1 / span 2;
        grid-row: 2;
        max-width: 100%;
        margin: 0;
    }

    .header-search-input {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .header-categories-bar {
        padding: 8px 12px;
        top: 118px; /* Quando a busca está ativa (padrão) */
        transition: top 0.3s ease;
    }

    #main-header:has(.hidden-search) + .header-categories-bar {
        top: 66px; /* Quando a busca está oculta no mobile */
    }

    .category-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .input-group { 
        flex-direction: column; 
        gap: 10px; 
        width: 100%; 
        box-sizing: border-box; 
    }
    .input-group input { 
        padding: 14px 16px; 
        font-size: 1rem; 
        width: 100%; 
        box-sizing: border-box; 
    }
    .input-group .btn { 
        padding: 14px 16px; 
        font-size: 1rem; 
        width: 100%; 
        box-sizing: border-box; 
    }
    .search-results { 
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); 
    }
    .footer-content { 
        flex-direction: column; 
        gap: 24px; 
        text-align: center; 
    }
    .main-content { 
        margin: 20px auto; 
        padding: 0 16px;
        gap: 24px; 
    }
}

/* Mobile Sticky Ad */
.mobile-sticky-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .mobile-sticky-ad {
        display: block;
    }
    /* Add padding to body so content isn't hidden behind the ad */
    body {
        padding-bottom: 110px !important;
    }
}

/* Skeleton Placeholder Loader (For CLS elimination and premium speed perception) */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.skeleton-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-title-line {
    width: 100%;
    height: 16px;
}
.skeleton-short-line {
    width: 60%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

