/* === css/variables.css === */
/* ============================================
   StreamVault — Design Tokens & Theme System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Font Family ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* ── Font Sizes ── */
  --fs-xs: 0.625rem;      /* 10px */
  --fs-sm: 0.75rem;       /* 12px */
  --fs-base: 0.875rem;    /* 14px */
  --fs-md: 1rem;          /* 16px */
  --fs-lg: 1.125rem;      /* 18px */
  --fs-xl: 1.25rem;       /* 20px */
  --fs-2xl: 1.5rem;       /* 24px */
  --fs-3xl: 1.875rem;     /* 30px */
  --fs-4xl: 2.25rem;      /* 36px */

  /* ── Font Weights ── */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* ── Line Heights ── */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;

  /* ── Spacing Scale ── */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.25rem;   /* 20px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-8: 2rem;      /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */
  --sp-20: 5rem;     /* 80px */
  --sp-24: 6rem;     /* 96px */

  /* ── Border Radius ── */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Z-Index Layers ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidebar: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
  --z-header: 800;
  --z-max: 9999;

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout Dimensions ── */
  --header-height: 56px;
  --sidebar-width: 0px;
  --sidebar-collapsed: 0px;
  --bottom-nav-height: 56px;
  --player-max-width: 1280px;

  /* ── Shadows (Light) ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);

  /* ── Light Theme (Default) ── */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F2F2F2;
  --bg-tertiary: #E8E8E8;
  --bg-elevated: #FFFFFF;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-tooltip: #616161;

  --surface: #FFFFFF;
  --surface-hover: #F2F2F2;
  --surface-active: #E8E8E8;
  --surface-card: #FFFFFF;

  --text-primary: #0F0F0F;
  --text-secondary: #606060;
  --text-tertiary: #909090;
  --text-disabled: #B0B0B0;
  --text-inverse: #FFFFFF;
  --text-link: #065FD4;

  --border-primary: #E0E0E0;
  --border-secondary: #CCCCCC;
  --border-focus: #065FD4;

  --accent: #FF4444;
  --accent-hover: #E03C3C;
  --accent-light: rgba(255, 68, 68, 0.1);
  --accent-gradient: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%);

  --success: #2EA043;
  --success-light: rgba(46, 160, 67, 0.1);
  --warning: #E3A008;
  --warning-light: rgba(227, 160, 8, 0.1);
  --error: #DA3633;
  --error-light: rgba(218, 54, 51, 0.1);
  --info: #388BFD;
  --info-light: rgba(56, 139, 253, 0.1);

  --chip-bg: #F2F2F2;
  --chip-bg-active: #0F0F0F;
  --chip-text: #0F0F0F;
  --chip-text-active: #FFFFFF;

  --header-bg: #FFFFFF;
  --header-border: #E0E0E0;
  --sidebar-bg: #FFFFFF;
  --sidebar-hover: #F2F2F2;
  --sidebar-active: #E8E8E8;

  --input-bg: #F8F8F8;
  --input-border: #CCCCCC;
  --input-focus: #065FD4;
  --input-placeholder: #909090;

  --badge-bg: rgba(0, 0, 0, 0.8);
  --badge-text: #FFFFFF;

  --skeleton-base: #E8E8E8;
  --skeleton-shine: #F5F5F5;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #CCCCCC;
  --scrollbar-thumb-hover: #999999;

  /* ── Gradient Accents ── */
  --gradient-primary: linear-gradient(135deg, #FF4444 0%, #FF8A65 100%);
  --gradient-secondary: linear-gradient(135deg, #7C4DFF 0%, #448AFF 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #272727;
  --bg-elevated: #1A1A1A;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-tooltip: #E0E0E0;

  --surface: #0F0F0F;
  --surface-hover: #272727;
  --surface-active: #333333;
  --surface-card: #1A1A1A;

  --text-primary: #F1F1F1;
  --text-secondary: #AAAAAA;
  --text-tertiary: #717171;
  --text-disabled: #555555;
  --text-inverse: #0F0F0F;
  --text-link: #3EA6FF;

  --border-primary: #333333;
  --border-secondary: #444444;
  --border-focus: #3EA6FF;

  --accent: #FF4444;
  --accent-hover: #FF6666;
  --accent-light: rgba(255, 68, 68, 0.15);

  --success: #3FB950;
  --success-light: rgba(63, 185, 80, 0.15);
  --warning: #D29922;
  --warning-light: rgba(210, 153, 34, 0.15);
  --error: #F85149;
  --error-light: rgba(248, 81, 73, 0.15);
  --info: #58A6FF;
  --info-light: rgba(88, 166, 255, 0.15);

  --chip-bg: #272727;
  --chip-bg-active: #F1F1F1;
  --chip-text: #F1F1F1;
  --chip-text-active: #0F0F0F;

  --header-bg: #0F0F0F;
  --header-border: #272727;
  --sidebar-bg: #0F0F0F;
  --sidebar-hover: #272727;
  --sidebar-active: #333333;

  --input-bg: #1A1A1A;
  --input-border: #333333;
  --input-focus: #3EA6FF;
  --input-placeholder: #717171;

  --badge-bg: rgba(0, 0, 0, 0.85);
  --badge-text: #FFFFFF;

  --skeleton-base: #1A1A1A;
  --skeleton-shine: #242424;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #444444;
  --scrollbar-thumb-hover: #666666;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 8px 10px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.6);

  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}


/* === css/base.css === */
/* ============================================
   StreamVault — Base Styles & Typography
   ============================================ */

h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-2xl); line-height: var(--lh-tight); }
h4 { font-size: var(--fs-xl);  line-height: var(--lh-normal); }
h5 { font-size: var(--fs-lg);  line-height: var(--lh-normal); }
h6 { font-size: var(--fs-md);  line-height: var(--lh-normal); }

p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

a:hover {
  color: var(--text-primary);
}

strong, b {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

hr {
  border: none;
  height: 1px;
  background: var(--border-primary);
  margin: var(--sp-4) 0;
}

/* ── Utility Text Classes ── */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary  { color: var(--text-secondary) !important; }
.text-tertiary   { color: var(--text-tertiary) !important; }
.text-accent     { color: var(--accent) !important; }
.text-success    { color: var(--success) !important; }
.text-warning    { color: var(--warning) !important; }
.text-error      { color: var(--error) !important; }

.text-xs   { font-size: var(--fs-xs) !important; }
.text-sm   { font-size: var(--fs-sm) !important; }
.text-base { font-size: var(--fs-base) !important; }
.text-md   { font-size: var(--fs-md) !important; }
.text-lg   { font-size: var(--fs-lg) !important; }
.text-xl   { font-size: var(--fs-xl) !important; }
.text-2xl  { font-size: var(--fs-2xl) !important; }

.fw-regular  { font-weight: var(--fw-regular) !important; }
.fw-medium   { font-weight: var(--fw-medium) !important; }
.fw-semibold { font-weight: var(--fw-semibold) !important; }
.fw-bold     { font-weight: var(--fw-bold) !important; }

.text-center { text-align: center !important; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Layout Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.hidden { display: none !important; }
.visible { display: block !important; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ── Spacing Utilities ── */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.p-1 { padding: var(--sp-1); }
.p-2 { padding: var(--sp-2); }
.p-3 { padding: var(--sp-3); }
.p-4 { padding: var(--sp-4); }
.p-6 { padding: var(--sp-6); }
.p-8 { padding: var(--sp-8); }

/* ── Misc ── */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* === css/animations.css === */
/* ============================================
   StreamVault — Animations & Transitions
   ============================================ */

/* ── Skeleton Shimmer ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Fade Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Scale Animations ── */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scaleUp {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.5); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Slide Animations ── */
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideInDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ── Utility Animations ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes progressBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Toast Animations ── */
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Like Heart Animation ── */
@keyframes heartBeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ── Animation Utility Classes ── */
.animate-fadeIn { animation: fadeIn var(--transition-base) ease forwards; }
.animate-fadeInUp { animation: fadeInUp var(--transition-slow) ease forwards; }
.animate-fadeInDown { animation: fadeInDown var(--transition-slow) ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft var(--transition-slow) ease forwards; }
.animate-fadeInRight { animation: fadeInRight var(--transition-slow) ease forwards; }
.animate-scaleIn { animation: scaleIn var(--transition-base) ease forwards; }
.animate-popIn { animation: popIn var(--transition-spring) forwards; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }
.animate-shake { animation: shake 0.5s ease; }

/* ── Stagger Children ── */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
.stagger-children > *:nth-child(7) { animation-delay: 300ms; }
.stagger-children > *:nth-child(8) { animation-delay: 350ms; }
.stagger-children > *:nth-child(9) { animation-delay: 400ms; }
.stagger-children > *:nth-child(10) { animation-delay: 450ms; }
.stagger-children > *:nth-child(11) { animation-delay: 500ms; }
.stagger-children > *:nth-child(12) { animation-delay: 550ms; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* === css/skeleton.css === */
/* ============================================
   StreamVault — Skeleton Loading States
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

/* ── Video Card Skeleton ── */
.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.skeleton-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.skeleton-card-body {
  display: flex;
  gap: var(--sp-3);
  padding: 0 var(--sp-1);
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.skeleton-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.skeleton-title {
  height: 14px;
  width: 90%;
  border-radius: var(--radius-sm);
}

.skeleton-title-short {
  height: 14px;
  width: 65%;
  border-radius: var(--radius-sm);
}

.skeleton-meta {
  height: 12px;
  width: 50%;
  border-radius: var(--radius-sm);
}

.skeleton-meta-short {
  height: 12px;
  width: 35%;
  border-radius: var(--radius-sm);
}

/* ── Search Result Skeleton ── */
.skeleton-search-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
}

.skeleton-search-thumb {
  width: 360px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.skeleton-search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

.skeleton-search-title {
  height: 18px;
  width: 80%;
  border-radius: var(--radius-sm);
}

.skeleton-search-meta {
  height: 14px;
  width: 40%;
  border-radius: var(--radius-sm);
}

.skeleton-search-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.skeleton-search-channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
}

.skeleton-search-channel-name {
  height: 12px;
  width: 120px;
  border-radius: var(--radius-sm);
}

.skeleton-search-desc {
  height: 12px;
  width: 70%;
  border-radius: var(--radius-sm);
  margin-top: var(--sp-2);
}

/* ── Player Skeleton ── */
.skeleton-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.skeleton-player-title {
  height: 22px;
  width: 70%;
  border-radius: var(--radius-sm);
  margin-top: var(--sp-4);
}

.skeleton-player-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.skeleton-player-btn {
  height: 36px;
  width: 80px;
  border-radius: var(--radius-full);
}

.skeleton-player-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.skeleton-player-channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.skeleton-player-channel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.skeleton-player-channel-name {
  height: 16px;
  width: 150px;
  border-radius: var(--radius-sm);
}

.skeleton-player-channel-subs {
  height: 12px;
  width: 100px;
  border-radius: var(--radius-sm);
}

.skeleton-player-subscribe {
  height: 36px;
  width: 110px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

/* ── Recommendation Sidebar Skeleton ── */
.skeleton-rec-item {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.skeleton-rec-thumb {
  width: 168px;
  height: 94px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.skeleton-rec-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.skeleton-rec-title {
  height: 13px;
  width: 100%;
  border-radius: var(--radius-xs);
}

.skeleton-rec-title-short {
  height: 13px;
  width: 80%;
  border-radius: var(--radius-xs);
}

.skeleton-rec-channel {
  height: 11px;
  width: 60%;
  border-radius: var(--radius-xs);
  margin-top: var(--sp-1);
}

.skeleton-rec-views {
  height: 11px;
  width: 45%;
  border-radius: var(--radius-xs);
}

/* ── Admin Table Skeleton ── */
.skeleton-table {
  width: 100%;
}

.skeleton-table-row {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-primary);
  align-items: center;
}

.skeleton-table-cell {
  height: 14px;
  border-radius: var(--radius-sm);
}

.skeleton-table-cell-sm { width: 60px; }
.skeleton-table-cell-md { width: 150px; }
.skeleton-table-cell-lg { width: 250px; }
.skeleton-table-cell-xl { flex: 1; }

.skeleton-table-thumb {
  width: 120px;
  height: 67px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Channel/Profile Skeleton ── */
.skeleton-channel-banner {
  width: 100%;
  height: 200px;
  border-radius: 0;
}

.skeleton-channel-info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
}

.skeleton-channel-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── Shorts Skeleton ── */
.skeleton-short {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  margin: 0 auto;
}

/* ── Stat Card Skeleton ── */
.skeleton-stat-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

/* ── Landing Category Card Skeleton ── */
.skeleton-landing-card {
  pointer-events: none !important;
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.skeleton-landing-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 0.875rem;
}

.skeleton-landing-name {
  height: 14px;
  border-radius: 6px;
}

/* ── Browse Skeleton (Matching Screenshot) ── */
.browse-skeleton {
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
}

.browse-skeleton__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #1A1A1A 25%, #242424 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: browseShimmer 1.5s infinite ease-in-out;
}

.browse-skeleton__info {
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.browse-skeleton__avatar {
  display: none !important;
}

.browse-skeleton__text {
  width: 100%;
}

.browse-skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1A1A1A 25%, #242424 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: browseShimmer 1.5s infinite ease-in-out;
  margin-bottom: 6px;
}

.browse-skeleton__line:last-child {
  width: 50%;
  margin-bottom: 0;
}

@keyframes browseShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}



/* === css/empty-states.css === */
/* ============================================
   StreamVault — Empty States
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  min-height: 400px;
  animation: fadeInUp var(--transition-slow) ease;
}

.empty-state__icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
  color: var(--text-tertiary);
  transition: background var(--transition-base);
}

.empty-state__icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

.empty-state__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.empty-state__description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 400px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.empty-state__action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-6);
  background: var(--accent);
  color: #FFFFFF;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.empty-state__action:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.empty-state__action:active {
  transform: translateY(0);
}

.empty-state__action svg {
  width: 18px;
  height: 18px;
}

/* ── Compact Empty State (for sidebars/panels) ── */
.empty-state--compact {
  padding: var(--sp-8) var(--sp-4);
  min-height: 200px;
}

.empty-state--compact .empty-state__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--sp-4);
}

.empty-state--compact .empty-state__icon svg {
  width: 36px;
  height: 36px;
}

.empty-state--compact .empty-state__title {
  font-size: var(--fs-md);
}

.empty-state--compact .empty-state__description {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

/* ── Error State ── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  min-height: 400px;
}

.error-state__icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--error-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-6);
  color: var(--error);
}

.error-state__icon svg {
  width: 48px;
  height: 48px;
}

.error-state__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.error-state__description {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: var(--sp-6);
}

.error-state__retry {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-6);
  background: transparent;
  color: var(--accent);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition-base);
}

.error-state__retry:hover {
  background: var(--accent-light);
}


/* === css/layout.css === */
/* ============================================
   StreamVault — Layout System
   Header, Sidebar, Main Content, Bottom Nav
   ============================================ */

/* ── App Container ── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-2);
  z-index: var(--z-header);
  transition: background 0.3s ease, border-color 0.3s ease;
  gap: var(--sp-2);
}

/* ── Header Left: Menu + Logo ── */
.header__left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 200ms ease;
}

.header__menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  color: var(--text-primary);
}

.header__menu-btn:hover {
  background: var(--surface-hover);
}

.header__menu-btn svg {
  width: 24px;
  height: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.header__logo-icon svg {
  width: 18px;
  height: 18px;
}

.header__logo-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.header__logo-text span {
  color: var(--accent);
}

/* ── Header Center: Search ── */
.header__center {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header__search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: auto;
  height: 38px;
  position: relative;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0 4px 0 14px;
  box-sizing: border-box;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header__search:hover {
  background: rgba(45, 45, 50, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header__search:focus-within {
  background: rgba(36, 36, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Left search icon */
.header__search-icon-left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  margin-right: 8px;
  transition: color 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.header__search:focus-within .header__search-icon-left {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.header__search-icon-left svg {
  width: 15px;
  height: 15px;
}

/* Input Wrapper & Input */
.header__search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.header__search-input {
  width: 100%;
  height: 100%;
  padding: 0 4px 0 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 450;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
}

.header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  transition: color 150ms ease;
}

.header__search:focus-within .header__search-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* Clear button (X) */
.header__search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.header__search-clear:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: scale(1.08);
}

.header__search-clear svg {
  width: 11px;
  height: 11px;
}

/* Keyboard hint chip */
.header__search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  letter-spacing: 0.04em;
  margin-right: 4px;
  user-select: none;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.header__search:focus-within .header__search-kbd {
  opacity: 0;
}

/* Search Submit Button — hidden when external icon exists */
.header__search-btn {
  height: 30px;
  width: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.header__search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.header__search-btn:active {
  transform: scale(0.92);
}

.header__search-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Back Button (Left of Search Bar) ── */
.header__search-back {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 0;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
  box-sizing: border-box;
}

.header__search-back:hover {
  background: rgba(50, 50, 50, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: translateX(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header__search-back:active {
  transform: scale(0.92);
}

.header__search-back svg {
  width: 18px;
  height: 18px;
}

/* ── Search suggestions dropdown (removed) ── */
.header__search-suggestions,
.header__search-suggestions.active {
  display: none !important;
}

.search-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.search-suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}

.search-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #E2E8F0;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}

.search-suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
  transform: translateY(-1px);
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 140ms ease;
  font-size: 14px;
  color: #E2E8F0;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.search-suggestion-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.search-suggestion-item__left svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.search-suggestion-item:hover .search-suggestion-item__left svg {
  color: #FFFFFF;
}

.search-suggestion-item__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-item__text mark {
  background: transparent;
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.search-suggestion-item__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.search-suggestions-footer {
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.search-suggestions-footer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-suggestions-footer-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFF;
}

/* ── Header Right: Actions ── */
.header__right {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.header__action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.header__action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header__action-btn:active {
  transform: scale(0.92);
}

.header__action-btn svg {
  width: 20px;
  height: 20px;
}

.header__notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: var(--z-sidebar);
  transition: width var(--transition-base), transform var(--transition-base);
  padding-bottom: var(--sp-6);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar__section {
  padding: var(--sp-3) var(--sp-3);
}

.sidebar__section + .sidebar__section {
  border-top: 1px solid var(--border-primary);
}

.sidebar__section-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--sp-2) var(--sp-3);
  display: block;
}

.sidebar.collapsed .sidebar__section-title {
  display: none;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.sidebar__link:hover {
  background: var(--sidebar-hover);
}

.sidebar__link.active {
  background: var(--sidebar-active);
  font-weight: var(--fw-semibold);
}

.sidebar__link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.sidebar__link-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar__link {
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-1);
  align-items: center;
  justify-content: center;
}

.sidebar.collapsed .sidebar__link-text {
  font-size: var(--fs-xs);
  text-align: center;
}

/* ── Sidebar Overlay (Mobile) ── */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  z-index: calc(var(--z-sidebar) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════ */
.main-content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--header-height));
  transition: margin-left var(--transition-base);
  padding: var(--sp-6);
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}

.main-content.no-sidebar,
.main-content.search-main {
  margin-left: 0 !important;
}

/* ── Video Grid ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4) var(--sp-4);
}

/* ── Category Chips Bar ── */
.category-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  position: sticky;
  top: var(--header-height);
  background: var(--bg-primary);
  z-index: var(--z-sticky);
  padding-top: var(--sp-1);
  margin-bottom: var(--sp-2);
  transition: background var(--transition-base);
}

.category-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--bg-primary));
  pointer-events: none;
}

/* ══════════════════════════════════════════
   BOTTOM NAVIGATION (Mobile)
   ══════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(10, 10, 10, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  z-index: var(--z-sticky);
  justify-content: space-around;
  align-items: center;
  padding: 0 var(--sp-2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  border-radius: 12px;
}

.bottom-nav__item.active {
  color: #fff;
}

.bottom-nav__item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.bottom-nav__item:active {
  transform: scale(0.92);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.bottom-nav__item.active svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.35));
}

.bottom-nav__label {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

/* ══════════════════════════════════════════
   TWO-COLUMN LAYOUT (Watch Page)
   ══════════════════════════════════════════ */
.watch-layout {
  display: flex;
  gap: var(--sp-6);
  max-width: 1800px;
  margin: 0 auto;
}

.watch-layout__primary {
  flex: 1;
  min-width: 0;
}

.watch-layout__secondary {
  width: 400px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PAGE HEADER (for inner pages)
   ══════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
}

.page-header__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ══════════════════════════════════════════
   LOAD MORE
   ══════════════════════════════════════════ */
.load-more {
  display: flex;
  justify-content: center;
  padding: var(--sp-8) 0;
}

.load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-8);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.load-more__btn:hover {
  background: var(--accent-light);
}

.load-more__spinner {
  display: none;
}

.load-more__btn.loading .load-more__spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.load-more__btn.loading .load-more__text {
  display: none;
}


/* === css/components.css === */
/* ============================================
   StreamVault — Reusable Components
   Buttons, Chips, Badges, Modals, Dropdowns,
   Tooltips, Toggles, Forms
   ============================================ */

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn:active { transform: scale(0.97); }

/* Primary */
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--accent-hover); }

/* Secondary */
.btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.btn--secondary:hover { background: var(--bg-tertiary); }

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn--ghost:hover { background: var(--surface-hover); }

/* Outline */
.btn--outline {
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}
.btn--outline:hover { background: var(--surface-hover); }

/* Icon button */
.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon-lg {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Subscribe button */
.btn--subscribe {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: var(--sp-2) var(--sp-5);
  font-weight: var(--fw-semibold);
}
.btn--subscribe:hover { opacity: 0.85; }
.btn--subscribe.subscribed {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Sizes */
.btn--sm { padding: 6px var(--sp-3); font-size: var(--fs-sm); }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { padding: var(--sp-3) var(--sp-6); font-size: var(--fs-md); }

/* Disabled */
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   CHIPS
   ══════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-3);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: none;
  flex-shrink: 0;
}

.chip:hover {
  background: var(--bg-tertiary);
}

.chip.active {
  background: var(--chip-bg-active);
  color: var(--chip-text-active);
}

.chip.active:hover {
  opacity: 0.85;
}

.chip svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.4;
}

.badge--duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

.badge--live {
  background: var(--accent);
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
}

.badge--status {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--fw-semibold);
}

.badge--ready { background: var(--success-light); color: var(--success); }
.badge--processing { background: var(--warning-light); color: var(--warning); }
.badge--failed { background: var(--error-light); color: var(--error); }
.badge--draft { background: var(--info-light); color: var(--info); }

.badge--verified {
  display: inline-flex;
  color: var(--text-secondary);
}
.badge--verified svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: var(--sp-4);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border-primary);
}

.modal__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.modal__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.modal__close:hover { background: var(--surface-hover); }
.modal__close svg { width: 20px; height: 20px; }

.modal__body {
  padding: var(--sp-6);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-primary);
}

/* ══════════════════════════════════════════
   DROPDOWN MENU
   ══════════════════════════════════════════ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  display: none;
  animation: scaleIn 150ms ease;
  overflow: hidden;
  padding: var(--sp-1) 0;
}

.dropdown__menu.active {
  display: block;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dropdown__item:hover { background: var(--surface-hover); }
.dropdown__item svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }

.dropdown__divider {
  height: 1px;
  background: var(--border-primary);
  margin: var(--sp-1) 0;
}

/* ══════════════════════════════════════════
   TOOLTIP
   ══════════════════════════════════════════ */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--bg-tooltip);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-tooltip);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════════
   TOGGLE SWITCH
   ══════════════════════════════════════════ */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  display: inline-block;
}

.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle__track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.toggle input:checked ~ .toggle__track {
  background: var(--accent);
}

.toggle input:checked ~ .toggle__thumb {
  transform: translateX(20px);
}

/* ══════════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder { color: var(--input-placeholder); }
.form-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(6, 95, 212, 0.1);
}

.form-input--error {
  border-color: var(--error);
}
.form-input--error:focus {
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-textarea::placeholder { color: var(--input-placeholder); }
.form-textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(6, 95, 212, 0.1);
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.form-select:focus {
  border-color: var(--input-focus);
}

.form-error {
  font-size: var(--fs-sm);
  color: var(--error);
  margin-top: var(--sp-1);
}

.form-hint {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}

/* ══════════════════════════════════════════
   TABS
   ══════════════════════════════════════════ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  gap: 0;
  overflow-x: auto;
}

.tab {
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* ══════════════════════════════════════════
   TOAST / NOTIFICATION
   ══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  animation: toastSlideIn var(--transition-base) ease;
  position: relative;
  overflow: hidden;
}

.toast.removing {
  animation: toastSlideOut var(--transition-base) ease forwards;
}

.toast__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.toast--success .toast__icon { color: var(--success); }
.toast--error .toast__icon { color: var(--error); }
.toast--warning .toast__icon { color: var(--warning); }
.toast--info .toast__icon { color: var(--info); }

.toast__message {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text-primary);
}

.toast__close {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.toast__close:hover { background: var(--surface-hover); color: var(--text-primary); }
.toast__close svg { width: 16px; height: 16px; }

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  animation: progressBar 4s linear forwards;
}

.toast--success .toast__progress { background: var(--success); }
.toast--error .toast__progress { background: var(--error); }
.toast--warning .toast__progress { background: var(--warning); }
.toast--info .toast__progress { background: var(--info); }

/* ══════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--xs { width: 24px; height: 24px; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 48px; height: 48px; }
.avatar--xl { width: 64px; height: 64px; }
.avatar--2xl { width: 80px; height: 80px; }

/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-6) 0;
}

.pagination__btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
}
.pagination__btn:hover { background: var(--surface-hover); }
.pagination__btn.active {
  background: var(--accent);
  color: #FFFFFF;
}
.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination__btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════ */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.progress-bar--lg { height: 8px; }

/* ══════════════════════════════════════════
   TAG
   ══════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--fs-sm);
  color: var(--text-link);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.tag:hover {
  background: var(--info-light);
}


/* === css/video-card.css === */
/* ============================================
   StreamVault — Video Card Component
   ============================================ */

/* ── Video Card ── */
.video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast);
  text-decoration: none;
  color: inherit;
  animation: fadeInUp var(--transition-slow) ease backwards;
}

.video-card:hover .video-card__thumbnail img {
  transform: scale(1.03);
}

/* ── Thumbnail Container ── */
.video-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.video-card__thumbnail img.lazy {
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.video-card__thumbnail img.loaded {
  opacity: 1;
}

/* ── Duration Badge ── */
.video-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* ── Progress Bar (Continue Watching) ── */
.video-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.video-card__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0 var(--radius-sm) 0 0;
}

/* ── Card Body ── */
.video-card__body {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-1) var(--sp-1);
}

.video-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.video-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__info {
  flex: 1;
  min-width: 0;
}

.video-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__channel {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: 2px;
}

.video-card__channel-name {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.video-card__channel-name:hover {
  color: var(--text-primary);
}

.video-card__verified {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.video-card__verified svg {
  width: 14px;
  height: 14px;
}

.video-card__meta {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.video-card__meta-separator {
  margin: 0 4px;
}

/* ── More Options ── */
.video-card__more {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.video-card:hover .video-card__more {
  opacity: 1;
}

.video-card__more svg {
  width: 18px;
  height: 18px;
}

/* ── Context Menu ── */
.video-card__context-menu {
  position: absolute;
  top: 40px;
  right: var(--sp-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  min-width: 200px;
  display: none;
  animation: scaleIn 150ms ease;
  overflow: hidden;
  padding: var(--sp-1) 0;
}

.video-card__context-menu.active {
  display: block;
}

.video-card__context-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.video-card__context-item:hover {
  background: var(--surface-hover);
}
.video-card__context-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   HORIZONTAL VIDEO CARD (Search/History)
   ══════════════════════════════════════════ */
.video-card-h {
  display: flex;
  gap: var(--sp-4);
  cursor: pointer;
  padding: var(--sp-2) 0;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}

.video-card-h:hover {
  background: var(--surface-hover);
}

.video-card-h__thumbnail {
  position: relative;
  width: 360px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.video-card-h__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-h__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
}

.video-card-h__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.video-card-h__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-h__meta {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.video-card-h__channel {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.video-card-h__channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-secondary);
}

.video-card-h__channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-h__channel-name {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.video-card-h__description {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--sp-2);
}

/* ══════════════════════════════════════════
   RECOMMENDATION CARD (Sidebar)
   ══════════════════════════════════════════ */
.rec-card {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  padding: var(--sp-1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}

.rec-card:hover {
  background: var(--surface-hover);
}

.rec-card__thumbnail {
  position: relative;
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.rec-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-card__duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 11px;
  font-weight: var(--fw-medium);
  padding: 1px 3px;
  border-radius: var(--radius-xs);
}

.rec-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rec-card__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-1);
}

.rec-card__channel {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.rec-card__meta {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   TRENDING VIDEO CARD
   ══════════════════════════════════════════ */
.trending-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
  border-radius: var(--radius-lg);
}

.trending-card:hover {
  background: var(--surface-hover);
}

.trending-card__rank {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  color: var(--text-tertiary);
  min-width: 48px;
  text-align: center;
  line-height: 1;
  padding-top: var(--sp-4);
  flex-shrink: 0;
}

.trending-card__thumbnail {
  position: relative;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.trending-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
}

.trending-card__info {
  flex: 1;
  min-width: 0;
}

.trending-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-2);
}

.trending-card__channel {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-1);
}

.trending-card__meta {
  font-size: var(--fs-base);
  color: var(--text-secondary);
}


/* === css/player.css === */
/* ============================================
   StreamVault — Video Player Page Styles
   ============================================ */

/* ── Player Container ── */
.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.player-container video,
.player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  display: block;
}

/* ── Custom Controls Overlay ── */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: var(--sp-8) var(--sp-3) var(--sp-2);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.player-container:hover .player-controls,
.player-container.controls-visible .player-controls {
  opacity: 1;
}

/* ── Progress Bar ── */
.player-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height var(--transition-fast);
}

.player-progress:hover {
  height: 5px;
}

.player-progress__buffer {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.player-progress__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.player-progress__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 13px;
  height: 13px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.player-progress:hover .player-progress__thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* ── Control Bar ── */
.player-control-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: #FFFFFF;
}

.player-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.player-btn:hover {
  background: rgba(255,255,255,0.15);
}

.player-btn svg {
  width: 22px;
  height: 22px;
}

.player-btn--large svg {
  width: 28px;
  height: 28px;
}

.player-time {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: #FFFFFF;
  padding: 0 var(--sp-2);
  white-space: nowrap;
  user-select: none;
}

.player-spacer {
  flex: 1;
}

/* ── Volume Slider ── */
.player-volume {
  display: flex;
  align-items: center;
  gap: 0;
}

.player-volume__slider {
  width: 0;
  overflow: hidden;
  transition: width var(--transition-base);
}

.player-volume:hover .player-volume__slider {
  width: 60px;
}

.player-volume__slider input[type="range"] {
  width: 60px;
  height: 3px;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-volume__slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
}

/* ── Settings Menu ── */
.player-settings-menu {
  position: absolute;
  bottom: 50px;
  right: var(--sp-3);
  background: rgba(28, 28, 28, 0.95);
  border-radius: var(--radius-lg);
  min-width: 250px;
  padding: var(--sp-2) 0;
  display: none;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.player-settings-menu.active {
  display: block;
  animation: scaleIn 150ms ease;
}

.player-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-4);
  color: #FFFFFF;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.player-settings-item:hover {
  background: rgba(255,255,255,0.1);
}

.player-settings-item__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.player-settings-item__value {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
}

/* ── Quality/Speed Submenu ── */
.player-submenu {
  padding: var(--sp-2) 0;
}

.player-submenu__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  color: #FFFFFF;
  font-weight: var(--fw-semibold);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-1);
  cursor: pointer;
}

.player-submenu__option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  color: #FFFFFF;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.player-submenu__option:hover {
  background: rgba(255,255,255,0.1);
}

.player-submenu__option.active {
  color: var(--accent);
}

.player-submenu__option .check-icon {
  width: 18px;
  visibility: hidden;
}

.player-submenu__option.active .check-icon {
  visibility: visible;
}

/* ── Big Play Button (center) ── */
.player-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  border: none;
}

.player-big-play:hover {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-big-play svg {
  width: 28px;
  height: 28px;
}

.player-container.playing .player-big-play {
  display: none;
}

/* ══════════════════════════════════════════
   VIDEO INFO SECTION
   ══════════════════════════════════════════ */
.video-info {
  padding: var(--sp-4) 0;
}

.video-info__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-3);
}

/* ── Actions Row ── */
.video-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: var(--sp-4);
  padding-bottom: 2px;
  width: 100%;
}

.video-actions::-webkit-scrollbar {
  display: none;
}

.video-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  height: 36px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.video-action-btn:hover {
  background: var(--bg-tertiary);
}

.video-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.video-action-btn.active {
  background: var(--accent-light);
  color: var(--accent);
}

.video-action-btn--like-dislike {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  gap: 0;
  padding: 0;
  height: 36px;
  flex-shrink: 0;
}

.video-action-btn--like-dislike .like-btn,
.video-action-btn--like-dislike .dislike-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
  height: 100%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: background var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.video-action-btn--like-dislike .like-btn {
  border-right: 1px solid var(--border-primary);
}

.video-action-btn--like-dislike .like-btn:hover,
.video-action-btn--like-dislike .dislike-btn:hover {
  background: var(--bg-tertiary);
}

.video-action-btn--like-dislike svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .video-actions {
    gap: 6px;
    margin-bottom: var(--sp-3);
  }
  .video-action-btn {
    height: 34px;
    padding: 0 10px;
    font-size: var(--fs-xs);
    gap: 5px;
  }
  .video-action-btn--like-dislike {
    height: 34px;
  }
  .video-action-btn--like-dislike .like-btn {
    padding: 0 9px 0 10px;
    font-size: var(--fs-xs);
    gap: 5px;
  }
  .video-action-btn--like-dislike .dislike-btn {
    padding: 0 9px;
  }
  .video-action-btn svg,
  .video-action-btn--like-dislike svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 360px) {
  .video-actions {
    gap: 4px;
  }
  .video-action-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
  }
  .video-action-btn--like-dislike {
    height: 32px;
  }
  .video-action-btn--like-dislike .like-btn {
    padding: 0 7px 0 8px;
    font-size: 11px;
    gap: 4px;
  }
  .video-action-btn--like-dislike .dislike-btn {
    padding: 0 7px;
  }
  .video-action-btn svg,
  .video-action-btn--like-dislike svg {
    width: 14px;
    height: 14px;
  }
}

/* ── Channel Section ── */
.video-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border-primary);
}

.video-channel__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.video-channel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-channel__info {
  flex: 1;
  min-width: 0;
}

.video-channel__name {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.video-channel__name a {
  color: inherit;
  text-decoration: none;
}

.video-channel__name a:hover {
  color: var(--text-primary);
}

.video-channel__subs {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.video-channel__verified svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

/* ── Description ── */
.video-description {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-3);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.video-description:hover {
  background: var(--bg-tertiary);
}

.video-description__meta {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.video-description__text {
  font-size: var(--fs-base);
  color: var(--text-primary);
  white-space: pre-line;
  line-height: var(--lh-relaxed);
}

.video-description.collapsed .video-description__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-description__toggle {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: var(--sp-2);
  cursor: pointer;
}

/* ── Tags ── */
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

/* ── Recommendation Sidebar ── */
.recommendations {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.recommendations__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

/* ══════════════════════════════════════════
   SHARE MODAL
   ══════════════════════════════════════════ */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-max, 9999);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-modal {
  width: min(540px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-base);
  overscroll-behavior: contain;
}

.share-modal-overlay.active .share-modal {
  transform: translateY(0) scale(1);
}

.share-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
}

.share-modal__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.share-modal__close-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.share-modal__close-btn:hover,
.share-modal__close-btn:focus-visible {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.share-modal__close-btn svg {
  width: 20px;
  height: 20px;
}

.share-modal__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.share-video-preview {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.share-video-preview__thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius-md);
}

.share-video-preview__info {
  min-width: 0;
}

.share-video-preview__title {
  overflow: hidden;
  font-weight: var(--fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-video-preview__subtitle {
  margin-top: var(--sp-1);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.share-social-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
}

.share-social-item {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.share-social-item:hover,
.share-social-item:focus-visible {
  background: var(--bg-tertiary);
  border-color: var(--border-primary);
  transform: translateY(-1px);
}

.share-social-icon-wrapper,
.share-social-icon-wrapper svg {
  display: block;
  width: 24px;
  height: 24px;
}

.share-link-box {
  display: flex;
  min-width: 0;
  gap: var(--sp-2);
}

.share-link-input {
  width: 100%;
  min-width: 0;
  padding: 0 var(--sp-3);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--fs-sm);
}

.share-copy-btn,
.share-embed-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.share-copy-btn:hover,
.share-embed-btn:hover,
.share-copy-btn:focus-visible,
.share-embed-btn:focus-visible {
  background: var(--bg-tertiary);
}

.share-copy-btn.copied {
  color: var(--success);
  border-color: var(--success);
}

.share-copy-btn svg,
.share-embed-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.share-modal__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.share-timestamp-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.share-timestamp-label input {
  accent-color: var(--accent);
}

.share-timestamp-label strong {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .share-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .share-modal {
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .share-modal__body {
    padding: var(--sp-4);
  }

  .share-social-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Watch Page Ad Banner Card Box ── */
.watch-ad-card {
  background: rgba(18, 18, 18, 0.6) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  padding: 8px 12px 8px 12px !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.watch-ad-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4px !important;
}

.watch-ad-card__badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.watch-ad-card__body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 90px;
  position: relative;
  overflow: hidden;
}

.watch-ad-card__slot {
  width: 728px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  transform-origin: top center;
  transition: transform 0.1s ease-out;
}

.watch-ad-card__slot iframe {
  border: none !important;
  display: block !important;
  margin: 0 auto !important;
  max-width: 100%;
  height: 90px !important;
  width: 728px !important;
}

@media (max-width: 768px) {
  .watch-ad-card {
    padding: 6px 8px 6px 8px !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }
  .watch-ad-card__header {
    margin-bottom: 3px !important;
  }
  .watch-layout {
    gap: 12px !important;
  }
}

.recommendations .watch-ad-card {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}





/* === css/browse.css === */
/* ============================================
   StreamVault — Browse / Category Listing Page
   ============================================ */

/* ── Browse Layout ── */
.browse {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0F0F0F;
  color: #F1F1F1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Browse Header ── */
.browse-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 4px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-height, 48px);
  min-height: var(--header-height, 48px);
  box-sizing: border-box;
}

.browse-header__left,
.browse-header .header__left {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  position: static !important;
  transform: none !important;
  left: auto !important;
  margin: 0 !important;
  z-index: 2;
}

.browse-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #CCCCCC;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.browse-header__back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.browse-header__back:active {
  transform: scale(0.92);
}

.browse-header__back svg {
  width: 20px;
  height: 20px;
}

/* ── Browse Header Center / Info ── */
.browse-header__center,
.browse-header .header__center {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 0.5rem !important;
  position: relative !important;
}

.browse-header .browse-header__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.browse-header .browse-header__category {
  font-size: 1.05rem;
  font-weight: 600;
  color: #F1F1F1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.browse-header__right,
.browse-header .header__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  position: static !important;
  margin: 0 !important;
  z-index: 2;
}

.browse-header .header__search-mobile,
.browse-header #mobile-search-btn {
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

.browse-header .header__search-mobile svg,
.browse-header #mobile-search-btn svg {
  width: 20px !important;
  height: 20px !important;
}

/* Keep the centered logo and search icon until search is opened. */
.browse-header .browse-header__left,
.browse-header .header__left {
  display: flex !important;
}

.browse-header:not(.search-active) .browse-header__left {
  display: flex !important;
}

.browse-header:not(.search-active) .browse-header__center {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.browse-header .browse-header__info,
.browse-header.search-active .browse-header__logo {
  display: none !important;
}

.browse-header:not(.search-active) .browse-header__logo {
  display: flex !important;
}

.browse-header .browse-header__right,
.browse-header .header__right {
  display: flex !important;
}

.browse-header:not(.search-active) .browse-header__right {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
}

.browse-header:not(.search-active) #browse-search-bar {
  display: none !important;
}

.browse-header:not(.search-active) #search-back-btn {
  display: none !important;
}

/* Search Active Mode: Hide left/right, show back button */
.browse-header.search-active .browse-header__left,
.browse-header.search-active .header__left,
.browse-header.search-active .browse-header__right,
.browse-header.search-active .header__right {
  display: none !important;
}

.browse-header.search-active .browse-header__center,
.browse-header.search-active .header__center {
  display: flex !important;
  position: relative !important;
  left: auto !important;
  transform: none !important;
  flex: 1 !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  gap: 8px !important;
}

.browse-header.search-active #browse-search-bar {
  display: flex !important;
  flex: 1 !important;
}

.browse-header.search-active #search-back-btn {
  display: flex !important;
}

/* ── Category Chips Filter Bar ── */
.browse-chips-wrapper {
  position: sticky;
  top: var(--header-height, 48px);
  z-index: 90;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
}

.browse-chips {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.browse-chips:active {
  cursor: grabbing;
}

.browse-chips::-webkit-scrollbar {
  display: none;
}

.browse-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #CCCCCC;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.browse-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.browse-chip.active {
  background: #FFFFFF;
  color: #0F0F0F;
  font-weight: 600;
  border-color: #FFFFFF;
}

.browse-chips-arrow {
  display: none !important;
}

.browse-header__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FF4444, #FF6B6B);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browse-header__logo-icon svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* ── Age Gate ── */
.browse-age-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 60vh;
}

.browse-age-gate__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.1);
  color: #FF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.browse-age-gate__icon svg {
  width: 28px;
  height: 28px;
}

.browse-age-gate__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F1F1F1;
  margin-bottom: 0.75rem;
}

.browse-age-gate__text {
  font-size: 0.875rem;
  color: #888;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.browse-age-gate__actions {
  display: flex;
  gap: 0.75rem;
}

.browse-age-gate__btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.browse-age-gate__btn--confirm {
  background: #FF4444;
  color: #fff;
}

.browse-age-gate__btn--confirm:hover {
  background: #FF6666;
  transform: translateY(-1px);
}

.browse-age-gate__btn--cancel {
  background: #1A1A1A;
  color: #AAAAAA;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.browse-age-gate__btn--cancel:hover {
  background: #222;
  color: #F1F1F1;
}

/* ── Player Container Scoped Age Gate (Watch Page) ── */
.player-container .browse-age-gate {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  background: #000000 !important;
  z-index: 50 !important;
  border-radius: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  overflow: hidden !important;
}

.player-container .browse-age-gate__icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 68, 68, 0.12) !important;
  color: #FF4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 6px 0 !important;
  flex-shrink: 0 !important;
}

.player-container .browse-age-gate__icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #FF4444 !important;
  display: block !important;
}

.player-container .browse-age-gate__title {
  font-size: clamp(14px, 3.8vw, 18px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #F1F1F1 !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.01em !important;
}

.player-container .browse-age-gate__text {
  font-size: clamp(10.5px, 2.6vw, 13px) !important;
  line-height: 1.35 !important;
  color: #888888 !important;
  max-width: 380px !important;
  margin: 0 0 10px 0 !important;
  padding: 0 4px !important;
}

.player-container .browse-age-gate__actions {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.player-container .browse-age-gate__btn {
  padding: 7px 18px !important;
  border-radius: 10px !important;
  font-size: clamp(12px, 3vw, 13.5px) !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 150ms ease !important;
  -webkit-tap-highlight-color: transparent !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.player-container .browse-age-gate__btn--confirm {
  background: #FF4444 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(255, 68, 68, 0.35) !important;
}

.player-container .browse-age-gate__btn--confirm:hover {
  background: #FF6666 !important;
  transform: translateY(-1px) !important;
}

.player-container .browse-age-gate__btn--confirm:active {
  transform: scale(0.96) !important;
}

.player-container .browse-age-gate__btn--cancel {
  background: #1A1A1A !important;
  color: #AAAAAA !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.player-container .browse-age-gate__btn--cancel:hover {
  background: #222222 !important;
  color: #F1F1F1 !important;
}

.player-container .browse-age-gate__btn--cancel:active {
  transform: scale(0.96) !important;
}

@media (min-width: 768px) {
  .player-container .browse-age-gate {
    padding: 24px !important;
  }
  .player-container .browse-age-gate__icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    margin-bottom: 12px !important;
  }
  .player-container .browse-age-gate__icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  .player-container .browse-age-gate__title {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
  }
  .player-container .browse-age-gate__text {
    font-size: 0.95rem !important;
    max-width: 440px !important;
    margin-bottom: 16px !important;
  }
  .player-container .browse-age-gate__btn {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
  }
}


/* ── Video Grid (Browse) ── */
.browse-content {
  padding: 1.25rem;
  max-width: 1800px;
  margin: 0 auto;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ── Skeleton Cards ── */
.browse-skeleton {
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
}

.browse-skeleton__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: browseShimmer 1.5s infinite ease-in-out;
}

.browse-skeleton__info {
  padding: 0.625rem 0.5rem 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.browse-skeleton__avatar {
  display: none !important;
}

.browse-skeleton__text {
  width: 100%;
}

.browse-skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: browseShimmer 1.5s infinite ease-in-out;
  margin-bottom: 6px;
}

.browse-skeleton__line:last-child {
  width: 50%;
  margin-bottom: 0;
}

@keyframes browseShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Browse Empty State ── */
.browse-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.browse-empty__icon {
  width: 56px;
  height: 56px;
  color: #444;
  margin-bottom: 1rem;
}

.browse-empty__icon svg {
  width: 100%;
  height: 100%;
}

.browse-empty__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.5rem;
}

.browse-empty__text {
  font-size: 0.8125rem;
  color: #555;
}

/* ── Browse Video Card (standalone, no dependency on video-card.css) ── */
.browse-vcard {
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.browse-vcard:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.browse-vcard__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.browse-vcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.browse-vcard:hover .browse-vcard__thumb img {
  transform: scale(1.05);
}

.browse-vcard__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.browse-vcard__info {
  padding: 0.625rem 0.5rem 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.browse-vcard__avatar,
.browse-vcard__channel {
  display: none !important;
}

.browse-vcard__meta {
  width: 100%;
}

.browse-vcard__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F1F1F1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  word-break: break-word;
}

.browse-vcard__stats {
  font-size: 0.75rem;
  color: #888;
}

/* ── Browse Grid Ad Banner Card ── */
.browse-grid .watch-ad-card {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0 !important;
}

.browse-bottom-ad-card {
  width: 100%;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .browse-bottom-ad-card {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }

  .browse-more-wrap {
    margin-top: 12px !important;
  }
}

/* ── Responsive (Browse) ── */
@media (max-width: 479px) {
  .browse-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .browse-content {
    padding: 1rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .browse-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .browse-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}

/* ── Show More Button (Browse Categories) ── */
.browse-more-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
  box-sizing: border-box;
}

.browse-more-btn {
  width: 100%;
  max-width: 520px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #3ea6ff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  box-sizing: border-box;
}

.browse-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.browse-more-btn:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.99);
}

.browse-more-btn.loading {
  pointer-events: none;
  opacity: 0.65;
}

.browse-more-btn.loading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}



/* === css/search.css === */
/* ============================================
   StreamVault — Search Page Styles
   ============================================ */

/* Search Results Layout — Responsive Video Grid (5 Columns Desktop) */
.main-content.search-main,
.main-content:has(.search-page) {
  margin-left: 0 !important;
  display: block !important;
  padding: 1.25rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.search-page {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto !important;
  flex: 1;
  min-height: calc(100vh - var(--header-height) - 48px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.search-header__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-header__query {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-header__count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Filter Toggle */
.search-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  font-weight: 500;
}

.search-filter-toggle:hover {
  background: var(--surface-hover);
}

.search-filter-toggle svg {
  width: 18px;
  height: 18px;
}

.search-filter-toggle.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Filter Panel */
.search-filters {
  display: none;
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}

.search-filters.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-4);
}

.search-filters__row:last-child {
  margin-bottom: 0;
}

.search-filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.search-filters__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.search-filters__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.search-filter-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.search-filter-chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ── Category Filter Chips Bar for Search ── */
.search-chips-wrapper {
  width: 100%;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.search-chips {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
  padding: 4px 0;
}

.search-chips::-webkit-scrollbar {
  display: none;
}

.search-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #CCCCCC;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  font-family: inherit;
}

.search-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.search-chip.active {
  background: #FFFFFF;
  color: #0F0F0F;
  font-weight: 600;
  border-color: #FFFFFF;
}

/* Active Filter Tags */
.search-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.search-active-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.search-active-filter__remove {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
}

/* Search Results Grid — 5 Columns Desktop matching Browse screenshot */
.search-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Video Card (Matching Browse .browse-vcard & User Screenshot) */
.search-vcard,
.search-result-card {
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  box-sizing: border-box;
}

.search-vcard:hover,
.search-result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.search-vcard__thumb,
.search-result-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.search-vcard__thumb img,
.search-result-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  display: block;
}

.search-vcard:hover .search-vcard__thumb img,
.search-result-card:hover .search-result-card__thumbnail img {
  transform: scale(1.05);
}

.search-vcard__duration,
.search-result-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.search-vcard__duration.live,
.search-result-card__duration.live {
  background: #ff0000;
}

.search-vcard__info,
.search-result-card__info {
  padding: 0.625rem 0.5rem 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
}

.search-vcard__avatar,
.search-result-card__avatar,
.search-vcard__channel,
.search-result-card__channel {
  display: none !important;
}

.search-vcard__meta,
.search-result-card__meta-wrap {
  width: 100%;
}

.search-vcard__title,
.search-result-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F1F1F1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  word-break: break-word;
}

.search-vcard__stats,
.search-result-card__stats {
  font-size: 0.75rem;
  color: #888;
}

/* Show More Button — YouTube-style pill button */
.search-more-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-sizing: border-box;
}

.search-more-btn {
  width: 100%;
  max-width: 520px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #3ea6ff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  box-sizing: border-box;
}

.search-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.search-more-btn:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.99);
}

.search-more-btn.loading {
  pointer-events: none;
  opacity: 0.65;
}

.search-more-btn.loading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Search Empty State */
.search-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  margin: auto;
  width: 100%;
  max-width: 480px;
}

.search-empty svg {
  width: 90px;
  height: 90px;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-6);
  opacity: 0.5;
}

.search-empty__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.search-empty__subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

/* Skeleton Loading Cards */
.search-skeleton-card,
.search-skeleton {
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.search-skeleton-card__thumb,
.search-skeleton__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: searchShimmer 1.5s infinite ease-in-out;
}

.search-skeleton-card__info,
.search-skeleton__info {
  padding: 0.625rem 0.5rem 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.search-skeleton-card__avatar,
.search-skeleton__avatar {
  display: none !important;
}

.search-skeleton-card__text,
.search-skeleton__text {
  width: 100%;
}

.search-skeleton-card__line,
.search-skeleton__title {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: searchShimmer 1.5s infinite ease-in-out;
  margin-bottom: 8px;
}

.search-skeleton-card__line:last-child,
.search-skeleton__meta {
  height: 10px;
  width: 60%;
  border-radius: 5px;
  background: linear-gradient(90deg, #1A1A1A 25%, #222 50%, #1A1A1A 75%);
  background-size: 200% 100%;
  animation: searchShimmer 1.5s infinite ease-in-out;
  margin-bottom: 0;
}

@keyframes searchShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive Grid Breakpoints ── */
@media (max-width: 479px) {
  .search-results {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .main-content.search-main,
  .main-content:has(.search-page) {
    padding: 0.75rem !important;
  }

  .search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .search-filters__row {
    flex-direction: column;
    gap: var(--sp-4);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .main-content.search-main,
  .main-content:has(.search-page) {
    padding: 1rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .search-results {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .search-results {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
  }
}


/* === css/shorts.css === */
/* ============================================
   StreamVault — Shorts Page Styles
   ============================================ */

/* Container */
.shorts-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--bg-primary);
}

.shorts-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.shorts-container::-webkit-scrollbar {
  display: none;
}

/* Individual Short */
.short-item {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.short-item__video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.short-item__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-item__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity var(--transition-normal);
  cursor: pointer;
  z-index: 2;
}

.short-item__play-overlay svg {
  width: 64px;
  height: 64px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.short-item:hover .short-item__play-overlay,
.short-item.paused .short-item__play-overlay {
  opacity: 1;
}

/* Progress bar at bottom */
.short-item__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.short-item__progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Action Buttons (right side) */
.short-item__actions {
  position: absolute;
  right: 12px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 4;
}

.short-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.short-action:hover {
  transform: scale(1.1);
}

.short-action:active {
  transform: scale(0.95);
}

.short-action__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.short-action__btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.short-action__btn.active {
  color: var(--accent);
}

.short-action__btn svg {
  width: 24px;
  height: 24px;
}

.short-action__count {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Channel Avatar in actions */
.short-action__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  cursor: pointer;
}

.short-action__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Channel Info Overlay (bottom) */
.short-item__info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 80px;
  z-index: 4;
}

.short-item__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.short-item__channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.short-item__channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-item__channel-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.short-item__subscribe-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.short-item__subscribe-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.short-item__subscribe-btn.subscribed {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.short-item__title {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-item__title.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.short-item__more-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
  margin-top: 4px;
}

/* Navigation Arrows */
.shorts-nav {
  position: absolute;
  right: calc(50% - 250px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.shorts-nav--up {
  top: 50%;
  transform: translateY(-60px);
}

.shorts-nav--down {
  top: 50%;
  transform: translateY(12px);
}

.shorts-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.shorts-nav__btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

.shorts-nav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.shorts-nav__btn svg {
  width: 24px;
  height: 24px;
}

/* Gradient overlays */
.short-item__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
  z-index: 3;
  pointer-events: none;
}

.short-item__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 3;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .shorts-page {
    height: calc(100vh - 56px);
  }

  .shorts-container {
    max-width: 100%;
  }

  .short-item__video-wrapper {
    border-radius: 0;
  }

  .shorts-nav {
    display: none;
  }

  .short-item__actions {
    right: 8px;
    bottom: 100px;
    gap: 16px;
  }

  .short-action__btn {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .shorts-container {
    max-width: 380px;
  }
}

/* ============================================
/* ============================================
   Shorts Coming Soon Experience (App UI Matching)
   ============================================ */
.shorts-page:has(.shorts-card),
.shorts-page:has(.shorts-coming-soon) {
  height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  overflow-y: auto;
  position: relative;
  background: #0F0F0F;
}

@media (max-width: 767px) {
  .shorts-page:has(.shorts-card),
  .shorts-page:has(.shorts-coming-soon) {
    height: calc(100vh - 56px - var(--bottom-nav-height, 56px));
    min-height: calc(100dvh - 56px - var(--bottom-nav-height, 56px));
    padding-bottom: 2rem;
  }
}

/* UI-Matched Centerpiece Card (Matches Landing Grid Cards) */
.shorts-card,
.shorts-coming-soon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.5rem;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  margin: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: scsCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
  z-index: 2;
}

@keyframes scsCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shorts-card__icon-wrap,
.shorts-coming-soon__icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
              0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shorts-card__icon-wrap:hover,
.shorts-coming-soon__icon-wrap:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.shorts-card__svg,
.shorts-coming-soon__svg {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  color: #FFFFFF;
  fill: #FFFFFF;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.2));
}

.shorts-card__badge,
.shorts-coming-soon__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.shorts-card__badge-dot,
.shorts-coming-soon__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: blinkDot 1.5s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

.shorts-card__title,
.shorts-coming-soon__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #F1F1F1;
  margin-bottom: 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.shorts-card__desc,
.shorts-coming-soon__desc {
  font-size: 0.9rem;
  color: #888888;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.shorts-card__features,
.shorts-coming-soon__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.shorts-card__pill,
.shorts-coming-soon__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #D1D1D1;
  font-size: 0.78rem;
  font-weight: 500;
}

.shorts-card__pill svg,
.shorts-coming-soon__pill svg {
  width: 14px;
  height: 14px;
  display: block;
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.shorts-card__btn,
.shorts-coming-soon__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
              0 6px 20px rgba(0, 0, 0, 0.4);
  color: #FFFFFF !important;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.shorts-card__btn:hover,
.shorts-coming-soon__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.4),
              0 10px 28px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.shorts-card__btn:active,
.shorts-coming-soon__btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.14);
}

.shorts-card__btn svg,
.shorts-coming-soon__btn svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #FFFFFF;
  stroke: #FFFFFF;
  transition: transform 0.2s ease;
}

.shorts-card__btn:hover svg,
.shorts-coming-soon__btn:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .shorts-card,
  .shorts-coming-soon {
    padding: 2.75rem 2rem;
    max-width: 480px;
  }
  .shorts-card__title,
  .shorts-coming-soon__title {
    font-size: 2rem;
  }
  .shorts-card__desc,
  .shorts-coming-soon__desc {
    font-size: 0.96rem;
  }
}



/* === css/landing.css === */
/* ============================================
   StreamVault — Landing Page Styles
   ============================================ */

/* ── Landing Page Shell ── */
.landing {
  background: #0F0F0F;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.875rem 1.25rem;
  overflow: hidden;
  position: relative;
}

/* Subtle radial glow behind the logo */
.landing::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

/* ── Branding ── */
.landing__brand {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.landing__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(255, 68, 68, 0.25);
}

.landing__logo svg {
  width: 24px;
  height: 24px;
  color: #fff;
  display: block;
}

.landing__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #F1F1F1;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.landing__title span {
  background: linear-gradient(135deg, #FF4444, #FF8A65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing__tagline {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Category Grid ── */
.landing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.landing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  min-height: 120px;

  /* Stagger animation — controlled via inline style --i */
  opacity: 0;
  transform: translateY(20px);
  animation: landingCardIn 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 150ms);
}



.landing__card:hover,
.landing__card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(50, 50, 50, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}



.landing__card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.landing__card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color 200ms ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.landing__card-icon svg {
  width: 100%;
  height: 100%;
}

.landing__card:hover .landing__card-icon {
  color: #FF6B6B;
}

.landing__card-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.9375rem, 3vw, 1.125rem);
  font-weight: 700;
  color: #F1F1F1;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ── Footer hint ── */
.landing__footer {
  margin-top: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing__footer-text {
  font-size: 0.75rem;
  color: #444;
  letter-spacing: 0.03em;
}

/* ── Entry Animation ── */
@keyframes landingCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingBrandIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing__brand {
  animation: landingBrandIn 0.5s ease forwards;
}

/* ── Responsive ── */

/* Small phones (< 360px) */
@media (max-width: 359px) {
  .landing__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .landing__card {
    padding: 1.5rem 1rem;
    min-height: 90px;
  }
}

/* Larger phones / small tablets */
@media (min-width: 600px) {
  .landing {
    padding: 1rem 1.25rem;
  }

  .landing__grid {
    gap: 1rem;
    max-width: 540px;
  }

  .landing__card {
    padding: 2.5rem 1.25rem;
    min-height: 140px;
  }
}

/* Tablets and up */
@media (min-width: 768px) {
  .landing {
    padding: 1.125rem 2rem;
  }

  .landing__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 680px;
    gap: 1.125rem;
  }

  .landing__brand {
    margin-bottom: 4rem;
  }

  .landing__logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .landing__logo svg {
    width: 28px;
    height: 28px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .landing {
    padding: 1.25rem 2rem;
  }

  .landing__grid {
    max-width: 780px;
    gap: 1.25rem;
  }

  .landing__card {
    padding: 2.75rem 1.5rem;
    min-height: 160px;
  }
}


/* Custom Main overrides for landing page */
.main-content.landing-main {
  padding: 0;
  min-height: 0;
}

/* Custom Footer for landing page */
.landing__footer-full {
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
  flex-grow: 1;
  padding: 1.25rem 1rem;
}
@media (max-width: 767px) {
  .landing__footer-full {
    padding-bottom: calc(1.25rem + var(--bottom-nav-height, 56px));
  }
}



/* === css/responsive.css === */
/* ============================================
   StreamVault — Responsive Design
   ============================================ */

/* ── Desktop Large (1440px+) ── */
@media (min-width: 1440px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  }

  .watch-layout__secondary {
    width: 420px;
  }
}

/* ── Desktop (1024px - 1279px) ── */
@media (max-width: 1279px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .watch-layout__secondary {
    width: 360px;
  }

  .rec-card__thumbnail {
    width: 140px;
  }
}

/* ── Tablet (768px - 1023px) ── */
@media (max-width: 1023px) {
  /* Collapse sidebar */
  .sidebar {
    width: var(--sidebar-collapsed);
  }

  .sidebar .sidebar__section-title {
    display: none;
  }

  .sidebar .sidebar__link {
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-1);
    align-items: center;
    justify-content: center;
  }

  .sidebar .sidebar__link-text {
    font-size: var(--fs-xs);
    text-align: center;
  }

  /* Only show main nav items */
  .sidebar .sidebar__section:not(:first-child) {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-collapsed);
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* Watch page: stack layout */
  .watch-layout {
    flex-direction: column;
  }

  .watch-layout__secondary {
    width: 100%;
  }

  /* Horizontal cards smaller */
  .video-card-h__thumbnail {
    width: 280px;
  }

  .trending-card__thumbnail {
    width: 200px;
  }
}

/* ── Mobile Large (481px - 767px) ── */
@media (max-width: 767px) {
  :root {
    --header-height: 48px;
  }

  .header {
    padding: 0 var(--sp-2);
    gap: var(--sp-2);
  }

  .header__logo-text {
    display: none;
  }

  /* Mobile: hide desktop search, show search icon */
  .header__center {
    display: none;
  }

  .header__search-mobile {
    display: flex !important;
  }

  .header__voice-btn {
    display: none;
  }

  /* Sidebar becomes drawer */
  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
    top: 0;
    z-index: calc(var(--z-header) + 1);
    padding-top: var(--sp-16);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar .sidebar__link {
    flex-direction: row;
    gap: var(--sp-5);
    padding: var(--sp-2) var(--sp-3);
  }

  .sidebar .sidebar__link-text {
    font-size: var(--fs-base);
    text-align: left;
  }

  .sidebar .sidebar__section {
    display: block;
  }

  .sidebar .sidebar__section-title {
    display: block;
  }

  /* Main content full width */
  .main-content {
    margin-left: 0;
    padding: var(--sp-3);
    padding-bottom: calc(var(--bottom-nav-height) + var(--sp-4));
  }

  .main-content.sidebar-collapsed {
    margin-left: 0;
  }

  /* Show bottom nav */
  .bottom-nav {
    display: flex;
  }

  /* Video grid: 2 columns or full */
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-3);
  }

  /* Category bar */
  .category-bar {
    padding-top: 0;
    margin-bottom: var(--sp-1);
    top: var(--header-height);
  }

  .chip {
    padding: 4px var(--sp-3);
    font-size: var(--fs-sm);
  }

  /* Horizontal cards stack */
  .video-card-h {
    flex-direction: column;
  }

  .video-card-h__thumbnail {
    width: 100%;
  }

  .trending-card {
    flex-wrap: wrap;
  }

  .trending-card__thumbnail {
    width: 100%;
    max-width: none;
  }

  .trending-card__rank {
    font-size: var(--fs-2xl);
    min-width: 32px;
  }

  /* Watch page */
  .watch-layout {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .watch-layout__secondary {
    width: 100%;
  }

  /* Rec cards */
  .rec-card__thumbnail {
    width: 120px;
  }

  /* Page header */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Toast container */
  .toast-container {
    bottom: calc(var(--bottom-nav-height) + var(--sp-4));
    right: var(--sp-3);
    left: var(--sp-3);
  }

  .toast {
    min-width: auto;
    max-width: none;
  }

  /* Search result skeleton */
  .skeleton-search-item {
    flex-direction: column;
  }
  .skeleton-search-thumb {
    width: 100%;
  }
}

/* ── Mobile Small (≤480px) ── */
@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .video-card__body {
    gap: var(--sp-2);
  }

  .video-card__avatar {
    width: 32px;
    height: 32px;
  }

  .video-card__title {
    font-size: var(--fs-sm);
  }

  .header__right .header__action-btn:not(:last-child) {
    display: none;
  }

  .main-content {
    padding: var(--sp-2);
    padding-bottom: calc(var(--bottom-nav-height) + var(--sp-4));
  }

  /* Modal full screen on small mobile */
  .modal {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
  }

  .modal-overlay {
    padding: 0;
  }
}

/* ── Search page mobile adjustments ── */
@media (max-width: 767px) {
  .search-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    padding-top: var(--sp-16);
  }

  .search-filters.mobile-open {
    transform: translateX(0);
  }
}

/* Keep the centered brand mark visible until search is opened. */
.header:not(.search-active) .header__search-back {
  display: none !important;
}

.header.search-active .header__left {
  display: none !important;
}

.header.search-active .header__center {
  display: flex !important;
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.header.search-active .header__search-back {
  display: flex !important;
}

/* Replace the search icon with the expanded search field. */
.header.search-active .header__right {
  display: none !important;
}

@media (max-width: 767px) {
  .header__search {
    height: 36px;
    border-radius: 24px;
    padding: 0 4px 0 14px;
  }

  .header__search-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
  }

  .header__search-btn {
    height: 28px;
    width: 28px;
  }

  .header__search-input {
    font-size: 13px;
  }
}

/* Active search uses the divided input-and-submit design. */
.header.search-active .header__search,
.browse-header .header__search {
  height: 40px !important;
  padding: 0 0 0 16px !important;
  border-radius: 24px !important;
  overflow: hidden;
  background: rgba(20, 20, 22, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.header.search-active .header__search-icon-left,
.browse-header .header__search-icon-left {
  display: none !important;
}

.header.search-active .header__search-btn,
.browse-header .header__search-btn {
  display: flex !important;
  flex: 0 0 64px;
  width: 64px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #f1f1f1 !important;
}

.header.search-active .header__search-btn:hover,
.browse-header .header__search-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

.header.search-active .header__search-btn svg,
.browse-header .header__search-btn svg {
  width: 22px;
  height: 22px;
}

.header.search-active .header__search-input,
.browse-header .header__search-input {
  font-size: 14px;
}

@media (max-width: 360px) {
  .header.search-active .header__search,
  .browse-header .header__search {
    padding-left: 12px !important;
  }

  .header.search-active .header__search-btn,
  .browse-header .header__search-btn {
    flex-basis: 56px;
    width: 56px !important;
  }
}

/* ── Print ── */
@media print {
  .header, .sidebar, .bottom-nav {
    display: none;
  }
  .main-content {
    margin: 0;
    padding: var(--sp-4);
  }
}
