/*
Theme Name: VortexTube
Theme URI: https://example.com/vortextube
Author: VortexStudio
Author URI: https://example.com
Description: A dark, high-performance adult video tube WordPress theme. Features video grids, category browsing, pornstar directories, single video pages with embedded players, user favorites, and age verification.
Version: 1.7.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vortextube
Tags: dark, video, tube, adult, responsive, custom-post-types
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input {
    font-family: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ========================================
   CSS CUSTOM PROPERTIES (TOKENS)
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --bg-card: #141414;
    --border-subtle: #222222;
    --border-hover: #333333;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --accent: #dc2626;
    --accent-hover: #ef4444;
    --accent-dark: #991b1b;
    --tag-bg: #1a1a1a;
    --tag-active-bg: #dc2626;
    --tag-active-text: #ffffff;
    --overlay-dark: rgba(0,0,0,0.6);
    --overlay-gradient: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    --badge-bg: rgba(0,0,0,0.75);
    --success: #22c55e;
    --scrollbar: #333333;
    --scrollbar-track: #111111;

    /* Typography sizes */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 16px;
    --text-lg: 20px;
    --text-xl: 28px;
    --text-2xl: 36px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-elevated: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-play: 0 0 20px rgba(220,38,38,0.4);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1920px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

@media (min-width: 1200px) {
    .header-inner {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1920px) {
    .header-inner {
        padding: 0 var(--space-8);
    }
}

/* Logo */
.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.site-logo .logo-icon {
    width: 26px;
    height: 26px;
    background: #000;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.site-logo .logo-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent var(--accent);
    margin-left: 1px;
}

/* Search Bar */
.header-search {
    max-width: 420px;
    width: 100%;
    flex: 1;
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    height: 40px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.header-search form:focus-within {
    border-color: var(--accent);
}

.header-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: var(--text-base);
    padding: 0 var(--space-4);
    height: 100%;
}

.header-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.header-search input[type="search"]::placeholder {
    color: var(--text-muted);
}

.header-search button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-right: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-search button:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent);
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 24px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: var(--bg-elevated);
}

/* Mobile Menu Drawer */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    z-index: 21;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: var(--space-6);
}

.mobile-menu-nav {
    margin-top: 60px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
}

.mobile-menu-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mobile-menu-nav .nav-link {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    font-size: var(--text-md);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.site-main {
    padding-top: 84px; /* 60px header + 24px spacing */
    min-height: calc(100vh - 120px);
}

.page-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.page-title .search-query {
    color: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs .sep {
    margin: 0 var(--space-2);
    opacity: 0.5;
}

/* ========================================
   SORT TABS
   ======================================== */

.sort-tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.sort-tab {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.sort-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.sort-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ========================================
   TAG FILTER BAR
   ======================================== */

.tag-filter-wrap {
    position: relative;
    margin-bottom: var(--space-6);
    padding: 0 36px;
}

.tag-filter {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tag-filter::-webkit-scrollbar {
    display: none;
}

.tag-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tag-scroll-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--accent);
}

.tag-scroll-btn.prev {
    left: 0;
}

.tag-scroll-btn.next {
    right: 0;
}

.tag-scroll-btn.hidden {
    display: none;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--tag-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tag-pill.active {
    background: var(--tag-active-bg);
    border-color: var(--accent);
    color: var(--tag-active-text);
}

/* ========================================
   VIDEO GRID
   ======================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

@media (min-width: 1920px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-3);
    }
}

/* ========================================
   VIDEO CARD
   ======================================== */

.video-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Thumbnail */
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(220, 38, 38, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(220,38,38,0);
}

.video-card:hover .play-btn {
    transform: scale(1);
    box-shadow: var(--shadow-play);
}

/* Duration Badge */
.duration-badge {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    background: var(--badge-bg);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Favorite Heart */
.favorite-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 3;
    cursor: pointer;
}

.video-card:hover .favorite-btn {
    opacity: 0.7;
}

.video-card .favorite-btn:hover {
    opacity: 1;
    background: rgba(220,38,38,0.7);
}

.favorite-btn.is-favorite {
    opacity: 1;
    background: rgba(220,38,38,0.3);
    color: var(--accent);
}

.video-card:hover .favorite-btn.is-favorite {
    opacity: 1;
}

/* Preview Video on Card Hover */
.card-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

/* ========================================
   PROGRESSIVE THUMBNAIL LOADING (BLUR-UP)
   ======================================== */

/* Tiny blurred placeholder — loads instantly */
.thumb-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1); /* prevent blur edge bleed */
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Full-resolution image — starts hidden */
.thumb-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* When full image loads, show it and fade out blur */
.thumb-full.loaded {
    opacity: 1;
}

.thumb-full.loaded + .thumb-blur,
.video-thumb:has(.thumb-full.loaded) .thumb-blur {
    opacity: 0;
}

/* ========================================
   VIDEO INFO
   ======================================== */

.video-info {
    padding: var(--space-3);
}

.video-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-meta i {
    font-size: 12px;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}

.pagination-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-num,
.pagination .page-num a,
.pagination .page-arrow,
.pagination .page-arrow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-num a,
.pagination .page-arrow a {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
}

.pagination .page-num a:hover,
.pagination .page-arrow a:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--text-primary);
}

.pagination .page-num.current {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    cursor: default;
}

.pagination .page-arrow a {
    padding: 0 10px;
    font-size: 16px;
    min-width: 40px;
}

.pagination .page-arrow a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .page-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination .page-arrow.disabled a {
    cursor: not-allowed;
}

.pagination .page-arrow i,
.pagination .page-num i {
    pointer-events: none;
}

.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-size: var(--text-base);
    font-weight: 500;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-base);
    transition: all 0.2s ease;
    cursor: pointer;
}

.load-more-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

/* ========================================
   SINGLE VIDEO PAGE
   ======================================== */

.single-video-wrap {
    margin-bottom: var(--space-8);
}

/* Video Player */
.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.video-player-container .player-embed,
.video-player-container .player-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-player-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-player-container iframe,
.video-player-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.video-player-placeholder .preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player-placeholder .placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-dark);
    z-index: 2;
    cursor: pointer;
}

.video-player-placeholder .placeholder-play {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: rgba(220, 38, 38, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: var(--shadow-play);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-player-placeholder .placeholder-play:hover {
    transform: scale(1.1);
}

/* Action Bar */
.video-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.video-views-date {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.video-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    font-size: var(--text-base);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.action-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.action-btn.active-like {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.3);
}

.action-btn.active-dislike {
    background: rgba(220, 38, 38, 0.15);
    color: var(--accent);
    border-color: rgba(220, 38, 38, 0.3);
}

.action-btn.is-favorite {
    background: rgba(220, 38, 38, 0.2);
    color: var(--accent);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Categories & Tags */
.video-taxonomies {
    padding: var(--space-4) 0;
}

.taxonomy-section {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.taxonomy-label {
    font-size: var(--text-base);
    color: var(--text-secondary);
    flex-shrink: 0;
    padding-top: 6px;
}

.taxonomy-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tax-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
}

.tax-link.category-link {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.tax-link.category-link:hover {
    border: 1px solid var(--accent);
}

.tax-link.tag-link {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.tax-link.tag-link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Related Videos */
.related-videos {
    margin-top: var(--space-8);
}

.related-videos .section-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

/* ========================================
   CATEGORY / ACTOR GRID
   ======================================== */

.category-grid,
.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.category-card,
.actor-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    text-align: center;
}

.category-card:hover,
.actor-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.category-card .card-thumb,
.actor-card .card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.category-card .card-thumb img,
.actor-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-thumb img,
.actor-card:hover .card-thumb img {
    transform: scale(1.05);
}

.category-card .card-info,
.actor-card .card-info {
    padding: var(--space-4);
}

.category-card .card-title,
.actor-card .card-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
}

.category-card .card-count,
.actor-card .card-count {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* ========================================
   FAVORITES EMPTY STATE
   ======================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--border-subtle);
    margin-bottom: var(--space-4);
}

.empty-state-text {
    font-size: var(--text-md);
    color: var(--text-secondary);
}

/* ========================================
   AGE VERIFICATION MODAL
   ======================================== */

.age-verify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

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

.age-verify-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transform: scale(0.95);
    animation: modalIn 0.4s ease forwards;
}

@keyframes modalIn {
    to { transform: scale(1); }
}

.age-verify-modal .modal-logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.age-verify-modal .modal-logo .logo-accent {
    color: var(--accent);
}

.age-gate-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.age-verify-modal .modal-text {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.age-verify-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.age-verify-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.age-verify-btn .check-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.age-leave-link {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--text-base);
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.age-leave-link:hover {
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-6);
    margin-top: var(--space-10);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links.legal a {
    color: var(--text-muted);
}

.footer-links.legal a:hover {
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-3);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    cursor: pointer;
    border: none;
}

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

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    z-index: 50;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-search {
        max-width: none;
    }

    .video-action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-actions {
        width: 100%;
    }

    .sort-tabs {
        gap: var(--space-2);
    }

    .sort-tab {
        padding: 8px 16px;
        font-size: var(--text-sm);
    }

    .container {
        padding: 0 var(--space-4);
    }

    .header-inner {
        padding: 0 var(--space-4);
    }

    .age-verify-modal {
        padding: 32px 24px;
    }

    .category-grid,
    .actor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
}

@media (max-width: 576px) {
    .site-logo {
        font-size: 16px;
    }

    .site-logo .logo-icon {
        width: 22px;
        height: 22px;
    }

    .site-logo .logo-icon::after {
        border-width: 4px 0 4px 7px;
    }

    .video-grid {
        gap: var(--space-2);
    }

    .video-info {
        padding: var(--space-2);
    }

    .video-title {
        font-size: var(--text-sm);
    }

    .video-meta {
        font-size: var(--text-xs);
        gap: var(--space-2);
    }

    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .page-title {
        font-size: var(--text-md);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

/* ========================================
   ADVERTISING / BANNERS
   ======================================== */

.ad-banner {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner iframe,
.ad-banner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.ad-header {
    margin-top: 0;
    margin-bottom: 16px;
}

.ad-player_top,
.ad-player_bottom {
    margin: 16px auto;
}

.ad-above_grid {
    margin-bottom: 16px;
}

.ad-below_grid {
    margin-top: 16px;
}

.ad-related_top,
.ad-related_bottom {
    margin: 16px auto;
}

.ad-footer {
    margin-top: 16px;
    margin-bottom: 0;
}

.ad-cams {
    margin: 0 auto 24px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
}

.ad-cams:has(iframe),
.ad-cams:has(img),
.ad-cams:has(script) {
    border-style: solid;
    background: transparent;
}

@media print {
    .ad-banner { display: none !important; }
}

@media print {
    .site-header,
    .site-footer,
    .age-verify-overlay,
    .back-to-top,
    .mobile-menu-overlay,
    .favorite-btn,
    .play-overlay,
    .sort-tabs,
    .tag-filter-wrap {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-main {
        padding-top: 0;
    }
}

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */

.alignleft {
    float: left;
    margin-right: var(--space-4);
}

.alignright {
    float: right;
    margin-left: var(--space-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--space-2);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.gallery {
    display: grid;
    gap: var(--space-4);
}

.gallery-item {
    margin: 0;
}
