/* =========================================================
   VidGrid Lite – Redesigned CSS (v1.6.0)
   Modern dark UI · Netflix-style series row · Mobile first
========================================================= */

:root {
  /* Navy blue theme (not pure black) */
  --vg-bg:        #0c1526;
  --vg-surface:   #121e32;
  --vg-card:      #152438;
  --vg-card-hover:#1a2c44;
  --vg-text:      #e6edf7;
  --vg-subtle:    #8fa0b8;
  --vg-accent:    #5cadff;
  --vg-accent-2:  #3d8bfd;
  --vg-ring:      rgba(92,173,255,0.35);
  --vg-border:    #1e2f48;
  --vg-success:   #2dd4a8;
  --vg-cols-mobile: 2;
  --vg-cols-desktop: 5;
  --vg-radius:    12px;
  --vg-radius-sm: 8px;
  --vg-shadow:    0 8px 28px rgba(0,0,0,0.45);
  --vg-ease:      cubic-bezier(0.4, 0, 0.2, 1);
}
/* Light theme */
html[data-theme="light"] {
  /* Soft daylight — no pure white */
  --vg-bg:        #e4e9f1;
  --vg-surface:   #eef2f7;
  --vg-card:      #f3f5f9;
  --vg-card-hover:#e8edf5;
  --vg-text:      #1e293b;
  --vg-subtle:    #64748b;
  --vg-accent:    #2563eb;
  --vg-accent-2:  #1d4ed8;
  --vg-ring:      rgba(37,99,235,0.28);
  --vg-border:    #cfd8e6;
  --vg-success:   #059669;
  --vg-shadow:    0 8px 24px rgba(30,41,59,0.08);
}
html[data-theme="light"] body { background: var(--vg-bg); color: var(--vg-text); }
html[data-theme="light"] .vg-header {
  background: color-mix(in srgb, var(--vg-bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
html[data-theme="light"] .vg-brand__link {
  background: linear-gradient(135deg, #1a1f2e 40%, var(--vg-accent));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .vg-card__title,
html[data-theme="light"] .vg-hero__title,
html[data-theme="light"] .vg-archive-title,
html[data-theme="light"] .vg-gridbar__title,
html[data-theme="light"] .vg-suggest__title,
html[data-theme="light"] .vg-trending__title,
html[data-theme="light"] .vg-series-row__title { color: #fff; }
html[data-theme="light"] .vg-hero__title,
html[data-theme="light"] .vg-gridbar__title,
html[data-theme="light"] .vg-archive-title { color: var(--vg-text); }
html[data-theme="light"] .vg-card__overlay .vg-card__title { color: #fff; }
html[data-theme="light"] .vg-drawer__panel {
  background: color-mix(in srgb, var(--vg-surface) 82%, transparent);
}
html[data-theme="light"] .vg-searchform__input { background: #f8fafc; }


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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--vg-bg);
  color: var(--vg-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vg-accent); text-decoration: none; }
a:hover { text-decoration: none; }

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

/* ───────── Header ───────── */
.vg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--vg-bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--vg-border) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.vg-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}
.vg-header {
  position: sticky;
  top: 0;
  z-index: 10002;
}
.vg-brand {
  min-width: 0;
  flex: 1 1 auto;
  margin-right: auto;
}
.vg-header-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0 4px 0 12px;
}
.vg-header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--vg-text);
  font-size: 14px;
  outline: none;
  height: 100%;
}
.vg-header-search__input::placeholder {
  color: rgba(180, 195, 220, 0.55);
}
.vg-header-search__btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: rgba(180, 195, 220, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.vg-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
/* Hamburger ↔ X */
.vg-menu-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--vg-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vg-menu-toggle__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.vg-menu-toggle__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}
.vg-menu-toggle__close {
  display: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.vg-menu-toggle.is-open {
  background: #ff6a1a;
  border-color: #ff6a1a;
  color: #fff;
}
.vg-menu-toggle.is-open .vg-menu-toggle__burger { display: none; }
.vg-menu-toggle.is-open .vg-menu-toggle__close { display: block; }

/* Live results under header */
.vg-live-results {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 100%;
  margin-top: 4px;
  max-height: min(60vh, 420px);
  overflow: auto;
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 10003;
  padding: 8px;
}
.vg-header { position: sticky; }

.vg-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vg-theme-toggle {
  display: none !important; /* temporarily disabled */
  background: var(--vg-surface);
  color: var(--vg-text);
  border: 1px solid var(--vg-border);
  padding: 8px 10px;
  border-radius: var(--vg-radius-sm);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s;
  line-height: 1;
  position: relative;
}
.vg-theme-toggle:hover {
  background: var(--vg-card-hover);
  border-color: var(--vg-accent);
}
.vg-theme-toggle__icon--sun { display: none; }
html[data-theme="light"] .vg-theme-toggle__icon--moon { display: none; }
html[data-theme="light"] .vg-theme-toggle__icon--sun { display: inline; }


.vg-menu-toggle,
.vg-search-toggle {
  background: var(--vg-surface);
  color: var(--vg-text);
  border: 1px solid var(--vg-border);
  padding: 8px 12px;
  border-radius: var(--vg-radius-sm);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s var(--vg-ease), border-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vg-menu-toggle:hover,
.vg-search-toggle:hover {
  background: var(--vg-card-hover);
  border-color: var(--vg-accent);
}
.vg-menu-toggle:active,
.vg-search-toggle:active { transform: scale(0.95); }

.vg-brand {
  min-width: 0;
  flex: 1 1 auto;
  margin-right: auto;
}
.vg-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
}
.vg-brand__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.vg-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.vg-brand__name {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, #fff 40%, var(--vg-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vg-brand__slogan {
  font-size: 10px;
  font-weight: 500;
  color: var(--vg-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  -webkit-text-fill-color: var(--vg-subtle);
}
.vg-menu-dots {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: block;
}
/* Mobile: hide header search (footer has it) */
@media (max-width: 768px) {
  .vg-search-toggle--desktop { display: inline-flex !important; }
}
@media (min-width: 769px) {
  .vg-search-toggle--desktop { display: block !important; }
}

/* Header primary nav — desktop only */
.vg-header-nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.vg-header-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vg-header-nav__list::-webkit-scrollbar { display: none; }
.vg-header-nav__list li {
  flex: 0 0 auto;
}
.vg-header-nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vg-text);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.vg-header-nav__list a:hover,
.vg-header-nav__list .current-menu-item > a,
.vg-header-nav__list .current_page_item > a {
  background: color-mix(in srgb, var(--vg-accent) 18%, transparent);
  color: var(--vg-accent);
}
.vg-catnav-desktop { display: none !important; }

@media (min-width: 900px) {
  .vg-header-nav { display: flex; }
  .vg-menu-toggle { display: none !important; }
  .vg-header__inner { gap: 16px; }
  .vg-brand { max-width: none; }
}
@media (max-width: 899px) {
  .vg-header-nav { display: none !important; }
}



/* Desktop expanded search vs mobile icon */
.vg-header-search--desktop {
  display: none;
  flex: 0 1 320px;
  max-width: 360px;
  margin-left: auto;
}
@media (min-width: 900px) {
  .vg-header-search--desktop {
    display: flex;
  }
  .vg-header__actions .vg-search-toggle {
    display: none !important;
  }
  .vg-header__actions {
    margin-left: 0;
  }
  .vg-header-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin: 0 8px;
  }
}
@media (max-width: 899px) {
  .vg-header-search--desktop {
    display: none !important;
  }
  .vg-header__actions {
    margin-left: auto;
  }
  .vg-search-toggle {
    display: inline-flex !important;
  }
}

/* Search bar + live results */
.vg-searchbar {
  border-top: 1px solid var(--vg-border);
  display: none;
  background: var(--vg-bg);
}
.vg-searchbar.is-open { display: block; }
.vg-searchbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 5px 14px;
}
.vg-searchform { display: flex; gap: 8px; align-items: center; }
.vg-searchform__input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--vg-radius-sm);
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vg-searchform__input:focus {
  outline: none;
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 3px var(--vg-ring);
}
.vg-searchbar__close {
  background: var(--vg-surface);
  color: var(--vg-text);
  border: 1px solid var(--vg-border);
  padding: 10px 12px;
  border-radius: var(--vg-radius-sm);
  cursor: pointer;
  font-size: 14px;
}
.vg-searchbar__close:hover {
  background: var(--vg-accent);
  color: #fff;
  border-color: var(--vg-accent);
}

.vg-live-results {
  margin-top: 10px;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.vg-live-results__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vg-live-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: var(--vg-radius-sm);
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.vg-live-item:hover {
  border-color: var(--vg-accent);
}
.vg-live-item__thumb {
  position: relative;
  width: 96px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #0d1117;
}
.vg-live-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-live-item__thumb .vg-duration {
  top: auto;
  left: auto;
  right: 3px;
  bottom: 3px;
  font-size: 9px;
  padding: 1px 4px;
}
.vg-live-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--vg-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.vg-live-results__empty,
.vg-live-results__loading {
  margin: 8px 0;
  color: var(--vg-subtle);
  font-size: 13px;
  text-align: center;
}

/* ───────── Drawer (browse menu) ───────── */
.vg-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
}
.vg-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.vg-drawer {
  z-index: 10000;
}
.vg-drawer__panel {
  position: fixed;
  left: 0; right: 0;
  top: var(--vg-header-h, 56px);
  height: auto;
  max-height: min(70vh, 520px);
  width: 100%;
  max-width: 100%;
  z-index: 10001;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  background: #0f1724;
  padding: 0;
  overflow: auto;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-right: 0;
  -webkit-overflow-scrolling: touch;
}
.vg-drawer.is-open .vg-drawer__panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.vg-drawer-open .vg-header {
  background: #0f1724;
  border-bottom-color: rgba(255,255,255,0.08);
}

.vg-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.vg-drawer.is-open .vg-drawer__backdrop { opacity: 1; }

.vg-drawer__topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f1724;
}
.vg-drawer__brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  max-width: 28%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vg-drawer__search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0 4px 0 14px;
  height: 40px;
}
.vg-drawer__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #e8edf4;
  font-size: 14px;
  outline: none;
  height: 100%;
}
.vg-drawer__search-input::placeholder {
  color: rgba(200, 210, 230, 0.55);
}
.vg-drawer__search-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: rgba(200, 210, 230, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.vg-drawer__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: #ff6a1a;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s;
}
.vg-drawer__close:hover { filter: brightness(1.08); }

.vg-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.vg-drawer__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(200, 210, 230, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s;
}
.vg-drawer__item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.vg-drawer__ico {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.vg-drawer__pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #e11d48;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

html[data-theme="light"] .vg-drawer__panel,
html[data-theme="light"] .vg-drawer__topbar {
  background: #0f1724;
}
html[data-theme="light"] .vg-drawer__item {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: rgba(200, 210, 230, 0.88);
}

.page-numbers.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ───────── Container ───────── */
.vg-container {
  max-width: 1200px;
  padding: 16px 5px;
  margin: 0 auto;
}
/* Home: minimal gap under header nav → platform pills */
body.home .vg-container,
body.blog .vg-container {
  padding-top: 6px;
}
body.home .vg-plat-row,
body.blog .vg-plat-row {
  margin-top: 0;
}

/* ───────── Grid bar ───────── */
.vg-gridbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}
.vg-gridbar--left {
  justify-content: flex-start;
}
.vg-gridbar__filter select {
  background: var(--vg-surface);
  color: var(--vg-text);
  border: 1px solid var(--vg-border);
  padding: 9px 14px;
  border-radius: var(--vg-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 160px;
}
.vg-gridbar__filter select:focus {
  outline: none;
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 3px var(--vg-ring);
}

/* ───────── Grid ───────── */
.vg-grid {
  display: grid;
  grid-template-columns: repeat(var(--vg-cols-mobile), minmax(0, 1fr));
  gap: 10px; /* row + column */
}
@media (min-width: 900px) {
  .vg-grid {
    grid-template-columns: repeat(var(--vg-cols-desktop), minmax(0, 1fr));
    gap: 10px;
  }
}

/* ───────── Card ───────── */
.vg-card {
  background: var(--vg-card);
  border-radius: var(--vg-radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  /* paint isolation = smoother scroll */
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.vg-card:hover {
  border-color: var(--vg-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.vg-card:active {
  transform: translateY(0);
}
.vg-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.vg-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d1117;
  overflow: hidden;
}
.vg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* no scale transform on hover — major scroll jank source */
}

.vg-thumb--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}

/* Duration badge — single fixed color, light glass so thumb shows through */
.vg-duration {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1.2;
  max-width: 48%;
  box-sizing: border-box;
}
.vg-duration__ico {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}
.vg-duration__ico .vg-icon-svg {
  width: 11px;
  height: 11px;
  display: block;
}
.vg-duration__txt {
  white-space: nowrap;
}
/* Card grid: duration top-left */
.vg-card .vg-duration {
  top: 7px;
  left: 7px;
  right: auto;
  bottom: auto;
}
/* Series episode card: duration bottom-right */
.vg-ep-card .vg-duration {
  right: 6px;
  bottom: 6px;
  top: auto;
  left: auto;
  font-size: 10px;
  padding: 2px 8px;
}

/* Platform / UNCUT / HD badge — top right, glass so thumb shows through */
.vg-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 48%;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.vg-badge__ico {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}
.vg-badge__ico .vg-icon-svg {
  width: 11px;
  height: 11px;
  display: block;
}
.vg-badge__txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* Fallback if inline style missing */
.vg-badge--ott,
.vg-badge--platform {
  background: rgba(45, 212, 168, 0.28);
  border-color: rgba(45, 212, 168, 0.40);
  color: #fff;
}
/* No platform → UNCUT (scissors) */
.vg-badge--uncut {
  background: rgba(251, 113, 133, 0.28);
  border-color: rgba(251, 113, 133, 0.40);
  color: #fff;
}
.vg-badge--hd {
  background: rgba(92, 173, 255, 0.28);
  border-color: rgba(92, 173, 255, 0.40);
  color: #fff;
}

/* Title overlay — single line; right padding so love count stays visible */
.vg-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 72px 9px 10px; /* right gap for likes badge */
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  pointer-events: none;
}
.vg-card__title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  /* soft fade into the likes zone */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
}
.vg-card:hover .vg-card__title { color: var(--vg-accent); }

@media (min-width: 900px) {
  .vg-card__title { font-size: 14px; }
}

/* ───────── Pagination ───────── */
.vg-pagination {
  display: block;
  margin: 24px 0 12px;
  padding: 0 4px;
  max-width: 100%;
  overflow: visible;
}
.vg-pagination__inner,
.vg-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  row-gap: 8px;
  max-width: 100%;
}
/* When WP wraps plain links without nav-links */
.vg-pagination > a.page-numbers,
.vg-pagination > span.page-numbers {
  /* handled by flex on parent if we use inner */
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  color: var(--vg-subtle);
  padding: 8px 12px;
  min-height: 36px;
  min-width: 36px;
  text-align: center;
  border-radius: 10px;
  background: var(--vg-surface);
  text-decoration: none;
  border: 1px solid var(--vg-border);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}
a.page-numbers:hover {
  background: var(--vg-accent);
  color: #fff;
  border-color: var(--vg-accent);
}
.page-numbers.current {
  color: #fff;
  background: var(--vg-accent-2);
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 2px var(--vg-ring);
}
.page-numbers.dots {
  min-width: 28px;
  padding: 8px 6px;
  border-color: transparent;
  background: transparent;
}
a.page-numbers.prev,
a.page-numbers.next,
a.page-numbers.last,
span.page-numbers.prev,
span.page-numbers.next,
span.page-numbers.last {
  min-width: 58px;
  padding: 8px 14px;
  font-size: 13px;
}

/* Responsive middle page count by viewport width */
/* Mobile: ~3 numbers (core only) */
@media (max-width: 479px) {
  .vg-pagination .page-numbers.pn-md,
  .vg-pagination .page-numbers.pn-lg {
    display: none !important;
  }
  a.page-numbers.prev,
  a.page-numbers.next,
  a.page-numbers.last,
  span.page-numbers.prev,
  span.page-numbers.next,
  span.page-numbers.last {
    min-width: 48px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .page-numbers {
    min-width: 32px;
    padding: 8px 8px;
    font-size: 12px;
  }
}
/* Tablet: ~5 numbers (core + md) */
@media (min-width: 480px) and (max-width: 767px) {
  .vg-pagination .page-numbers.pn-lg {
    display: none !important;
  }
}
/* Desktop 768+: all ~7 numbers (core + md + lg) visible */

/* ───────── Player Card (single) ───────── */
.vg-player-card {
  background: var(--vg-card);
  border-radius: 16px;
  border: 1px solid var(--vg-border);
  padding: 0 0 14px;
  margin: 0 0 18px;
  overflow: hidden;
  /* same horizontal footprint as other cards inside .vg-container */
  width: 100%;
}
/* Full-bleed player on mobile for true full-width experience — zero gap */
@media (max-width: 767px) {
  .vg-player-card {
    margin-left: -5px;
    margin-right: -5px;
    width: calc(100% + 10px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    margin-top: 0;
  }
  .vg-player {
    border-radius: 0 !important;
  }
}
.vg-player {
  position: relative;
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}
.vg-player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.vg-player__poster.is-hidden {
  display: none !important;
}
.vg-player__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.vg-player__poster,
.vg-player__poster-img {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
.vg-player__placeholder {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.vg-player__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  z-index: 3;
  filter: drop-shadow(0 6px 18px rgba(43, 123, 255, 0.45));
  font-size: initial;
  line-height: normal;
}
.vg-player__play:hover { transform: scale(1.08); }
.vg-player__play:active { transform: scale(0.96); }
.vg-player__play svg circle {
  fill: #2B7BFF;
}

.vg-player__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0;
  font-size: 0;
}
.vg-player__embed[hidden] { display: none !important; }
.vg-player__embed .vg-embed-wrap,
.vg-embed-wrap {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-sizing: border-box !important;
}
.vg-embed,
.vg-player__embed iframe,
.vg-embed-wrap iframe,
.vg-player__embed > * {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

.vg-player-card__title {
  margin: 14px 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--vg-text);
  line-height: 1.35;
  word-break: break-word;
}
.vg-player-card__accent {
  width: 48px;
  height: 3px;
  margin: 10px 16px 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vg-accent), transparent);
}
.vg-meta-rows {
  padding: 0 5px;
}
.vg-chip-bar {
  padding: 0 5px;
}

/* Series / Platform meta rows */
.vg-meta-rows {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 5px;
}
.vg-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  flex: 1 1 0;
  min-width: 0;
}
.vg-meta-row:hover {
  border-color: rgba(92,173,255,0.4);
  background: var(--vg-card-hover);
}
.vg-meta-row__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #6d28d9;
}
.vg-meta-row--series .vg-meta-row__icon {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}
.vg-meta-row--ott .vg-meta-row__icon,
.vg-meta-row--platform .vg-meta-row__icon {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}
.vg-meta-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vg-meta-row__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--vg-subtle);
  text-transform: uppercase;
}
.vg-meta-row__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--vg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-meta-row--series .vg-meta-row__value { color: #c4b5fd; }
.vg-meta-row--ott .vg-meta-row__value,
.vg-meta-row--platform .vg-meta-row__value { color: #5eead4; }

/* Chip bar: category + actors + tags — one-line horizontal slide */
.vg-chip-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 16px 4px;
}
.vg-chip-bar::-webkit-scrollbar { display: none; }
.vg-chip-bar .vg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--vg-surface);
  color: var(--vg-text) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  border: 1px solid var(--vg-border);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.vg-chip-bar .vg-chip:visited {
  color: var(--vg-text) !important;
}
.vg-chip-bar .vg-chip:hover,
.vg-chip-bar .vg-chip:focus,
.vg-chip-bar .vg-chip:active {
  border-color: var(--vg-accent);
  color: var(--vg-accent) !important;
  background: color-mix(in srgb, var(--vg-accent) 14%, var(--vg-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vg-accent) 35%, transparent);
}
.vg-chip__ico { font-size: 12px; line-height: 1; }
.vg-chip--cat { border-color: color-mix(in srgb, var(--vg-accent) 40%, var(--vg-border)); }
.vg-chip--actor { border-color: color-mix(in srgb, #a78bfa 45%, var(--vg-border)); }
.vg-chip--tag { border-color: color-mix(in srgb, var(--vg-subtle) 50%, var(--vg-border)); }

.vg-content {
  color: var(--vg-text);
  line-height: 1.7;
  margin-top: 16px;
}
.vg-content p { margin: 0 0 1em; }

/* ───────── Taxonomies (cats / tags / series / ott) ───────── */
.vg-tax {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.vg-tax__block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vg-tax__icon { opacity: 0.9; font-size: 15px; }
.vg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.vg-chip {
  display: inline-block;
  background: var(--vg-surface);
  color: var(--vg-text) !important;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid var(--vg-border);
  transition: all 0.2s;
}
.vg-chip:visited {
  color: var(--vg-text) !important;
}
.vg-chip:hover,
.vg-chip:focus,
.vg-chip:active {
  color: #fff !important;
  background: var(--vg-accent);
  border-color: var(--vg-accent);
}
.vg-chip--series {
  border-color: rgba(92,173,255,0.4);
  color: var(--vg-accent);
}
.vg-chip--ott {
  border-color: rgba(45,212,168,0.4);
  color: var(--vg-success);
}
.vg-chip--ott:hover {
  background: var(--vg-success);
  border-color: var(--vg-success);
  color: #0a0c0f;
}

.vg-tags-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.vg-tags-strip::-webkit-scrollbar { height: 4px; }
.vg-tags-strip::-webkit-scrollbar-thumb {
  background: #2a3442;
  border-radius: 999px;
}

/* ───────── Netflix-style Series Row ───────── */
.vg-series-row {
  margin: 20px 0 8px;
  position: relative;
}
.vg-series-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vg-series-row__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vg-series-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--vg-accent);
  color: #0a0c0f;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}
.vg-series-row__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--vg-subtle);
  background: var(--vg-surface);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--vg-border);
}

.vg-series-row__nav {
  display: flex;
  gap: 6px;
}
.vg-series-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  user-select: none;
}
.vg-series-nav:hover {
  background: var(--vg-accent);
  border-color: var(--vg-accent);
  color: #fff;
}
.vg-series-nav:active { transform: scale(0.92); }
.vg-series-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.vg-series-track-wrap {
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}
.vg-series-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.vg-series-track::-webkit-scrollbar { display: none; }

/* Episode card */
.vg-ep-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  border-radius: var(--vg-radius);
  overflow: hidden;
  background: var(--vg-card);
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  contain: layout style paint;
}
.vg-ep-card:hover {
  border-color: var(--vg-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.vg-ep-card:active {
  transform: translateY(0);
}
.vg-ep-card.is-current {
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 1px var(--vg-ring), 0 6px 20px rgba(92,173,255,0.2);
}
.vg-ep-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d1117;
  overflow: hidden;
}
.vg-ep-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-ep-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.vg-ep-playing {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--vg-accent);
  color: #0a0c0f;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vg-ep-card__title {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 8px 10px;
  margin: 0;
  color: var(--vg-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}
.vg-ep-card.is-current .vg-ep-card__title { color: var(--vg-accent); }
.vg-ep-card:hover .vg-ep-card__title { color: var(--vg-accent); }

@media (min-width: 640px) {
  .vg-ep-card { width: 200px; }
  .vg-ep-card__title { font-size: 13px; }
}
@media (min-width: 900px) {
  .vg-ep-card { width: 220px; }
}

/* ───────── Archive title ───────── */
.vg-archive-title {
  margin: 4px 0 18px;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  padding: 10px 14px;
  border-left: 5px solid var(--vg-accent);
  background: linear-gradient(90deg, rgba(92,173,255,0.12), rgba(92,173,255,0));
  border-radius: 10px;
}

.vg-fallback-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ───────── Categories grid — respects Customizer: Videos per row ───────── */
.vg-catgrid {
  display: grid;
  grid-template-columns: repeat(var(--vg-cols-mobile), minmax(0, 1fr));
  gap: 10px; /* row + column */
}
@media (min-width: 900px) {
  .vg-catgrid {
    grid-template-columns: repeat(var(--vg-cols-desktop), minmax(0, 1fr));
  }
}
.vg-catcard {
  display: block;
  border-radius: var(--vg-radius);
  background: var(--vg-card);
  color: var(--vg-text);
  text-decoration: none;
  border: 1px solid var(--vg-border);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  contain: layout style paint;
}
.vg-catcard:hover {
  border-color: var(--vg-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.vg-catcard:active {
  transform: translateY(0);
}
.vg-catcard__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d1117;
  overflow: hidden;
}
.vg-catcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-catcard__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1117, #161b22);
}
.vg-catcard__content {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vg-catcard__name { font-weight: 600; font-size: 14px; }
.vg-catcard:hover .vg-catcard__name { color: var(--vg-accent); }
.vg-catcard__count {
  font-size: 11px;
  color: var(--vg-subtle);
  background: var(--vg-surface);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  transition: all 0.2s;
}
.vg-catcard:hover .vg-catcard__count {
  background: var(--vg-accent);
  color: #fff;
  border-color: var(--vg-accent);
}

/* ───────── Suggest section ───────── */
.vg-suggest { margin-top: 28px; }
.vg-suggest__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  padding: 6px 10px;
  border-left: 4px solid var(--vg-accent);
  background: rgba(92,173,255,0.07);
  border-radius: var(--vg-radius-sm);
}

/* ───────── Footer ───────── */
.vg-footer {
  border-top: 1px solid var(--vg-border);
  margin-top: 28px;
}
.vg-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  color: var(--vg-subtle);
  font-size: 13px;
}

/* ───────── Contact page ───────── */
.vg-page-header {
  background: var(--vg-card);
  border-bottom: 1px solid var(--vg-border);
  padding: 24px 0;
  margin-bottom: 24px;
}
.vg-page-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.vg-breadcrumb {
  font-size: 13px;
  color: var(--vg-subtle);
}
.vg-breadcrumb a { color: var(--vg-accent); }
.vg-breadcrumb-separator { margin: 0 6px; opacity: 0.5; }

.vg-contact-grid {
  display: grid;
  gap: 28px;
}
.vg-section-header { margin-bottom: 18px; }
.vg-section-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vg-section-description {
  margin: 0;
  color: var(--vg-subtle);
  font-size: 14px;
  line-height: 1.6;
}
.vg-contact-cards {
  display: grid;
  gap: 5px;
}
@media (min-width: 640px) {
  .vg-contact-cards { grid-template-columns: 1fr 1fr; }
}
.vg-contact-card {
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: 18px;
  transition: border-color 0.2s;
}
.vg-contact-card:hover { border-color: rgba(92,173,255,0.3); }
.vg-contact-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.vg-contact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}
.vg-contact-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--vg-subtle);
}
.vg-contact-link {
  color: var(--vg-accent);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}
.vg-dmca-content {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .vg-dmca-content { grid-template-columns: 1.4fr 1fr; }
}
.vg-dmca-info, .vg-dmca-contact {
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: 18px;
}
.vg-dmca-info h3, .vg-dmca-contact h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
}
.vg-dmca-list {
  margin: 0;
  padding-left: 18px;
  color: var(--vg-subtle);
  font-size: 13px;
  line-height: 1.7;
}
.vg-dmca-list li { margin-bottom: 6px; }
.vg-dmca-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.vg-dmca-link {
  color: var(--vg-accent);
  font-weight: 600;
  word-break: break-all;
}

/* ───────── Mobile Footer Menu ───────── */
#footerMenu {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 420px;
  height: 62px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  padding: 0 6px;
}
#footerMenu a {
  text-decoration: none;
  flex: 1;
  text-align: center;
  color: var(--vg-subtle);
  font-size: 11px;
  transition: all 0.25s var(--vg-ease);
  position: relative;
  padding: 6px 2px;
  border-radius: 8px;
  margin: 0 1px;
}
#footerMenu a:hover,
#footerMenu a.active {
  color: var(--vg-accent);
  background: rgba(92,173,255,0.1);
}
#footerMenu img {
  width: 22px;
  height: 22px;
  margin: 0 auto 3px;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: all 0.25s;
  display: block;
}
#footerMenu a:hover img,
#footerMenu a.active img {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(185deg);
  transform: scale(1.08);
}
#footerMenu div {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 500;
  color: inherit;
}

#customSearchBox {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.96), rgba(10,12,15,0.98));
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
  animation: searchFade 0.25s var(--vg-ease);
}
@keyframes searchFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
#customSearchBox input {
  width: 85%;
  max-width: 400px;
  padding: 15px 18px;
  border: 2px solid var(--vg-border);
  border-radius: var(--vg-radius);
  outline: none;
  font-size: 16px;
  background: var(--vg-card);
  color: var(--vg-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#customSearchBox input:focus {
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 4px var(--vg-ring);
}
#customSearchBox input::placeholder { color: var(--vg-subtle); }
#customSearchBox button {
  width: 85%;
  max-width: 400px;
  padding: 14px 18px;
  border: none;
  background: linear-gradient(135deg, var(--vg-accent-2), var(--vg-accent));
  color: #fff;
  border-radius: var(--vg-radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(92,173,255,0.3);
}
#customSearchBox button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(92,173,255,0.4);
}
#customSearchBox .close-btn {
  color: var(--vg-accent);
  font-size: 13px;
  cursor: pointer;
  margin-top: 18px;
  padding: 10px 22px;
  border: 1.5px solid var(--vg-accent);
  border-radius: var(--vg-radius-sm);
  background: transparent;
  font-weight: 500;
  transition: all 0.2s;
}
#customSearchBox .close-btn:hover {
  background: var(--vg-accent);
  color: #0a0c0f;
}

/* Responsive footer menu */
@media (min-width: 769px) {
  #footerMenu { display: none !important; }
  .vg-main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .vg-main { padding-bottom: 88px; }
  .vg-footer { margin-bottom: 68px; }
  #customSearchBox input,
  #customSearchBox button { width: 90%; max-width: none; }
}
@media (max-width: 480px) {
  #footerMenu { height: 62px; }
  #footerMenu img { width: 20px; height: 20px; }
  #footerMenu div { font-size: 8px; }
  .vg-main { padding-bottom: 80px; }
}

/* ───────── Mobile title size ───────── */
@media (max-width: 600px) {
  .vg-player-card__title,
  .vg-hero__title,
  .vg-single__title,
  .vg-post-title,
  .entry-title,
  h1.entry-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    word-break: break-word;
  }
}



/* ───────── Scroll performance ───────── */
.vg-grid,
.vg-series-track {
  -webkit-overflow-scrolling: touch;
}
.vg-card__thumb img,
.vg-ep-card__thumb img,
.vg-catcard__thumb img {
  /* decode async + avoid layout thrash */
  content-visibility: auto;
}
/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .vg-series-track { scroll-behavior: auto; }
}

/* ───────── Focus styles ───────── */
:focus-visible {
  outline: 2px solid var(--vg-accent);
  outline-offset: 2px;
}


/* ───────── Series Breadcrumb ───────── */
.vg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--vg-subtle);
  line-height: 1.4;
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: 999px;
  overflow: hidden;
}
.vg-breadcrumb a {
  color: var(--vg-accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.vg-breadcrumb a:hover { text-decoration: underline; }
.vg-breadcrumb__home { font-size: 14px; }
.vg-breadcrumb__sep {
  opacity: 0.45;
  font-size: 12px;
  flex-shrink: 0;
}
.vg-breadcrumb__current {
  color: var(--vg-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ───────── Trending Hero ───────── */
.vg-trending {
  margin: 0 0 24px;
}
.vg-trending__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.vg-trending__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.vg-trending__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  padding-left: 10px;
  border-left: 4px solid #ff4d4d;
  line-height: 1.2;
}
html[data-theme="light"] .vg-trending__title { color: var(--vg-text); }
.vg-trending__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffb4a8;
  background: rgba(255, 60, 40, 0.18);
  border: 1px solid rgba(255, 80, 60, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
}
.vg-trending__seeall {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.15s;
}
.vg-trending__seeall:hover {
  background: rgba(255,255,255,0.16);
}
html[data-theme="light"] .vg-trending__seeall {
  color: var(--vg-text);
  background: var(--vg-surface);
  border-color: var(--vg-border);
}

.vg-trending-hero {
  position: relative;
  margin-left: -5px;
  margin-right: -5px;
}
.vg-trending-hero__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 5px 8px;
}
.vg-trending-hero__track::-webkit-scrollbar { display: none; }
.vg-trend-hero-card {
  flex: 0 0 85%;
  max-width: 420px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vg-trend-hero-card:hover {
  transform: translateY(-2px);
}
@media (min-width: 600px) {
  .vg-trend-hero-card {
    flex: 0 0 48%;
    max-width: none;
  }
}
@media (min-width: 900px) {
  .vg-trend-hero-card {
    flex: 0 0 calc((100% - 20px) / 3); /* 3 cards on PC — not just one */
    max-width: none;
  }
}
.vg-trend-hero-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d1117;
  border-radius: 16px;
  overflow: hidden;
}
.vg-trend-hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vg-trend-hero-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.vg-trend-hero-card__top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vg-trend-hero-card__rank {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #e11d48);
  padding: 4px 9px;
  border-radius: 8px;
}
.vg-trend-hero-card__dur {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 4px 9px;
  border-radius: 8px;
}
.vg-trend-hero-card__ott {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0a0c0f;
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  padding: 5px 10px;
  border-radius: 8px;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vg-trend-hero-card__bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}
.vg-trend-hero-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
}
.vg-trend-hero-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}
.vg-trend-hero-card__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f97316);
  padding: 4px 9px;
  border-radius: 999px;
}
.vg-trend-hero-card__views,
.vg-trend-hero-card__clock {
  font-weight: 600;
  opacity: 0.92;
}

.vg-trend-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.vg-trend-hero-nav:hover { background: rgba(0,0,0,0.7); }
.vg-trend-hero-nav--prev { left: 10px; }
.vg-trend-hero-nav--next { right: 10px; }

/* Suggest more button */
.vg-suggest__head {
  margin-bottom: 14px;
}
.vg-suggest__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.vg-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vg-accent-2), var(--vg-accent));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(92,173,255,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.vg-btn-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92,173,255,0.4);
  color: #fff;
}

/* Random Picks page */
.vg-random__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.vg-random__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--vg-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vg-random__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(92,173,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.vg-random__shuffle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.vg-random__shuffle:hover {
  border-color: var(--vg-accent);
  color: var(--vg-accent);
}
.vg-random__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vg-random-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.vg-random-card:hover { border-color: rgba(92,173,255,0.35); }
.vg-random-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1117;
  overflow: hidden;
}
.vg-random-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vg-random-card__dur {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-radius: 6px;
}
.vg-random-card__ott {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0a0c0f;
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  padding: 4px 9px;
  border-radius: 6px;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vg-random-card__title {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--vg-text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}

/* Footer menu emoji icons */
#footerMenu .fm-ico {
  display: block;
  font-size: 20px;
  line-height: 1;
  margin: 0 auto 3px;
  filter: none;
  opacity: 0.85;
}
#footerMenu a.active .fm-ico,
#footerMenu a:hover .fm-ico {
  opacity: 1;
  transform: scale(1.08);
}

/* Section head: title + badge left, Browse all right — always one row */
.vg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 16px;
  flex-wrap: nowrap;
}
.vg-section-head__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.vg-section-head__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  padding-left: 10px;
  border-left: 4px solid #ff4d4d;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="light"] .vg-section-head__title { color: var(--vg-text); }
.vg-section-head__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}
.vg-section-head__badge--new {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.vg-section-head__badge--hot {
  color: #ffb4a8;
  background: rgba(255, 60, 40, 0.15);
  border: 1px solid rgba(255, 80, 60, 0.4);
}
.vg-section-head__seeall {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #f5c6c0;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(120, 40, 40, 0.35);
  border: 1px solid rgba(180, 80, 80, 0.35);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.vg-section-head__seeall:hover {
  background: rgba(150, 50, 50, 0.5);
  color: #fff;
}
html[data-theme="light"] .vg-section-head__seeall {
  color: var(--vg-text);
  background: var(--vg-surface);
  border-color: var(--vg-border);
}

/* Trending header also single line */
.vg-trending__header {
  flex-wrap: nowrap !important;
}
.vg-trending__left {
  overflow: hidden;
}
.vg-trending__title {
  white-space: nowrap;
}
.vg-trending__seeall {
  white-space: nowrap;
  flex-shrink: 0;
}

#footerMenu a {
  color: #8b97a8;
}
#footerMenu a.active,
#footerMenu a:hover {
  color: #5cadff;
  background: transparent;
}
#footerMenu .fm-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: inherit;
}
#footerMenu .fm-ico svg {
  display: block;
}
#footerMenu a div {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .vg-main { padding-bottom: 90px; }
  .vg-footer { margin-bottom: 80px; }
}
.vg-chip-bar--after {
  margin: 12px 0 8px;
  padding-left: 0;
  padding-right: 0;
}

/* Description read more */
.vg-content--clamp {
  text-align: center;
}
.vg-content--clamp .vg-content__inner {
  max-height: 4.8em; /* ~3 lines at 1.6 line-height */
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
  text-align: center;
  line-height: 1.6;
  margin: 0 auto;
}
.vg-content--clamp .vg-content__inner p {
  text-align: center;
}
.vg-content--clamp:not(.is-open) .vg-content__inner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.8em;
  background: linear-gradient(to bottom, transparent, var(--vg-card));
  pointer-events: none;
}
.vg-content--clamp.is-open .vg-content__inner {
  max-height: 4000px;
}
.vg-readmore {
  display: inline-block;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.vg-content--clamp .vg-readmore {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.vg-readmore:hover {
  border-color: var(--vg-accent);
}

/* ══════════ Platform circles (home) ══════════ */
.vg-plat-row {
  margin: 0 0 18px;
  margin-left: -5px;
  margin-right: -5px;
  padding: 0;
}
.vg-plat-row__track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox: hide until hover */
  padding: 0 5px 4px;
  scroll-snap-type: x proximity;
}
.vg-plat-row__track::-webkit-scrollbar {
  height: 3px;
  background: transparent;
}
.vg-plat-row__track::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.vg-plat-row__track:hover,
.vg-plat-row__track:focus-within,
.vg-plat-row__track:active {
  scrollbar-width: thin;
  scrollbar-color: var(--vg-border) transparent;
}
.vg-plat-row__track:hover::-webkit-scrollbar-thumb,
.vg-plat-row__track:focus-within::-webkit-scrollbar-thumb,
.vg-plat-row__track:active::-webkit-scrollbar-thumb {
  background: var(--vg-border);
}

/* Platform name pills — compact */
.vg-plat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.vg-plat-pill:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.vg-plat-pill__name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-plat-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.12);
}

/* keep legacy circle styles for other pages if used */
.vg-plat-circle {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}
.vg-plat-circle__media {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #2a3140, #1a1f2a);
  border: 2px solid rgba(255,255,255,0.12);
}
.vg-plat-circle__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vg-plat-circle__letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5b21b6, #db2777);
}
.vg-plat-circle__count {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 24, 32, 0.45);
}
.vg-plat-circle__name {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--vg-text);
  max-width: 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
  justify-content: flex-start;
}

/* ══════════ Featured Models / Actors ══════════ */
.vg-models {
  margin: 0 0 14px;
}
.vg-models__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.vg-models__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vg-models__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  border: 0;
  padding: 0;
}
html[data-theme="light"] .vg-models__title { color: var(--vg-text); }
.vg-models__seeall {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #5cadff;
  text-decoration: none;
  white-space: nowrap;
}
.vg-models__seeall:hover { color: #8ec5ff; }
.vg-models__badge { display: none; }

.vg-models__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-left: -5px;
  margin-right: -5px;
  padding: 2px 5px 6px;
  scroll-snap-type: x proximity;
}
.vg-models__track::-webkit-scrollbar {
  height: 3px;
  background: transparent;
}
.vg-models__track::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}
.vg-models__track:hover,
.vg-models__track:focus-within,
.vg-models__track:active {
  scrollbar-width: thin;
  scrollbar-color: var(--vg-border) transparent;
}
.vg-models__track:hover::-webkit-scrollbar-thumb,
.vg-models__track:focus-within::-webkit-scrollbar-thumb,
.vg-models__track:active::-webkit-scrollbar-thumb {
  background: var(--vg-border);
}

.vg-actor-card {
  flex: 0 0 auto;
  width: 148px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}
.vg-actor-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1f2a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
}
.vg-actor-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.vg-actor-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #4c1d95, #be185d);
}
/* Play count badge — top right (screenshot) */
.vg-actor-card__count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 30, 36, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1;
}
.vg-actor-card__play {
  display: inline-flex;
  opacity: 0.95;
}
.vg-actor-card__play .vg-icon-svg {
  width: 12px;
  height: 12px;
  display: block;
}
.vg-actor-card__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.vg-actor-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.vg-actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.vg-actors-grid .vg-actor-card {
  width: 100%;
}

@media (min-width: 640px) {
  .vg-actor-card { width: 168px; }
  .vg-models__title { font-size: 22px; }
  .vg-plat-pill { font-size: 12.5px; padding: 5px 8px 5px 11px; }
}

/* ══════════ A–Z Browse (series / platform / actors / tags) ══════════ */
.vg-az {
  margin-top: 4px;
}
.vg-az__search-wrap {
  margin-bottom: 14px;
}
.vg-az__search {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vg-az__search::placeholder { color: var(--vg-subtle); }
.vg-az__search:focus {
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 3px var(--vg-ring);
}

.vg-az__alpha {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
@media (min-width: 480px) {
  .vg-az__alpha { grid-template-columns: repeat(9, 1fr); }
}
@media (min-width: 768px) {
  .vg-az__alpha { grid-template-columns: repeat(14, 1fr); }
}
.vg-az__letter {
  appearance: none;
  border: 1px solid var(--vg-border);
  background: var(--vg-card);
  color: var(--vg-text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.vg-az__letter:hover {
  border-color: var(--vg-accent);
  color: #fff;
}
.vg-az__letter.is-active {
  background: var(--vg-accent-2);
  border-color: var(--vg-accent);
  color: #fff;
  box-shadow: 0 0 0 2px var(--vg-ring);
}

.vg-az__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vg-az__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.vg-az__item:hover {
  background: var(--vg-card-hover);
  border-color: rgba(92,173,255,0.35);
}
.vg-az__item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--vg-text);
  line-height: 1.35;
}
.vg-az__item-count {
  font-size: 13px;
  color: var(--vg-subtle);
  font-weight: 500;
}
.vg-az__empty {
  text-align: center;
  color: var(--vg-subtle);
  padding: 24px 12px;
}
.vg-az__item.is-hidden { display: none; }

/* ══════════ Recently Updated / Top Platforms slider ══════════ */
.vg-recent {
  margin: 0 0 20px;
}
.vg-recent__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.vg-recent__star {
  font-size: 20px;
  line-height: 1;
}
.vg-recent__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
html[data-theme="light"] .vg-recent__title { color: var(--vg-text); }

.vg-recent__viewport {
  overflow: hidden;
  margin-left: -5px;
  margin-right: -5px;
  padding: 0 5px;
  perspective: 900px;
}
.vg-recent__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 4px 16px;
  /* momentum feel */
  overscroll-behavior-x: contain;
}
.vg-recent__track::-webkit-scrollbar { display: none; }

.vg-recent-card {
  flex: 0 0 72%;
  max-width: 420px;
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  transform: scale(0.92);
  opacity: 0.72;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease;
  will-change: transform, opacity;
  filter: brightness(0.88);
}
.vg-recent-card.is-active {
  transform: scale(1);
  opacity: 1;
  filter: brightness(1);
  z-index: 2;
}
@media (min-width: 640px) {
  .vg-recent-card { flex-basis: 48%; }
}
@media (min-width: 900px) {
  .vg-recent-card { flex-basis: 32%; max-width: 380px; }
}
@media (min-width: 1200px) {
  .vg-recent-card { flex-basis: 28%; }
}

.vg-recent-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0a1020;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 12px 40px rgba(0,0,0,0.45),
    0 0 48px rgba(180, 40, 80, 0.1);
  transition: box-shadow 0.35s ease;
}
.vg-recent-card.is-active .vg-recent-card__media {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 16px 48px rgba(0,0,0,0.55),
    0 0 64px rgba(180, 40, 80, 0.18);
}
.vg-recent-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.vg-recent-card.is-active .vg-recent-card__media img {
  transform: scale(1.03);
}
.vg-recent-card__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2744, #3b0f2e);
}
.vg-recent-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vg-recent-card__name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}
.vg-recent-card__count {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* progress bar — always visible, same muted tone as categories/tags bars */
.vg-recent__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
html[data-theme="light"] .vg-recent__bar {
  background: rgba(0,0,0,0.08);
}
.vg-recent__bar-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--vg-border);
  transform: translateX(0);
  transition: width 0.1s linear, transform 0.1s linear;
  will-change: width, transform;
}
html[data-theme="light"] .vg-recent__bar-fill {
  background: #2a3442;
}

/* ══════════ Series term page ══════════ */
/* ───────── Series page (full-bleed hero + info table) ───────── */

/* Series page: container NO side padding so hero is naturally full-bleed */
body.tax-series .vg-container,
body.tax-series main.vg-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

.vg-series-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  --vg-sp-gutter: 5px;
}

/* Only non-hero sections get 5px side gap (margin — not padding) */
.vg-sp-meta-bar,
.vg-sp-episodes,
.vg-sp-about,
.vg-sp-related {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 5px !important;
  margin-right: 5px !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
}

.vg-series-page > .vg-sp-popup {
  padding-left: 5px;
  padding-right: 5px;
}

/* HERO — 100% width, zero side gap, zero radius */
.vg-sp-hero,
body.tax-series .vg-sp-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 230px;
}
.vg-sp-hero__bg,
.vg-sp-hero__img,
.vg-sp-hero__gradient {
  border-radius: 0 !important;
}
/* Block long-press save / callout on hero image */
.vg-sp-hero,
.vg-sp-hero__img {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
.vg-sp-hero__img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}
@media (min-width: 768px) {
  .vg-sp-hero {
    aspect-ratio: auto;
    height: min(42vw, 460px);
    min-height: 340px;
    max-height: 460px;
  }
}
.vg-sp-hero__bg {
  position: absolute;
  inset: 0;
  border-radius: 0 !important;
}
.vg-sp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 !important;
}
.vg-sp-hero__ph {
  width: 100%;
  height: 100%;
  min-height: 230px;
  background: linear-gradient(135deg, #1a2744, #3b0f2e);
}

/*
 * Gradient: dark mid for readable white text in BOTH themes,
 * only the very bottom blends into theme background.
 */
.vg-sp-hero__gradient {
  position: absolute;
  inset: 0;
  border-radius: 0 !important;
  background: linear-gradient(
    to top,
    var(--vg-bg) 0%,
    rgba(0, 0, 0, 0.82) 16%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.28) 62%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.vg-sp-hero__content {
  position: relative;
  z-index: 2;
  padding: 32px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  box-sizing: border-box;
}

/* Always white on hero — independent of light/dark theme */
.vg-sp-hero__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.9);
}
.vg-sp-hero__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 36em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
}

/* Meta tight under hero */
.vg-sp-meta-bar {
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.vg-sp-crumb {
  margin: 0;
  font-size: 13px;
  color: var(--vg-subtle);
  line-height: 1.3;
}
.vg-sp-crumb a {
  color: var(--vg-accent);
  text-decoration: none;
  font-weight: 600;
}
.vg-sp-crumb a:hover { text-decoration: underline; }
.vg-sp-crumb__sep { margin: 0 5px; opacity: 0.6; }

/* Play / Share — theme colors */
.vg-sp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.vg-sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 11px 8px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--vg-border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: var(--vg-text);
  background: var(--vg-card);
  box-sizing: border-box;
  white-space: nowrap;
}
.vg-sp-btn__ico {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--vg-accent);
}
.vg-sp-btn--play:hover,
.vg-sp-btn--share:hover {
  border-color: var(--vg-accent);
  background: var(--vg-card-hover);
}

/* Compact table — 5px side gap via margin */
.vg-sp-table-wrap {
  margin: 0 5px 12px !important;
  padding: 0 !important;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--vg-border);
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
  background: var(--vg-card);
}
.vg-sp-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--vg-card);
  table-layout: fixed;
}
.vg-sp-table th {
  padding: 9px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--vg-text);
  border-bottom: 1px solid var(--vg-border);
  background: rgba(127,127,127,0.04);
}
.vg-sp-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--vg-border);
  font-size: 13px;
  vertical-align: middle;
  word-break: break-word;
  line-height: 1.35;
}
.vg-sp-table td:last-child {
  padding-right: 10px;
}
.vg-sp-table td:first-child {
  padding-left: 10px;
}
.vg-sp-table tr:last-child td { border-bottom: 0; }
.vg-sp-table__label {
  width: 38%;
  color: var(--vg-subtle);
  font-weight: 600;
  border-right: 1px solid var(--vg-border);
  vertical-align: middle;
  white-space: nowrap;
}
.vg-sp-table__ico {
  display: inline-block;
  vertical-align: -0.2em;
  line-height: 1;
  margin-right: 6px;
  width: 14px;
  height: 14px;
}
.vg-sp-table__ico .vg-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
  vertical-align: middle;
}
.vg-sp-table__val {
  width: 62%;
  color: var(--vg-text);
  font-weight: 700;
}
.vg-sp-table__val a {
  color: var(--vg-accent);
  text-decoration: none;
}
.vg-sp-table__val a:hover { text-decoration: underline; }
.vg-sp-table__models { font-weight: 600; line-height: 1.4; }

.vg-sp-desc-show {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-accent);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.vg-sp-desc-show:hover { border-color: var(--vg-accent); }

/* Popup */
.vg-sp-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vg-sp-popup[hidden] { display: none !important; }
.vg-sp-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vg-sp-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}
.vg-sp-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vg-border);
  flex-shrink: 0;
}
.vg-sp-popup__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--vg-text);
}
.vg-sp-popup__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 15px;
  cursor: pointer;
}
.vg-sp-popup__close:hover { background: var(--vg-card-hover); }
.vg-sp-popup__body {
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vg-subtle);
  white-space: pre-wrap;
  word-break: break-word;
}

.vg-sp-divider-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--vg-text);
  text-align: center;
}
.vg-sp-divider-title::before,
.vg-sp-divider-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--vg-border);
  max-width: 120px;
}
.vg-sp-divider-title span { flex: 0 0 auto; white-space: nowrap; }

/* Episodes — respects Customizer: Videos per row */
.vg-sp-episodes { margin-bottom: 6px; }
.vg-sp-ep-list {
  display: grid;
  grid-template-columns: repeat(var(--vg-cols-mobile), minmax(0, 1fr));
  gap: 10px; /* row + column */
}
@media (min-width: 900px) {
  .vg-sp-ep-list {
    grid-template-columns: repeat(var(--vg-cols-desktop), minmax(0, 1fr));
  }
}
.vg-sp-ep {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--vg-border);
  background: #000;
  transition: border-color 0.15s, transform 0.15s;
}
.vg-sp-ep:hover {
  border-color: var(--vg-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.vg-sp-ep:active {
  transform: translateY(0);
}
.vg-sp-ep__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.vg-sp-ep__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vg-sp-ep__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  bottom: auto;
  right: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 2;
  box-sizing: border-box;
}

.vg-sp-about { margin: 6px 0 14px; scroll-margin-top: 72px; }
.vg-sp-about__body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--vg-subtle);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  max-height: 4.8em; /* ~3 lines */
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.vg-sp-about.is-open .vg-sp-about__body {
  max-height: none;
  overflow: visible;
}
.vg-sp-about__body p { margin: 0 0 10px; }
.vg-sp-about__body p:last-child { margin-bottom: 0; }
.vg-sp-about__more {
  display: block;
  margin: 10px auto 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.vg-sp-about__more:hover { border-color: var(--vg-accent); }
.vg-sp-about__more[hidden] { display: none !important; }

/* Description Show link styled as pill button */
a.vg-sp-desc-show {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-accent);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
a.vg-sp-desc-show:hover { border-color: var(--vg-accent); }

/* Related series cards — respects Customizer: Videos per row */
.vg-sp-related { margin-bottom: 20px; }
.vg-sp-related__list {
  display: grid;
  grid-template-columns: repeat(var(--vg-cols-mobile), minmax(0, 1fr));
  gap: 10px; /* row + column */
  padding: 0 0 6px;
}
@media (min-width: 900px) {
  .vg-sp-related__list {
    grid-template-columns: repeat(var(--vg-cols-desktop), minmax(0, 1fr));
  }
}

.vg-sp-related__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 10px;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.vg-sp-related__card:hover {
  transform: translateY(-2px);
}
.vg-sp-related__card:hover .vg-sp-related__thumb {
  border-color: var(--vg-accent);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
/* stacked layers under main thumb */
.vg-sp-related__stack {
  display: block !important;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 12px;
  border-radius: 0 0 10px 10px;
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-top: 0;
  z-index: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.vg-sp-related__stack--2 {
  display: block !important;
  left: 16px;
  right: 16px;
  bottom: -5px;
  height: 10px;
  background: var(--vg-card);
  opacity: 0.95;
  z-index: -1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.vg-sp-related__thumb {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--vg-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.vg-sp-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: none !important;
}
.vg-sp-related__thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Series name — large plain text */
.vg-sp-related__name {
  position: absolute;
  left: 10px;
  right: 72px; /* room for likes on the right */
  bottom: 28px;
  z-index: 2;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}
/* X Episodes — plain text under name, no badge */
.vg-sp-related__eps {
  position: absolute;
  left: 10px;
  right: 72px; /* room for likes on the right */
  bottom: 8px;
  top: auto;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.9) !important;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vg-sp-related__meta { display: none !important; }

.vg-sp-related__more {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.vg-sp-related__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  color: var(--vg-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.vg-sp-related__all:hover {
  border-color: var(--vg-accent);
  background: var(--vg-card);
}

@media (min-width: 768px) {
  body.tax-series .vg-container,
  body.tax-series main.vg-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .vg-series-page {
    --vg-sp-gutter: 5px;
  }
  .vg-sp-meta-bar,
  .vg-sp-episodes,
  .vg-sp-about,
  .vg-sp-related {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }
  .vg-sp-table-wrap {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }
  .vg-sp-hero__title { font-size: 32px; }
  .vg-sp-hero__content { padding: 56px 20px 20px; }
  .vg-sp-hero__desc { font-size: 20px; -webkit-line-clamp: 4; }
  .vg-sp-divider-title { font-size: 17px; margin: 22px 0 14px; }
  .vg-sp-table th { padding: 11px 14px; font-size: 15px; }
  .vg-sp-table td { padding: 9px 14px; font-size: 14px; }
  .vg-sp-related__name { font-size: 18px; }
  .vg-sp-related__eps { font-size: 12.5px; }
  .vg-sp-btn { font-size: 14px; padding: 12px 12px; }
}


/* ══════════ Player layout: main + Random aside (desktop) ══════════ */
.vg-player-layout {
  display: block;
  margin-bottom: 18px;
}
.vg-player-layout .vg-player-card {
  margin-bottom: 0;
}
.vg-player-aside {
  display: none; /* mobile: hidden — random is in suggest below */
  background: var(--vg-card);
  border: 1px solid var(--vg-border);
  border-radius: 14px;
  padding: 12px 10px;
  overflow: hidden;
}
.vg-player-aside__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vg-text);
  padding: 0 4px;
}
.vg-player-aside__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vg-player-aside__item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.vg-player-aside__item:hover {
  background: var(--vg-card-hover);
  transform: translateY(-1px);
}
.vg-player-aside__thumb {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1117;
}
.vg-player-aside__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vg-player-aside__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vg-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 900px) {
  .vg-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    align-items: start;
  }
  .vg-player-aside {
    display: block;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  /* Player no longer stretches full container width → better image quality */
  .vg-player-layout .vg-player-card {
    max-width: 100%;
  }
}

/* ══════════ Series page: Related always at bottom (all viewports) ══════════ */
/* Side related permanently disabled — hero stays full width */
.vg-sp-related--side {
  display: none !important;
}
.vg-sp-related--bottom {
  display: block;
}
/* Show all related cards (up to 9) on all screens */
.vg-sp-related--bottom .vg-sp-related__list > .vg-sp-related__card:nth-child(n+7) {
  display: block !important;
}


/* ── Single player page: series-style episodes + related ── */
.vg-single-episodes {
  margin: 16px 0 8px;
}
.vg-sp-ep.is-current {
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 1px var(--vg-ring), 0 6px 18px rgba(92,173,255,0.2);
}
.vg-sp-ep__playing {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--vg-accent);
  color: #0a0c0f;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}
.vg-player-aside__meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--vg-subtle);
}
/* Single page related bottom: mobile only, max 6 */
.vg-single-related {
  margin: 20px 0 12px;
}
@media (min-width: 900px) {
  .vg-single-related {
    display: none !important;
  }
}


/* ── Platform taxonomy: series grid ── */
.vg-plat-page {
  padding: 8px 0 20px;
}
.vg-plat-page__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 5px 18px;
}
.vg-plat-page__logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--vg-border);
  background: var(--vg-card);
}
.vg-plat-page__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vg-plat-page__title {
  margin: 0 0 4px;
  font-size: 22px;
}
.vg-plat-page__desc {
  font-size: 13px;
  color: var(--vg-subtle);
  margin: 0 0 4px;
  line-height: 1.4;
}
.vg-plat-page__meta {
  margin: 0;
  font-size: 12px;
  color: var(--vg-subtle);
}
.vg-plat-series {
  /* margins controlled only by platform hero gutter rules below */
  margin-bottom: 20px;
}
.vg-plat-series__list {
  display: grid !important;
  grid-template-columns: repeat(var(--vg-cols-mobile), minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
@media (min-width: 900px) {
  .vg-plat-series__list {
    grid-template-columns: repeat(var(--vg-cols-desktop), minmax(0, 1fr));
  }
}
.vg-plat-series .vg-sp-related__card {
  margin: 0;
}
.vg-plat-orphans {
  margin-top: 12px;
}

/* ── Hero Platform (mirrors Hero Series) ── */

/* Platform page: container NO side padding so hero is full-bleed (same as series) */
body.tax-platform .vg-container, body.tax-actors .vg-container,
body.tax-platform main.vg-container , body.tax-actors main.vg-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

.vg-plat-page--hero {
  margin: 0;
  padding: 0 0 20px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  --vg-sp-gutter: 5px;
}

/* Platform hero-row: always single column, zero side gap (no related side panel) */
body.tax-platform .vg-sp-hero-row, body.tax-actors .vg-sp-hero-row,
.vg-plat-page--hero .vg-sp-hero-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  grid-template-columns: none !important;
}

/* HERO — 100% width, zero side/top gap, zero radius (identical to series) */
body.tax-platform .vg-sp-hero, body.tax-actors .vg-sp-hero,
.vg-plat-page--hero .vg-sp-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 230px;
}
body.tax-platform .vg-sp-hero__bg, body.tax-actors .vg-sp-hero__bg,
body.tax-platform .vg-sp-hero__img, body.tax-actors .vg-sp-hero__img,
body.tax-platform .vg-sp-hero__gradient, body.tax-actors .vg-sp-hero__gradient,
.vg-plat-page--hero .vg-sp-hero__bg,
.vg-plat-page--hero .vg-sp-hero__img,
.vg-plat-page--hero .vg-sp-hero__gradient {
  border-radius: 0 !important;
}
/* Thumbnail always covers full hero area — any size fills (no gaps) */
body.tax-platform .vg-sp-hero__bg, body.tax-actors .vg-sp-hero__bg,
.vg-plat-page--hero .vg-sp-hero__bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
body.tax-platform .vg-sp-hero__img, body.tax-actors .vg-sp-hero__img,
.vg-plat-page--hero .vg-sp-hero__img,
body.tax-platform .vg-sp-hero__img--logo, body.tax-actors .vg-sp-hero__img--logo,
.vg-plat-page--hero .vg-sp-hero__img--logo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  filter: none !important;
}
@media (min-width: 768px) {
  body.tax-platform .vg-sp-hero, body.tax-actors .vg-sp-hero,
  .vg-plat-page--hero .vg-sp-hero {
    aspect-ratio: auto;
    height: min(42vw, 460px);
    min-height: 340px;
    max-height: 460px;
  }
}
/* Desktop series rule adds radius/padding to .vg-sp-hero-row .vg-sp-hero — override for platform */
@media (min-width: 900px) {
  body.tax-platform .vg-sp-hero-row .vg-sp-hero, body.tax-actors .vg-sp-hero-row .vg-sp-hero,
  .vg-plat-page--hero .vg-sp-hero-row .vg-sp-hero {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
    height: min(42vw, 460px) !important;
    min-height: 340px !important;
    max-height: 460px !important;
  }
  body.tax-platform .vg-sp-hero-row .vg-sp-hero__bg, body.tax-actors .vg-sp-hero-row .vg-sp-hero__bg,
  body.tax-platform .vg-sp-hero-row .vg-sp-hero__img, body.tax-actors .vg-sp-hero-row .vg-sp-hero__img,
  body.tax-platform .vg-sp-hero-row .vg-sp-hero__gradient, body.tax-actors .vg-sp-hero-row .vg-sp-hero__gradient,
  .vg-plat-page--hero .vg-sp-hero-row .vg-sp-hero__bg,
  .vg-plat-page--hero .vg-sp-hero-row .vg-sp-hero__img,
  .vg-plat-page--hero .vg-sp-hero-row .vg-sp-hero__gradient {
    border-radius: 0 !important;
  }
}

/* Non-hero sections: exact 5px side gutter — same as series (.vg-sp-*) */
body.tax-platform .vg-series-page, body.tax-actors .vg-series-page,
.vg-plat-page--hero.vg-series-page,
.vg-plat-page--hero {
  margin: 0 !important;
  padding: 0 0 20px !important; /* kill old .vg-plat-page vertical side padding feel */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  --vg-sp-gutter: 5px;
}

body.tax-platform .vg-sp-meta-bar, body.tax-actors .vg-sp-meta-bar,
body.tax-platform .vg-sp-table-wrap, body.tax-actors .vg-sp-table-wrap,
body.tax-platform .vg-sp-about, body.tax-actors .vg-sp-about,
body.tax-platform .vg-sp-related, body.tax-actors .vg-sp-related,
body.tax-platform .vg-sp-episodes, body.tax-actors .vg-sp-episodes,
.vg-plat-page--hero .vg-sp-meta-bar,
.vg-plat-page--hero .vg-sp-table-wrap,
.vg-plat-page--hero .vg-sp-about,
.vg-plat-page--hero .vg-sp-related,
.vg-plat-page--hero .vg-plat-series,
.vg-plat-page--hero .vg-plat-orphans {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 5px !important;
  margin-right: 5px !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
}

/* Kill nested extra side margins inside platform sections */
body.tax-platform .vg-plat-series__list, body.tax-actors .vg-plat-series__list,
.vg-plat-page--hero .vg-plat-series__list,
body.tax-platform .vg-sp-related__list, body.tax-actors .vg-sp-related__list,
.vg-plat-page--hero .vg-sp-related__list,
body.tax-platform .vg-plat-orphans .vg-grid, body.tax-actors .vg-plat-orphans .vg-grid,
.vg-plat-page--hero .vg-plat-orphans .vg-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Table: same compact rule as series (margin 0 5px already on .vg-sp-table-wrap) */
body.tax-platform .vg-sp-table-wrap, body.tax-actors .vg-sp-table-wrap,
.vg-plat-page--hero .vg-sp-table-wrap {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

/* Small logo: contain + filled background so empty space is covered */
.vg-sp-hero--logo .vg-sp-hero__bg {
  background:
    radial-gradient(ellipse at center, rgba(30, 40, 70, 0.95) 0%, #0a0e18 70%),
    linear-gradient(135deg, #1a2744 0%, #3b0f2e 100%);
}
.vg-sp-hero__img--logo {
  object-fit: contain !important;
  object-position: center center !important;
  width: 100%;
  height: 100%;
  max-width: min(42%, 280px);
  max-height: min(55%, 220px);
  margin: auto;
  position: absolute;
  inset: 0;
  padding: 24px;
  box-sizing: border-box;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}
@media (min-width: 768px) {
  .vg-sp-hero__img--logo {
    max-width: min(28%, 320px);
    max-height: min(50%, 260px);
    padding: 32px;
  }
}

.vg-sp-hero__actors {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 42em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}
@media (min-width: 768px) {
  .vg-sp-hero__actors {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
}

/* Series list on platform: EXACT same 5px side gutter as table / series page */
body.tax-platform section.vg-sp-related.vg-plat-series, body.tax-actors section.vg-sp-related.vg-plat-series,
.vg-plat-page--hero section.vg-sp-related.vg-plat-series,
body.tax-platform .vg-plat-series, body.tax-actors .vg-plat-series,
.vg-plat-page--hero .vg-plat-series {
  margin: 8px 5px 20px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
body.tax-platform section.vg-sp-related.vg-plat-series .vg-sp-related__list, body.tax-actors section.vg-sp-related.vg-plat-series .vg-sp-related__list,
body.tax-platform section.vg-sp-related.vg-plat-series .vg-plat-series__list, body.tax-actors section.vg-sp-related.vg-plat-series .vg-plat-series__list,
.vg-plat-page--hero section.vg-sp-related.vg-plat-series .vg-sp-related__list,
.vg-plat-page--hero section.vg-sp-related.vg-plat-series .vg-plat-series__list,
body.tax-platform .vg-plat-series__list, body.tax-actors .vg-plat-series__list,
.vg-plat-page--hero .vg-plat-series__list {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.vg-plat-page--hero .vg-plat-orphans {
  margin: 12px 5px 20px !important;
  padding: 0 !important;
}


/* ── Single: title top, actions, pills, breadcrumb under episodes ── */
.vg-single-title-wrap {
  margin: 8px 0 6px;
  padding: 0 8px;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.vg-single-title {
  margin: 0;
  font-size: clamp(13px, 3.6vw, 20px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--vg-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vg-single-title__text {
  display: inline;
  white-space: nowrap;
}
/* Keep single line — no marquee slide */
.vg-single-title.is-marquee .vg-single-title__text {
  max-width: 100%;
  padding-left: 0;
  animation: none;
}
@keyframes vg-title-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (min-width: 768px) {
  .vg-single-title { font-size: clamp(15px, 1.6vw, 22px); }
}

/* Actions tight under player */
.vg-player-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 10px 6px;
}
.vg-player-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.vg-player-act:hover {
  border-color: var(--vg-accent);
  background: var(--vg-card);
}
.vg-player-act:active { transform: scale(0.98); }
.vg-player-act.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
.vg-player-act__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.vg-player-act--like.is-liked {
  border-color: #ff4d6d;
  color: #ff4d6d;
}
.vg-player-act--like.is-liked .vg-player-act__ico {
  filter: none;
}

/* Actor + Platform pills center */
.vg-player-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 10px 10px;
  padding: 0;
}
.vg-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--vg-border);
  background: transparent;
  color: var(--vg-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vg-player-pill:hover {
  border-color: var(--vg-accent);
  background: var(--vg-surface);
}
.vg-player-pill__ico {
  font-size: 14px;
  opacity: 0.9;
}
.vg-player-pill--series {
  border-color: color-mix(in srgb, #f472b6 45%, var(--vg-border));
}

/* Old title under player — hide if residual */
.vg-player-card__title,
.vg-player-card__accent {
  display: none !important;
}

/* Breadcrumb under episodes */
.vg-breadcrumb--under {
  margin: 12px 5px 8px;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.vg-breadcrumb--under .vg-breadcrumb__sep {
  opacity: 0.55;
  font-weight: 700;
}
.vg-single .vg-content {
  margin: 8px 12px 10px;
  text-align: center;
}

@media (max-width: 767px) {
  .vg-player-actions {
    margin: 8px 8px 6px;
    gap: 6px;
  }
  .vg-player-act {
    min-height: 40px;
    font-size: 12.5px;
    padding: 7px 6px;
  }
  .vg-player-pills {
    margin: 4px 8px 10px;
  }
}


/* Single chip bar — visible thin scrollbar */
.vg-chip-bar--single {
  margin: 2px 0 8px;
  padding: 0 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--vg-border) transparent;
}
.vg-chip-bar--single::-webkit-scrollbar {
  display: block;
  height: 4px;
}
.vg-chip-bar--single::-webkit-scrollbar-track {
  background: transparent;
}
.vg-chip-bar--single::-webkit-scrollbar-thumb {
  background: var(--vg-border);
  border-radius: 4px;
}
.vg-chip--series {
  border-color: color-mix(in srgb, #f472b6 45%, var(--vg-border));
}

/* Card / series like badge — bottom-right, same line as title */
.vg-card__likes {
  position: absolute;
  right: 6px;
  bottom: 7px;
  top: auto;
  z-index: 4; /* above title fade so always visible */
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.vg-sp-related__likes,
.vg-player-aside__likes {
  position: absolute;
  right: 8px;
  bottom: 8px;
  top: auto;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  pointer-events: none;
}
/* Episode thumbs: likes bottom-right (badge stays top-left) */
.vg-sp-ep__likes {
  position: absolute;
  right: 6px;
  bottom: 6px;
  top: auto;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  pointer-events: none;
}
.vg-sp-related__thumb {
  position: relative;
}
.vg-player-aside__thumb {
  position: relative;
}
.vg-sp-ep__thumb {
  position: relative;
}
.vg-player-aside__likes {
  bottom: 4px;
  right: 4px;
  font-size: 10px;
}

/* Favourites page */
.vg-fav-page {
  padding: 8px 0 24px;
}
.vg-fav-page__head {
  margin: 0 5px 12px;
}
.vg-fav-page__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--vg-subtle);
}
.vg-fav-status {
  margin: 0 5px 12px;
  font-size: 14px;
  color: var(--vg-subtle);
}
.vg-fav-status.is-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--vg-border);
  border-radius: 12px;
  background: var(--vg-card);
}


/* Single / player page background (overridden by theme setting) */
body.single,
body.single-post {
  background: #242a2b;
  background-image: radial-gradient(
    ellipse at 50% 18%,
    #2e3536 0%,
    #242a2b 50%,
    #1a1f20 100%
  );
  background-attachment: fixed;
}
body.single .vg-container,
body.single-post .vg-container {
  background: transparent;
  padding-top: 0;
}
/* Player flush under header — no top gap */
body.single .vg-player-layout,
body.single-post .vg-player-layout {
  margin-top: 0;
}
body.single .vg-player-card,
body.single-post .vg-player-card {
  margin-top: 0;
}

/* Single page: exactly 5px side gap for episodes / related / fallback
   (container already provides 5px padding — kill extra margins) */
body.single .vg-sp-episodes,
body.single-post .vg-sp-episodes,
body.single .vg-sp-related,
body.single-post .vg-sp-related,
body.single .vg-suggest,
body.single-post .vg-suggest,
body.single .vg-single-episodes,
body.single-post .vg-single-episodes,
body.single .vg-single-related,
body.single-post .vg-single-related {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Safety: platform/actors pages must scroll */
body.tax-platform,
body.tax-actors {
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  position: static !important;
  transform: none !important;
}
html:has(body.tax-platform),
html:has(body.tax-actors) {
  overflow-y: auto !important;
  height: auto !important;
}

/* Solar icons (iconify solar linear) + custom all-shows */
.vg-icon-svg {
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  overflow: visible;
}
.vg-chip__ico,
.vg-player-pill__ico,
.vg-drawer__ico,
.vg-player-act__ico,
.vg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
.vg-chip__ico .vg-icon-svg,
.vg-player-pill__ico .vg-icon-svg {
  display: block;
  width: 14px;
  height: 14px;
}
.vg-drawer__ico .vg-icon-svg {
  width: 18px;
  height: 18px;
}
.vg-chip__ico .vg-icon-svg {
  width: 12px;
  height: 12px;
}
.vg-sp-table__ico .vg-icon-svg {
  width: 14px;
  height: 14px;
  display: block;
}
.vg-player-act__ico .vg-icon-svg {
  width: 18px;
  height: 18px;
}
.vg-recent__star .vg-icon-svg {
  width: 16px;
  height: 16px;
}
.vg-icon .vg-icon-svg {
  width: 20px;
  height: 20px;
}
.vg-player-act--like.is-liked .vg-icon-svg {
  fill: currentColor;
}
.vg-models__badge .vg-icon-svg,
.vg-trending__badge .vg-icon-svg,
.vg-section-head__badge .vg-icon-svg {
  width: 12px;
  height: 12px;
  margin-right: 2px;
}
.vg-trend-hero-card__views .vg-icon-svg,
.vg-trend-hero-card__clock .vg-icon-svg {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}
