/*
Theme Name: CineVault
Author: Sand
Description: Bento grid showcase video theme. Floating nav capsule, mosaic card layout, category showcase, Space Grotesk typography, dot grid texture. Dark-only, mobile-first, SEO-optimized.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
Text Domain: cinevault
Tags: video, dark-mode, bento-grid, responsive-layout, custom-colors, premium
*/

/* ==========================================================================
   0. CSS VARIABLES
   ========================================================================== */

:root {
    --cv-accent-1: #14b8a6;
    --cv-accent-2: #06b6d4;
    --cv-gradient: linear-gradient(135deg, var(--cv-accent-1), var(--cv-accent-2));
    --cv-gradient-h: linear-gradient(90deg, var(--cv-accent-1), var(--cv-accent-2));

    --cv-bg-0: #0c0c0f;
    --cv-bg-1: #141419;
    --cv-bg-2: #1c1c24;
    --cv-bg-3: #26263a;

    --cv-text: #f0f0f5;
    --cv-text-2: #9ca3af;
    --cv-text-3: #6b7280;

    --cv-line: rgba(255, 255, 255, 0.06);
    --cv-line-2: rgba(255, 255, 255, 0.1);

    --cv-r: 14px;
    --cv-r-sm: 8px;
    --cv-r-full: 9999px;

    --cv-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --cv-fast: 0.15s;
    --cv-med: 0.3s;
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cv-bg-0);
    color: var(--cv-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-top: 80px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--cv-fast) var(--cv-ease);
}

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

a:focus-visible {
    outline: 2px solid var(--cv-accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

button:focus-visible {
    outline: 2px solid var(--cv-accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

::selection {
    background: var(--cv-accent-1);
    color: #fff;
}

/* ==========================================================================
   2. DOT GRID BACKGROUND TEXTURE
   ========================================================================== */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.cv-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.cv-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 14px;
    width: 100%;
    flex: 1;
}

.cv-main {
    flex: 1;
}

/* ==========================================================================
   4. FLOATING NAVIGATION CAPSULE
   ========================================================================== */

.cv-capsule {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-full);
    max-width: 600px;
    width: 90%;
    transition: all var(--cv-med) var(--cv-ease);
}

.cv-capsule.scrolled {
    padding: 6px 18px;
    top: 8px;
    max-width: 500px;
    background: rgba(12, 12, 15, 0.92);
}

/* -- Logo -- */

.cv-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.cv-logo-accent {
    background: var(--cv-gradient-h);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cv-logo-white {
    color: var(--cv-text);
}

/* -- Capsule spacer -- */

.cv-capsule-spacer {
    flex: 1;
}

/* -- Capsule navigation links (desktop) -- */

.cv-capsule-nav {
    display: none;
    align-items: center;
    gap: 20px;
}

.cv-capsule-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-2);
    transition: color var(--cv-fast) var(--cv-ease);
    white-space: nowrap;
}

.cv-capsule-nav a:hover,
.cv-capsule-nav a.is-active {
    color: var(--cv-text);
}

/* -- Search within capsule (desktop) -- */

.cv-capsule-search {
    display: none;
    align-items: center;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width var(--cv-med) var(--cv-ease),
                opacity var(--cv-med) var(--cv-ease);
}

.cv-capsule-search.is-searching {
    max-width: 200px;
    opacity: 1;
}

.cv-capsule-search input {
    width: 180px;
    padding: 5px 12px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-full);
    color: var(--cv-text);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color var(--cv-fast) var(--cv-ease);
}

.cv-capsule-search input::placeholder {
    color: var(--cv-text-3);
}

.cv-capsule-search input:focus {
    border-color: var(--cv-accent-1);
}

/* -- Capsule buttons -- */

.cv-capsule-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background var(--cv-fast) var(--cv-ease);
}

.cv-capsule-btn:hover {
    background: var(--cv-bg-2);
}

.cv-capsule-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--cv-text-2);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke var(--cv-fast) var(--cv-ease);
}

.cv-capsule-btn:hover svg {
    stroke: var(--cv-text);
}

.cv-capsule-btn--search {
    display: none;
}

.cv-capsule-btn--menu {
    display: flex;
}

/* ==========================================================================
   5. OFF-CANVAS DRAWER (slides from RIGHT)
   ========================================================================== */

.cv-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--cv-med) var(--cv-ease),
                visibility var(--cv-med) var(--cv-ease);
}

.cv-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--cv-bg-1);
    border-left: 1px solid var(--cv-line);
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--cv-med) var(--cv-ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

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

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

.cv-drawer-title {
    font-size: 1rem;
    font-weight: 700;
}

.cv-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background var(--cv-fast) var(--cv-ease);
}

.cv-drawer-close:hover {
    background: var(--cv-bg-2);
}

.cv-drawer-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--cv-text-2);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cv-drawer-body {
    padding: 20px;
    flex: 1;
}

.cv-drawer-nav {
    margin-bottom: 24px;
}

.cv-drawer-nav li {
    margin-bottom: 4px;
}

.cv-drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--cv-r-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-drawer-nav a:hover,
.cv-drawer-nav a.is-active {
    background: var(--cv-bg-2);
    color: var(--cv-text);
}

.cv-drawer-nav a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.cv-drawer-divider {
    height: 1px;
    background: var(--cv-line);
    margin: 16px 0;
}

.cv-drawer-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cv-text-3);
    margin-bottom: 12px;
}

.cv-drawer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.cv-drawer-tag {
    display: inline-flex;
    padding: 4px 10px;
    background: var(--cv-bg-2);
    border-radius: var(--cv-r-full);
    font-size: 0.75rem;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-drawer-tag:hover {
    background: var(--cv-bg-3);
    color: var(--cv-accent-1);
}

.cv-drawer-search {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--cv-line);
}

.cv-drawer-search form {
    display: flex;
    gap: 8px;
}

.cv-drawer-search input {
    flex: 1;
    padding: 8px 14px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-full);
    color: var(--cv-text);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color var(--cv-fast) var(--cv-ease);
}

.cv-drawer-search input::placeholder {
    color: var(--cv-text-3);
}

.cv-drawer-search input:focus {
    border-color: var(--cv-accent-1);
}

.cv-drawer-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--cv-gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

.cv-drawer-search button svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   6. SEARCH OVERLAY (mobile)
   ========================================================================== */

.cv-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(12, 12, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--cv-med) var(--cv-ease),
                visibility var(--cv-med) var(--cv-ease);
}

.cv-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cv-search-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cv-bg-2);
    transition: background var(--cv-fast) var(--cv-ease);
}

.cv-search-overlay-close:hover {
    background: var(--cv-bg-3);
}

.cv-search-overlay-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--cv-text-2);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cv-search-overlay-form {
    width: 90%;
    max-width: 480px;
    padding: 0 16px;
}

.cv-search-overlay-form input {
    width: 100%;
    padding: 14px 20px;
    background: var(--cv-bg-1);
    border: 2px solid var(--cv-accent-1);
    border-radius: var(--cv-r);
    color: var(--cv-text);
    font-size: 1.125rem;
    outline: none;
    transition: border-color var(--cv-fast) var(--cv-ease),
                box-shadow var(--cv-fast) var(--cv-ease);
}

.cv-search-overlay-form input::placeholder {
    color: var(--cv-text-3);
}

.cv-search-overlay-form input:focus {
    border-color: var(--cv-accent-2);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.cv-hero {
    position: relative;
    border-radius: var(--cv-r);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    margin-bottom: 28px;
}

.cv-hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, var(--cv-bg-0) 100%);
    pointer-events: none;
}

.cv-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.cv-hero-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cv-gradient);
    border-radius: var(--cv-r-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 8px;
}

.cv-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--cv-text-2);
    margin-bottom: 12px;
}

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

.cv-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--cv-gradient);
    border-radius: var(--cv-r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform var(--cv-fast) var(--cv-ease),
                box-shadow var(--cv-fast) var(--cv-ease);
}

.cv-btn-accent:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.cv-btn-accent svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

/* ==========================================================================
   8. CATEGORY SHOWCASE
   ========================================================================== */

.cv-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.cv-showcase-card {
    position: relative;
    border-radius: var(--cv-r);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    transition: transform var(--cv-med) var(--cv-ease);
}

.cv-showcase-card:hover {
    transform: scale(1.02);
}

.cv-showcase-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.cv-showcase-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--cv-med) var(--cv-ease);
}

.cv-showcase-card:hover .cv-showcase-bg {
    transform: scale(1.06);
}

.cv-showcase-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.cv-showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    z-index: 2;
}

.cv-showcase-name {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.cv-showcase-count {
    font-size: 0.6875rem;
    color: var(--cv-text-2);
}

/* ==========================================================================
   9. BENTO GRID
   ========================================================================== */

.cv-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(160px, auto);
    grid-auto-flow: dense;
    gap: 14px;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.cv-card--lg {
    grid-column: span 2;
    grid-row: span 2;
}

.cv-card--wide {
    grid-column: span 2;
}

/* ==========================================================================
   10. VIDEO CARD
   ========================================================================== */

.cv-card {
    position: relative;
    border-radius: var(--cv-r);
    overflow: hidden;
    background: var(--cv-bg-1);
    display: flex;
    flex-direction: column;
    transition: transform var(--cv-med) var(--cv-ease),
                box-shadow var(--cv-med) var(--cv-ease);
}

.cv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(20, 184, 166, 0.08);
}

/* -- Category color stripe -- */

.cv-card-stripe {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

/* -- Card link overlay -- */

.cv-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* -- Thumbnail -- */

.cv-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.cv-card--lg .cv-card-thumb {
    aspect-ratio: auto;
    flex: 1;
    min-height: 160px;
}

.cv-card--wide .cv-card-thumb {
    aspect-ratio: 21 / 9;
}

.cv-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--cv-med) var(--cv-ease);
}

.cv-card:hover .cv-card-thumb img {
    transform: scale(1.03);
}

/* -- Duration badge -- */

.cv-card-dur {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 7px;
    background: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--cv-r-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cv-accent-1);
    z-index: 2;
    line-height: 1.4;
}

/* -- Views badge -- */

.cv-card-views-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    background: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--cv-r-sm);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--cv-text-2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.4;
}

.cv-card-views-badge svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* -- Play overlay -- */

.cv-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    background: var(--cv-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: opacity var(--cv-fast) var(--cv-ease),
                transform var(--cv-fast) var(--cv-ease);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.cv-card:hover .cv-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cv-card-play svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-left: 3px;
}

/* -- Card info -- */

.cv-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.cv-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-card-sub {
    font-size: 0.6875rem;
    color: var(--cv-text-3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-card-sub span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* -- Card excerpt (visible in --lg only) -- */

.cv-card-excerpt {
    display: none;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--cv-text-2);
    margin-top: 4px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-card--lg .cv-card-excerpt {
    display: -webkit-box;
}

/* -- Card tags (visible in --lg only on mobile) -- */

.cv-card-tags {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.cv-card--lg .cv-card-tags {
    display: flex;
}

/* -- Card rating bar (visible in --lg only on mobile) -- */

.cv-card-tag {
    display: inline-flex;
    padding: 2px 8px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: var(--cv-r-full);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--cv-accent-1);
    position: relative;
    z-index: 4;
    transition: background var(--cv-fast) var(--cv-ease);
}

.cv-card-tag:hover {
    background: rgba(20, 184, 166, 0.2);
}

/* -- Card rating bar -- */

.cv-card-rating {
    height: 3px;
    background: var(--cv-bg-2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    display: none;
}

.cv-card--lg .cv-card-rating {
    display: block;
}

.cv-card-rating-fill {
    height: 100%;
    background: var(--cv-gradient-h);
    border-radius: 2px;
    transition: width var(--cv-med) var(--cv-ease);
}

/* -- Wide card: inline views -- */

.cv-card--wide .cv-card-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cv-card--wide .cv-card-title {
    flex: 1;
    -webkit-line-clamp: 1;
}

.cv-card--wide .cv-card-views-inline {
    font-size: 0.6875rem;
    color: var(--cv-text-3);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cv-card-views-inline {
    display: none;
}

/* ==========================================================================
   11. SECTION HEADINGS
   ========================================================================== */

.cv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.cv-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.cv-section-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-accent-1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--cv-fast) var(--cv-ease);
}

.cv-section-link:hover {
    color: var(--cv-accent-2);
    gap: 6px;
}

.cv-section-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.cv-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    border-image: var(--cv-gradient-h) 1;
    display: inline-block;
}

/* ==========================================================================
   12. BREADCRUMBS
   ========================================================================== */

.cv-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--cv-text-3);
    margin-bottom: 14px;
}

.cv-breadcrumbs a {
    color: var(--cv-text-3);
    transition: color var(--cv-fast) var(--cv-ease);
}

.cv-breadcrumbs a:hover {
    color: var(--cv-accent-1);
}

.cv-breadcrumbs .cv-breadcrumb-sep {
    margin: 0 2px;
    color: var(--cv-text-3);
    opacity: 0.5;
}

.cv-breadcrumbs .cv-breadcrumb-current {
    color: var(--cv-text-2);
}

/* ==========================================================================
   13. SINGLE PAGE - PLAYER & INFO CARD
   ========================================================================== */

/* -- Player zone -- */

.cv-player-zone {
    position: relative;
    margin-bottom: 20px;
}

.cv-player-frame {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--cv-r);
    overflow: hidden;
    position: relative;
}

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

/* -- Info card -- */

.cv-info-card {
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r);
    padding: 24px;
    margin-bottom: 24px;
}

.cv-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

/* -- Meta bar -- */

.cv-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--cv-text-2);
    font-size: 0.8125rem;
    margin-bottom: 16px;
}

.cv-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cv-meta-chip svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.cv-meta-chip--rating {
    color: var(--cv-accent-1);
    font-weight: 600;
}

/* -- Rating bar (single page) -- */

.cv-rating-bar {
    height: 4px;
    background: var(--cv-bg-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
    max-width: 200px;
}

.cv-rating-fill {
    height: 100%;
    background: var(--cv-gradient-h);
    border-radius: 2px;
}

/* -- Accent button block (full width) -- */

.cv-btn-accent--block {
    display: flex;
    width: 100%;
    padding: 12px 24px;
}

/* -- Description -- */

.cv-desc {
    margin-bottom: 20px;
}

.cv-desc-body {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--cv-text-2);
    max-height: 80px;
    overflow: hidden;
    position: relative;
    transition: max-height var(--cv-med) var(--cv-ease);
}

.cv-desc-body.is-expanded {
    max-height: 2000px;
}

.cv-desc-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--cv-bg-1));
    pointer-events: none;
    transition: opacity var(--cv-fast) var(--cv-ease);
}

.cv-desc-body.is-expanded::after {
    opacity: 0;
}

.cv-desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-accent-1);
    cursor: pointer;
    transition: color var(--cv-fast) var(--cv-ease);
}

.cv-desc-toggle:hover {
    color: var(--cv-accent-2);
}

.cv-desc-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform var(--cv-fast) var(--cv-ease);
}

.cv-desc-body.is-expanded ~ .cv-desc-toggle svg {
    transform: rotate(180deg);
}

/* -- Detail sections -- */

.cv-detail-section {
    margin-bottom: 16px;
}

.cv-detail-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-text-3);
    margin-bottom: 8px;
}

/* -- Tags -- */

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--cv-bg-2);
    border-radius: var(--cv-r-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-tag:hover {
    background: var(--cv-bg-3);
    color: var(--cv-accent-1);
}

/* -- Stars / Actors row -- */

.cv-stars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-star-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    background: var(--cv-bg-2);
    border-radius: var(--cv-r-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-star-pill:hover {
    background: var(--cv-bg-3);
    color: var(--cv-accent-1);
}

.cv-star-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* -- Related section -- */

.cv-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cv-line);
}

/* ==========================================================================
   14. ARCHIVE PAGES
   ========================================================================== */

.cv-archive-head {
    margin-bottom: 24px;
}

.cv-archive-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.cv-archive-desc {
    font-size: 0.875rem;
    color: var(--cv-text-2);
    line-height: 1.6;
    max-width: 640px;
}

/* -- Star archive head (with avatar) -- */

.cv-star-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cv-star-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: var(--cv-gradient);
    flex-shrink: 0;
}

.cv-star-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--cv-bg-0);
}

.cv-star-info {
    flex: 1;
    min-width: 0;
}

.cv-star-name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cv-star-count {
    font-size: 0.8125rem;
    color: var(--cv-text-2);
}

/* ==========================================================================
   15. TERM GRID (Stars / Categories pages)
   ========================================================================== */

.cv-term-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.cv-term-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r);
    transition: background var(--cv-fast) var(--cv-ease),
                border-color var(--cv-fast) var(--cv-ease),
                transform var(--cv-fast) var(--cv-ease);
}

.cv-term-card:hover {
    background: var(--cv-bg-2);
    border-color: var(--cv-line-2);
    transform: translateY(-2px);
}

.cv-term-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cv-bg-2);
}

.cv-term-info {
    flex: 1;
    min-width: 0;
}

.cv-term-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-term-count {
    font-size: 0.6875rem;
    color: var(--cv-text-3);
}

/* ==========================================================================
   16. TAG CLOUD
   ========================================================================== */

.cv-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.cv-tag-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r-full);
    font-size: 0.8125rem;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                border-color var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-tag-cloud a:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--cv-accent-1);
    color: var(--cv-accent-1);
}

.cv-tag-cloud .cv-tag-count {
    margin-left: 6px;
    font-size: 0.6875rem;
    color: var(--cv-text-3);
}

/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.cv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.cv-pagination a,
.cv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--cv-r-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-pagination a {
    background: var(--cv-bg-1);
    color: var(--cv-text-2);
    border: 1px solid var(--cv-line);
}

.cv-pagination a:hover {
    background: var(--cv-bg-2);
    color: var(--cv-text);
    border-color: var(--cv-line-2);
}

.cv-pagination .current {
    background: var(--cv-gradient);
    color: #fff;
    font-weight: 700;
    border: none;
}

.cv-pagination .dots {
    background: none;
    color: var(--cv-text-3);
    border: none;
    min-width: auto;
    padding: 0 4px;
}

.cv-pagination .cv-pagination-prev,
.cv-pagination .cv-pagination-next {
    font-weight: 600;
    gap: 4px;
}

.cv-pagination .cv-pagination-prev svg,
.cv-pagination .cv-pagination-next svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   18. 404 PAGE
   ========================================================================== */

.cv-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 50vh;
}

.cv-404-number {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: var(--cv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.cv-404-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cv-404-desc {
    font-size: 0.9375rem;
    color: var(--cv-text-2);
    margin-bottom: 24px;
    max-width: 400px;
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */

.cv-footer {
    background: var(--cv-bg-1);
    border-top: 3px solid;
    border-image: var(--cv-gradient-h) 1;
    margin-top: 40px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cv-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 14px 20px;
}

.cv-footer-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.cv-footer-brand {
    flex-shrink: 0;
}

.cv-footer-brand .cv-logo {
    margin-bottom: 8px;
}

.cv-footer-brand-desc {
    font-size: 0.75rem;
    color: var(--cv-text-3);
    line-height: 1.5;
    max-width: 280px;
}

.cv-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.cv-footer-nav-group h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cv-text-3);
    margin-bottom: 10px;
}

.cv-footer-nav-group ul li {
    margin-bottom: 6px;
}

.cv-footer-nav-group ul a {
    font-size: 0.8125rem;
    color: var(--cv-text-2);
    transition: color var(--cv-fast) var(--cv-ease);
}

.cv-footer-nav-group ul a:hover {
    color: var(--cv-accent-1);
}

.cv-footer-divider {
    height: 1px;
    background: var(--cv-line);
    margin-bottom: 16px;
}

.cv-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--cv-text-3);
}

.cv-footer-copy a {
    color: var(--cv-text-2);
}

.cv-footer-copy a:hover {
    color: var(--cv-accent-1);
}

.cv-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   20. FLOATING BOTTOM CAPSULE (mobile)
   ========================================================================== */

.cv-bottombar {
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    z-index: 90;
    display: flex;
    justify-content: space-around;
    background: rgba(12, 12, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-full);
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 4px));
}

.cv-bottombar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--cv-r-sm);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--cv-text-3);
    transition: color var(--cv-fast) var(--cv-ease);
    text-decoration: none;
}

.cv-bottombar-item:hover,
.cv-bottombar-item.is-active {
    color: var(--cv-accent-1);
}

.cv-bottombar-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.has-bottom-nav {
    padding-bottom: 80px;
}

.has-bottom-nav .cv-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   21. SEARCH FORM (generic)
   ========================================================================== */

.cv-searchform {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.cv-searchform input[type="search"],
.cv-searchform input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r);
    color: var(--cv-text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--cv-fast) var(--cv-ease),
                box-shadow var(--cv-fast) var(--cv-ease);
}

.cv-searchform input::placeholder {
    color: var(--cv-text-3);
}

.cv-searchform input:focus {
    border-color: var(--cv-accent-1);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.cv-searchform button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--cv-gradient);
    border-radius: var(--cv-r);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: box-shadow var(--cv-fast) var(--cv-ease),
                transform var(--cv-fast) var(--cv-ease);
}

.cv-searchform button[type="submit"]:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    transform: translateY(-1px);
}

.cv-searchform button[type="submit"] svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* ==========================================================================
   22. UTILITY CLASSES
   ========================================================================== */

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

.cv-text-accent {
    color: var(--cv-accent-1);
}

.cv-text-gradient {
    background: var(--cv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cv-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   23. SKELETON / LOADING STATE
   ========================================================================== */

.cv-skeleton {
    background: var(--cv-bg-2);
    border-radius: var(--cv-r-sm);
    position: relative;
    overflow: hidden;
}

.cv-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    animation: cv-shimmer 1.5s infinite;
}

@keyframes cv-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.cv-skeleton--thumb {
    aspect-ratio: 16 / 9;
}

.cv-skeleton--text {
    height: 14px;
    margin-bottom: 6px;
}

.cv-skeleton--text-sm {
    height: 10px;
    width: 60%;
}

/* ==========================================================================
   24. NOTIFICATIONS / EMPTY STATE
   ========================================================================== */

.cv-empty {
    text-align: center;
    padding: 48px 20px;
}

.cv-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    stroke: var(--cv-text-3);
    fill: none;
    stroke-width: 1.5;
}

.cv-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cv-empty-desc {
    font-size: 0.8125rem;
    color: var(--cv-text-2);
    max-width: 320px;
    margin: 0 auto;
}

/* ==========================================================================
   25. WORDPRESS DEFAULTS
   ========================================================================== */

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

.wp-caption img {
    display: block;
    width: 100%;
}

.wp-caption-text {
    font-size: 0.75rem;
    color: var(--cv-text-3);
    padding: 6px 0;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 16px;
    margin-bottom: 8px;
}

.alignright {
    float: right;
    margin-left: 16px;
    margin-bottom: 8px;
}

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

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

.sticky .cv-card {
    border: 1px solid var(--cv-accent-1);
}

/* ==========================================================================
   26. RESPONSIVE — 640px (Small tablets)
   ========================================================================== */

@media (min-width: 640px) {
    .cv-content {
        padding: 0 20px;
    }

    /* Showcase: 3 columns */
    .cv-showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero scales */
    .cv-hero-title {
        font-size: 1.5rem;
    }

    .cv-hero-content {
        padding: 28px;
    }

    /* Term grid: 3 cols */
    .cv-term-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer side by side */
    .cv-footer-copy {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ==========================================================================
   27. RESPONSIVE — 900px (Desktop)
   ========================================================================== */

@media (min-width: 900px) {
    body {
        font-size: 16px;
    }

    .cv-content {
        padding: 0 28px;
    }

    /* Bento: 4 columns */
    .cv-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(180px, auto);
    }

    .cv-card--lg {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Bento: show excerpt and tags on ALL cards on desktop to fill vertical space */
    .cv-bento .cv-card-excerpt {
        display: -webkit-box;
    }

    .cv-bento .cv-card-tags {
        display: flex;
    }

    .cv-bento .cv-card-rating {
        display: block;
    }

    /* Standard cards in bento: make thumbnail fill available height */
    .cv-bento .cv-card {
        display: flex;
        flex-direction: column;
    }

    .cv-bento .cv-card-thumb {
        flex: 1;
        aspect-ratio: auto;
        min-height: 120px;
    }

    .cv-bento .cv-card-info {
        flex-shrink: 0;
    }

    /* Capsule: show nav, search; hide hamburger */
    .cv-capsule {
        max-width: 700px;
        gap: 16px;
    }

    .cv-capsule-nav {
        display: flex;
    }

    .cv-capsule-btn--search {
        display: flex;
    }

    .cv-capsule-btn--menu {
        display: none;
    }

    .cv-capsule-search {
        display: flex;
        max-width: 220px;
        opacity: 1;
    }

    .cv-btn-search-mobile {
        display: none;
    }

    /* Bottom bar: hide */
    .cv-bottombar {
        display: none;
    }

    .has-bottom-nav {
        padding-bottom: 0;
    }

    .has-bottom-nav .cv-footer {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Hero */
    .cv-hero {
        aspect-ratio: 21 / 9;
    }

    .cv-hero-title {
        font-size: 2rem;
    }

    .cv-hero-content {
        padding: 36px;
    }

    /* Showcase: 3 cols, larger */
    .cv-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .cv-showcase-name {
        font-size: 1rem;
    }

    /* Card info: slightly larger */
    .cv-card-title {
        font-size: 0.875rem;
    }

    .cv-card-info {
        padding: 12px 14px;
    }

    /* Single page layout */
    .cv-single-grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 24px;
        align-items: start;
    }

    .cv-single-main {
        min-width: 0;
    }

    .cv-single-sidebar {
        position: sticky;
        top: 80px;
    }

    /* Footer layout */
    .cv-footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Term grid: 4 cols */
    .cv-term-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Page title */
    .cv-page-title {
        font-size: 2rem;
    }

    /* Archive head */
    .cv-archive-title {
        font-size: 1.75rem;
    }

    /* Star head */
    .cv-star-avatar-wrap {
        width: 88px;
        height: 88px;
    }

    .cv-star-name {
        font-size: 1.75rem;
    }

    /* Detail title */
    .cv-detail-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   28. RESPONSIVE — 1200px (Large desktop)
   ========================================================================== */

@media (min-width: 1200px) {
    .cv-content {
        padding: 0 40px;
    }

    /* Bento: larger gaps */
    .cv-bento {
        gap: 18px;
        grid-auto-rows: minmax(200px, auto);
    }

    /* Capsule */
    .cv-capsule {
        max-width: 780px;
    }

    .cv-capsule-nav {
        gap: 24px;
    }

    /* Showcase: 3 cols with gap */
    .cv-showcase {
        gap: 18px;
    }

    /* Hero */
    .cv-hero-title {
        font-size: 2.25rem;
    }

    /* Single grid sidebar wider */
    .cv-single-grid {
        grid-template-columns: 1fr 400px;
        gap: 32px;
    }

    /* Term grid: 5 cols */
    .cv-term-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    /* Footer inner */
    .cv-footer-inner {
        padding: 36px 40px 24px;
    }

    /* 404 */
    .cv-404-number {
        font-size: 8rem;
    }
}

/* ==========================================================================
   29. RESPONSIVE — 1600px (Extra large)
   ========================================================================== */

@media (min-width: 1600px) {
    .cv-bento {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .cv-card--lg {
        grid-column: span 2;
        grid-row: span 2;
    }

    .cv-term-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==========================================================================
   30. SCROLLBAR
   ========================================================================== */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--cv-text-3);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--cv-bg-3) var(--cv-bg-0);
}

/* ==========================================================================
   31. ANIMATIONS
   ========================================================================== */

@keyframes cv-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cv-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cv-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cv-animate-fade {
    animation: cv-fade-in var(--cv-med) var(--cv-ease) both;
}

.cv-animate-slide {
    animation: cv-slide-up var(--cv-med) var(--cv-ease) both;
}

.cv-animate-scale {
    animation: cv-scale-in var(--cv-med) var(--cv-ease) both;
}

/* Staggered delays for grid items */
.cv-stagger-1 { animation-delay: 0.05s; }
.cv-stagger-2 { animation-delay: 0.1s; }
.cv-stagger-3 { animation-delay: 0.15s; }
.cv-stagger-4 { animation-delay: 0.2s; }
.cv-stagger-5 { animation-delay: 0.25s; }
.cv-stagger-6 { animation-delay: 0.3s; }
.cv-stagger-7 { animation-delay: 0.35s; }
.cv-stagger-8 { animation-delay: 0.4s; }

/* ==========================================================================
   32. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .cv-card:hover {
        transform: none;
    }

    .cv-card:hover .cv-card-thumb img {
        transform: none;
    }

    .cv-showcase-card:hover {
        transform: none;
    }

    .cv-showcase-card:hover .cv-showcase-bg {
        transform: none;
    }
}

/* ==========================================================================
   33. PRINT
   ========================================================================== */

@media print {
    body {
        background: #fff;
        color: #000;
        padding-top: 0;
    }

    body::after {
        display: none;
    }

    .cv-capsule,
    .cv-bottombar,
    .cv-drawer,
    .cv-drawer-overlay,
    .cv-search-overlay,
    .cv-card-play,
    .cv-pagination,
    .cv-btn-accent {
        display: none !important;
    }

    .cv-wrap {
        min-height: auto;
    }

    .cv-content {
        max-width: 100%;
        padding: 0;
    }

    .cv-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .cv-card:hover {
        transform: none;
        box-shadow: none;
    }

    .cv-hero {
        aspect-ratio: auto;
    }

    .cv-footer {
        border-top: 1px solid #ddd;
        border-image: none;
    }

    a {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }

    .cv-card a[href]::after,
    .cv-logo a[href]::after,
    .cv-footer-nav a[href]::after {
        content: none;
    }
}

/* ==========================================================================
   34. SIDEBAR WIDGETS (optional)
   ========================================================================== */

.cv-sidebar-widget {
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r);
    padding: 20px;
    margin-bottom: 20px;
}

.cv-sidebar-widget-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-text-2);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cv-line);
}

/* Popular posts widget */
.cv-widget-popular {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-widget-popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cv-widget-popular-thumb {
    width: 72px;
    height: 48px;
    border-radius: var(--cv-r-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cv-widget-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-widget-popular-info {
    flex: 1;
    min-width: 0;
}

.cv-widget-popular-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.cv-widget-popular-meta {
    font-size: 0.6875rem;
    color: var(--cv-text-3);
}

/* Tags widget */
.cv-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-widget-tag {
    display: inline-flex;
    padding: 3px 10px;
    background: var(--cv-bg-2);
    border-radius: var(--cv-r-full);
    font-size: 0.6875rem;
    color: var(--cv-text-2);
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-widget-tag:hover {
    background: var(--cv-bg-3);
    color: var(--cv-accent-1);
}

/* ==========================================================================
   35. COMMENTS (basic styling)
   ========================================================================== */

.cv-comments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cv-line);
}

.cv-comments-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cv-comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cv-comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--cv-bg-1);
    border-radius: var(--cv-r);
    border: 1px solid var(--cv-line);
}

.cv-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cv-comment-body {
    flex: 1;
    min-width: 0;
}

.cv-comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cv-comment-date {
    font-size: 0.6875rem;
    color: var(--cv-text-3);
    margin-bottom: 8px;
}

.cv-comment-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--cv-text-2);
}

.cv-comment-text p {
    margin-bottom: 8px;
}

.cv-comment-text p:last-child {
    margin-bottom: 0;
}

.cv-comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cv-accent-1);
    transition: color var(--cv-fast) var(--cv-ease);
}

.cv-comment-reply-link:hover {
    color: var(--cv-accent-2);
}

/* Children comments */
.cv-comment-children {
    margin-left: 24px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Comment form */
.cv-comment-form {
    margin-top: 24px;
}

.cv-comment-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-text-2);
    margin-bottom: 4px;
}

.cv-comment-form input[type="text"],
.cv-comment-form input[type="email"],
.cv-comment-form input[type="url"],
.cv-comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-sm);
    color: var(--cv-text);
    font-size: 0.875rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--cv-fast) var(--cv-ease);
}

.cv-comment-form input:focus,
.cv-comment-form textarea:focus {
    border-color: var(--cv-accent-1);
}

.cv-comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.cv-comment-form .cv-btn-accent {
    margin-top: 4px;
}

/* ==========================================================================
   36. SHARE BUTTONS
   ========================================================================== */

.cv-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.cv-share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-text-3);
    margin-right: 4px;
}

.cv-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line);
    transition: background var(--cv-fast) var(--cv-ease),
                border-color var(--cv-fast) var(--cv-ease),
                transform var(--cv-fast) var(--cv-ease);
}

.cv-share-btn:hover {
    background: var(--cv-bg-3);
    border-color: var(--cv-line-2);
    transform: translateY(-2px);
}

.cv-share-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--cv-text-2);
}

.cv-share-btn:hover svg {
    fill: var(--cv-accent-1);
}

/* ==========================================================================
   37. VIDEO EMBED WRAPPER
   ========================================================================== */

.cv-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--cv-r);
    background: #000;
}

.cv-embed-wrap iframe,
.cv-embed-wrap object,
.cv-embed-wrap embed,
.cv-embed-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   38. CONTENT TYPOGRAPHY (single post body)
   ========================================================================== */

.cv-entry-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--cv-text-2);
}

.cv-entry-content p {
    margin-bottom: 16px;
}

.cv-entry-content h2 {
    font-size: 1.375rem;
    margin: 28px 0 12px;
    color: var(--cv-text);
}

.cv-entry-content h3 {
    font-size: 1.125rem;
    margin: 24px 0 10px;
    color: var(--cv-text);
}

.cv-entry-content h4 {
    font-size: 1rem;
    margin: 20px 0 8px;
    color: var(--cv-text);
}

.cv-entry-content ul,
.cv-entry-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.cv-entry-content ul {
    list-style: disc;
}

.cv-entry-content ol {
    list-style: decimal;
}

.cv-entry-content li {
    margin-bottom: 6px;
}

.cv-entry-content blockquote {
    border-left: 3px solid var(--cv-accent-1);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--cv-bg-1);
    border-radius: 0 var(--cv-r-sm) var(--cv-r-sm) 0;
    color: var(--cv-text-2);
    font-style: italic;
}

.cv-entry-content code {
    background: var(--cv-bg-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SF Mono', Consolas, monospace;
}

.cv-entry-content pre {
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r-sm);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.cv-entry-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.cv-entry-content a {
    color: var(--cv-accent-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-entry-content a:hover {
    color: var(--cv-accent-2);
}

.cv-entry-content img {
    border-radius: var(--cv-r-sm);
    margin: 16px 0;
}

.cv-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.cv-entry-content th,
.cv-entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--cv-line);
    text-align: left;
    font-size: 0.875rem;
}

.cv-entry-content th {
    background: var(--cv-bg-2);
    font-weight: 600;
    color: var(--cv-text);
}

.cv-entry-content hr {
    border: none;
    height: 1px;
    background: var(--cv-line);
    margin: 28px 0;
}

/* ==========================================================================
   39. CATEGORY FILTER BAR
   ========================================================================== */

.cv-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
    padding-bottom: 4px;
}

.cv-filter-bar::-webkit-scrollbar {
    display: none;
}

.cv-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-text-2);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--cv-fast) var(--cv-ease),
                border-color var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-filter-pill:hover {
    background: var(--cv-bg-2);
    border-color: var(--cv-line-2);
    color: var(--cv-text);
}

.cv-filter-pill.is-active {
    background: var(--cv-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   40. SORT DROPDOWN
   ========================================================================== */

.cv-sort {
    position: relative;
    display: inline-flex;
}

.cv-sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--cv-bg-1);
    border: 1px solid var(--cv-line);
    border-radius: var(--cv-r-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-text-2);
    cursor: pointer;
    transition: border-color var(--cv-fast) var(--cv-ease);
}

.cv-sort-trigger:hover {
    border-color: var(--cv-line-2);
}

.cv-sort-trigger svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.cv-sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 160px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-sm);
    padding: 4px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--cv-fast) var(--cv-ease),
                visibility var(--cv-fast) var(--cv-ease),
                transform var(--cv-fast) var(--cv-ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cv-sort.is-open .cv-sort-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cv-sort-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cv-text-2);
    border-radius: 4px;
    text-align: left;
    transition: background var(--cv-fast) var(--cv-ease),
                color var(--cv-fast) var(--cv-ease);
}

.cv-sort-option:hover {
    background: var(--cv-bg-3);
    color: var(--cv-text);
}

.cv-sort-option.is-active {
    color: var(--cv-accent-1);
    font-weight: 600;
}

/* ==========================================================================
   41. BACK TO TOP
   ========================================================================== */

.cv-back-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--cv-med) var(--cv-ease),
                visibility var(--cv-med) var(--cv-ease),
                transform var(--cv-med) var(--cv-ease),
                background var(--cv-fast) var(--cv-ease);
}

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

.cv-back-top:hover {
    background: var(--cv-bg-3);
}

.cv-back-top svg {
    width: 18px;
    height: 18px;
    stroke: var(--cv-text-2);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 900px) {
    .cv-back-top {
        bottom: 32px;
        right: 32px;
    }
}

/* ==========================================================================
   42. FOCUS & ACCESSIBILITY
   ========================================================================== */

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--cv-accent-1);
    outline-offset: 2px;
}

.cv-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 20px;
    background: var(--cv-gradient);
    color: #fff;
    border-radius: var(--cv-r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: top var(--cv-fast) var(--cv-ease);
}

.cv-skip-link:focus {
    top: 8px;
    color: #fff;
}

/* ==========================================================================
   43. TOAST / NOTIFICATIONS
   ========================================================================== */

.cv-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 500;
    padding: 10px 20px;
    background: var(--cv-bg-2);
    border: 1px solid var(--cv-line-2);
    border-radius: var(--cv-r-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--cv-med) var(--cv-ease),
                visibility var(--cv-med) var(--cv-ease),
                transform var(--cv-med) var(--cv-ease);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.cv-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cv-toast--success {
    border-color: var(--cv-accent-1);
}

.cv-toast--error {
    border-color: #ef4444;
}

@media (min-width: 900px) {
    .cv-toast {
        bottom: 40px;
    }
}

/* ==========================================================================
   44. LAZY LOAD PLACEHOLDER
   ========================================================================== */

.cv-lazy {
    opacity: 0;
    transition: opacity var(--cv-med) var(--cv-ease);
}

.cv-lazy.is-loaded {
    opacity: 1;
}

.cv-thumb-placeholder {
    background: var(--cv-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-thumb-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: var(--cv-text-3);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.5;
}
