/* ===== CSS Variables (Typography, Spacing, Radius, Layout) ===== */
:root {
    /* Typography */
    --fv-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fv-font-size-xs: 0.75rem;
    --fv-font-size-sm: 0.875rem;
    --fv-font-size-base: 1rem;
    --fv-font-size-lg: 1.125rem;
    --fv-font-size-xl: 1.25rem;
    --fv-font-size-2xl: 1.5rem;
    --fv-font-size-3xl: 2rem;

    /* Spacing */
    --fv-spacing-xs: 0.25rem;
    --fv-spacing-sm: 0.5rem;
    --fv-spacing-md: 1rem;
    --fv-spacing-lg: 1.5rem;
    --fv-spacing-xl: 2rem;
    --fv-spacing-2xl: 3rem;

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

    /* Layout */
    --fv-container-max: 1400px;
    --fv-header-height: 64px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

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

body {
    font-family: var(--fv-font-primary);
    font-size: var(--fv-font-size-base);
    line-height: 1.6;
    color: var(--fv-text-primary);
    background-color: var(--fv-bg-primary);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.fv-container {
    width: 100%;
    max-width: var(--fv-container-max);
    margin: 0 auto;
    padding: 0 var(--fv-spacing-md);
}

/* Visually hidden - for SEO h1 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Header ===== */
.fv-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--fv-bg-secondary);
    border-bottom: 1px solid var(--fv-border);
}

.fv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--fv-header-height);
    gap: var(--fv-spacing-lg);
}

.fv-logo {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
    font-size: var(--fv-font-size-xl);
    font-weight: 700;
    color: var(--fv-text-primary);
    flex-shrink: 0;
}

.fv-logo img {
    height: 40px;
    width: auto;
}

.fv-logo-text {
    background: linear-gradient(135deg, var(--fv-accent), var(--fv-accent-gradient-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}


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

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

.fv-search-input {
    flex: 1;
    height: 100%;
    padding: 0 var(--fv-spacing-md);
    background: transparent;
    border: none;
    color: var(--fv-text-primary);
    outline: none;
    font-size: var(--fv-font-size-sm);
}

.fv-search-input::placeholder {
    color: var(--fv-text-muted);
}

.fv-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 var(--fv-spacing-md);
    background: var(--fv-accent);
    border: none;
    color: var(--fv-text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.fv-search-btn:hover {
    background: var(--fv-accent-hover);
}

/* Search Autocomplete */
.fv-search-wrapper {
    position: relative;
}

.fv-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fv-bg-secondary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    margin-top: 4px;
    box-shadow: 0 4px 20px var(--fv-shadow-autocomplete);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.fv-autocomplete.active {
    display: block;
}

.fv-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--fv-text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--fv-border);
}

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

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

.fv-autocomplete-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

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

/* Navigation */
.fv-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: var(--fv-spacing-sm);
    min-width: 0;
}

.fv-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--fv-radius-md);
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    color: var(--fv-text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.fv-nav-item span {
    display: inline-block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .fv-nav-item span {
        max-width: 140px;
    }
}

.fv-nav-item:hover {
    color: var(--fv-text-primary);
    background: var(--fv-bg-tertiary);
}

.fv-nav-item.is-active {
    color: var(--fv-accent);
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.fv-nav-item svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.fv-nav-item.is-active svg {
    opacity: 1;
}

/* Navigation Dropdown (Desktop Nav Groups) */
.fv-nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fv-nav-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.fv-nav-chevron {
    transition: transform 0.2s ease;
    margin-left: 2px;
    flex-shrink: 0;
    opacity: 0.7;
}

.fv-nav-dropdown-wrapper:hover .fv-nav-chevron,
.fv-nav-dropdown-wrapper.is-open .fv-nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.fv-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 200px;
    background: var(--fv-bg-card, #131722);
    border: 1px solid var(--fv-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--fv-radius-md, 10px);
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fv-nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

.fv-nav-dropdown-wrapper:hover .fv-nav-dropdown-menu,
.fv-nav-dropdown-wrapper.is-open .fv-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fv-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--fv-radius-sm, 6px);
    font-size: var(--fv-font-size-sm, 0.875rem);
    font-weight: 500;
    color: var(--fv-text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fv-nav-dropdown-item:hover {
    color: var(--fv-text-primary, #f8fafc);
    background: var(--fv-bg-hover, rgba(255, 255, 255, 0.06));
}

.fv-nav-dropdown-item.is-active {
    color: var(--fv-accent, #6366f1);
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.fv-nav-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.fv-nav-dropdown-item.is-active svg {
    opacity: 1;
}

/* Header Actions Wrapper */
.fv-header-actions {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-md);
    flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.fv-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--fv-text-primary);
    cursor: pointer;
    border-radius: var(--fv-radius-sm);
    transition: background 0.2s ease;
}

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

/* Mobile Drawer Backdrop */
.fv-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fv-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer Sidebar */
.fv-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    background: var(--fv-bg-secondary);
    border-right: 1px solid var(--fv-border);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.fv-mobile-drawer.is-open {
    transform: translateX(0);
}

.fv-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--fv-spacing-md);
    height: var(--fv-header-height);
    border-bottom: 1px solid var(--fv-border);
    flex-shrink: 0;
}

.fv-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--fv-radius-sm);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    color: var(--fv-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fv-drawer-close:hover {
    color: var(--fv-text-primary);
    border-color: var(--fv-accent);
}

.fv-drawer-nav {
    padding: var(--fv-spacing-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.fv-drawer-section-title {
    font-size: var(--fv-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--fv-text-muted);
    padding: var(--fv-spacing-xs) var(--fv-spacing-sm);
    margin-bottom: 4px;
}

.fv-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--fv-radius-md);
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    color: var(--fv-text-primary);
    transition: background 0.2s ease, color 0.2s ease;
}

.fv-drawer-item:hover {
    background: var(--fv-bg-hover);
    color: var(--fv-accent);
}

.fv-drawer-item.is-active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--fv-accent);
    font-weight: 600;
}

.fv-drawer-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.fv-drawer-item.is-active svg {
    opacity: 1;
}

body.fv-drawer-locked {
    overflow: hidden;
}

/* ===== Banner Ads ===== */
.fv-header-banner {
    text-align: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.fv-header-banner[data-banner-loaded="1"] {
    margin: var(--fv-spacing-md) auto;
}

.fv-footer-banner {
    text-align: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.fv-footer-banner[data-banner-loaded="1"] {
    margin: var(--fv-spacing-lg) auto var(--fv-spacing-md);
}

.fv-square-banner {
    text-align: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.fv-square-banner[data-banner-loaded="1"] {
    margin: var(--fv-spacing-xl) auto;
}

/* ===== Main Content ===== */
.fv-main {
    min-height: calc(100vh - var(--fv-header-height) - 200px);
    padding: var(--fv-spacing-xl) 0;
}

/* Section */
.fv-section {
    margin-bottom: var(--fv-spacing-2xl);
}

.fv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--fv-spacing-lg);
}

.fv-section-title {
    font-size: var(--fv-font-size-xl);
    font-weight: 600;
    color: var(--fv-text-primary);
}

.fv-section-link {
    color: var(--fv-accent);
    font-size: var(--fv-font-size-sm);
}

/* ===== Video Grid ===== */
.fv-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--fv-spacing-md);
}

/* Video Card */
.fv-video-card {
    background: var(--fv-bg-card);
    border-radius: var(--fv-radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fv-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--fv-shadow);
}

.fv-video-thumb {
    position: relative;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden;
}

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

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

/* Video Card Hover/Tap Preview */
.fv-card-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 6;
    pointer-events: none;
    background: #000;
}

.fv-preview-overlay-play {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fv-preview-play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fv-accent, #e50914);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.fv-preview-play-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 2px;
}

.fv-preview-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8;
    pointer-events: none;
    overflow: hidden;
}

.fv-preview-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--fv-accent, #e50914);
    box-shadow: 0 0 8px var(--fv-accent, #e50914);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

.fv-video-card.is-previewing {
    box-shadow: 0 0 0 2px var(--fv-accent, #e50914), 0 8px 25px var(--fv-shadow);
}

.fv-video-duration {
    position: absolute;
    bottom: var(--fv-spacing-sm);
    right: var(--fv-spacing-sm);
    padding: 2px 6px;
    background: var(--fv-bg-duration);
    border-radius: var(--fv-radius-sm);
    font-size: var(--fv-font-size-xs);
    font-weight: 500;
    color: #ffffff;
}

.fv-video-quality {
    position: absolute;
    top: var(--fv-spacing-sm);
    left: var(--fv-spacing-sm);
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--fv-radius-sm);
    font-size: var(--fv-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
    z-index: 5;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fv-video-quality.is-uncensored {
    background: #e50914;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(229, 9, 20, 0.5);
    font-weight: 800;
}

.fv-video-quality.is-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 800;
}

/* Keep ribbon white on video card hover */
.fv-video-card:hover .fv-video-quality {
    color: #ffffff;
}

.fv-video-code {
    position: absolute;
    top: var(--fv-spacing-sm);
    right: var(--fv-spacing-sm);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--fv-radius-sm);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: var(--fv-font-size-xs);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    z-index: 5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fv-video-card:hover .fv-video-code {
    color: #ffffff;
}

.fv-video-info {
    padding: var(--fv-spacing-md);
}

.fv-video-title {
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    line-height: 1.4;
    color: var(--fv-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2lh;
    margin-bottom: var(--fv-spacing-sm);
}

.fv-video-meta {
    display: none;
    /* Hidden - remove views/likes from video cards */
    align-items: center;
    gap: var(--fv-spacing-md);
    font-size: var(--fv-font-size-xs);
    color: var(--fv-text-muted);
}

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

/* ===== Category Tags ===== */
.fv-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-spacing-sm);
    margin-bottom: var(--fv-spacing-xl);
}

.fv-category-tag {
    padding: var(--fv-spacing-sm) var(--fv-spacing-md);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-full);
    font-size: var(--fv-font-size-sm);
    color: var(--fv-text-secondary);
    transition: all 0.2s ease;
}

.fv-category-tag:hover,
.fv-category-tag.active {
    background: var(--fv-category-hover);
    /* Darker red for better contrast with white text (WCAG AA) */
    border-color: var(--fv-category-hover);
    color: var(--fv-text-primary);
    font-weight: 500;
}

/* ===== JAV Directory Tabs & Alphabet Filter ===== */
.fv-tax-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.fv-tax-tabs .fv-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.fv-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    padding: 12px 16px;
    background: var(--fv-bg-secondary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    align-items: center;
}

.fv-alphabet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--fv-radius-sm);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-xs, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.fv-alphabet-link:hover {
    background: var(--fv-bg-hover);
    color: var(--fv-text-primary);
    border-color: var(--fv-accent);
}

.fv-alphabet-link.is-active {
    background: var(--fv-accent);
    border-color: var(--fv-accent);
    color: var(--fv-on-accent, #ffffff);
    box-shadow: 0 2px 8px var(--fv-accent-alpha-30);
}

@media (max-width: 768px) {
    .fv-alphabet-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 8px;
        margin-bottom: 20px;
    }

    .fv-alphabet-filter::-webkit-scrollbar {
        display: none;
    }

    .fv-alphabet-link {
        flex-shrink: 0;
    }
}

/* ===== JAV Directory (archive-jav-index) ===== */
.fv-directory-title {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
}

.fv-directory-badge {
    font-size: var(--fv-font-size-xs);
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--fv-radius-full);
    background: var(--fv-accent-alpha-10);
    color: var(--fv-accent);
    border: 1px solid var(--fv-accent-alpha-25);
}

/* Actress Cards Grid */
.fv-actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--fv-spacing-md);
}

.fv-actress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--fv-bg-card);
    border-radius: var(--fv-radius-lg);
    border: 1px solid var(--fv-border);
    transition: all 0.25s ease;
    color: var(--fv-text-primary);
}

.fv-actress-card:hover {
    transform: translateY(-4px);
    border-color: var(--fv-accent);
    box-shadow: 0 8px 24px var(--fv-shadow);
    background: var(--fv-bg-hover);
}

.fv-actress-card .fv-avatar {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fv-accent-dark), var(--fv-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fv-border);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fv-on-accent, #ffffff);
    text-transform: uppercase;
    user-select: none;
    flex-shrink: 0;
}

.fv-actress-card:hover .fv-avatar {
    border-color: var(--fv-accent);
}

.fv-actress-card .fv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fv-actress-card .fv-name {
    font-size: var(--fv-font-size-sm);
    font-weight: 600;
    color: var(--fv-text-primary);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.fv-actress-card:hover .fv-name {
    color: var(--fv-accent);
}

.fv-actress-card .fv-meta {
    font-size: var(--fv-font-size-xs);
    color: var(--fv-text-muted);
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Directory Term Cards (Genres, Makers, Labels, Series, Directors) */
.fv-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.fv-directory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--fv-bg-card);
    border-radius: var(--fv-radius-md);
    border: 1px solid var(--fv-border);
    transition: all 0.2s ease;
    color: var(--fv-text-primary);
}

.fv-directory-card:hover {
    transform: translateY(-2px);
    border-color: var(--fv-accent);
    background: var(--fv-bg-hover);
}

.fv-directory-card svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: var(--fv-radius-sm);
    background: var(--fv-accent-alpha-10);
    color: var(--fv-accent);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
}

.fv-directory-card:hover svg {
    background: var(--fv-accent);
    color: var(--fv-on-accent, #ffffff);
}

.fv-directory-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fv-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.fv-directory-card:hover span {
    color: var(--fv-accent);
}

/* ===== JAV Taxonomy Header & Actress Bio ===== */
.fv-tax-header {
    background: var(--fv-bg-secondary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-lg);
    padding: var(--fv-spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-xl);
    margin-bottom: var(--fv-spacing-xl);
    flex-wrap: wrap;
}

.fv-tax-avatar {
    flex-shrink: 0;
}

.fv-tax-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fv-accent);
    box-shadow: 0 4px 18px var(--fv-shadow);
}

.fv-tax-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fv-accent-dark), var(--fv-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--fv-accent);
    box-shadow: 0 4px 18px var(--fv-shadow);
    font-size: 2rem;
    font-weight: 700;
    color: var(--fv-on-accent, #ffffff);
    user-select: none;
}

.fv-tax-title-wrap {
    flex: 1;
    min-width: 240px;
}

.fv-tax-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--fv-radius-sm);
    background: var(--fv-accent-alpha-10);
    color: var(--fv-accent);
    margin-bottom: 6px;
}

.fv-tax-name {
    font-size: var(--fv-font-size-2xl);
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--fv-text-primary);
}

.fv-tax-count {
    color: var(--fv-text-secondary);
    margin: 0;
    font-size: var(--fv-font-size-sm);
}

.fv-actress-bio-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fv-bio-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--fv-radius-full);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-xs, 0.75rem);
    font-weight: 500;
    transition: all 0.2s ease;
}

.fv-bio-chip:hover {
    border-color: var(--fv-accent);
    background: var(--fv-accent-alpha-10);
    color: var(--fv-text-primary);
}

.fv-bio-chip svg {
    flex-shrink: 0;
    color: var(--fv-accent);
}

@media (max-width: 768px) {
    .fv-tax-header {
        padding: var(--fv-spacing-md);
        gap: var(--fv-spacing-md);
    }

    .fv-tax-avatar-img,
    .fv-tax-avatar-placeholder {
        width: 76px;
        height: 76px;
    }
}

/* ===== Pagination ===== */
.fv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--fv-spacing-sm);
    margin-top: var(--fv-spacing-2xl);
}

.fv-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--fv-spacing-md);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text-secondary);
    transition: all 0.2s ease;
}

.fv-page-link:hover,
.fv-page-link.active {
    background: var(--fv-accent);
    border-color: var(--fv-accent);
    color: var(--fv-text-primary);
}

/* ===== Single Video ===== */
.fv-single-video {
    display: block;
    max-width: 100%;
}

.fv-player-wrapper {
    background: var(--fv-bg-secondary);
    border-radius: var(--fv-radius-lg);
    overflow: hidden;
}

/* Server Selector */
.fv-server-selector {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
    padding: var(--fv-spacing-md);
    background: var(--fv-bg-tertiary);
    border-bottom: 1px solid var(--fv-border);
}

.fv-server-selector span {
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
    margin-right: var(--fv-spacing-sm);
}

.fv-server-btn {
    padding: 6px 16px;
    background: var(--fv-bg-card);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.fv-server-btn.active {
    background: var(--fv-accent-dark);
    border-color: var(--fv-accent-dark);
    color: var(--fv-text-primary);
}

.fv-player {
    position: relative;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    background: var(--fv-bg-primary);
}

.fv-player iframe,
.fv-player video {
    width: 100%;
    height: 100%;
}

.fv-player .player-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.fv-video-details {
    padding: var(--fv-spacing-lg);
}

.fv-video-details h1 {
    font-size: var(--fv-font-size-xl);
    font-weight: 600;
    margin-bottom: var(--fv-spacing-md);
}

.fv-video-stats {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-lg);
    padding: var(--fv-spacing-md) 0;
    border-bottom: 1px solid var(--fv-border);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
    flex-wrap: wrap;
}

.fv-video-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Jav Video Metadata - Grid 2 columns Desktop, 1 column Mobile */
.oc-video-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    padding: var(--fv-spacing-lg) 0;
    border-bottom: 1px solid var(--fv-border);
    font-size: var(--fv-font-size-sm, 0.875rem);
    line-height: 1.6;
}

.oc-video-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.oc-video-meta-row-title,
.oc-video-meta-row-actresses,
.oc-video-meta-row-genres {
    grid-column: 1 / -1;
}

.oc-video-meta-label {
    color: var(--fv-text-secondary, #94a3b8);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 90px;
    padding-top: 3px;
}

.oc-video-meta-value {
    color: var(--fv-text-primary, #ffffff);
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Code Badge */
.oc-video-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--fv-accent, #6366f1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--fv-radius-sm, 4px);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: var(--fv-font-size-sm, 0.875rem);
    text-transform: uppercase;
}

/* Metadata Links (Actress, Genre, Maker, etc.) */
.oc-video-meta-value a,
.oc-video-meta-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-sm);
    color: var(--fv-text-primary);
    font-size: var(--fv-font-size-xs, 0.75rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.oc-video-meta-value a:hover,
.oc-video-meta-link:hover {
    color: var(--fv-accent);
    border-color: var(--fv-accent);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 768px) {
    .oc-video-meta {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: var(--fv-spacing-md) 0;
    }

    .oc-video-meta-label {
        min-width: 80px;
    }
}

.fv-video-description {
    padding: var(--fv-spacing-lg) 0;
    color: var(--fv-text-secondary);
    line-height: 1.8;
}

.fv-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-spacing-sm);
}

.fv-tag {
    padding: 4px 12px;
    background: var(--fv-bg-tertiary);
    border-radius: var(--fv-radius-full);
    font-size: var(--fv-font-size-sm);
    color: var(--fv-text-secondary);
}

/* Sidebar */
.fv-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--fv-spacing-md);
}

.fv-sidebar-title {
    font-size: var(--fv-font-size-lg);
    font-weight: 600;
    margin-bottom: var(--fv-spacing-md);
}

.fv-related-video {
    display: flex;
    gap: var(--fv-spacing-md);
    padding: var(--fv-spacing-sm);
    background: var(--fv-bg-card);
    border-radius: var(--fv-radius-md);
    transition: background 0.2s ease;
}

.fv-related-video:hover {
    background: var(--fv-bg-hover);
}

.fv-related-thumb {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    border-radius: var(--fv-radius-sm);
    overflow: hidden;
}

.fv-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fv-related-title {
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fv-related-meta {
    font-size: var(--fv-font-size-xs);
    color: var(--fv-text-muted);
    margin-top: var(--fv-spacing-xs);
}

/* ===== Footer ===== */
.fv-footer {
    background: var(--fv-bg-secondary);
    border-top: 1px solid var(--fv-border);
    padding: var(--fv-spacing-2xl) 0;
    margin-top: var(--fv-spacing-2xl);
    color: var(--fv-text-secondary);
}

.fv-footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--fv-spacing-xl);
}

.fv-footer-section h4 {
    font-size: var(--fv-font-size-base);
    font-weight: 600;
    margin-bottom: var(--fv-spacing-md);
    color: var(--fv-text-primary);
}

.fv-footer-section h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fv-footer-section h4 a:hover {
    color: var(--fv-accent);
}

.fv-footer-links {
    list-style: none;
}

.fv-footer-links li {
    margin-bottom: var(--fv-spacing-sm);
}

.fv-footer-links a {
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
}

.fv-footer-bottom {
    text-align: center;
    padding: var(--fv-spacing-md);
    border-top: 1px solid var(--fv-border);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
}

.fv-footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fv-spacing-md);
    flex-wrap: wrap;
}

.fv-footer-bottom-row .dmca-badge img {
    height: 20px;
    width: auto;
}

/* ===== Footer SEO Links - separated from fv-footer-inner grid ===== */
.fv-footer-seo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 16px;
    max-width: var(--fv-container-max);
    margin: 0 auto var(--fv-spacing-lg);
    padding: var(--fv-spacing-lg) var(--fv-spacing-md);
    border-bottom: 1px solid var(--fv-border);
}

.fv-footer-seo-link {
    color: var(--fv-text-muted);
    font-size: var(--fv-font-size-xs);
    transition: color 0.2s ease;
    line-height: 1.8;
}

.fv-footer-seo-link:hover {
    color: var(--fv-accent);
}

/* Exchange presentation: match section after leaving footer-inner grid */
.fv-footer > .fv-footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--fv-container-max);
    margin: 0 auto var(--fv-spacing-lg);
    padding: var(--fv-spacing-lg) var(--fv-spacing-md);
    border-bottom: 1px solid var(--fv-border);
    text-align: center;
}

.fv-footer > .fv-footer-section h4 {
    width: 100%;
    text-align: center;
    margin-bottom: var(--fv-spacing-sm);
}

.fv-footer > .fv-footer-section h4 a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fv-footer > .fv-footer-section .fv-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fv-footer > .fv-footer-section .fv-footer-links li {
    margin-bottom: 0;
}

.fv-footer > .fv-footer-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 404 Page ===== */
.fv-404 {
    text-align: center;
    padding: var(--fv-spacing-2xl) 0;
}

.fv-404 h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--fv-accent);
}

.fv-404 p {
    font-size: var(--fv-font-size-lg);
    color: var(--fv-text-secondary);
    margin: var(--fv-spacing-lg) 0;
}

.fv-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
    padding: var(--fv-spacing-md) var(--fv-spacing-xl);
    background: var(--fv-accent);
    color: var(--fv-text-primary);
    border-radius: var(--fv-radius-md);
    font-weight: 500;
    transition: background 0.2s ease;
}

.fv-btn:hover {
    background: var(--fv-accent-hover);
    color: var(--fv-text-primary);
}

.fv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
    padding: var(--fv-spacing-md) var(--fv-spacing-xl);
    background: transparent;
    color: var(--fv-text-primary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fv-btn-outline:hover {
    background: var(--fv-bg-hover);
    border-color: var(--fv-accent);
    color: var(--fv-text-primary);
}

/* ===== Loading ===== */
.fv-loading {
    display: flex;
    justify-content: center;
    padding: var(--fv-spacing-2xl);
}

.fv-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fv-border);
    border-top-color: var(--fv-accent);
    border-radius: 50%;
    animation: fv-spin 0.8s linear infinite;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .fv-single-video {
        grid-template-columns: 1fr;
    }

    .fv-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fv-related-video {
        flex: 1;
        min-width: 280px;
    }
}

/* ===== Categories Header ===== */
.fv-categories-header {
    background: var(--fv-bg-primary);
    border-bottom: 1px solid var(--fv-border);
    padding: var(--fv-spacing-sm) 0;
}

.fv-categories-header .fv-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fv-categories-header .fv-container::-webkit-scrollbar {
    display: none;
}

.fv-categories-header .fv-categories {
    display: flex;
    gap: var(--fv-spacing-sm);
    flex-wrap: nowrap;
    justify-content: flex-start;
    white-space: nowrap;
    padding-bottom: 4px;
}

/* ===== Mobile Search Toggle (hidden by default on desktop) ===== */
.fv-search-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: var(--fv-spacing-sm);
    color: var(--fv-text-primary);
    cursor: pointer;
    border-radius: var(--fv-radius-sm);
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.fv-search-toggle:hover {
    background: var(--fv-bg-hover);
}

/* ===== Mobile Search Form (hidden on desktop, toggle on mobile) ===== */
.fv-search-mobile {
    display: none !important;
    padding: var(--fv-spacing-sm) var(--fv-spacing-md);
    background: var(--fv-bg-secondary);
    border-bottom: 1px solid var(--fv-border);
}

/* Show when active (1024px and down) */
@media (max-width: 1024px) {
    .fv-search-mobile.active {
        display: block !important;
    }
}

.fv-search-mobile .fv-search-form {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.fv-search-mobile .fv-search-input {
    flex: 1;
    padding: var(--fv-spacing-sm) var(--fv-spacing-md);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-full) 0 0 var(--fv-radius-full);
    color: var(--fv-text-primary);
    font-size: 16px;
}

.fv-search-mobile .fv-search-btn {
    padding: var(--fv-spacing-sm) var(--fv-spacing-md);
    background: var(--fv-accent);
    border: none;
    border-radius: 0 var(--fv-radius-full) var(--fv-radius-full) 0;
    color: var(--fv-text-primary);
    cursor: pointer;
}

/* Hide default browser clear button on search input */
.fv-search-input::-webkit-search-cancel-button,
.fv-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.fv-search-input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}


/* ===== Responsive - Tablet and Mobile ===== */
/* At 1024px and down: Switch search from full desktop bar to mobile search toggle */
@media (max-width: 1024px) {
    .fv-search-desktop {
        display: none !important;
    }

    .fv-search-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 991px) {
    .fv-header-nav {
        display: none !important;
    }

    .fv-menu-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .fv-header {
        height: auto;
    }

    .fv-header-inner {
        height: var(--fv-header-height);
        padding: 0;
        gap: var(--fv-spacing-sm);
    }

    .fv-header-actions {
        gap: 6px;
    }

    .fv-search-toggle,
    .fv-menu-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    /* Video grid: Always 2 columns on mobile */
    .fv-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--fv-spacing-sm);
    }

    .fv-video-title {
        font-size: var(--fv-font-size-xs);
    }

    .fv-video-info {
        padding: var(--fv-spacing-sm);
    }

    .fv-video-meta {
        font-size: 10px;
    }
}

@media (max-width: 480px) {

    /* Keep 2 columns on smallest screens */
    .fv-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--fv-spacing-xs);
    }

    .fv-video-title {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .fv-video-info {
        padding: 6px;
    }

    .fv-duration {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* ===== Related Videos Section (below player) ===== */
.fv-related-section {
    margin-top: var(--fv-spacing-xl);
}

.fv-related-section .fv-section-title {
    font-size: var(--fv-font-size-lg);
    font-weight: 600;
    margin-bottom: var(--fv-spacing-lg);
    color: var(--fv-text-primary);
}

/* Single video layout: Full width (no sidebar) */
.fv-single-video {
    display: block;
}

.fv-video-main {
    max-width: 100%;
}

/* ===== Back to Top Button ===== */
.fv-back-to-top {
    position: fixed;
    bottom: var(--fv-spacing-xl);
    right: var(--fv-spacing-xl);
    width: 48px;
    height: 48px;
    background: var(--fv-accent);
    border: none;
    border-radius: var(--fv-radius-full);
    color: var(--fv-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--fv-accent-alpha-40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.fv-back-to-top:hover {
    background: var(--fv-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--fv-accent-alpha-50);
}

.fv-back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .fv-back-to-top {
        bottom: var(--fv-spacing-lg);
        right: var(--fv-spacing-lg);
        width: 44px;
        height: 44px;
    }
}
/* Age Gate Custom Style */
.age-gate {
    background: var(--fv-bg-agegate) !important;
}
.age-gate__content {
    background: var(--fv-bg-secondary) !important;
    border: 1px solid var(--fv-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px var(--fv-shadow-agegate) !important;
}
.age-gate__badge {
    text-align: center !important;
    line-height: 1 !important;
display: inline-flex !important; align-items: center !important; justify-content: center !important; 
    border-color: var(--fv-accent) !important;
    color: var(--fv-accent) !important;
    background: var(--fv-accent-alpha-10) !important;
    text-shadow: 0 0 10px var(--fv-accent-alpha-30) !important;
    box-shadow: 0 0 15px var(--fv-accent-alpha-10) !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
}
.age-gate__title {
    color: var(--fv-text-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}
.age-gate__desc {
    color: var(--fv-text-secondary) !important;
    font-size: 0.9rem !important;
}
.age-gate__btn {
    background: var(--fv-accent) !important;
    color: var(--fv-text-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px var(--fv-accent-alpha-25) !important;
    transition: all 0.2s ease !important;
}
.age-gate__btn:hover {
    background: var(--fv-accent-hover) !important;
    box-shadow: 0 6px 16px var(--fv-accent-alpha-40) !important;
}
.age-gate__btn:active {
    background: var(--fv-accent-dark) !important;
}

/* ===== Legal & Static Pages ===== */
.oc-legal-page,
.oc-static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--fv-spacing-lg) 0;
}

.oc-legal-title {
    font-size: var(--fv-font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--fv-spacing-xl);
    color: var(--fv-text-primary);
    border-bottom: 1px solid var(--fv-border);
    padding-bottom: var(--fv-spacing-sm);
}

.oc-legal-content {
    color: var(--fv-text-secondary);
    line-height: 1.8;
    font-size: var(--fv-font-size-base);
}

.oc-legal-content h2,
.oc-legal-content h3 {
    color: var(--fv-text-primary);
    font-size: var(--fv-font-size-lg);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.oc-policy-related {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fv-spacing-sm) var(--fv-spacing-md);
    margin-top: var(--fv-spacing-xl);
}

.oc-policy-related a {
    color: var(--fv-accent-hover);
}

.oc-legal-content p {
    margin-bottom: 1.25rem;
}

.oc-legal-content ul,
.oc-legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.oc-legal-content li {
    margin-bottom: 0.5rem;
}

/* Legal Form Styling */
.oc-legal-form {
    display: flex;
    flex-direction: column;
    gap: var(--fv-spacing-md);
    background: var(--fv-bg-secondary);
    padding: var(--fv-spacing-xl);
    border-radius: var(--fv-radius-lg);
    border: 1px solid var(--fv-border);
    max-width: 720px;
    margin: 0 auto;
    margin-block-start: var(--fv-spacing-lg);
}

.oc-legal-form label {
    display: block;
    color: var(--fv-text-primary);
    font-size: var(--fv-font-size-sm);
    font-weight: 600;
}

.oc-legal-form input[type="text"],
.oc-legal-form input[type="email"],
.oc-legal-form input[type="url"],
.oc-legal-form select,
.oc-legal-form textarea {
    width: 100%;
    padding: var(--fv-spacing-md);
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.oc-legal-form input:focus,
.oc-legal-form select:focus,
.oc-legal-form textarea:focus {
    border-color: var(--fv-accent) !important;
}

.oc-legal-form textarea {
    min-height: 150px;
    resize: vertical;
}

.oc-legal-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--fv-spacing-md) center;
    background-size: 16px;
    padding-right: var(--fv-spacing-xl);
}

.oc-form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--fv-spacing-sm);
    margin-top: var(--fv-spacing-xs);
}

.oc-form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--fv-accent);
    cursor: pointer;
}

.oc-form-checkbox label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.oc-legal-form button[type="submit"] {
    align-self: flex-start;
    margin-top: var(--fv-spacing-sm);
    cursor: pointer;
}

.oc-policy-submit {
    min-height: 44px;
    padding: var(--fv-spacing-sm) var(--fv-spacing-lg);
    border: 0;
    border-radius: var(--fv-radius-md);
    background: var(--fv-accent);
    color: var(--fv-text-primary);
    font-weight: 700;
}

.oc-policy-status {
    margin: var(--fv-spacing-sm) 0 0;
    padding: var(--fv-spacing-md);
    border-left: 3px solid var(--fv-accent);
    background: var(--fv-bg-tertiary);
    color: var(--fv-text-primary);
}

.oc-policy-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fv-spacing-sm);
    max-width: 760px;
    margin: 0 auto;
}

.oc-policy-metrics div {
    padding: var(--fv-spacing-md);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-md);
    background: var(--fv-bg-secondary);
}

.oc-policy-metrics span,
.oc-policy-metrics strong {
    display: block;
}

.oc-policy-metrics strong {
    color: var(--fv-accent-hover);
    font-size: var(--fv-font-size-2xl);
}

@media (max-width: 640px) {
    .oc-policy-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Transparency Table Styling */
.oc-transparency-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--fv-spacing-lg) 0;
    font-size: var(--fv-font-size-sm);
    text-align: left;
}

.oc-transparency-table caption {
    font-size: var(--fv-font-size-base);
    font-weight: 600;
    margin-bottom: var(--fv-spacing-sm);
    text-align: left;
    color: var(--fv-text-primary);
}

.oc-transparency-table th,
.oc-transparency-table td {
    padding: var(--fv-spacing-md);
    border-bottom: 1px solid var(--fv-border);
}

.oc-transparency-table thead th {
    background-color: var(--fv-bg-secondary);
    color: var(--fv-text-primary);
    font-weight: 600;
}

.oc-transparency-table tbody th {
    color: var(--fv-text-primary);
    font-weight: 500;
}

.oc-transparency-table tbody td {
    color: var(--fv-text-secondary);
}

.oc-transparency-table tbody tr:hover {
    background-color: var(--fv-bg-hover);
}

.oc-transparency-table tbody tr:last-child th,
.oc-transparency-table tbody tr:last-child td {
    border-bottom: none;
}


/* ===== Time Filters (Moved from archive-category.php) ===== */
.fv-time-filters {
    display: flex;
    gap: var(--fv-spacing-sm);
    flex-wrap: wrap;
}

.fv-time-btn {
    padding: 8px 20px;
    background: var(--fv-bg-tertiary);
    border: 1px solid var(--fv-border);
    border-radius: var(--fv-radius-full);
    color: var(--fv-text-secondary);
    font-size: var(--fv-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.fv-time-btn.active {
    background: var(--fv-accent);
    border-color: var(--fv-accent);
    color: var(--fv-text-primary);
}

/* ===== Like Button Styles (Moved from single-video.php) ===== */
.fv-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--fv-bg-tertiary), var(--fv-bg-secondary));
    border: 1px solid var(--fv-text-alpha-10);
    border-radius: 20px;
    color: var(--fv-text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fv-like-btn:hover {
    background: linear-gradient(135deg, var(--fv-accent), var(--fv-accent-gradient-end));
    border-color: var(--fv-accent);
    color: var(--fv-text-primary);
    transform: scale(1.05);
}

.fv-like-btn:active {
    transform: scale(0.98);
}

.fv-like-btn.liked {
    background: linear-gradient(135deg, var(--fv-accent), var(--fv-accent-gradient-end));
    border-color: var(--fv-accent);
    color: var(--fv-text-primary);
}

.fv-like-btn.liked .fv-like-icon {
    animation: heartBeat 0.6s ease-in-out;
}

.fv-like-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fv-like-icon {
    transition: transform 0.3s ease;
}

.fv-like-btn:hover .fv-like-icon {
    transform: scale(1.2);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== Language Switcher Component ===== */
.oc-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.oc-language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-height: 38px;
    gap: 6px;
    padding: 0 12px;
    background: var(--fv-bg-secondary, #1a1a24);
    border: 1px solid var(--fv-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--fv-radius-full, 9999px);
    color: var(--fv-text-primary, #ffffff);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    list-style: none;
}

.oc-language-btn::-webkit-details-marker {
    display: none;
}

.oc-language-btn:hover,
.oc-language-switcher[open] .oc-language-btn {
    background: var(--fv-bg-tertiary, #222230);
    border-color: var(--fv-accent, #ec4899);
    color: #fff;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

.oc-language-icon {
    color: var(--fv-accent, #ec4899);
    flex-shrink: 0;
}

.oc-language-current {
    letter-spacing: 0.5px;
}

.oc-language-chevron {
    color: var(--fv-text-secondary, #94a3b8);
    transition: transform 0.2s ease;
}

.oc-language-switcher[open] .oc-language-chevron {
    transform: rotate(180deg);
}

.oc-language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    max-height: 380px;
    background: var(--fv-bg-secondary, #14141e);
    border: 1px solid var(--fv-border, rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.oc-language-switcher[open] .oc-language-dropdown {
    display: block;
    animation: ocLanguageFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.oc-language-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
}

.oc-language-list::-webkit-scrollbar {
    width: 5px;
}

.oc-language-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.oc-language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--fv-text-secondary, #cbd5e1);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
}

.oc-language-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.oc-language-item.is-active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.25));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #fff;
    font-weight: 600;
}

.oc-language-native {
    flex-grow: 1;
}

.oc-language-badge {
    font-size: 0.6875rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--fv-text-secondary, #94a3b8);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.oc-language-item.is-active .oc-language-badge {
    background: var(--fv-accent, #ec4899);
    color: #fff;
}

@media (max-width: 768px) {
    .oc-language-btn {
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        font-size: 0.75rem;
    }
    .oc-language-dropdown {
        right: -40px;
        width: 220px;
    }
}
