/*
Theme Name: VideoTube Apijav
Theme URI: https://apijav.com
Author: apijav
Author URI: https://apijav.com
Description: Professional WordPress video streaming theme with advanced taxonomies, HLS player, and mobile-first design.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: videotube-pro
Tags: video,streaming,entertainment,responsive,mobile-friendly
*/

/* ================================================================
   GOOGLE FONTS
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ================================================================
   DESIGN TOKENS
================================================================ */
:root {
  /* ── Brand ── */
  --primary:        #ff4458;
  --primary-dark:   #d4293e;
  --primary-glow:   rgba(255,68,88,.15);
  --primary-soft:   rgba(255,68,88,.08);

  /* ── Backgrounds — deep blue-tinted dark ── */
  --bg:             #060610;
  --bg-card:        #0e0e1a;
  --bg-elevated:    #141428;
  --bg-header:      #08081a;
  --bg-surface:     rgba(255,255,255,.03);

  /* ── Borders ── */
  --border:         rgba(255,255,255,.08);
  --border-hover:   rgba(255,255,255,.14);
  --border-accent:  rgba(255,68,88,.12);

  /* ── Text ── */
  --txt:            #e8e8f0;
  --txt-muted:      #6b7080;
  --txt-dim:        #4a4e5c;

  /* ── Spacing scale ── */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;

  /* ── Radius ── */
  --radius:     8px;
  --radius-sm:  6px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 999px;

  /* ── Transitions ── */
  --transition:      0.25s ease;
  --transition-fast: 0.15s ease;
  --transition-slow: 0.4s ease;

  /* ── Shadows ── */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.6);
  --shadow-glow: 0 0 24px rgba(255,68,88,.2);

  /* ── Z-index scale ── */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-header:    900;
  --z-overlay:   1000;
  --z-modal:     1100;
  --z-toast:     1200;
  --z-mob-nav:   1300;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ================================================================
   UTILITIES
================================================================ */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--sp-lg); }

.btn-primary {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: var(--primary); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: .02em;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,68,88,.35);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: var(--bg-surface); color: var(--txt);
  border: 1px solid var(--border);
  padding: 10px 22px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.section-title {
  font-size: 1.25rem; font-weight: 800;
  padding-bottom: 10px; position: relative; display: inline-block;
  letter-spacing: -.01em;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(255,68,88,.3));
  border-radius: 2px;
}

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; gap: var(--sp-md);
}

.view-all-link {
  font-size: 12px; color: var(--txt-muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.view-all-link:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-soft);
}

.home-section { margin-bottom: var(--sp-2xl); }

.no-results { text-align: center; padding: 80px 20px; }
.no-results i { font-size: 4rem; color: var(--txt-dim); margin-bottom: 20px; }
.no-results h2 { font-size: 1.5rem; margin-bottom: 10px; }
.no-results p { color: var(--txt-muted); margin-bottom: 24px; }

.page-hero-simple { padding: 32px 0 24px; }
.page-hero-simple h1 { font-size: 2rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.page-hero-simple h1 i { color: var(--primary); }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(8,8,26,.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
/* Subtle gradient accent line under header */
.site-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: .3;
}

.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.site-logo {
  display: flex; align-items: center; gap: var(--sp-sm);
  font-size: 1.3rem; font-weight: 800; color: var(--primary); flex-shrink: 0;
}
.site-logo i { font-size: 1.6rem; }
.site-logo:hover { color: var(--primary); opacity: .9; }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img.custom-logo {
  max-height: 44px; max-width: 180px; width: auto; height: auto;
  object-fit: contain; display: block;
}

/* ── Primary Nav ── */
.primary-nav { flex: 1; }
#primary-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
#primary-menu li { position: relative; }
#primary-menu li a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a,
#primary-menu li.current-menu-parent > a {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Dropdown caret */
#primary-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  opacity: .6;
  transition: transform .2s;
}
#primary-menu li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Sub-menu panel */
#primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 200px;
  background: rgba(14,14,26,.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  list-style: none; margin: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
#primary-menu li.menu-item-has-children:hover > .sub-menu,
#primary-menu li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
#primary-menu .sub-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}
#primary-menu .sub-menu li a:hover { background: var(--primary-soft); color: var(--primary); }

/* ── Header Search ── */
.header-search {
  display: flex; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 0 4px 0 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.header-search:focus-within {
  border-color: rgba(255,68,88,.3);
  box-shadow: 0 0 16px rgba(255,68,88,.1);
  background: rgba(255,255,255,.05);
}
.header-search input[type="search"] {
  background: none; border: none; outline: none;
  color: var(--txt); font-size: 14px; padding: 8px 8px;
  width: 200px; transition: width var(--transition);
}
.header-search:focus-within input[type="search"] { width: 260px; }
.header-search input::placeholder { color: var(--txt-dim); }
.header-search button {
  background: none; border: none; color: var(--txt-muted);
  padding: 8px; font-size: 14px;
  transition: color var(--transition-fast);
}
.header-search button:hover { color: var(--primary); }

/* ── Header Right ── */
.header-right { display: flex; align-items: center; gap: 12px; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
  cursor: pointer; width: 36px; z-index: calc(var(--z-header) + 1);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(8,8,26,.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-md);
    box-shadow: var(--shadow-lg);
    animation: vtSlideDown .25s ease;
  }
  .primary-nav.open #primary-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav.open #primary-menu .sub-menu {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    background: rgba(255,255,255,.02); border: none; box-shadow: none;
    padding: 4px 0 4px 16px; backdrop-filter: none;
  }
}
@media (max-width: 560px) { .header-search { display: none; } }

/* ================================================================
   HERO CAROUSEL
================================================================ */
.vt-hero-carousel {
  position: relative;
  height: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  margin-bottom: var(--sp-xl);
}
.vt-hero-slides {
  display: flex; width: 100%; height: 100%;
  transition: transform .65s cubic-bezier(.25,.46,.45,.94);
}
.vt-hero-slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  position: relative;
}

/* Multi-layer gradient */
.vt-hero-slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(6,6,16,.9) 0%, rgba(6,6,16,.3) 60%),
    linear-gradient(to top, rgba(6,6,16,.95) 0%, transparent 50%);
  display: flex; align-items: flex-end;
  padding: 40px 48px;
}

.vt-hero-content { max-width: 560px; }

.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: var(--radius-full); margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(255,68,88,.4);
}
.hero-label .hero-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: vt-pulse-dot 1.6s ease-in-out infinite;
}

.vt-hero-content h2 {
  font-size: 2.4rem; font-weight: 900; line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.85);
}
.hero-meta span i { font-size: 10px; }

.hero-play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700; border: none;
  box-shadow: 0 8px 28px rgba(255,68,88,.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.hero-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,68,88,.5);
  background: var(--primary-dark); color: #fff;
}

/* Access badge on hero */
.vt-hero-access-badge {
  position: absolute; top: 20px; left: 24px;
  z-index: 3;
}

/* ── Hero arrows ── */
.vt-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.vt-hero-arrow:hover {
  background: rgba(255,68,88,.2);
  border-color: rgba(255,68,88,.3);
}
.vt-hero-arrow.prev { left: 16px; }
.vt-hero-arrow.next { right: 16px; }

/* ── Hero dots ── */
.vt-hero-dots {
  position: absolute; bottom: 20px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--radius-full);
  z-index: 10;
}
.vt-hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.3);
  border: none; cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.vt-hero-dot.active {
  width: 24px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(255,68,88,.5);
}

/* Hero counter */
.vt-hero-counter {
  position: absolute; top: 20px; right: 24px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
  z-index: 3; letter-spacing: .05em;
}

/* ================================================================
   VIDEO GRID
================================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.video-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.video-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.video-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1200px) { .video-grid.cols-5, .video-grid.cols-6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .video-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 680px)  { .video-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 420px)  { .video-grid { grid-template-columns: 1fr !important; } }

/* ================================================================
   VIDEO CARD — Signature style preserved with refined touches
================================================================ */
.video-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  isolation: isolate;
  border: 1px solid var(--border);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,68,88,.15);
  border-color: rgba(255,68,88,.2);
}
.video-card-inner { display: block; }

/* Thumbnail */
.video-thumbnail {
  position: relative; padding-bottom: 56.25%;
  overflow: hidden; background: #0e0e1a;
  border-radius: 12px 12px 0 0;
}
.video-thumbnail::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0e0e1a 25%, #1a1a2e 50%, #0e0e1a 75%);
  background-size: 200% 100%;
  animation: vt-shimmer 1.4s infinite;
  transition: opacity .3s;
}
.video-thumbnail img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transition: transform .5s ease;
  display: block;
}
.video-thumbnail img.loaded { animation: none; }
.video-card:hover .video-thumbnail img { transform: scale(1.08); will-change: transform; }

.video-thumbnail-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-thumbnail-placeholder i { font-size: 3rem; color: var(--txt-dim); }

/* Play overlay */
.video-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.video-overlay i {
  font-size: 3.2rem; color: #fff;
  filter: drop-shadow(0 0 12px rgba(255,68,88,.6));
  transition: transform .2s;
}
.video-card:hover .video-overlay { opacity: 1; }
.video-card:hover .video-overlay i { transform: scale(1.1); }

/* Bottom badge row */
.video-bottom-badges {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; pointer-events: none;
}

/* Content-type labels */
.vt-content-labels { display: contents; }
.vt-cl-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px;
  white-space: nowrap; line-height: 1.5;
  pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.vt-cl-uncensored { background: rgba(231,76,60,.92);  color: #fff; box-shadow: 0 1px 6px rgba(231,76,60,.5); }
.vt-cl-engsub     { background: rgba(39,174,96,.92);  color: #fff; box-shadow: 0 1px 6px rgba(39,174,96,.5); }
.vt-cl-unleak     { background: rgba(243,156,18,.92); color: #fff; box-shadow: 0 1px 6px rgba(243,156,18,.5); }
.vt-cl-unengsub   { background: rgba(142,68,173,.92); color: #fff; box-shadow: 0 1px 6px rgba(142,68,173,.5); }

/* Duration badge */
.video-bottom-badges .video-duration { margin-left: auto; flex-shrink: 0; }
.video-duration {
  background: rgba(0,0,0,.88); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-sm);
  pointer-events: none; letter-spacing: .02em; white-space: nowrap;
}

/* Quality badge */
.video-quality-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: .06em;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(255,68,88,.4);
}

/* Video info */
.video-info { padding: 14px 14px 16px; }
.video-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.45;
  margin-bottom: 10px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--txt);
}
.video-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--txt-muted); margin-bottom: 5px;
}
.video-studio, .video-views { display: flex; align-items: center; gap: 4px; }
.video-studio i, .video-views i { color: var(--primary); font-size: 10px; }
.video-date { font-size: 11px; color: var(--txt-muted); opacity: .7; }

@keyframes vt-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ================================================================
   TRENDING TABS
================================================================ */
.trending-tabs-wrap { margin-bottom: 20px; }
.trending-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
}
.trending-tab {
  background: none; border: none; color: var(--txt-muted);
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.trending-tab:hover { color: var(--txt); }
.trending-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ================================================================
   CHANNELS STRIP
================================================================ */
.channels-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.channel-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  min-width: 160px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.channel-chip:hover { border-color: var(--primary); box-shadow: 0 0 16px rgba(255,68,88,.08); }

.channel-chip-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.channel-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel-chip-avatar span { color: #fff; font-weight: 700; font-size: 14px; }
.channel-chip-info strong { display: block; font-size: 13px; font-weight: 700; }
.channel-chip-info small { font-size: 11px; color: var(--txt-muted); }

/* ================================================================
   PILLS / TAGS
================================================================ */
.pill-list { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.pill {
  background: rgba(255,255,255,.04); color: var(--txt-muted);
  padding: 5px 14px; border-radius: var(--radius-xl);
  font-size: 13px;
  transition: background var(--transition), color var(--transition);
}
.pill:hover { background: var(--primary-soft); color: var(--primary); }
.pill--tag { background: var(--primary-soft); color: var(--primary); }
.pill--tag:hover { background: var(--primary); color: #fff; }

/* ================================================================
   TAXONOMY HERO
================================================================ */
.tax-hero {
  min-height: 280px;
  background: var(--bg-card); background-size: cover; background-position: center;
  position: relative; margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tax-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6,6,16,.9) 0%, rgba(6,6,16,.4) 100%);
  display: flex; align-items: center; padding: 40px 0;
}
.tax-hero-inner { display: flex; align-items: center; gap: var(--sp-lg); }

.tax-actor-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary); flex-shrink: 0;
  box-shadow: 0 0 24px rgba(255,68,88,.3);
}
.tax-type-label {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; margin-bottom: 8px;
}
.tax-hero-text h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.tax-meta { font-size: 14px; color: rgba(255,255,255,.65); display: flex; gap: 16px; }
.tax-description { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.6); max-width: 600px; }

/* ================================================================
   SORT BAR / ARCHIVE CONTROLS
================================================================ */
.archive-controls { margin-bottom: var(--sp-lg); }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { font-size: 13px; color: var(--txt-muted); }
.sort-form select {
  background: var(--bg-card); color: var(--txt);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 12px; font-size: 13px; cursor: pointer;
  transition: border-color var(--transition);
}
.sort-form select:focus { border-color: var(--primary); outline: none; }
.archive-sort-bar { display: flex; align-items: center; }

/* ================================================================
   TERMS GRID
================================================================ */
.terms-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.terms-grid--actors { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.term-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.term-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.term-card-thumb {
  height: 140px; background: var(--bg-elevated);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.term-card-thumb i { font-size: 3rem; color: rgba(255,255,255,.1); }

.term-card-avatar {
  width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 20px auto 0;
}
.term-card-avatar--round { border-radius: 50%; }
.term-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.term-card-avatar span { color: #fff; font-size: 1.5rem; font-weight: 700; }
.term-card-avatar.has-img { background: var(--bg-surface); }

.term-card-info { padding: 14px; text-align: center; }
.term-card-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.term-card-info p { font-size: 12px; color: var(--txt-muted); margin-bottom: 4px; }
.term-card-info span { font-size: 12px; color: var(--txt-muted); }

/* Tags cloud page */
.tags-cloud-page { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
.tag-cloud-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 6px 16px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.tag-cloud-item:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tag-cloud-item sup { font-size: 10px; margin-left: 3px; color: var(--txt-muted); }

/* ================================================================
   VIDEO PLAYER
================================================================ */
.video-player-section { background: #000; width: 100%; }
.video-player-section .vt-player-wrap { max-width: 1100px; margin: 0 auto; }
@media (max-width: 768px) { .video-player-section .container { padding-left: 0; padding-right: 0; } }

.vt-player-wrap { position: relative; width: 100%; background: #000; }

/* Embed wrap */
.vt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.vt-embed-wrap iframe,
.vt-embed-wrap object,
.vt-embed-wrap embed { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Poster / click-to-play */
.vt-poster {
  position: relative; padding-bottom: 56.25%; background: #000 center/cover no-repeat;
  cursor: pointer; overflow: hidden; border-radius: 12px;
}
.vt-poster-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}
.vt-big-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.55); border: none;
  width: 72px; height: 72px; border-radius: 50%;
  z-index: 10;
  transition: transform .2s ease, opacity .2s, background .2s;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
  display: flex; align-items: center; justify-content: center;
}
.vt-big-play-btn svg { width: 32px; height: 32px; }
.vt-big-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--primary);
}
.vt-poster:hover .vt-big-play-btn { opacity: .95; }

/* Video container */
.vt-video-container { width: 100%; border-radius: 12px; overflow: hidden; }
.vt-video-el {
  width: 100%; display: block; max-height: 75vh;
  background: #000; object-fit: contain; border-radius: 12px;
}

/* No source */
.vt-no-source { text-align: center; padding: 60px 20px; color: var(--txt-muted); }
.vt-no-source i { font-size: 3rem; margin-bottom: 12px; display: block; }

@media (max-width: 768px) {
  .video-player-section .vt-player-wrap { max-width: 100%; }
  .vt-big-play-btn { width: 56px; height: 56px; }
  .vt-video-el { max-height: 55vw; }
  .vt-poster, .vt-poster-img, .vt-video-container, .vt-video-el { border-radius: 0; }
  .video-player-section { margin-bottom: 0; }
  .single-video-container { padding: 14px 0 32px; }
  .video-single-title { font-size: 1.15rem; margin-bottom: 10px; text-align: center; }
  .video-stat-row { gap: 8px; font-size: 12px; margin-bottom: 12px; justify-content: center; }
  .video-actions { gap: 8px; margin-bottom: 16px; justify-content: center; }
  .vt-action-btn { padding: 8px 14px; font-size: 12px; }
  .video-description { padding: 14px; }
  .sidebar-box { padding: 14px; }
}

/* ================================================================
   SINGLE VIDEO PAGE LAYOUT
================================================================ */
.svp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-lg);
  padding-top: var(--sp-md);
  padding-bottom: 0;
  align-items: start;
}
@media (max-width: 1100px) { .svp-layout { grid-template-columns: 1fr 300px; } }
@media (max-width: 900px)  { .svp-layout { grid-template-columns: 1fr; } }

/* Player wrap */
.svp-player-wrap { border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 0; }

/* Title bar */
.svp-title-bar {
  display: flex; align-items: flex-start; justify-content: flex-start;
  gap: 12px; flex-wrap: wrap; margin: 14px 0 10px;
}
.svp-title {
  font-size: 1.35rem; font-weight: 800; line-height: 1.3;
  flex: 1; min-width: 0;
  text-transform: uppercase; letter-spacing: .02em;
}

/* Studios strip */
.svp-studios-strip { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-bottom: 14px; }
.svp-studio-badge {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 12px 5px 6px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--txt); flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.svp-studio-badge:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: 0 0 12px rgba(255,68,88,.1);
}
.svp-studio-avatar {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--primary); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.svp-studio-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Action bar */
.svp-action-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 10px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.svp-action-left { display: flex; align-items: center; gap: var(--sp-sm); }
.svp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--txt);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.svp-btn:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: 0 0 10px rgba(255,68,88,.08);
}
.svp-btn--like.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.svp-btn-count {
  background: rgba(255,255,255,.1); padding: 1px 7px;
  border-radius: 10px; font-size: 11px; font-weight: 800;
}
.svp-btn--like:not(.active) .svp-btn-count { background: var(--bg-elevated); color: var(--txt-muted); }

/* Share wrap */
.svp-share-wrap { position: relative; }
.svp-share-dropdown {
  display: none; position: absolute;
  top: calc(100% + 6px); left: 0;
  background: rgba(14,14,26,.95); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  z-index: var(--z-dropdown); min-width: 180px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.svp-share-dropdown.open { display: block; }
.svp-share-dropdown button,
.svp-share-dropdown a {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; border-radius: 4px;
  font-size: 12px; border: none; background: none;
  color: var(--txt); cursor: pointer;
  transition: background var(--transition-fast);
  text-decoration: none; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.svp-share-dropdown button:hover,
.svp-share-dropdown a:hover { background: var(--primary-soft); color: var(--primary); }

/* Stats row */
.svp-stats-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.svp-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--txt-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.svp-stat i { color: var(--primary); font-size: 11px; }
.svp-stat strong { color: var(--primary); font-weight: 800; }
.svp-stat em { font-style: normal; }
.svp-quality {
  background: var(--primary); color: #fff;
  padding: 2px 8px; border-radius: 3px;
  font-size: 11px; font-weight: 900; letter-spacing: .06em;
}

/* Actor chips strip */
.svp-actors-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.svp-actor-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 14px 6px 6px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 160px;
}
.svp-actor-chip:hover { border-color: var(--primary); box-shadow: 0 0 12px rgba(255,68,88,.08); }
.svp-actor-chip__avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.svp-actor-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.svp-actor-chip__avatar span { color: #fff; font-weight: 800; font-size: 13px; }
.svp-actor-chip__info strong { display: block; font-size: 13px; font-weight: 700; }
.svp-actor-chip__info small { font-size: 11px; color: var(--txt-muted); }

/* Taxonomy pills */
.svp-taxonomy-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.svp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.svp-pill--cat {
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid rgba(255,68,88,.2);
}
.svp-pill--cat:hover {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(255,68,88,.3);
}
.svp-pill--tag {
  background: var(--bg-surface); color: var(--txt-muted);
  border: 1px solid var(--border);
}
.svp-pill--tag:hover { border-color: var(--primary); color: var(--primary); }

/* Description */
.svp-description {
  background: var(--bg-surface); border-radius: var(--radius);
  padding: var(--sp-md); margin-bottom: 20px;
  border: 1px solid var(--border);
}
.svp-description__body { font-size: 13px; color: var(--txt-muted); line-height: 1.7; }
.svp-description__body.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.svp-read-more {
  background: none; border: none; color: var(--primary);
  font-size: 12px; font-weight: 700; padding: 6px 0 0;
  cursor: pointer; display: block; text-transform: uppercase; letter-spacing: .05em;
}

/* ================================================================
   SIDEBAR — Related Videos
================================================================ */
.svp-sidebar {
  position: sticky; top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.svp-sidebar::-webkit-scrollbar { width: 4px; }
.svp-sidebar::-webkit-scrollbar-track { background: transparent; }
.svp-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.svp-sidebar__header { margin-bottom: 12px; }
.svp-section-label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* Related list items */
.svp-related-list { display: flex; flex-direction: column; gap: 2px; }
.svp-related-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 6px; border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  text-decoration: none; color: var(--txt);
}
.svp-related-item:hover { background: var(--bg-surface); }
.svp-related-item:hover .svp-related-title { color: var(--primary); }
.svp-related-thumb {
  position: relative; width: 120px; height: 72px;
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-elevated);
}
.svp-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svp-related-thumb__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-muted); font-size: 1.5rem;
}
.svp-related-dur {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,.85); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
}
.svp-related-info { flex: 1; min-width: 0; }
.svp-related-title {
  font-size: 12px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 4px; transition: color var(--transition-fast);
}
.svp-related-studio {
  display: block; font-size: 10px; color: var(--primary);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  margin-bottom: 3px;
}
.svp-related-views { font-size: 10px; color: var(--txt-muted); }
.svp-related-views i { color: var(--primary); }

/* ================================================================
   ACTOR SECTION — below player+sidebar
================================================================ */
.svp-actor-section { padding: 32px 0 16px; }
.svp-actor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-lg); }
.svp-actor-nav-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 16px 8px 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 160px;
}
.svp-actor-nav-item:hover { border-color: var(--primary); box-shadow: 0 0 12px rgba(255,68,88,.08); }
.svp-actor-nav-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; background: var(--primary); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.svp-actor-nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.svp-actor-nav-avatar span { color: #fff; font-weight: 800; font-size: 14px; }
.svp-actor-nav-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--txt); }
.svp-actor-nav-info small { font-size: 11px; color: var(--txt-muted); }

/* Per-actor grids wrapper */
.svp-actor-grids { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
@media (max-width: 860px) { .svp-actor-grids { grid-template-columns: 1fr; } }

.svp-actor-grid-block {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.svp-actor-grid-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary-soft); border-bottom: 1px solid var(--border);
}
.svp-actor-grid-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--txt-muted);
}
.svp-actor-grid-label em { font-style: normal; color: var(--primary); }
.svp-view-all-link {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .05em;
  transition: opacity var(--transition-fast);
}
.svp-view-all-link:hover { opacity: .75; }

/* Actor video list */
.svp-actor-grid-list { display: flex; flex-direction: column; }
.svp-actor-video-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--txt);
  transition: background var(--transition-fast);
}
.svp-actor-video-item:last-child { border-bottom: none; }
.svp-actor-video-item:hover { background: rgba(255,255,255,.03); }
.svp-actor-video-item:hover .svp-actor-video-title { color: var(--primary); }
.svp-actor-video-item.is-current { background: var(--primary-soft); border-left: 3px solid var(--primary); }
.svp-actor-video-thumb {
  position: relative; width: 140px; height: 84px;
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-card);
}
.svp-actor-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svp-actor-video-info { flex: 1; min-width: 0; }
.svp-actor-video-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 5px;
  transition: color var(--transition-fast);
}

/* Comments wrap */
.svp-comments-wrap { padding: 24px 0 48px; }

/* SVP Mobile */
@media (max-width: 900px) {
  .svp-layout { grid-template-columns: 1fr; padding-top: 8px; }
  .svp-sidebar { position: static; max-height: none; overflow: visible; }
  .svp-title { font-size: 1.1rem; }
  .svp-actor-grids { grid-template-columns: 1fr; }
  .svp-action-bar { flex-direction: column; align-items: flex-start; }
  .svp-stats-row { gap: 10px; }
  .svp-actor-video-thumb { width: 100px; height: 60px; }
}
@media (max-width: 768px) {
  .svp-title-bar { justify-content: center; text-align: center; }
  .svp-title { text-align: center; }
  .svp-action-bar { align-items: center; }
  .svp-action-left { justify-content: center; width: 100%; }
  .svp-stats-row { justify-content: center; width: 100%; }
  .svp-studios-strip { justify-content: center; }
  .svp-actors-strip { justify-content: center; }
}

/* ================================================================
   BREADCRUMBS
================================================================ */
.vt-breadcrumb { margin-bottom: 14px; }
.vt-breadcrumb__list {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  list-style: none; margin: 0;
  padding: 8px 14px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); width: fit-content; max-width: 100%;
  font-size: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vt-breadcrumb__item { display: flex; align-items: center; gap: 0; }
.vt-breadcrumb__link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--txt-muted); text-decoration: none;
  padding: 2px 8px; border-radius: var(--radius-xl);
  transition: background var(--transition-fast), color var(--transition-fast);
  font-weight: 500; white-space: nowrap;
}
.vt-breadcrumb__link:hover { background: var(--primary); color: #fff; }
.vt-breadcrumb__link i { font-size: 11px; }
.vt-breadcrumb__sep { color: var(--txt-dim); font-size: 9px; padding: 0 2px; flex-shrink: 0; }
.vt-breadcrumb__current {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary); font-weight: 600;
  padding: 2px 8px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.breadcrumbs-bar { padding: 10px 0 4px; }
.breadcrumbs-bar .vt-breadcrumb { margin-bottom: 0; }
@media (max-width: 768px) { .breadcrumbs-bar { display: none; } }

/* ================================================================
   PAGINATION
================================================================ */
.vt-pagination { margin: 40px 0 20px; display: flex; justify-content: center; }
.vt-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.vt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--txt-muted); text-decoration: none;
  border-radius: var(--radius); font-size: .9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.vt-pagination .page-numbers:hover,
.vt-pagination .page-numbers.current {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(255,68,88,.3);
}
.vt-pagination .page-numbers.dots { background: transparent; pointer-events: none; border-color: transparent; }

.vt-load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; background: var(--bg-card);
  border: 2px solid var(--border); color: var(--txt);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color var(--transition), color var(--transition);
}
.vt-load-more-btn:hover { border-color: var(--primary); color: var(--primary); }
.vt-load-more-btn.loading { opacity: .6; cursor: wait; }

.vt-total-count { font-size: .85rem; color: var(--txt-muted); align-self: center; }
.vt-empty-msg { text-align: center; padding: 48px 0; color: var(--txt-muted); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--bg-header) 0%, rgba(6,6,16,.95) 100%);
  border-top: 1px solid var(--border); padding: 52px 0 28px;
  margin-top: var(--sp-2xl);
  position: relative;
}
/* Subtle accent line at top */
.site-footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: .2;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-logo { margin-bottom: 10px; }
.footer-brand { font-size: 13px; color: var(--txt-muted); }

.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.social-link:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(255,68,88,.3);
}

.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--txt-muted); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--txt-muted); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-stats { display: flex; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--txt-muted); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 12px; color: var(--txt-muted);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-menu { display: flex; gap: 16px; }
.footer-menu a { color: var(--txt-muted); font-size: 12px; }
.footer-menu a:hover { color: var(--primary); }

/* Footer nav list */
.footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-nav-list li { margin-bottom: 8px; }
.footer-nav-list li a { font-size: 13px; color: var(--txt-muted); }
.footer-nav-list li a:hover { color: var(--primary); }

/* VideoTube Widgets */
.vt-widget-list { list-style: none; margin: 0; padding: 0; }
.vt-widget-item { margin-bottom: 12px; }
.vt-widget-item a { display: flex; gap: 10px; align-items: center; color: var(--txt); text-decoration: none; }
.vt-widget-item a:hover .vt-widget-title { color: var(--primary); }
.vt-widget-item img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.vt-widget-info { flex: 1; min-width: 0; }
.vt-widget-title { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-widget-meta { display: block; font-size: 11px; color: var(--txt-muted); margin-top: 2px; }
.vt-widget-meta i { margin-right: 3px; }
.vt-widget-tax-list { list-style: none; margin: 0; padding: 0; }
.vt-widget-tax-list li { margin-bottom: 8px; }
.vt-widget-tax-list li a { font-size: 13px; color: var(--txt-muted); display: flex; justify-content: space-between; }
.vt-widget-tax-list li a:hover { color: var(--primary); }
.vt-widget-tax-list li a span { opacity: .6; }
.vt-widget-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-tag-pill {
  display: inline-block; padding: 4px 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); font-size: 12px; color: var(--txt-muted);
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.vt-tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ================================================================
   PAGE - SINGLE (generic)
================================================================ */
.entry-content {
  background: var(--bg-card); padding: 32px; border-radius: var(--radius);
  line-height: 1.8; border: 1px solid var(--border);
}
.entry-title { font-size: 2rem; font-weight: 800; margin: 24px 0 20px; }

/* ================================================================
   ERROR 404
================================================================ */
.error-404-page { text-align: center; padding: 100px 20px; }
.error-404-num { font-size: 10rem; font-weight: 900; color: var(--primary); line-height: 1; opacity: .15; }
.error-404-page h1 { font-size: 2rem; margin-bottom: 12px; }
.error-404-page p { color: var(--txt-muted); margin-bottom: 28px; }

/* ================================================================
   COMMENTS
================================================================ */
.video-comments-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.vt-comments { max-width: 760px; }
.vt-comments-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.vt-comments-title i { color: var(--primary); }

.vt-comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.vt-comment-item { margin-bottom: 16px; }
.vt-comment-inner { display: flex; gap: 12px; }
.vt-comment-avatar img { border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; }
.vt-comment-body {
  flex: 1; background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 16px; border: 1px solid var(--border);
}
.vt-comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.vt-comment-author { font-size: 13px; font-weight: 700; }
.vt-comment-date { font-size: 11px; color: var(--txt-muted); }
.vt-comment-pending { font-size: 12px; color: var(--txt-muted); font-style: italic; margin-bottom: 6px; }
.vt-comment-text { font-size: 14px; line-height: 1.65; color: var(--txt); }
.vt-comment-text p { margin: 0; }
.vt-comment-reply { margin-top: 8px; }
.comment-reply-link { font-size: 12px; color: var(--primary); font-weight: 600; }

/* Comment form */
.vt-comment-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.vt-comment-form-title i { color: var(--primary); }
.vt-comment-form .comment-notes,
.vt-comment-form p.logged-in-as { font-size: 12px; color: var(--txt-muted); margin-bottom: 12px; }
.vt-comment-form .comment-form-comment { margin: 0; }
.vt-field-wrap { margin-bottom: 14px; }
.vt-textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--txt); border-radius: var(--radius); padding: 12px 14px;
  font: inherit; font-size: 14px; resize: vertical;
  min-height: 90px; max-height: 220px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.vt-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 12px rgba(255,68,88,.1); }

.vt-comment-form .comment-form-author,
.vt-comment-form .comment-form-email { margin-bottom: 12px; }
.vt-comment-form input[type="text"],
.vt-comment-form input[type="email"] {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--txt); border-radius: var(--radius); padding: 10px 14px;
  font: inherit; font-size: 14px; box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vt-comment-form input[type="text"]:focus,
.vt-comment-form input[type="email"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255,68,88,.1);
}

.vt-submit-wrap { display: flex; align-items: center; gap: 12px; }
.vt-submit-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.vt-submit-btn:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(255,68,88,.3); }

@media (max-width: 600px) {
  .vt-comment-inner { gap: 8px; }
  .vt-comment-avatar img { width: 32px; height: 32px; }
  .vt-comment-body { padding: 10px 12px; }
  .vt-comment-form-title { justify-content: center; }
  .vt-comment-form p.logged-in-as,
  .vt-comment-form .comment-notes { text-align: center; }
  .vt-submit-wrap { justify-content: center; }
}

/* ================================================================
   BACK TO TOP
================================================================ */
#vt-back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--z-overlay);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(255,68,88,.4);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
#vt-back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#vt-back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
@media (max-width: 768px) {
  #vt-back-top { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px); right: 12px; width: 38px; height: 38px; font-size: 15px; }
}

/* ================================================================
   TOAST NOTIFICATION
================================================================ */
#vt-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(14,14,26,.95); color: var(--txt);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  white-space: nowrap; z-index: var(--z-toast);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: var(--shadow-lg);
}
#vt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   MINI PIP PLAYER
================================================================ */
.vt-pip-wrap {
  position: fixed; bottom: 24px; left: 24px; z-index: 1050;
  width: 300px; border-radius: 10px; overflow: hidden;
  background: #000; box-shadow: 0 8px 32px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(.97);
  transition: opacity .3s ease, transform .3s ease;
}
.vt-pip-wrap.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.vt-pip-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-header); padding: 6px 10px;
}
.vt-pip-bar span { font-size: 11px; color: var(--txt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.vt-pip-close {
  background: none; border: none; color: var(--txt-muted);
  font-size: 16px; line-height: 1; padding: 0 2px; flex-shrink: 0;
}
.vt-pip-close:hover { color: #fff; }
.vt-pip-video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; }
.vt-pip-video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.vt-pip-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
@media (max-width: 480px) { .vt-pip-wrap { width: calc(100vw - 32px); left: 16px; bottom: 16px; } }

/* ================================================================
   HEADER USER MENU
================================================================ */
.header-user-menu { position: relative; }
.header-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 4px 12px 4px 4px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  color: var(--txt); font-size: 14px; font-weight: 600;
}
.header-user-btn:hover {
  border-color: rgba(255,68,88,.3);
  background: var(--primary-soft);
  box-shadow: 0 0 12px rgba(255,68,88,.08);
}
.header-user-btn img { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }
.header-user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-sub-badge {
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: var(--radius-full);
  letter-spacing: .5px;
}
.header-user-caret { font-size: 11px; color: var(--txt-muted); transition: transform .2s; }
.header-user-menu.open .header-user-caret { transform: rotate(180deg); }

.header-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(14,14,26,.95); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 240px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .2s, transform .2s;
  z-index: 9999; overflow: hidden;
}
.header-user-menu.open .header-user-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }

.header-user-dropdown-top {
  display: flex; gap: 12px; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.header-user-dropdown-top img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; }
.header-user-dropdown-top strong { display: block; font-size: 14px; margin-bottom: 2px; }
.header-user-dropdown-top small { display: block; color: var(--txt-muted); font-size: 12px; word-break: break-all; }
.hud-pro-tag { display: inline-block; margin-top: 4px; font-size: 11px; color: #2ecc71; font-weight: 700; }

.header-user-dropdown-links { padding: 8px 0; }
.header-user-dropdown-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--txt);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.header-user-dropdown-links a:hover { background: var(--primary-soft); color: var(--primary); }
.header-user-dropdown-links a i { width: 16px; text-align: center; color: var(--txt-muted); }
.hud-upgrade-link { color: #f39c12 !important; }
.hud-upgrade-link i { color: #f39c12 !important; }
.hud-signout { border-top: 1px solid var(--border); margin-top: 4px; }
.hud-signout:hover { color: #ff5e5e !important; }

/* Header auth links (logged out) */
.header-auth-links { display: flex; align-items: center; gap: 10px; }
.header-login-btn {
  font-size: 14px; font-weight: 600; color: var(--txt);
  padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.header-login-btn:hover { border-color: var(--primary); color: var(--primary); }
.header-subscribe-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff !important;
  font-size: 14px; font-weight: 700;
  padding: 7px 16px; border-radius: var(--radius);
  transition: background .2s, box-shadow .2s;
}
.header-subscribe-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(255,68,88,.3);
}
@media (max-width: 640px) {
  .header-user-name, .header-sub-badge { display: none; }
  .header-auth-links .header-login-btn { display: none; }
}

/* ================================================================
   FREE / PRO THUMBNAIL BADGES
================================================================ */
.vt-access-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  padding: 3px 9px; border-radius: 5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  line-height: 1.4; pointer-events: none;
}
.vt-badge-free { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.vt-badge-premium { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.vt-badge-premium i { font-size: 9px; }

/* Badge sizes in sidebar/actor thumbs */
.svp-related-thumb .vt-content-labels,
.svp-actor-video-thumb .vt-content-labels { display: contents; }
.svp-related-thumb .video-bottom-badges,
.svp-actor-video-thumb .video-bottom-badges {
  position: absolute; bottom: 5px; left: 5px; right: 5px;
  display: flex; align-items: center; gap: 3px;
  flex-wrap: wrap; pointer-events: none; z-index: 3;
}
.svp-related-thumb .vt-cl-badge,
.svp-actor-video-thumb .vt-cl-badge { font-size: 7px; padding: 2px 5px; border-radius: 4px; }
.svp-related-thumb .video-bottom-badges .video-duration,
.svp-actor-video-thumb .video-bottom-badges .video-duration { font-size: 9px; padding: 1px 5px; margin-left: auto; }
.svp-related-thumb .vt-access-badge,
.svp-actor-video-thumb .vt-access-badge { font-size: 9px; padding: 2px 6px; border-radius: 4px; gap: 3px; }

@media (max-width: 600px) {
  .vt-access-badge { font-size: 9px; padding: 2px 6px; letter-spacing: .3px; }
  .svp-related-thumb .vt-access-badge,
  .svp-actor-video-thumb .vt-access-badge { font-size: 8px; padding: 2px 5px; }
}

/* ================================================================
   MOBILE BOTTOM NAV
================================================================ */
.vt-mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(8,8,26,.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--border);
  z-index: var(--z-mob-nav);
  padding: 0 4px env(safe-area-inset-bottom, 0);
  justify-content: space-around; align-items: stretch;
}
@media (max-width: 768px) {
  .vt-mob-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  .hamburger { display: none !important; }
  .header-search { display: none; }
}

.vt-mob-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; padding: 10px 4px 8px;
  font-size: 10px; font-weight: 600; color: var(--txt-muted);
  background: none; border: none; cursor: pointer;
  text-decoration: none; transition: color var(--transition-fast);
  letter-spacing: .3px; text-transform: uppercase;
  min-height: 56px;
}
.vt-mob-nav-item i { font-size: 20px; margin-bottom: 2px; }
.vt-mob-nav-item.active,
.vt-mob-nav-item:hover { color: var(--primary); }
.vt-mob-search-btn { background: none; }

/* Mobile Search Overlay */
.vt-mob-search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(8,8,26,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 2000; flex-direction: column;
}
.vt-mob-search-overlay.open { display: flex; }
.vt-mob-search-inner { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.vt-mob-search-form {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 12px;
}
.vt-mob-search-form input[type=search] {
  flex: 1; background: none; border: none; outline: none;
  color: var(--txt); font-size: 16px; padding: 10px 0;
}
.vt-mob-search-form button {
  background: none; border: none; color: var(--txt-muted);
  font-size: 16px; padding: 6px; cursor: pointer;
}
#vt-mob-search-close { color: var(--txt-muted); font-size: 18px; }

/* More Sheet */
.vt-mob-more-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 1400;
}
.vt-mob-more-backdrop.open { display: block; }
.vt-mob-more-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(14,14,26,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border); z-index: 1500;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  max-height: 85vh; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
.vt-mob-more-sheet.open { transform: translateY(0); }
.vt-mob-more-handle {
  width: 40px; height: 4px; background: var(--border-hover);
  border-radius: 2px; margin: 12px auto 0;
}
.vt-mob-more-close {
  position: absolute; top: 12px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--txt-muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  z-index: 10;
}
.vt-mob-more-close:hover {
  background: var(--primary-soft); color: var(--primary);
  border-color: var(--primary);
}

.vt-mob-more-content { padding: 16px; }
.vt-mob-more-profile {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 0 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.vt-mob-more-profile img { border-radius: 50%; width: 52px; height: 52px; }
.vt-mob-more-profile strong { display: block; font-size: 15px; margin-bottom: 2px; }
.vt-mob-more-profile small { color: var(--txt-muted); font-size: 12px; }
.vt-mob-pro-badge { display: inline-block; font-size: 11px; color: #2ecc71; font-weight: 700; margin-top: 3px; }

.vt-mob-more-links { display: flex; flex-direction: column; gap: 2px; }
.vt-mob-more-links > a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: var(--radius);
  font-size: 15px; color: var(--txt);
  transition: background var(--transition-fast); text-decoration: none;
}
.vt-mob-more-links > a:hover { background: var(--primary-soft); }
.vt-mob-more-links > a > i { width: 20px; text-align: center; color: var(--txt-muted); font-size: 16px; }
.vt-mob-upgrade { color: #f39c12 !important; }
.vt-mob-upgrade i { color: #f39c12 !important; }
.vt-mob-signout { color: #ff5e5e !important; border-top: 1px solid var(--border); margin-top: 8px !important; padding-top: 16px !important; }

/* Mobile nav tree */
.vt-mob-nav-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.vt-mob-tree-item { border-radius: var(--radius); overflow: hidden; }
.vt-mob-tree-item > a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: var(--radius);
  font-size: 15px; color: var(--txt);
  transition: background var(--transition-fast); text-decoration: none; width: 100%;
}
.vt-mob-tree-item > a:hover { background: var(--primary-soft); }
.vt-mob-tree-icon { width: 16px; text-align: center; color: var(--txt-muted); font-size: 10px; flex-shrink: 0; }

.vt-mob-tree-trigger {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 12px;
  background: none; border: none; color: var(--txt);
  font-size: 15px; text-align: left; cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}
.vt-mob-tree-trigger:hover { background: var(--primary-soft); }
.vt-mob-tree-trigger span { flex: 1; }
.vt-mob-tree-caret { font-size: 12px; color: var(--txt-muted); transition: transform .25s; flex-shrink: 0; }
.vt-mob-tree-trigger[aria-expanded="true"] .vt-mob-tree-caret { transform: rotate(180deg); }
.vt-mob-tree-trigger[aria-expanded="true"] { background: rgba(255,255,255,.03); }

.vt-mob-sub {
  list-style: none; margin: 0;
  padding: 2px 0 6px 32px;
  border-left: 2px solid var(--primary);
  margin-left: 22px; display: none;
}
.vt-mob-sub.open { display: block; }
.vt-mob-sub-link {
  display: block; padding: 9px 12px;
  font-size: 13px; color: var(--txt-muted);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.vt-mob-sub-link:hover { background: var(--primary-soft); color: var(--txt); }
.vt-mob-sub-active { color: var(--primary) !important; font-weight: 600; }

/* Favorite button */
.svp-btn--fav { color: var(--txt-muted); }
.svp-btn--fav:hover { color: #e74c3c; }
.svp-btn--fav.is-fav { color: #e74c3c; }
.svp-btn--fav.is-fav i { animation: vt-fav-pop .3s ease; }

/* ================================================================
   AD MANAGER STYLES
================================================================ */
.vt-ad-banner {
  width: 100%; display: flex; justify-content: center; align-items: center;
  overflow: hidden; background: transparent; box-sizing: border-box;
}
.vt-ad-banner > * { max-width: 100%; display: block; box-sizing: border-box; }

@media (max-width: 767px) {
  .vt-ad-banner iframe[width="728"],
  .vt-ad-banner > div[style*="width: 728"],
  .vt-ad-banner > div[style*="width:728"] {
    transform-origin: top left;
    transform: scaleX(calc(100vw / 728));
    width: 728px !important;
  }
  .vt-ad-banner iframe[width="468"],
  .vt-ad-banner > div[style*="width: 468"],
  .vt-ad-banner > div[style*="width:468"] {
    transform-origin: top left;
    transform: scaleX(calc(100vw / 468));
    width: 468px !important;
  }
  .vt-ad-banner iframe { max-width: 100vw; }
}

.vt-ad-header { margin: 0 0 16px; padding: 6px 0; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.vt-ad-home-top { margin: 12px 0 20px; border-radius: var(--radius); overflow: hidden; }
.vt-ad-below-player { margin: 16px 0; border-radius: var(--radius); overflow: hidden; }
.vt-ad-sidebar { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; width: 100%; }
.vt-ad-taxonomy,
.vt-ad-search { margin: 12px 0 20px; border-radius: var(--radius); overflow: hidden; }
.vt-ad-footer { margin: 24px 0 0; padding: 12px 0; border-top: 1px solid var(--border); background: var(--bg-card); }

/* Native in-grid ad card */
.vt-native-ad-card { display: flex; flex-direction: column; }
.vt-native-ad-inner {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; cursor: default;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card);
}
.vt-native-ad-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--bg-card);
  display: flex; align-items: stretch; justify-content: center;
}
.vt-native-ad-content {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vt-native-ad-content > *,
.vt-native-ad-content iframe,
.vt-native-ad-content img,
.vt-native-ad-content ins {
  width: 100% !important; height: 100% !important;
  max-width: 100% !important; border: 0;
  object-fit: cover; display: block;
}
.vt-native-ad-label {
  position: absolute; top: 6px; left: 8px;
  background: rgba(0,0,0,.72); color: #bbb;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 2px 7px;
  border-radius: 3px; z-index: 3; pointer-events: none;
}

@media (max-width: 640px) {
  .vt-ad-header, .vt-ad-footer { padding: 4px 0; }
  .vt-native-ad-thumb { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
}

/* ================================================================
   SPLIDE SLIDER — Homepage sections
================================================================ */
.vt-home-slider { position: relative; margin: 0 -8px; }
.vt-home-slider::before,
.vt-home-slider::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 48px; pointer-events: none; z-index: 4;
}
.vt-home-slider::before { left: 0; background: linear-gradient(to right, var(--bg) 0%, transparent 100%); }
.vt-home-slider::after { right: 0; background: linear-gradient(to left, var(--bg) 0%, transparent 100%); }

.vt-home-slider .splide__track { overflow: hidden; padding: 8px 0 36px; }
.vt-home-slider .splide__list { display: flex; align-items: stretch; }
.vt-slide-item { flex-shrink: 0; padding: 0 8px; box-sizing: border-box; }
.vt-slide-item .video-card {
  width: 100%; margin: 0; border-radius: 10px; overflow: hidden;
  transition: transform .3s cubic-bezier(.25,1,.5,1), box-shadow .3s ease;
}
.vt-slide-item .video-card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 18px 52px rgba(0,0,0,.7), 0 0 0 1px rgba(255,68,88,.22);
  z-index: 5; position: relative;
}

/* Slider progress bar */
.vt-slider-progress {
  position: absolute; bottom: 10px; left: 8px; right: 8px;
  height: 2px; background: rgba(255,255,255,.05);
  border-radius: 2px; overflow: hidden; z-index: 5;
}
.vt-slider-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), #ff8c5a);
  border-radius: 2px; width: 0%;
  transition: width .44s cubic-bezier(.25,1,.5,1);
  box-shadow: 0 0 6px rgba(255,68,88,.5);
}

/* Slider arrow buttons */
.vt-home-slider .splide__arrows {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 10;
}
.vt-home-slider .splide__arrow {
  pointer-events: all; position: absolute;
  top: calc(56.25% / 2); transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; opacity: 0;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.vt-home-slider:hover .splide__arrow { opacity: 1; }
.vt-home-slider .splide__arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.2); }
.vt-home-slider .splide__arrow:disabled { opacity: 0 !important; pointer-events: none; }
.vt-home-slider .splide__arrow svg {
  fill: #fff; width: 22px; height: 22px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.9)) drop-shadow(0 2px 8px rgba(0,0,0,.8));
}
.vt-home-slider .splide__arrow--prev { left: 4px; transform: translateY(-50%) scaleX(-1); }
.vt-home-slider .splide__arrow--prev:hover { transform: translateY(-50%) scaleX(-1) scale(1.2); }
.vt-home-slider .splide__arrow--next { right: 4px; }

@media (max-width: 768px) {
  .vt-home-slider { margin: 0; }
  .vt-home-slider::before, .vt-home-slider::after { width: 20px; }
  .vt-home-slider .splide__arrow { opacity: 1; width: 28px; height: 28px; background: transparent; }
  .vt-home-slider .splide__arrow svg { width: 18px; height: 18px; filter: drop-shadow(0 0 5px rgba(0,0,0,1)) drop-shadow(0 2px 6px rgba(0,0,0,1)); }
  .vt-home-slider .splide__arrow--prev { left: 2px; }
  .vt-home-slider .splide__arrow--next { right: 2px; }
  .vt-slide-item { padding: 0 5px; }
  .vt-slide-item .video-title { font-size: 12px; -webkit-line-clamp: 2; }
  .vt-slide-item .video-info { padding: 10px 10px 12px; }
  .vt-slide-item .video-meta { font-size: 10px; }
  .vt-slide-item .video-date { font-size: 10px; }
  .vt-slide-item .video-duration { font-size: 10px; padding: 2px 6px; }
  .vt-slide-item .video-quality-badge { font-size: 9px; padding: 2px 6px; }
  .vt-slide-item .vt-access-badge { font-size: 9px; padding: 2px 7px; }
  .vt-cl-badge { font-size: 8px; padding: 2px 5px; }
  .video-bottom-badges { gap: 3px; bottom: 6px; left: 6px; right: 6px; }
  .video-duration { font-size: 10px; padding: 2px 6px; }
}

.vt-home-slider .splide__pagination { display: none; }

/* ================================================================
   RESPONSIVE HERO TWEAKS
================================================================ */
@media (max-width: 768px) {
  .hero-section { height: 380px; }
  .hero-content h1 { font-size: 1.6rem; }
  .vt-hero-carousel { height: 400px; }
  .vt-hero-content h2 { font-size: 1.5rem; }
  .vt-hero-slide-overlay { padding: 24px 20px; }
  .hero-meta { gap: 8px; margin-bottom: 16px; }
  .hero-meta span { font-size: 11px; padding: 3px 10px; }
  .hero-play-btn { font-size: 13px; padding: 10px 22px; }
  .hero-label { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
  .vt-hero-arrow { width: 38px; height: 38px; font-size: 18px; }
  .vt-hero-arrow.prev { left: 10px; }
  .vt-hero-arrow.next { right: 10px; }
  .vt-hero-counter { display: none; }
  .vt-hero-access-badge { top: 14px !important; right: 14px !important; left: auto !important; font-size: 11px !important; padding: 4px 12px !important; }
  .hero-label { position: relative; z-index: 1; }
  .tax-hero { min-height: 200px; }
  .tax-hero-text h1 { font-size: 1.6rem; }
  .tax-actor-avatar { width: 80px; height: 80px; }
  .video-single-title { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-section { height: 280px; border-radius: 0; }
  .hero-overlay { padding: 20px; }
  .vt-hero-carousel { height: 300px; border-radius: 10px; }
  .vt-hero-slide-overlay { padding: 18px 16px; }
  .vt-hero-content h2 { font-size: 1.15rem; margin-bottom: 6px; }
  .vt-hero-content { max-width: 100%; }
  .hero-meta { gap: 6px; margin-bottom: 12px; }
  .hero-meta span { font-size: 10px; padding: 3px 8px; }
  .hero-play-btn { font-size: 12px; padding: 9px 18px; }
  .hero-label { font-size: 9px; padding: 3px 9px; margin-bottom: 8px; }
  .vt-hero-arrow { width: 34px; height: 34px; font-size: 16px; }
  .vt-hero-arrow.prev { left: 8px; }
  .vt-hero-arrow.next { right: 8px; }
  .vt-hero-dots { bottom: 10px; gap: 5px; padding: 4px 9px; }
  .vt-hero-dot { width: 6px; height: 6px; }
  .vt-hero-dot.active { width: 16px; }
  .vt-hero-access-badge { top: 10px !important; right: 10px !important; left: auto !important; font-size: 10px !important; padding: 3px 10px !important; }
  .single-video-layout { grid-template-columns: 1fr; }
}

/* ================================================================
   KEYFRAME ANIMATIONS
================================================================ */
@keyframes vt-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

@keyframes vt-fav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

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

@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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