@charset "UTF-8";

/* ==========================================================================
   Vietnamese Typography Patch for Plus Jakarta Sans
   Uses Be Vietnam Pro glyphs for Vietnamese unicode range to fix uppercase
   combining diacritics alignment bug (such as U+1EAA in 'HAP DAN').
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVPSTAyLFyeg_IDWvOJmVES_Hw4BXoKZA.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVMSTAyLFyeg_IDWvOJmVES_HTEJm86Rb0bcw.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVMSTAyLFyeg_IDWvOJmVES_HToIW86Rb0bcw.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVMSTAyLFyeg_IDWvOJmVES_HSMIG86Rb0bcw.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVMSTAyLFyeg_IDWvOJmVES_HSQI286Rb0bcw.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/bevietnampro/v12/QdVMSTAyLFyeg_IDWvOJmVES_HS0Im86Rb0bcw.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg-pitch: #0c0c0c;
  --bg-card: #141416;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #ffffff;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;

  --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
}

/* ---------------- Promo Banner ---------------- */
.promo-banner {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
}

.promo-banner.hidden {
  display: none;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-tag {
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.promo-text {
  font-weight: 500;
}

.promo-text b {
  color: #ffedd5;
}

.promo-close-btn {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: #fff;
}

.brand-symbol {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-symbol img,
.brand-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin-right: 6px;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.brand-ai,
.brand-motion,
.brand-highlight {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  vertical-align: baseline;
  margin-left: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.badge-new {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  color: #0c0c0c;
  line-height: 1.4;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-snappy);
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: #ffffff;
  color: #0c0c0c;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nav-search-trigger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-search-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: #ffffff;
}

.search-icon {
  width: 15px;
  height: 15px;
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- Buttons ---------------- */
.btn-primary {
  background: linear-gradient(to top, rgb(207, 222, 246) 20%, rgb(250, 250, 250) 80%);
  color: rgb(9, 9, 11);
  border: none;
  border-top: 1.5px solid rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.18s var(--ease-snappy);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
}

/* ---------------- Hero ---------------- */
.hero-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 36px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.radiant-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0.9)),
                    linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pill-sparkle {
  color: #60a5fa;
  font-size: 12px;
}

.pill-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.34;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 16px;
  max-width: 900px;
}

.gradient-glow-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite alternate;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-btn {
  padding: 12px 28px;
  font-size: 14.5px;
}

/* ---------------- Marquee ---------------- */
.marquee-ribbon-section {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 36px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-card {
  width: 580px;
  flex-shrink: 0;
}

/* ---------------- Catalog Controls ---------------- */
.catalog-section {
  max-width: 1920px;
  margin: 0 auto;
  padding: 30px 32px 80px;
}

.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

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

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
  background: #ffffff;
  color: #0c0c0c;
  font-weight: 700;
  border-color: #ffffff;
}

.catalog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.video-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

/* Custom Dropdown System */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.custom-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.custom-dropdown.open .custom-dropdown-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.dropdown-chevron {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.custom-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 165px;
  background: rgba(18, 18, 22, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.custom-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.custom-dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.dropdown-check-icon {
  opacity: 0;
  color: #ffffff;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.custom-dropdown-item.active .dropdown-check-icon {
  opacity: 1;
}

.sort-select {
  display: none;
}

.inline-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
}

.search-box-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
}

.inline-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px 48px;
  font-family: inherit;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.inline-search-box input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.clear-search-btn.hidden {
  display: none;
}

/* ---------------- Video Grid ---------------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

/* ---------------- Video Card (grid + marquee) ---------------- */
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s var(--ease-snappy), border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8);
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fixed instant watermark overlay */
.card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 39.6875%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

/* Like pill — top right */
.like-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(24, 24, 27, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.like-btn:hover {
  background: rgba(24, 24, 27, 0.92);
}

.like-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s var(--ease-snappy);
}

.like-btn:active svg {
  transform: scale(0.82);
}

.like-btn.liked svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
}

/* Copy button — bottom right */
.copy-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  transition: background 0.2s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

.copy-btn:active {
  transform: scale(0.9);
}

.copy-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

/* ---------------- Toast ---------------- */
.toast-hub {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 48px));
  padding: 18px 22px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  animation: toast-in 0.3s var(--ease-snappy) both;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease forwards;
}

.toast-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.toast-desc {
  font-size: 14px;
  color: #d4d4d8;
  line-height: 1.45;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #08080a;
  padding: 60px 32px 36px;
}

.footer-container {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.3fr 1.1fr;
  gap: 40px;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  max-width: 440px;
}

.footer-tagline {
  color: var(--text-subtle);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-links-group a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-links-group a:hover {
  color: #ffffff;
}

.footer-links-group span {
  color: var(--text-subtle);
  font-size: 12.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .marquee-card {
    width: 380px;
  }
}


/* ==========================================================================
   PHONE LAYOUT (< 768px) — shared navbar + catalog controls.
   Desktop/tablet rules above are untouched; everything here is phone-only.
   ========================================================================== */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }

  /* Navbar: brand + actions on row 1, scrollable section links on row 2 */
  .navbar {
    height: auto;
    padding: 8px 0 6px;
  }
  .navbar .nav-container {
    padding: 0 12px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .navbar .nav-left { display: contents; }
  .navbar .brand-link { order: 1; gap: 0px; }
  .navbar .brand-symbol,
  .navbar .brand-logo-img { width: 22px; height: 22px; margin-right: 5px; }
  .navbar .brand-name,
  .navbar .brand-motion { font-size: 19px; font-weight: 800; }
  .navbar .nav-right { order: 2; gap: 6px; }
  .navbar .nav-links {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
  }
  .navbar .nav-links::-webkit-scrollbar { display: none; }
  .navbar .nav-item {
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .navbar .lang-switcher { padding: 2px; }
  .navbar .lang-btn { font-size: 10px; padding: 4px 7px; }
  .navbar .nav-auth-group { gap: 6px; }
  .navbar .nav-icon-search-btn { display: none; }
  .navbar .btn-go-unlimited { display: none; }
  .navbar .btn-nav-login {
    font-size: 12px;
    padding: 6px 12px;
  }
  .navbar .nav-avatar-btn { width: 30px; height: 30px; font-size: 11px; }

  /* Catalog controls: single swipeable pill row, compact search */
  .catalog-header-bar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill {
    font-size: 11.5px;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .video-counter { font-size: 10.5px; }
  .inline-search-box { margin-bottom: 12px; }
  .search-box-icon { left: 12px; width: 15px; height: 15px; }
  .inline-search-box input {
    padding: 8px 36px;
    font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
    border-radius: 12px;
  }
}

/* ---------------- Legal & Policy Pages ---------------- */
.policy-page-main {
  min-height: 100vh;
  padding: 130px 24px 80px;
  background: var(--bg-main);
  color: var(--text-main);
}

.policy-container {
  max-width: 920px;
  margin: 0 auto;
}

.policy-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.policy-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: #ffffff;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.policy-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.policy-nav-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.policy-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.policy-nav-pill.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy-section {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 27, 0.45);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.policy-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section h2 .sec-num {
  font-family: var(--font-mono);
  color: #60a5fa;
  font-size: 16px;
}

.policy-section p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-section li {
  font-size: 14px;
  line-height: 1.6;
  color: #9ca3af;
}

.policy-section li strong {
  color: #f3f4f6;
}

.policy-highlight-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  font-size: 13.5px;
  color: #bfdbfe;
  line-height: 1.6;
}
