* {
  -webkit-tap-highlight-color: transparent;
}

/* ===== GEOMETRIC TOKENS (ZERO COLOR IN :ROOT) ===== */
:root {
  --vfr-radius-sm: 4px;
  --vfr-radius-md: 8px;
  --vfr-radius-lg: 12px;
  --vfr-radius-diagonal: 8px 0px 8px 0px;
  --vfr-container-max: 1480px;
  --fv-thumb-aspect-ratio: 16/9;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: "Roboto", sans-serif;
  background-color: var(--vfr-bg);
  color: var(--vfr-text);
}

body {
  margin: 0;
  background-color: var(--vfr-bg);
  background-image:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--vfr-primary-bright) 18%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--vfr-accent-cyan) 12%, transparent) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--vfr-text);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

/* ===== TOP BAR HEADER ===== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vfr-bg-alpha-95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vfr-border);
}

.top-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}

.top-header__brand {
  flex-shrink: 0;
}

.top-header__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--vfr-text-primary);
}

.top-header__logo .logo-main {
  color: var(--vfr-text-primary);
}

.top-header__logo .logo-ext {
  color: var(--vfr-primary-bright);
  background: linear-gradient(135deg, var(--vfr-primary-bright), var(--vfr-accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-header__logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* Search Bar in Header */
.top-header__search {
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
}

.header-search-form {
  position: relative;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  padding: 2px 4px 2px 12px;
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--vfr-primary-bright);
  box-shadow: 0 0 0 3px var(--vfr-primary-alpha-25);
  background: var(--vfr-bg-card-alt);
}

.search-icon {
  color: var(--vfr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--vfr-text);
  font-size: 0.9rem;
  padding: 8px 4px;
}

.search-input::placeholder {
  color: var(--vfr-text-dim);
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0 2px 0 6px;
  background:
    linear-gradient(45deg, transparent 42%, var(--vfr-primary-bright) 42%, var(--vfr-primary-bright) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--vfr-primary-bright) 42%, var(--vfr-primary-bright) 58%, transparent 58%);
  opacity: 0.9;
  cursor: pointer;
}

.search-submit-btn {
  background: var(--vfr-primary);
  color: var(--vfr-text-on-primary);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: var(--vfr-primary-bright);
  box-shadow: 0 2px 8px var(--vfr-primary-glow);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  box-shadow: var(--vfr-shadow-modal);
  z-index: 120;
  display: none;
  overflow: hidden;
}

.autocomplete-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--vfr-text);
  border-bottom: 1px solid var(--vfr-text-alpha-05);
  transition: background 0.15s ease, color 0.15s ease;
}

.autocomplete-dropdown a:last-child {
  border-bottom: none;
}

.autocomplete-dropdown a:hover {
  background: var(--vfr-primary-alpha-20);
  color: var(--vfr-primary-bright);
  padding-left: 18px;
}

/* Header Mobile Actions */
.top-header__actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text);
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-primary-bright);
}

.hamburger-btn {
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Collapsible Search Drawer */
.mobile-search-drawer {
  display: none;
  width: 100%;
  background: var(--vfr-bg-surface);
  border-top: 1px solid var(--vfr-border);
  padding: 10px 0;
}

.mobile-search-drawer--active {
  display: block;
}

.mobile-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--vfr-bg);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  padding: 2px 6px 2px 12px;
}

.mobile-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--vfr-text-primary);
  padding: 8px 0;
  font-size: 0.9rem;
}

.mobile-search-form button {
  color: var(--vfr-primary-bright);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE ASIDE DRAWER (LEFT DRAWER FULL TEXT) ===== */
.mobile-aside-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--vfr-bg-surface);
  border-right: 1px solid var(--vfr-border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--vfr-shadow-drawer);
}

.mobile-aside-drawer--active {
  transform: translateX(0);
}

.mobile-aside-backdrop {
  position: fixed;
  inset: 0;
  background: var(--vfr-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-aside-backdrop--active {
  opacity: 1;
  visibility: visible;
}

.mobile-aside-drawer__header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--vfr-border);
  background: var(--vfr-bg-alpha-50);
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  letter-spacing: -0.3px;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vfr-text-muted);
  border-radius: var(--vfr-radius-sm);
  background: var(--vfr-text-alpha-05);
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  color: var(--vfr-text-primary);
  background: var(--vfr-text-alpha-10);
}

.mobile-aside-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vfr-text-dim);
}

.mobile-nav-item:hover {
  background: var(--vfr-primary-alpha-10);
  color: var(--vfr-text-primary);
}

.mobile-nav-item:hover .nav-icon {
  color: var(--vfr-primary-bright);
}

.mobile-nav-item.active {
  position: relative;
  background: var(--vfr-primary-alpha-20);
  color: var(--vfr-primary-bright);
  font-weight: 600;
  border-left: 0;
  box-shadow:
    inset 0 0 0 1px var(--vfr-primary-bright),
    inset 0 0 12px var(--vfr-primary-glow-subtle);
}

.mobile-nav-item.active .nav-icon {
  color: var(--vfr-primary-bright);
}

/* ===== STUDIO APP SHELL LAYOUT ===== */
.studio-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  flex: 1;
}

/* Left Vertical Nav Deck (Desktop) */
.left-nav-deck {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  background: var(--vfr-bg-surface);
  border: 0px solid var(--vfr-border-glow);
  border-radius: 10px 0px 10px 0px;
  overflow-y: auto;
  box-shadow: 0 4px 20px var(--vfr-backdrop), 0 0 24px var(--vfr-primary-glow);
}

.left-nav-deck::-webkit-scrollbar {
  width: 4px;
}

.left-nav-deck::-webkit-scrollbar-thumb {
  background: var(--vfr-border);
  border-radius: 4px;
}

.left-nav-deck__inner {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-deck__section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--vfr-text-dim);
  padding: 0 6px;
}

.nav-deck__section-title--sm {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.nav-deck__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-deck__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px 0px 10px 0px;
  color: var(--vfr-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  overflow: hidden;
}

.nav-deck__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vfr-text-dim);
  transition: color 0.2s ease;
}

.nav-deck__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-deck__item:hover {
  background: var(--vfr-primary-alpha-10);
  color: var(--vfr-text-primary);
}

.nav-deck__item:hover .nav-deck__icon {
  color: var(--vfr-primary-bright);
}

.nav-deck__item--active {
  background: var(--vfr-primary-alpha-18);
  color: var(--vfr-primary-bright);
  font-weight: 600;
  border-left: 0;
  box-shadow:
    inset 0 0 0 1px var(--vfr-primary-bright),
    inset 0 0 12px var(--vfr-primary-glow-subtle);
}

.nav-deck__item--active .nav-deck__icon {
  color: var(--vfr-primary-bright);
}

/* Nav Deck Backlinks */
.nav-deck__backlinks {
  border-top: 1px solid var(--vfr-border);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.nav-deck__backlinks-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-deck__backlink-item {
  font-size: 0.8rem;
  color: var(--vfr-text-dim);
  padding: 4px 6px;
  border-radius: var(--vfr-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-deck__backlink-item:hover {
  color: var(--vfr-primary-bright);
  background: var(--vfr-primary-alpha-10);
}

/* Main Media Canvas */
.main-canvas {
  flex: 1;
  min-width: 0;
}

.canvas-section {
  width: 100%;
}

/* ===== HEADINGS ===== */
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--vfr-border);
}

.heading__title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heading__indicator {
  width: 4px;
  height: 18px;
  background: linear-gradient(to bottom, var(--vfr-primary-bright), var(--vfr-primary));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--vfr-primary-glow);
}

.heading__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  letter-spacing: -0.3px;
}

/* ===== VIDEO GRID & CARDS (DIAGONAL RADIUS SPEC) ===== */
.items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.item {
  display: flex;
  flex-direction: column;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border-glow);
  clip-path: none;
  border-radius: 10px 0px 10px 0px;
  padding: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover {
  border-color: var(--vfr-primary-bright);
  box-shadow: 0 0 22px var(--vfr-primary-glow);
  transform: translateY(-4px);
}

.item__thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
  overflow: hidden;
  background-color: var(--vfr-bg-surface);
  clip-path: none;
  border-radius: 7px 0px 7px 0px;
  border: 1px solid color-mix(in srgb, var(--vfr-primary-bright) 15%, transparent);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover .item__thumbnail {
  border-color: var(--vfr-primary-bright);
  box-shadow: 0 0 20px var(--vfr-primary-glow), 0 8px 24px rgba(0, 0, 0, 0.8);
}

.item:hover .item__thumbnail img {
  transform: scale(1.02);
}

.item__labels {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.badge-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, var(--vfr-primary), var(--vfr-primary-dark));
  color: var(--vfr-text-on-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px var(--vfr-backdrop);
}

.item__stats {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--vfr-bg-alpha-85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--vfr-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.item__title {
  margin-top: 0.6rem;
}

.item__title h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--vfr-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1lh;
  transition: color 0.2s ease;
}

.item:hover .item__title h4 {
  color: var(--vfr-primary-bright);
}

/* ===== PAGINATION ===== */
.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.paginator__item a,
.paginator__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.paginator__item a:hover {
  background: var(--vfr-primary-alpha-20);
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-primary-bright);
}

.paginator__item--active a,
.paginator__item--active span {
  background: var(--vfr-primary);
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-on-primary);
  box-shadow: 0 0 12px var(--vfr-primary-glow);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs-area {
  margin-bottom: 0.75rem;
}

.breadcrumbs-area .container {
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--vfr-text-dim);
}

.breadcrumbs-area a {
  color: var(--vfr-text-muted);
}

.breadcrumbs-area a:hover {
  color: var(--vfr-primary-bright);
}

.breadcrumbs-area .current {
  color: var(--vfr-primary-bright);
  font-weight: 500;
}

/* ===== TIME FILTERS ===== */
.time-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.time-filter-btn {
  padding: 5px 14px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: 20px;
  color: var(--vfr-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.time-filter-btn:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-primary);
}

.time-filter-btn.active {
  background: var(--vfr-primary);
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-on-primary);
  box-shadow: 0 0 10px var(--vfr-primary-glow);
}

/* ===== SINGLE VIDEO PAGE STYLES ===== */
.single-video-page {
  width: 100%;
}

.single-video-top-bar {
  margin-bottom: 1rem;
}

.single-video-header {
  margin-top: 0.5rem;
}

.single-video-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--vfr-text-primary);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Player Canvas 16:9 Full Width */
.single-player-wrapper {
  width: 100%;
  margin-bottom: 1.25rem;
}

.player-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--vfr-radius-lg);
  overflow: hidden;
  border: 1px solid var(--vfr-border);
  box-shadow: 0 8px 30px var(--vfr-backdrop);
}

.player-canvas iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Quick Toolbar (< 768px) */
.mobile-quick-toolbar {
  display: none;
  margin-bottom: 1rem;
}

.quick-toolbar-pill {
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: 30px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 16px var(--vfr-backdrop);
}

.quick-servers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-server-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--vfr-bg-card);
  border: 1px solid var(--vfr-border);
  color: var(--vfr-text-muted);
  transition: all 0.2s ease;
}

.quick-server-btn.player__cdn--active {
  background: var(--vfr-primary);
  color: var(--vfr-text-on-primary);
  border-color: var(--vfr-primary-bright);
}

.quick-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vfr-text-muted);
}

.quick-like-btn {
  background: var(--vfr-primary-alpha-15);
  border: 1px solid var(--vfr-primary-alpha-25);
  padding: 4px 8px;
  border-radius: 16px;
  color: var(--vfr-primary-bright);
}

/* Below Player Split 70% / 30% (Desktop) */
.single-video-details {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.single-details-left {
  flex: 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.single-details-right {
  flex: 3;
  min-width: 0;
}

/* Server Switch Deck */
.server-switch-deck {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  padding: 10px 14px;
  flex-wrap: wrap;
}

.server-deck-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vfr-text-muted);
}

.server-pills-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sapphire-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--vfr-bg-card);
  border: 1px solid var(--vfr-border);
  border-radius: 20px;
  color: var(--vfr-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sapphire-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vfr-text-dim);
}

.sapphire-pill:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-primary);
}

.sapphire-pill.player__cdn--active {
  background: linear-gradient(135deg, var(--vfr-primary), var(--vfr-primary-dark));
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-on-primary);
  box-shadow: 0 0 14px var(--vfr-primary-glow);
}

.sapphire-pill.player__cdn--active .pill-dot {
  background: var(--vfr-primary-bright);
  box-shadow: 0 0 6px var(--vfr-primary-bright);
}

/* Description Card */
.single-description-card {
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  padding: 1.25rem;
}

.card-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vfr-text-dim);
  margin-bottom: 0.75rem;
}

.card-content {
  color: var(--vfr-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Video Tags & Categories */
.single-tags-deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-tax-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tax-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tax-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vfr-text-dim);
}

.video__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-primary-bright);
  background: var(--vfr-primary-alpha-10);
}

.tag-pill--cat {
  border-color: var(--vfr-primary-alpha-25);
  color: var(--vfr-primary-bright);
}

.tag-pill--cat:hover {
  border-color: var(--vfr-primary-bright);
  background: var(--vfr-primary-alpha-15);
}

/* Right Block (30% Interaction Card) */
.single-interaction-card {
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px var(--vfr-backdrop);
}

.stats-header {
  border-bottom: 1px solid var(--vfr-border);
  padding-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vfr-text-dim);
}

.stats-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--vfr-bg-card);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  padding: 10px 14px;
}

.metric-icon {
  color: var(--vfr-primary-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-data {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: hidden;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  line-height: 1;
}

.metric-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--vfr-text-dim);
  text-transform: lowercase;
  line-height: 1;
}

/* Big Like Button */
.big-like-button {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--vfr-border), var(--vfr-bg-surface));
  border: 1px solid var(--vfr-border-light);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.big-like-button .like-badge {
  background: var(--vfr-primary-alpha-25);
  border: 1px solid var(--vfr-border-glow-active);
  color: var(--vfr-primary-bright);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.big-like-button:hover,
.big-like-button.liked {
  background: linear-gradient(135deg, var(--vfr-primary), var(--vfr-primary-dark));
  border-color: var(--vfr-primary-bright);
  box-shadow: 0 4px 16px var(--vfr-primary-glow);
  transform: translateY(-1px);
}

.big-like-button:hover .like-badge,
.big-like-button.liked .like-badge {
  background: var(--vfr-text-primary);
  color: var(--vfr-primary);
  border-color: var(--vfr-text-primary);
}

/* Action Buttons Group */
.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-action-share {
  width: 100%;
  padding: 10px 14px;
  background: var(--vfr-bg-card);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-action-share:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-primary);
  background: var(--vfr-primary-alpha-10);
}

/* Related Videos Section */
.single-related-section {
  margin-top: 2rem;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.button--load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.button--load-more:hover {
  background: var(--vfr-primary);
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-on-primary);
  box-shadow: 0 4px 16px var(--vfr-primary-glow);
}

.item--skeleton { pointer-events: none; }
.item--skeleton:hover { transform: none; }
.item--skeleton .item__thumbnail,
.item--skeleton .item__title h4 {
  background: linear-gradient(90deg, var(--vfr-bg-surface) 25%, color-mix(in srgb, var(--vfr-primary-bright) 16%, var(--vfr-bg-surface)) 50%, var(--vfr-bg-surface) 75%);
  background-size: 200% 100%;
  animation: vfr-skeleton-shimmer 1.4s ease-in-out infinite;
}
.item--skeleton .item__title h4 { width: 78%; min-height: 1lh; color: transparent; border-radius: 4px; }
@keyframes vfr-skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .item--skeleton .item__thumbnail, .item--skeleton .item__title h4 { animation: none; } }

/* ===== BANNER ADS ===== */
.fv-header-banner,
.fv-footer-banner {
  margin: 1.5rem auto;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fv-header-banner > *,
.fv-footer-banner > * {
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--vfr-bg-deep);
  border-top: 1px solid var(--vfr-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer__menu {
  margin-bottom: 1.5rem;
}

.footer__tags-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--vfr-text-dim);
  margin-bottom: 0.75rem;
}

.footer__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__tag-item {
  display: inline-block;
  padding: 4px 10px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-sm);
  color: var(--vfr-text-muted);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.footer__tag-item:hover {
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-primary-bright);
  background: var(--vfr-primary-alpha-10);
}

.footer__tag-item--partner {
  border-color: var(--vfr-cyan-alpha-25);
  color: var(--vfr-text-muted);
}

.footer__tag-item--partner:hover {
  border-color: var(--vfr-accent-cyan);
  color: var(--vfr-accent-cyan);
}

.footer__backlinks {
  margin-bottom: 1.5rem;
}

.footer__text {
  border-top: 1px solid var(--vfr-text-alpha-05);
  padding-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer__site-desc {
  font-size: 0.88rem;
  color: var(--vfr-text-muted);
  margin-bottom: 0.75rem;
}

.footer__seo-text {
  font-size: 0.82rem;
  color: var(--vfr-text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.me-policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.75rem;
}

.me-policy-nav a {
  font-size: 0.82rem;
  color: var(--vfr-text-dim);
  transition: color 0.2s ease;
}

.me-policy-nav a:hover {
  color: var(--vfr-primary-bright);
}

.footer__bottom {
  border-top: 1px solid var(--vfr-text-alpha-05);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.82rem;
  color: var(--vfr-text-dim);
}

.dmca-badge img {
  height: 20px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.dmca-badge:hover img {
  opacity: 1;
}

/* ===== POLICY & STATIC PAGES ===== */
.me-policy {
  width: 100%;
}

.me-policy-page {
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-lg);
  padding: 2rem;
}

.me-policy-kicker {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--vfr-border);
  padding-bottom: 0.75rem;
}

.me-policy-card {
  color: var(--vfr-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.me-policy-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.me-policy-card p {
  margin-bottom: 1rem;
}

.me-policy-card a {
  color: var(--vfr-primary-bright);
  text-decoration: underline;
}

.me-policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.me-policy-table th,
.me-policy-table td {
  padding: 10px 14px;
  border: 1px solid var(--vfr-border);
  text-align: left;
  font-size: 0.9rem;
}

.me-policy-table thead {
  background: var(--vfr-bg-card);
  color: var(--vfr-text-primary);
}

.me-policy-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.me-policy-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vfr-text-primary);
}

.me-policy-form input,
.me-policy-form select,
.me-policy-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--vfr-bg);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text-primary);
}

.me-policy-form input:focus,
.me-policy-form select:focus,
.me-policy-form textarea:focus {
  outline: none;
  border-color: var(--vfr-primary-bright);
}

.me-policy-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--vfr-primary);
  color: var(--vfr-text-on-primary);
  font-weight: 600;
  border-radius: var(--vfr-radius-md);
  transition: all 0.2s ease;
}

.me-policy-btn:hover {
  background: var(--vfr-primary-bright);
}

/* 404 Error Page */
.error-404-box {
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

.error-404-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--vfr-primary-bright);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vfr-text-primary);
  margin-bottom: 0.5rem;
}

.error-404-desc {
  font-size: 0.95rem;
  color: var(--vfr-text-muted);
  margin-bottom: 1.5rem;
}

.button--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--vfr-primary);
  color: var(--vfr-text-on-primary);
  font-weight: 600;
  border-radius: var(--vfr-radius-md);
  transition: all 0.2s ease;
}

.button--primary:hover {
  background: var(--vfr-primary-bright);
  box-shadow: 0 4px 16px var(--vfr-primary-glow);
}

/* Empty notices */
.empty-notice {
  text-align: center;
  color: var(--vfr-text-muted);
  font-size: 1rem;
  padding: 2rem;
}

.empty-search-notice {
  text-align: center;
  padding: 2rem;
}

.empty-hint {
  color: var(--vfr-text-dim);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* ===== TOAST NOTIFICATION ===== */
.sapphire-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--vfr-bg-card);
  border: 1px solid var(--vfr-primary-bright);
  color: var(--vfr-text-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--vfr-backdrop), 0 0 12px var(--vfr-primary-glow);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--vfr-bg-surface);
  border: 1px solid var(--vfr-border);
  border-radius: var(--vfr-radius-md);
  color: var(--vfr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--vfr-backdrop);
}

.back-to-top:hover {
  background: var(--vfr-primary);
  border-color: var(--vfr-primary-bright);
  color: var(--vfr-text-on-primary);
  box-shadow: 0 0 16px var(--vfr-primary-glow);
}

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

.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .left-nav-deck {
    display: none;
  }

  .top-header__search {
    max-width: 380px;
  }

  .top-header__actions {
    display: flex;
  }

  .mobile-search-toggle {
    display: none;
  }

  .items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .single-video-details {
    flex-direction: column;
  }

  .single-details-left,
  .single-details-right {
    width: 100%;
    flex: none;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .left-nav-deck {
    display: none;
  }

  .top-header__container {
    height: 60px;
  }

  .top-header__search {
    display: none;
  }

  .top-header__actions {
    display: flex;
  }

  .studio-layout {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .item__title h4 {
    font-size: 0.82rem;
  }

  /* Single Video Mobile Edge-to-Edge */
  .single-video-top-bar {
    margin-bottom: 0.75rem;
  }

  .single-video-title {
    font-size: 1.15rem;
  }

  .single-player-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }

  .player-canvas {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .mobile-quick-toolbar {
    display: block;
  }

  .server-switch-deck {
    display: none;
  }

  .single-video-details {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .single-details-left,
  .single-details-right {
    width: 100%;
    flex: none;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
