/* ═══════════════════════════════════════════════════════════════
   STREAMX Theme — Pure CSS (no Tailwind)
   Converted from HTML prototype, SEO & performance optimized.
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --darkbg:  #050505;
    --cardbg:  #111111;
    --surface: #0a0a0a;
    --primary: #E11D48;
    --primary-hover: #be123c;
    --border:  rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.08);
    --text:    #e5e7eb;
    --text-sub: #9ca3af;
    --text-muted: #8b95a5;
    --font: 'Inter','Noto Sans JP',system-ui,-apple-system,sans-serif;
    --wrap: 1600px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--darkbg);
    color: #d1d5db;
    line-height: 1.6;
    -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: inherit; color: inherit; }
ul,ol { list-style: none; }
::selection { background: var(--primary); color: #fff; }

/* ── Card Fade-in ── */
.video-card, .term-card { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.video-card.sx-visible, .term-card.sx-visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: var(--darkbg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Layout ── */
.site-wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    gap: 20px;
}
.content-area { flex: 1; min-width: 0; }

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

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-logo {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0; text-decoration: none;
}
.site-logo-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(225,29,72,0.3);
}
.site-logo-text {
    font-size: 1.5rem; font-weight: 900;
    letter-spacing: -0.5px; color: #fff;
}
.site-logo-text span { color: var(--primary); }

/* Header search */
.header-search {
    flex: 1; max-width: 720px;
    position: relative;
}
.header-search input {
    width: 100%;
    background: #151515;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    padding: 10px 48px 10px 20px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(225,29,72,0.15);
}
.header-search input::placeholder { color: #8b95a5; }
.header-search button {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    padding: 0 12px;
    background: #222;
    border-radius: var(--radius-full);
    color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.header-search button:hover { background: var(--primary); color: #fff; }

/* Header nav (PC) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.hnav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem; font-weight: 500;
    color: #9ca3af; white-space: nowrap;
    transition: all 0.2s;
}
.hnav-link:hover { background: rgba(255,255,255,0.06); color: #e5e7eb; }
.hnav-link.active { background: rgba(225,29,72,0.12); color: #fb7185; }
.hnav-link svg { flex-shrink: 0; opacity: 0.7; }
.hnav-random { color: #fbbf24; }
.hnav-random:hover { background: rgba(251,191,36,0.1); color: #fbbf24; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile icon buttons */
.mob-icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: none; align-items: center; justify-content: center;
    border: 1px solid var(--border-light);
    color: #9ca3af;
    transition: all 0.15s;
}
.mob-icon-btn:hover,
.mob-icon-btn.active {
    background: #1a1a1a; color: #fff;
    border-color: rgba(225,29,72,0.4);
}

/* ═══════════════════════════════
   CATEGORY NAV
   ═══════════════════════════════ */
.category-nav {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: var(--surface);
}
.category-nav-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.nav-pill {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    background: #151515;
    border: 1px solid #1f2937;
    color: #d1d5db;
    transition: all 0.15s;
}
.nav-pill:hover { border-color: #4b5563; }
.nav-pill.active {
    background: #fff; color: #000;
    font-weight: 700; border-color: #fff;
}
.nav-pill.highlight {
    background: #151515;
    border-color: rgba(225,29,72,0.5);
    color: #fff; font-weight: 700;
    box-shadow: 0 0 10px rgba(225,29,72,0.2);
}

/* ═══════════════════════════════
   HERO SECTION
   ═══════════════════════════════ */
.hero-section { margin-bottom: 20px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 10px;
}

.hero-main {
    position: relative; display: block;
    border-radius: var(--radius-lg);
    overflow: hidden; aspect-ratio: 2/1;
}
.hero-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.hero-main:hover img { transform: scale(1.03); }

.hero-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.7) 30%,
        rgba(5,5,5,0.15) 60%, transparent 100%);
    pointer-events: none;
}

.hero-play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(0.85);
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(225,29,72,0.9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(225,29,72,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.hero-main:hover .hero-play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.hero-meta {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 24px 24px;
}
.hero-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.hero-title {
    font-size: 1.35rem; font-weight: 700; color: #fff;
    line-height: 1.38; margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.hero-stat-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-stat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    padding: 4px 10px; border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-stat svg { flex-shrink: 0; }

/* Hero mini cards */
.hero-stack { display: flex; flex-direction: column; gap: 8px; }
.hero-mini {
    position: relative; display: block;
    border-radius: var(--radius-md);
    overflow: hidden; flex: 1; min-height: 0;
}
.hero-mini img { width: 100%; height: 100%; object-fit: cover; }
.hero-mini-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, transparent 60%);
    pointer-events: none;
}
.hero-mini-meta {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 10px 12px 11px;
}
.hero-mini-chips { display: flex; gap: 4px; margin-bottom: 5px; }
.hero-mini-title {
    font-size: 12.5px; font-weight: 600; color: #fff; line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.hero-mini-dur { font-size: 10.5px; color: rgba(255,255,255,0.55); margin-top: 3px; }

/* ═══════════════════════════════
   CHIPS / BADGES
   ═══════════════════════════════ */
.chip {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.chip-4k   { background: rgba(99,102,241,0.25); color: #818cf8; }
.chip-hd   { background: rgba(34,197,94,0.2);  color: #4ade80; }
.chip-cat  { background: rgba(56,189,248,0.15); color: #38bdf8; border: 1px solid rgba(56,189,248,0.25); }
.chip-uc   { background: rgba(225,29,72,0.2);  color: #fb7185; }
.chip-c    { background: rgba(168,85,247,0.2); color: #c084fc; }
.chip-of   { background: rgba(0,174,240,0.2);  color: #38bdf8; }
.chip-cn   { background: rgba(251,191,36,0.2); color: #fbbf24; }
.chip-west { background: rgba(52,211,153,0.2); color: #34d399; }

/* ═══════════════════════════════
   SECTION HEADING
   ═══════════════════════════════ */
.sec-heading {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.sec-heading h2 {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin: 0;
}
.sec-heading a {
    font-size: 13px; color: var(--primary); font-weight: 600;
    transition: color 0.15s;
}
.sec-heading a:hover { color: #f43f5e; }
.video-section { margin-bottom: 28px; content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ═══════════════════════════════
   VIDEO GRID
   ═══════════════════════════════ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ═══════════════════════════════
   VIDEO CARD
   ═══════════════════════════════ */
.video-card {
    transition: transform 0.3s ease;
}
.video-card:hover { transform: translateY(-4px); }

.video-card a { display: block; text-decoration: none; }

.vcard-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--cardbg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.video-card:hover .vcard-thumb {
    box-shadow: 0 0 20px rgba(225,29,72,0.15);
    border-color: rgba(225,29,72,0.4);
}

.vcard-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.video-card:hover .vcard-thumb img { transform: scale(1.05); }

.vcard-quality {
    position: absolute; top: 8px; left: 8px; z-index: 2;
}
.vcard-duration {
    position: absolute; bottom: 8px; right: 8px; z-index: 2;
    background: rgba(0,0,0,0.8);
    color: #fff; font-size: 11px;
    font-family: 'SF Mono','Fira Code',monospace;
    font-weight: 500;
    padding: 2px 6px; border-radius: 4px;
}

.vcard-play {
    position: absolute; inset: 0; z-index: 2;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.video-card:hover .vcard-play { opacity: 1; transform: scale(1); }
.vcard-play-circle {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding-left: 2px;
    box-shadow: 0 0 20px rgba(225,29,72,0.6);
    border: 2px solid rgba(255,255,255,0.2);
}

.vcard-body { padding: 8px 2px 0; }
.vcard-title {
    font-size: 13px; font-weight: 500;
    color: #e5e7eb; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.15s;
}
.video-card:hover .vcard-title { color: var(--primary); }

.vcard-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px; color: var(--text-muted);
}
.vcard-stars { color: #d4a853; font-size: 10px; letter-spacing: 1px; }

/* ═══════════════════════════════
   SIDEBAR
   ═══════════════════════════════ */
.site-sidebar {
    width: 280px; flex-shrink: 0;
}

.sidebar-card {
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card h3 {
    font-size: 14px; font-weight: 700; color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.rank-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: padding-left 0.15s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { padding-left: 4px; }
.rank-num {
    width: 24px; height: 24px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.rank-num.top { background: rgba(225,29,72,0.2); color: var(--primary); }
.rank-num.reg { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.rank-title {
    font-size: 13px; color: #d1d5db;
    line-height: 1.35; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.rank-views { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
    font-size: 12px; color: #9ca3af;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    transition: all 0.15s;
}
.tag-link:hover { color: var(--primary); border-color: rgba(225,29,72,0.3); }

.stat-row {
    display: flex; justify-content: space-between;
    font-size: 0.875rem; padding: 4px 0;
}
.stat-label { color: #9ca3af; }
.stat-value { color: #fff; font-weight: 600; }
.stat-value.accent { color: var(--primary); }

/* ═══════════════════════════════
   PAGINATION
   ═══════════════════════════════ */
.pagination {
    display: flex; align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0 40px;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    background: var(--cardbg);
    border: 1px solid #1f2937;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: all 0.15s;
}
.pagination a:hover {
    color: #fff; border-color: #4b5563;
}
.pagination .current {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(225,29,72,0.3);
}
.pagination .dots { border: none; background: none; color: var(--text-muted); }

/* ═══════════════════════════════
   MOBILE SEARCH PANEL
   ═══════════════════════════════ */
#mob-search-panel {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    align-items: center; gap: 10px;
}
#mob-search-panel.open { display: flex; }
#mob-search-panel input {
    flex: 1;
    background: #151515;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    padding: 10px 16px;
    outline: none;
}
#mob-search-panel input:focus { border-color: var(--primary); }
.mob-sp-cancel {
    font-size: 0.875rem; color: #9ca3af;
    white-space: nowrap;
    transition: color 0.15s;
}
.mob-sp-cancel:hover { color: #fff; }

/* ═══════════════════════════════
   MOBILE NAV DRAWER
   ═══════════════════════════════ */
#mob-nav-overlay {
    position: fixed; inset: 0; z-index: 298;
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
#mob-nav-overlay.open { opacity: 1; pointer-events: all; }

#mob-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 299;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-102%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
    max-height: 92vh; overflow-y: auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
}
#mob-nav.open { transform: translateY(0); }

.mnav-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
}
.mnav-logo { font-size: 1.2rem; font-weight: 900; color: #fff; }
.mnav-logo span { color: var(--primary); }
.mnav-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cardbg); border: 1px solid var(--border);
    border-radius: 8px; color: #9ca3af;
    transition: all 0.15s;
}
.mnav-close:hover { color: #fff; border-color: #4b5563; }

.mnav-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.mnav-search input {
    width: 100%;
    background: #151515;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    outline: none;
}
.mnav-search input:focus { border-color: var(--primary); }

.mnav-section-title {
    padding: 14px 16px 8px;
    font-size: 11px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}

.mnav-nav { padding: 0 12px 8px; }
.mnav-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    transition: background 0.15s;
    border-left: 3px solid var(--cat-color, var(--primary));
    transition: all 0.15s;
}
.mnav-row:hover { background: rgba(255,255,255,0.04); }
.mnav-row.active { background: rgba(225,29,72,0.08); }
.mnav-row.active .mnav-row-label { color: #fff; font-weight: 600; }
.mnav-row-icon { font-size: 1.15rem; width: 24px; text-align: center; flex-shrink: 0; }
.mnav-row-label { font-size: 14px; color: var(--text-sub); flex: 1; }
.mnav-row-count { font-size: 12px; color: var(--text-muted); }
.mnav-divider { height: 1px; background: var(--border); margin: 6px 14px; }


.mnav-tags {
    display: flex; flex-wrap: wrap;
    gap: 6px; padding: 8px 12px 16px;
}
.mnav-tag {
    font-size: 12px; color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.04);
    transition: all 0.15s;
}
.mnav-tag:hover { color: #fff; background: rgba(225,29,72,0.15); }

.mnav-footer {
    padding: 12px 16px;
    text-align: center;
}
.mnav-age-badge {
    display: inline-block;
    background: rgba(225,29,72,0.1);
    color: var(--primary);
    font-size: 11px; font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(225,29,72,0.2);
}

/* ═══════════════════════════════
   AGE GATE
   ═══════════════════════════════ */
.age-gate {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
}
.age-gate.hidden { display: none; }
.age-card {
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    max-width: 380px; width: 92%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0,0,0,0.8);
}
.age-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-xl);
    background: rgba(225,29,72,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 900; color: var(--primary);
}
.age-card h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.age-card p { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; margin-bottom: 24px; }
.btn-enter {
    display: block; width: 100%;
    background: var(--primary); color: #fff;
    font-weight: 700; font-size: 1rem;
    padding: 12px; border-radius: var(--radius-md);
    transition: background 0.15s;
    box-shadow: 0 4px 16px rgba(225,29,72,0.25);
}
.btn-enter:hover { background: var(--primary-hover); }
.age-exit {
    display: block; margin-top: 12px;
    font-size: 0.875rem; color: #8b95a5;
    transition: color 0.15s;
}
.age-exit:hover { color: #9ca3af; }

/* ═══════════════════════════════
   SINGLE VIDEO
   ═══════════════════════════════ */
.video-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}
.video-player img { width: 100%; height: 100%; object-fit: cover; }
.video-player-embed { position: absolute; inset: 0; width: 100%; height: 100%; }
.vdo-spinner {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    transition: opacity .3s;
}
.vdo-spinner.hide { opacity: 0; pointer-events: none; }
.vdo-spinner::after {
    content: '';
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #E11D48;
    border-radius: 50%;
    animation: vdo-spin .7s linear infinite;
}
@keyframes vdo-spin { to { transform: rotate(360deg); } }
.video-player-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
}
.play-circle-lg {
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
    box-shadow: 0 0 40px rgba(225,29,72,0.5);
    border: 3px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.play-circle-lg:hover { transform: scale(1.08); }

.video-info { margin-bottom: 24px; }
.video-info h1 {
    font-size: 1.4rem; font-weight: 700; color: #fff;
    line-height: 1.4; margin-bottom: 12px;
}
.video-info-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.video-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.meta-item {
    background: var(--cardbg);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.meta-item.meta-wide {
    grid-column: 1 / -1;
}
.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.meta-value {
    font-size: 0.9375rem;
    color: #e5e7eb;
    font-weight: 500;
}
.meta-code {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}
.meta-actresses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.actress-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fb7185;
    transition: all 0.2s ease;
}
.actress-link:hover {
    background: rgba(225, 29, 72, 0.25);
    color: #fff;
}
.studio-link {
    color: #38bdf8;
    font-weight: 600;
    transition: color 0.2s;
}
.studio-link:hover { color: #7dd3fc; }
.meta-rating { color: #fbbf24; }
.video-stats-bar {
    display: none;
}

.video-tags-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.tags-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.video-tags-section .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.video-description {
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.7;
}

.related-section { margin-top: 32px; }

.video-detail-section {
    display: none;
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}
.detail-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.detail-rows { display: flex; flex-direction: column; gap: 0; }
.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8125rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-key {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 56px;
    flex-shrink: 0;
    font-size: 0.75rem;
    padding-top: 2px;
}
.detail-val {
    color: #e5e7eb;
    font-weight: 500;
}
.detail-code {
    color: #f87171;
    font-weight: 700;
}
.detail-row .meta-actresses { gap: 4px; }
.detail-row .actress-link { padding: 1px 7px; font-size: 0.6875rem; }
.detail-row .detail-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.detail-row .detail-cats .chip { font-size: 9px; padding: 1px 6px; }

@media (max-width: 768px) {
    .video-info { margin-bottom: 10px; display: flex; flex-direction: column; }
    .video-info h1 { font-size: 1.05rem; margin-bottom: 4px; line-height: 1.35; order: 1; }
    .video-info-chips { display: none; }
    .video-stats-bar { order: 2; }
    .video-detail-chips { order: 3; }
    .video-meta-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 8px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .meta-item {
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 5px;
        background: transparent;
        font-size: 0.8125rem;
    }
    .meta-item::after {
        content: "·";
        color: var(--text-muted);
        margin: 0 4px;
    }
    .meta-item:last-child::after { display: none; }
    .meta-item.meta-wide { width: 100%; }
    .meta-item.meta-wide::after { display: none; }
    .meta-item.meta-stat { display: none; }
    .meta-label { display: none; }
    .video-meta-grid { display: none; }
    .video-detail-section { display: block; }
    .meta-value { font-size: 0.8125rem; }
    .meta-code { font-size: 0.8125rem; font-weight: 700; }
    .meta-actresses { gap: 4px; }
    .actress-link { padding: 1px 7px; font-size: 0.6875rem; }
    .video-stats-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        font-size: 0.75rem;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        margin-bottom: 10px;
    }
    .video-stats-bar span { display: flex; align-items: center; gap: 3px; }
    .video-stats-bar .stat-val { color: #e5e7eb; font-weight: 600; }
    .video-stats-bar .stat-rating { color: #fbbf24; }
    .video-description { padding: 10px 12px; margin-bottom: 10px; font-size: 0.8125rem; line-height: 1.55; }
    .video-tags-section { padding: 8px 10px; margin-bottom: 10px; gap: 6px; }
    .tags-label { font-size: 0.75rem; }
    .video-tags-section .tag-link { font-size: 0.6875rem; padding: 2px 8px; }
    .related-section { margin-top: 14px; }
}

/* ═══════════════════════════════
   BREADCRUMB
   ═══════════════════════════════ */
.breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-sub); transition: color 0.15s; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .separator { margin: 0 6px; }

/* ═══════════════════════════════
   FILTER BAR (category / archive)
   ═══════════════════════════════ */
.filter-bar {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 10px;
    margin-bottom: 20px; padding: 12px 16px;
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.filter-bar label { font-size: 0.8125rem; color: var(--text-sub); font-weight: 500; }
.filter-bar select {
    background: #1a1a1a; color: #e5e7eb;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-sm);
    padding: 6px 10px; font-size: 0.8125rem;
    outline: none;
}
.filter-bar select:focus { border-color: var(--primary); }

/* ═══════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════ */
.search-header { margin-bottom: 24px; }
.search-header h1 { font-size: 1.3rem; font-weight: 700; color: #fff; }
.search-header p { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ═══════════════════════════════
   404 PAGE
   ═══════════════════════════════ */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 .error-code {
    font-size: 6rem; font-weight: 900;
    color: var(--primary); opacity: 0.3;
    line-height: 1;
}
.page-404 h1 { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.page-404 p { color: var(--text-muted); margin-bottom: 24px; }

/* ═══════════════════════════════
   NO RESULTS
   ═══════════════════════════════ */
.no-results { text-align: center; padding: 60px 20px; }
.no-results h1 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 20px; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.site-footer {
    background: var(--darkbg);
    border-top: 1px solid #1f2937;
    padding: 32px 0;
    margin-top: 16px;
}
.footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-copy { font-size: 0.875rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
    font-size: 0.875rem; color: #8b95a5;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }

/* ═══════════════════════════════
   TERM GRID (categories/actresses/studios listing)
   ═══════════════════════════════ */
.term-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.term-grid-sm {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.term-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cardbg);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.term-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(225,29,72,0.12);
    border-color: rgba(225,29,72,0.3);
}

.term-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.term-card-thumb-sq { aspect-ratio: 1/1; }
.term-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.term-card:hover .term-card-thumb img { transform: scale(1.06); }
.term-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.6) 0%, transparent 50%);
    pointer-events: none;
}
.term-card-count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.1);
}

.term-card-body {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
}
.term-card-emoji { font-size: 1.3rem; flex-shrink: 0; }
.term-card-name {
    font-size: 0.875rem; font-weight: 600; color: var(--text);
    margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}
.term-card-person .term-card-body {
    flex-direction: column; text-align: center; gap: 4px;
    padding: 10px 8px 14px;
}
.term-card-person .term-card-name { font-size: 13px; }
.term-card-person .term-card-count {
    position: static; background: none; border: none;
    backdrop-filter: none; padding: 0;
    font-size: 11px; color: var(--text-muted); font-weight: 400;
}

/* ═══════════════════════════════
   SEO TEXT
   ═══════════════════════════════ */
.seo-text {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
    max-width: 800px;
    margin-bottom: 32px;
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}
.seo-text h2 { font-size: 1.15rem; font-weight: 700; color: #d1d5db; margin-bottom: 12px; }
.seo-text p {
    font-size: 0.875rem; color: #8b95a5;
    line-height: 1.7; margin-bottom: 16px;
}
.seo-text a,
.video-description a,
.footer-links a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seo-text a:hover,
.video-description a:hover,
.footer-links a:hover { color: #fff; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1280px) {
    .video-grid { grid-template-columns: repeat(4, 1fr); }
    .term-grid { grid-template-columns: repeat(3, 1fr); }
    .term-grid-sm { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { aspect-ratio: 16/8; }
    .hero-stack {
        flex-direction: row; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 8px; padding-bottom: 4px;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .hero-stack::-webkit-scrollbar { display: none; }
    .hero-mini {
        flex: 0 0 44%; min-height: auto;
        aspect-ratio: 16/9; scroll-snap-align: start;
    }
    .site-sidebar { display: none; }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .term-grid-sm { grid-template-columns: repeat(4, 1fr); }
    .sec-heading { margin-bottom: 10px; }
}

@media (max-width: 768px) {
    .mob-icon-btn { display: flex; }
    .header-search { display: none; }
    .header-nav { display: none; }
    .category-nav { display: none; }
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .term-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .term-grid-sm { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .hero-main {
        border-radius: 0;
        aspect-ratio: 16/9;
        margin: 0 -12px;
        width: calc(100% + 24px);
    }
    .hero-meta { padding: 16px 14px 17px; }
    .hero-title { font-size: 1.1rem; margin-bottom: 8px; }
    .hero-stat { font-size: 10.5px; padding: 3px 8px; }
    .hero-mini { flex: 0 0 52%; }
    .hero-stack {
        gap: 6px;
        margin: 0 -12px; padding: 0 12px;
        width: calc(100% + 24px);
    }
    .sec-heading h2 { font-size: 1rem; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .term-grid-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vcard-title { font-size: 12px; }
    .vcard-meta { font-size: 10px; }
    .site-wrap { padding: 0 8px; }
    .filter-bar { padding: 10px 12px; gap: 8px; }
}

@media (max-width: 390px) {
    .hero-main { aspect-ratio: 16/10; }
    .hero-title { font-size: 1rem; }
    .hero-mini { flex: 0 0 58%; }
}

/* ═══════════════════════════════
   RANKING PAGE
   ═══════════════════════════════ */
.ranking-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.ranking-tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--cardbg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}
.ranking-tab:hover { border-color: rgba(255,255,255,0.12); color: #e5e7eb; }
.ranking-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ranking-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }
.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--cardbg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}
.ranking-item:hover {
    border-color: rgba(225,29,72,0.3);
    background: rgba(225,29,72,0.04);
}
.ranking-item.rank-top { border-left: 3px solid; }
.ranking-item.rank-1 { border-left-color: #fbbf24; background: rgba(251,191,36,0.04); }
.ranking-item.rank-2 { border-left-color: #9ca3af; background: rgba(156,163,175,0.04); }
.ranking-item.rank-3 { border-left-color: #cd7f32; background: rgba(205,127,50,0.04); }

.ranking-number {
    width: 36px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.rank-1 .ranking-number { color: #fbbf24; font-size: 1.25rem; }
.rank-2 .ranking-number { color: #9ca3af; font-size: 1.125rem; }
.rank-3 .ranking-number { color: #cd7f32; font-size: 1.125rem; }

.ranking-thumb {
    width: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #0a0a0a;
}
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ranking-info { flex: 1; min-width: 0; }
.ranking-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
}
.rm-code {
    color: var(--primary);
    font-weight: 700;
}
.rm-actress { color: #fb7185; }
.rm-studio { color: #38bdf8; }

.ranking-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    font-size: 0.8125rem;
}
.rs-views { color: #fbbf24; font-weight: 600; white-space: nowrap; }
.rs-duration { color: var(--text-muted); white-space: nowrap; }

@media (max-width: 640px) {
    .ranking-thumb { width: 80px; }
    .ranking-number { width: 28px; font-size: 0.875rem; }
    .ranking-title { font-size: 0.8125rem; }
    .ranking-stats { font-size: 0.75rem; }
    .ranking-item { gap: 8px; padding: 10px 12px; }
}

/* ── Print ── */
@media print {
    .site-header, .category-nav, .site-sidebar,
    .age-gate, #mob-nav, #mob-nav-overlay,
    #mob-search-panel, .pagination, .filter-bar { display: none !important; }
    body { background: #fff; color: #000; }
    .video-card { break-inside: avoid; }
}
