/*
Theme Name: Velvet
Theme URI: https://moneyplatform.biz
Version: 1.0.8
Author: VideoTube Team
Description: Cinematic editorial tube theme with sidebar navigation, ambient player, asymmetric grid, and magazine-inspired design. Premium streaming experience for videotube-pro.
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velvet
Tags: video, tube, sidebar, editorial, cinematic, ambient, responsive, dark
*/

/* ========================================
   Tokens
   ======================================== */
:root {
    /* Warm dark palette */
    --v-bg-0: #09090b;
    --v-bg-1: #0f0f13;
    --v-bg-2: #16161d;
    --v-bg-3: #1e1e28;
    --v-bg-4: #272733;

    /* Gold accent */
    --v-gold: #d4a853;
    --v-gold-light: #e8c97a;
    --v-gold-dim: #a07d3a;
    --v-gold-glow: rgba(212, 168, 83, 0.2);
    --v-gold-bg: rgba(212, 168, 83, 0.08);

    /* Text */
    --v-text: #eae8e3;
    --v-text-2: #a5a298;
    --v-text-3: #65635d;

    /* Borders */
    --v-line: rgba(255,255,255,0.06);
    --v-line-2: rgba(255,255,255,0.1);

    /* Sidebar */
    --v-sidebar-w: 72px;
    --v-sidebar-w-open: 240px;

    /* Radius */
    --v-r-xs: 4px;
    --v-r-sm: 8px;
    --v-r: 12px;
    --v-r-lg: 16px;
    --v-r-xl: 20px;
    --v-r-full: 9999px;

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

    /* Motion */
    --v-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --v-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --v-fast: 0.15s;
    --v-med: 0.3s;
    --v-slow: 0.5s;

    /* Shadows */
    --v-sh-card: 0 2px 16px rgba(0,0,0,0.3);
    --v-sh-lift: 0 8px 32px rgba(0,0,0,0.5);
    --v-sh-glow: 0 0 24px var(--v-gold-glow);
    --v-sh-ambient: 0 0 120px 40px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--v-bg-4) var(--v-bg-0);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--v-bg-0);
    color: var(--v-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--v-gold-light); text-decoration: none; transition: color var(--v-fast) var(--v-ease); }
a:hover { color: var(--v-text); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--v-bg-0); }
::-webkit-scrollbar-thumb { background: var(--v-bg-4); border-radius: 3px; }

/* ========================================
   App Shell Layout (Sidebar + Content)
   ======================================== */
.v-app {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.v-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--v-sidebar-w);
    background: var(--v-bg-1);
    border-right: 1px solid var(--v-line);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width var(--v-med) var(--v-ease);
    overflow: hidden;
}

.v-sidebar:hover,
.v-sidebar.is-open {
    width: var(--v-sidebar-w-open);
}

/* Logo */
.v-sidebar-logo {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 var(--v-5);
    gap: var(--v-3);
    border-bottom: 1px solid var(--v-line);
    flex-shrink: 0;
    text-decoration: none;
}

.v-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--v-r-sm);
    background: linear-gradient(135deg, var(--v-gold) 0%, var(--v-gold-dim) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v-logo-mark svg {
    width: 16px;
    height: 16px;
    fill: var(--v-bg-0);
}

.v-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--v-med) var(--v-ease);
}

.v-sidebar:hover .v-logo-text,
.v-sidebar.is-open .v-logo-text {
    opacity: 1;
}

/* Nav items */
.v-sidebar-nav {
    flex: 1;
    padding: var(--v-4) var(--v-3);
    display: flex;
    flex-direction: column;
    gap: var(--v-1);
    overflow-y: auto;
    overflow-x: hidden;
}

.v-nav-item {
    display: flex;
    align-items: center;
    gap: var(--v-3);
    padding: var(--v-3) var(--v-3);
    border-radius: var(--v-r-sm);
    color: var(--v-text-3);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--v-fast) var(--v-ease);
    text-decoration: none;
    min-height: 40px;
}

.v-nav-item:hover {
    color: var(--v-text);
    background: var(--v-bg-3);
}

.v-nav-item.active {
    color: var(--v-gold);
    background: var(--v-gold-bg);
}

.v-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.v-nav-label {
    opacity: 0;
    transition: opacity var(--v-med) var(--v-ease);
}

.v-sidebar:hover .v-nav-label,
.v-sidebar.is-open .v-nav-label {
    opacity: 1;
}

.v-nav-divider {
    height: 1px;
    background: var(--v-line);
    margin: var(--v-3) var(--v-3);
}

/* Sidebar search */
.v-sidebar-search {
    padding: var(--v-3);
    border-top: 1px solid var(--v-line);
    flex-shrink: 0;
}

.v-sidebar-search form {
    position: relative;
}

.v-sidebar-search input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--v-line);
    border-radius: var(--v-r-full);
    background: var(--v-bg-3);
    color: var(--v-text);
    font-size: 0.8125rem;
    padding: 0 var(--v-3) 0 36px;
    outline: none;
    opacity: 0;
    transition: all var(--v-med) var(--v-ease);
}

.v-sidebar:hover .v-sidebar-search input,
.v-sidebar.is-open .v-sidebar-search input {
    opacity: 1;
}

.v-sidebar-search input::placeholder { color: var(--v-text-3); }
.v-sidebar-search input:focus { border-color: var(--v-gold-dim); }

.v-sidebar-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--v-text-3);
    pointer-events: none;
}

/* Hidden on mobile — we use bottom bar + top bar instead */
@media (max-width: 767px) {
    .v-sidebar {
        display: none;
    }
}

/* ========================================
   Mobile Top Bar
   ======================================== */
.v-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 100;
    background: rgba(9,9,11,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--v-line);
    align-items: center;
    padding: 0 var(--v-4);
    gap: var(--v-3);
}

.v-topbar-logo {
    display: flex;
    align-items: center;
    gap: var(--v-2);
    text-decoration: none;
}

.v-topbar-logo .v-logo-mark {
    width: 28px;
    height: 28px;
}

.v-topbar-logo .v-logo-mark svg { width: 14px; height: 14px; }

.v-topbar-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--v-text);
}

.v-topbar-actions {
    margin-left: auto;
    display: flex;
    gap: var(--v-2);
}

.v-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--v-r-full);
    color: var(--v-text-2);
    transition: all var(--v-fast) var(--v-ease);
}

.v-icon-btn:hover {
    background: var(--v-bg-3);
    color: var(--v-text);
}

.v-icon-btn svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
    .v-topbar { display: flex; }
}

/* ========================================
   Mobile Bottom Bar
   ======================================== */
.v-bottombar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 100;
    background: rgba(9,9,11,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--v-line);
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
}

.v-bottombar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--v-text-3);
    font-size: 0.5625rem;
    font-weight: 500;
    padding: var(--v-1);
    text-decoration: none;
}

.v-bottombar a.active { color: var(--v-gold); }
.v-bottombar a svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
    .v-bottombar { display: flex; }
}

/* ========================================
   Content Area
   ======================================== */
.v-content {
    flex: 1;
    margin-left: var(--v-sidebar-w);
    min-width: 0;
    min-height: 100vh;
    padding: var(--v-6) var(--v-8) var(--v-16);
}

@media (max-width: 767px) {
    .v-content {
        margin-left: 0;
        padding: calc(56px + var(--v-4)) var(--v-4) calc(52px + var(--v-8));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .v-content {
        padding: var(--v-6) var(--v-6) var(--v-12);
    }
}

@media (min-width: 1440px) {
    .v-content {
        padding: var(--v-8) var(--v-12) var(--v-16);
    }
}

/* ========================================
   Mobile Search Overlay
   ======================================== */
.v-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(9,9,11,0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--v-10) var(--v-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--v-med) var(--v-ease);
}

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

.v-search-overlay form {
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(-16px);
    transition: transform var(--v-med) var(--v-spring);
}

.v-search-overlay.is-open form {
    transform: translateY(0);
}

.v-search-overlay input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--v-line-2);
    border-radius: var(--v-r);
    background: var(--v-bg-2);
    color: var(--v-text);
    font-size: 1rem;
    padding: 0 48px 0 48px;
    outline: none;
}

.v-search-overlay input:focus {
    border-color: var(--v-gold-dim);
    box-shadow: 0 0 0 3px var(--v-gold-glow);
}

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

.v-search-overlay .s-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v-text-3);
    pointer-events: none;
}

.v-search-overlay .s-icon svg { width: 18px; height: 18px; }

.v-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--v-r-sm);
    color: var(--v-text-3);
}

.v-search-close svg { width: 18px; height: 18px; }

/* ========================================
   Section
   ======================================== */
.v-section {
    margin-bottom: var(--v-10);
}

.v-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--v-5);
}

.v-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--v-text);
}

.v-section-title small {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--v-text-3);
    margin-left: var(--v-2);
}

.v-section-more {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--v-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.v-section-more:hover { color: var(--v-gold-light); }
.v-section-more svg { width: 14px; height: 14px; }

/* ========================================
   Asymmetric Grid (Editorial)
   ======================================== */
.v-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--v-3);
}

@media (min-width: 480px) {
    .v-grid {
        gap: var(--v-4);
    }
}

@media (min-width: 540px) {
    .v-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .v-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .v-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--v-5);
    }
}

/* Editorial asymmetric: first item spans 2 cols on large screens */
.v-grid--editorial .v-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 900px) {
    .v-grid--editorial .v-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .v-grid--editorial .v-card:first-child .v-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
}

/* ========================================
   Horizontal Scroll (Collection Row)
   ======================================== */
.v-hscroll {
    display: flex;
    gap: var(--v-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--v-2);
}

.v-hscroll::-webkit-scrollbar { display: none; }

.v-hscroll .v-card {
    flex: 0 0 45%;
    scroll-snap-align: start;
}

@media (min-width: 540px) {
    .v-hscroll .v-card { flex: 0 0 30%; }
}

@media (min-width: 900px) {
    .v-hscroll .v-card { flex: 0 0 22%; }
}

@media (min-width: 1200px) {
    .v-hscroll .v-card { flex: 0 0 18%; }
}

/* ========================================
   Video Card
   ======================================== */
.v-card {
    position: relative;
    border-radius: var(--v-r);
    overflow: hidden;
    background: var(--v-bg-2);
    transition: transform var(--v-med) var(--v-ease), box-shadow var(--v-med) var(--v-ease);
}

.v-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--v-sh-lift);
}

/* Thumbnail */
.v-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--v-bg-0);
}

.v-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--v-slow) var(--v-ease), filter var(--v-med) var(--v-ease);
}

.v-card:hover .v-card-thumb img {
    transform: scale(1.06);
}

/* Gradient overlay on thumb */
.v-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,9,11,0.7) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--v-med) var(--v-ease);
}

.v-card:hover .v-card-thumb::after {
    opacity: 1;
}

/* Play pulse */
.v-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--v-med) var(--v-ease);
}

.v-card:hover .v-card-play {
    opacity: 1;
}

.v-play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212,168,83,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.7);
    transition: transform var(--v-med) var(--v-spring);
    box-shadow: 0 0 24px rgba(212,168,83,0.4);
}

.v-card:hover .v-play-circle {
    transform: scale(1);
}

.v-play-circle svg {
    width: 20px;
    height: 20px;
    fill: var(--v-bg-0);
    margin-left: 2px;
}

/* Duration pill */
.v-card-dur {
    position: absolute;
    bottom: var(--v-2);
    right: var(--v-2);
    z-index: 3;
    padding: 2px 7px;
    border-radius: var(--v-r-xs);
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

/* Stat badges top-left */
.v-card-badges {
    position: absolute;
    top: var(--v-2);
    left: var(--v-2);
    z-index: 3;
    display: flex;
    gap: 4px;
}

.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: var(--v-r-xs);
    background: rgba(0,0,0,0.7);
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.v-badge svg { width: 10px; height: 10px; opacity: 0.75; }
.v-badge--gold { color: var(--v-gold-light); }

/* Quick preview button (appears on hover) */
.v-card-peek {
    position: absolute;
    bottom: var(--v-2);
    left: var(--v-2);
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: var(--v-r-sm);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(4px);
    transition: all var(--v-med) var(--v-ease);
    cursor: pointer;
    border: none;
}

.v-card:hover .v-card-peek {
    opacity: 1;
    transform: translateY(0);
}

.v-card-peek:hover {
    background: var(--v-gold);
    color: var(--v-bg-0);
}

.v-card-peek svg { width: 14px; height: 14px; }

/* Info */
.v-card-info {
    padding: var(--v-3);
}

.v-card-title {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--v-text);
}

.v-card-title a { color: inherit; }
.v-card-title a:hover { color: var(--v-gold-light); }

.v-card-sub {
    margin-top: var(--v-1);
    font-size: 0.6875rem;
    color: var(--v-text-3);
    display: flex;
    align-items: center;
    gap: var(--v-2);
}

.v-card-sub svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ========================================
   Quick Preview Modal
   ======================================== */
.v-peek-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--v-med) var(--v-ease);
}

.v-peek-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.v-peek-box {
    width: 90%;
    max-width: 600px;
    background: var(--v-bg-2);
    border-radius: var(--v-r-lg);
    border: 1px solid var(--v-line-2);
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    transition: transform var(--v-med) var(--v-spring);
}

.v-peek-modal.is-open .v-peek-box {
    transform: scale(1) translateY(0);
}

.v-peek-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--v-bg-0);
}

.v-peek-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-peek-body {
    padding: var(--v-5);
}

.v-peek-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--v-2);
}

.v-peek-meta {
    display: flex;
    gap: var(--v-4);
    font-size: 0.8125rem;
    color: var(--v-text-2);
    margin-bottom: var(--v-4);
}

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

.v-peek-meta svg { width: 14px; height: 14px; }

.v-peek-actions {
    display: flex;
    gap: var(--v-3);
}

.v-peek-close {
    position: absolute;
    top: var(--v-3);
    right: var(--v-3);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: var(--v-r-full);
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.v-peek-close svg { width: 16px; height: 16px; }

/* ========================================
   Spotlight (Hero/Featured)
   ======================================== */
.v-spotlight {
    position: relative;
    border-radius: var(--v-r-xl);
    overflow: hidden;
    margin-bottom: var(--v-10);
    aspect-ratio: 2.5 / 1;
    background: var(--v-bg-2);
}

@media (max-width: 767px) {
    .v-spotlight {
        aspect-ratio: 16 / 9;
        border-radius: var(--v-r);
    }
}

.v-spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-spotlight-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(9,9,11,0.9) 0%, rgba(9,9,11,0.4) 50%, transparent 100%),
        linear-gradient(to top, rgba(9,9,11,0.8) 0%, transparent 40%);
}

.v-spotlight-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--v-8);
}

@media (max-width: 767px) {
    .v-spotlight-content {
        padding: var(--v-5);
    }
}

.v-spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: var(--v-2);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--v-gold);
    margin-bottom: var(--v-3);
}

.v-spotlight-label svg { width: 14px; height: 14px; }

.v-spotlight-title {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 560px;
    margin-bottom: var(--v-3);
}

.v-spotlight-title a { color: #fff; }

.v-spotlight-meta {
    display: flex;
    gap: var(--v-4);
    font-size: 0.8125rem;
    color: var(--v-text-2);
    margin-bottom: var(--v-5);
}

.v-spotlight-meta span { display: flex; align-items: center; gap: 4px; }
.v-spotlight-meta svg { width: 14px; height: 14px; }

.v-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: var(--v-2);
    padding: var(--v-3) var(--v-6);
    border-radius: var(--v-r-full);
    background: linear-gradient(135deg, var(--v-gold) 0%, var(--v-gold-dim) 100%);
    color: var(--v-bg-0);
    font-size: 0.875rem;
    font-weight: 700;
    width: fit-content;
    transition: all var(--v-med) var(--v-ease);
    text-decoration: none;
}

.v-btn-gold:hover {
    color: var(--v-bg-0);
    box-shadow: var(--v-sh-glow);
    transform: translateY(-1px);
}

.v-btn-gold svg { width: 16px; height: 16px; fill: currentColor; }

/* ========================================
   Tag Chips Row
   ======================================== */
.v-chips {
    display: flex;
    gap: var(--v-2);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--v-8);
    padding-bottom: var(--v-1);
}

.v-chips::-webkit-scrollbar { display: none; }

.v-chip {
    flex-shrink: 0;
    padding: 6px var(--v-4);
    border-radius: var(--v-r-full);
    border: 1px solid var(--v-line);
    background: transparent;
    color: var(--v-text-2);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--v-fast) var(--v-ease);
    text-decoration: none;
}

.v-chip:hover {
    border-color: var(--v-gold-dim);
    color: var(--v-gold-light);
    background: var(--v-gold-bg);
}

.v-chip.active {
    background: var(--v-gold);
    border-color: var(--v-gold);
    color: var(--v-bg-0);
    font-weight: 600;
}

/* ========================================
   Single Page: Two-column Layout
   ======================================== */
.v-single-layout {
    display: flex;
    flex-direction: column;
    gap: var(--v-6);
}

@media (min-width: 900px) {
    .v-single-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: var(--v-8);
        align-items: start;
    }
}

@media (min-width: 1200px) {
    .v-single-layout {
        grid-template-columns: 1fr 340px;
    }
}

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

/* Sidebar (desktop only) */
.v-single-aside {
    display: none;
}

@media (min-width: 900px) {
    .v-single-aside {
        display: flex;
        flex-direction: column;
        gap: var(--v-5);
        position: sticky;
        top: var(--v-6);
    }
}

/* Hide mobile-only stars on desktop */
@media (min-width: 900px) {
    .v-detail-section--mobile-stars {
        display: none;
    }
}

/* Hide mobile download on desktop */
.v-mobile-download {
    display: block;
    margin-bottom: var(--v-5);
}

@media (min-width: 900px) {
    .v-mobile-download {
        display: none;
    }
}

/* ========================================
   Single: Ambient Player
   ======================================== */
.v-player-zone {
    position: relative;
    margin-bottom: var(--v-5);
}

.v-ambient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px) saturate(1.8);
    opacity: 0.3;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.v-player-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--v-r-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.v-player-frame iframe,
.v-player-frame video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

/* ========================================
   Single: Title
   ======================================== */
.v-detail-title {
    font-size: clamp(1.125rem, 2.5vw, 1.625rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--v-3);
}

/* ========================================
   Single: Meta Bar (horizontal chips)
   ======================================== */
.v-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--v-2);
    margin-bottom: var(--v-5);
}

.v-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px var(--v-3);
    border-radius: var(--v-r-full);
    background: var(--v-bg-3);
    border: 1px solid var(--v-line);
    font-size: 0.8125rem;
    color: var(--v-text-2);
    line-height: 1;
}

.v-meta-chip svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.v-meta-chip--rating {
    gap: 4px;
}

/* Rating bar (mini inline) */
.v-rating-bar {
    display: inline-block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--v-bg-4);
    overflow: hidden;
    vertical-align: middle;
    margin-left: 2px;
}

.v-rating-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--v-gold-dim), var(--v-gold));
}

/* ========================================
   Single: Detail Sections
   ======================================== */
.v-detail-section {
    margin-bottom: var(--v-5);
    padding-top: var(--v-4);
    border-top: 1px solid var(--v-line);
}

.v-detail-section-title {
    display: flex;
    align-items: center;
    gap: var(--v-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--v-3);
}

.v-detail-section-title svg {
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

/* Description */
.v-desc {
    margin-bottom: var(--v-5);
}

.v-desc-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--v-text-2);
    max-height: 4.95em;
    overflow: hidden;
    transition: max-height var(--v-slow) var(--v-ease);
}

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

.v-desc-toggle {
    margin-top: var(--v-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v-gold);
    background: none;
    border: none;
    cursor: pointer;
}

/* ========================================
   Single: Aside Cards
   ======================================== */
.v-aside-card {
    background: var(--v-bg-2);
    border: 1px solid var(--v-line);
    border-radius: var(--v-r);
    padding: var(--v-5);
}

.v-aside-card--download {
    background: var(--v-bg-3);
    border-color: var(--v-gold-dim);
    border-style: dashed;
}

.v-aside-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--v-text-3);
    margin-bottom: var(--v-4);
}

/* Info list */
.v-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.v-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v-3) 0;
    border-bottom: 1px solid var(--v-line);
    font-size: 0.8125rem;
}

.v-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.v-info-list li:first-child {
    padding-top: 0;
}

.v-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--v-text-3);
}

.v-info-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.v-info-value {
    font-weight: 600;
    color: var(--v-text);
}

.v-info-value--rating {
    display: flex;
    align-items: center;
    gap: var(--v-2);
}

.v-info-value--rating .v-rating-bar {
    width: 48px;
    height: 5px;
}

/* Full-width gold button */
.v-btn-gold--block {
    width: 100%;
    justify-content: center;
    padding: var(--v-3) var(--v-5);
}

/* Tags */
.v-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v-2);
    margin-bottom: var(--v-6);
}

.v-tag {
    padding: var(--v-1) var(--v-3);
    border-radius: var(--v-r-full);
    border: 1px solid var(--v-line);
    background: transparent;
    color: var(--v-text-2);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--v-fast) var(--v-ease);
}

.v-tag:hover {
    border-color: var(--v-gold-dim);
    color: var(--v-gold-light);
    background: var(--v-gold-bg);
}

/* Stars row */
.v-stars-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v-3);
    margin-bottom: var(--v-6);
}

.v-star-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--v-2);
    padding: var(--v-1) var(--v-3) var(--v-1) var(--v-1);
    border-radius: var(--v-r-full);
    border: 1px solid var(--v-line);
    background: var(--v-bg-3);
    text-decoration: none;
    transition: all var(--v-fast) var(--v-ease);
}

.v-star-pill:hover {
    border-color: var(--v-gold-dim);
    background: var(--v-gold-bg);
}

.v-star-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--v-bg-0);
}

.v-star-pill-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--v-bg-4);
}

.v-star-pill span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--v-text-2);
}

.v-star-pill:hover span { color: var(--v-gold-light); }

/* Related */
.v-related {
    margin-top: var(--v-10);
    padding-top: var(--v-8);
    border-top: 1px solid var(--v-line);
}

/* ========================================
   Carousel (from plugin)
   ======================================== */
.v-carousel-wrap {
    margin-bottom: var(--v-6);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.v-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--v-2);
    font-size: 0.8125rem;
    color: var(--v-text-3);
    margin-bottom: var(--v-5);
}

.v-breadcrumbs a { color: var(--v-text-2); }
.v-breadcrumbs a:hover { color: var(--v-gold-light); }
.v-breadcrumbs .sep { opacity: 0.35; }

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

.v-pagination a,
.v-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--v-3);
    border-radius: var(--v-r-sm);
    border: 1px solid var(--v-line);
    background: transparent;
    color: var(--v-text-2);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--v-fast) var(--v-ease);
}

.v-pagination a:hover {
    border-color: var(--v-gold-dim);
    color: var(--v-gold-light);
}

.v-pagination .current {
    background: var(--v-gold);
    border-color: var(--v-gold);
    color: var(--v-bg-0);
    font-weight: 700;
}

/* ========================================
   Archive & Page Headers
   ======================================== */
.v-page-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--v-6);
}

.v-archive-head {
    margin-bottom: var(--v-8);
    padding-bottom: var(--v-6);
    border-bottom: 1px solid var(--v-line);
}

.v-archive-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--v-2);
}

.v-archive-desc {
    font-size: 0.9375rem;
    color: var(--v-text-2);
    max-width: 600px;
}

/* Star archive header */
.v-star-head {
    display: flex;
    align-items: center;
    gap: var(--v-6);
    margin-bottom: var(--v-8);
    padding-bottom: var(--v-6);
    border-bottom: 1px solid var(--v-line);
}

.v-star-head-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--v-gold-dim);
    flex-shrink: 0;
    box-shadow: var(--v-sh-glow);
}

/* ========================================
   Term Grids (Stars, Categories pages)
   ======================================== */
.v-term-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--v-4);
}

@media (min-width: 540px) { .v-term-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .v-term-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .v-term-grid { grid-template-columns: repeat(5, 1fr); } }

.v-term-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--v-3);
    padding: var(--v-6) var(--v-4);
    border-radius: var(--v-r);
    border: 1px solid var(--v-line);
    background: var(--v-bg-2);
    text-align: center;
    text-decoration: none;
    transition: all var(--v-med) var(--v-ease);
}

.v-term-card:hover {
    border-color: var(--v-gold-dim);
    box-shadow: var(--v-sh-glow);
    transform: translateY(-2px);
}

.v-term-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--v-bg-4);
    border: 2px solid var(--v-line);
}

.v-term-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--v-text);
}

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

/* Tag cloud */
.v-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v-2);
}

.v-tag-cloud .v-tag {
    font-size: 0.8125rem;
    padding: var(--v-2) var(--v-4);
}

/* ========================================
   404
   ======================================== */
.v-404 {
    text-align: center;
    padding: var(--v-16) 0;
}

.v-404-num {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: var(--v-gold);
    opacity: 0.25;
    margin-bottom: var(--v-4);
}

.v-404-text {
    font-size: 1.125rem;
    color: var(--v-text-2);
    margin-bottom: var(--v-8);
}

/* ========================================
   Footer
   ======================================== */
.v-footer {
    border-top: 1px solid var(--v-line);
    padding: var(--v-8) 0 var(--v-6);
    margin-top: var(--v-10);
}

.v-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--v-6);
}

.v-footer-brand p {
    font-size: 0.8125rem;
    color: var(--v-text-3);
    margin-top: var(--v-3);
    max-width: 320px;
    line-height: 1.6;
}

.v-footer-copy {
    font-size: 0.75rem;
    color: var(--v-text-3);
    padding-top: var(--v-5);
    border-top: 1px solid var(--v-line);
    margin-top: var(--v-6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--v-3);
}

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

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

.v-animate { animation: v-fade-in var(--v-slow) var(--v-ease) both; }

/* ========================================
   Mobile Overrides (<768px)
   ======================================== */
@media (max-width: 767px) {
    /* Card: slightly smaller radius on mobile */
    .v-card {
        border-radius: var(--v-r-sm);
    }

    /* Card info: tighter on small screens */
    .v-card-info {
        padding: var(--v-2) var(--v-2) var(--v-3);
    }

    .v-card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .v-card-sub {
        font-size: 0.625rem;
    }

    /* Duration & badges smaller */
    .v-card-dur {
        padding: 1px 5px;
        font-size: 0.625rem;
    }

    .v-badge {
        padding: 1px 4px;
        font-size: 0.5625rem;
    }

    .v-badge svg { width: 8px; height: 8px; }

    /* Peek button hidden on mobile (touch preview instead) */
    .v-card-peek {
        display: none;
    }

    /* Play circle smaller */
    .v-play-circle {
        width: 36px;
        height: 36px;
    }

    .v-play-circle svg {
        width: 16px;
        height: 16px;
    }

    /* Section titles */
    .v-section-title {
        font-size: 1.125rem;
    }

    .v-section-title small {
        display: none;
    }

    .v-section {
        margin-bottom: var(--v-6);
    }

    /* Spotlight hero */
    .v-spotlight {
        border-radius: var(--v-r-sm);
        margin-bottom: var(--v-6);
    }

    .v-spotlight-content {
        padding: var(--v-4);
    }

    .v-spotlight-label {
        font-size: 0.5625rem;
        margin-bottom: var(--v-2);
    }

    .v-spotlight-meta {
        font-size: 0.75rem;
        gap: var(--v-3);
        margin-bottom: var(--v-3);
    }

    .v-btn-gold {
        padding: var(--v-2) var(--v-4);
        font-size: 0.8125rem;
    }

    /* Chips smaller */
    .v-chip {
        padding: 5px var(--v-3);
        font-size: 0.75rem;
    }

    .v-chips {
        margin-bottom: var(--v-5);
    }

    /* Horizontal scroll: slightly wider cards */
    .v-hscroll .v-card {
        flex: 0 0 42%;
    }

    /* Single page: player edge-to-edge */
    .v-player-zone {
        margin-left: calc(-1 * var(--v-4));
        margin-right: calc(-1 * var(--v-4));
        margin-bottom: var(--v-4);
    }

    .v-player-frame {
        border-radius: 0;
        box-shadow: none;
    }

    .v-ambient {
        display: none;
    }

    /* Single page title */
    .v-detail-title {
        font-size: 1.0625rem;
        margin-bottom: var(--v-2);
    }

    /* Meta bar */
    .v-meta-bar {
        gap: var(--v-1);
        margin-bottom: var(--v-4);
    }

    .v-meta-chip {
        padding: 4px var(--v-2);
        font-size: 0.6875rem;
        gap: 3px;
    }

    .v-meta-chip svg {
        width: 12px;
        height: 12px;
    }

    .v-rating-bar {
        width: 32px;
        height: 3px;
    }

    /* Mobile download button */
    .v-mobile-download {
        margin-bottom: var(--v-4);
    }

    .v-btn-gold--block {
        padding: var(--v-3) var(--v-4);
        font-size: 0.875rem;
    }

    /* Description */
    .v-desc {
        margin-bottom: var(--v-4);
    }

    .v-desc-body {
        font-size: 0.875rem;
        max-height: 3.9em;
    }

    /* Detail sections */
    .v-detail-section {
        margin-bottom: var(--v-4);
        padding-top: var(--v-3);
    }

    .v-detail-section-title {
        font-size: 0.6875rem;
        margin-bottom: var(--v-2);
    }

    /* Tags & stars */
    .v-tag {
        font-size: 0.6875rem;
    }

    .v-star-pill span {
        font-size: 0.75rem;
    }

    .v-stars-row {
        gap: var(--v-2);
    }

    /* Page titles */
    .v-page-title {
        font-size: 1.375rem;
        margin-bottom: var(--v-4);
    }

    .v-archive-title {
        font-size: 1.125rem;
    }

    /* Star header */
    .v-star-head {
        gap: var(--v-4);
        margin-bottom: var(--v-5);
        padding-bottom: var(--v-4);
    }

    .v-star-head-avatar {
        width: 64px;
        height: 64px;
    }

    /* Term grid: tighter */
    .v-term-grid {
        gap: var(--v-3);
    }

    .v-term-card {
        padding: var(--v-4) var(--v-3);
    }

    .v-term-avatar {
        width: 44px;
        height: 44px;
    }

    .v-term-name {
        font-size: 0.8125rem;
    }

    /* Related section */
    .v-related {
        margin-top: var(--v-6);
        padding-top: var(--v-5);
    }

    /* Pagination */
    .v-pagination {
        margin-top: var(--v-6);
    }

    .v-pagination a,
    .v-pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    /* Breadcrumbs */
    .v-breadcrumbs {
        font-size: 0.75rem;
        margin-bottom: var(--v-3);
    }

    /* Footer */
    .v-footer {
        padding: var(--v-5) 0;
        margin-top: var(--v-6);
    }

    .v-footer-copy {
        font-size: 0.6875rem;
    }

    /* 404 */
    .v-404 {
        padding: var(--v-10) 0;
    }

    /* Peek modal: full width on mobile */
    .v-peek-box {
        width: 95%;
        border-radius: var(--v-r);
    }

    .v-peek-body {
        padding: var(--v-4);
    }

    .v-peek-title {
        font-size: 0.9375rem;
    }

    .v-peek-meta {
        font-size: 0.75rem;
    }
}

/* ========================================
   Small phones (<380px)
   ======================================== */
@media (max-width: 379px) {
    .v-grid {
        grid-template-columns: 1fr;
        gap: var(--v-3);
    }

    .v-hscroll .v-card {
        flex: 0 0 75%;
    }

    .v-card-title {
        font-size: 0.8125rem;
    }
}
