/* ============================================================
   PlaysTube v3.0.0 — Glassmorphism Dark Design System
   ============================================================ */

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

:root {
  --bg: #050814;
  --bg-gradient: radial-gradient(ellipse at 15% 25%, rgba(60,20,80,0.35) 0%, transparent 60%),
                 radial-gradient(ellipse at 85% 15%, rgba(80,30,100,0.25) 0%, transparent 50%),
                 radial-gradient(ellipse at 50% 90%, rgba(40,15,70,0.2) 0%, transparent 50%);
  --surface: rgba(8, 8, 22, 0.5);
  --surface-light: rgba(12, 10, 28, 0.35);
  --surface-strong: rgba(6, 6, 18, 0.85);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(139, 92, 246, 0.12);
  --text: #eef2f8;
  --text-secondary: #8596b0;
  --text-muted: #4f5f7a;

  --purple-deep: #7c3aed;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-soft: #c084fc;
  --pink: #ec4899;
  --pink-soft: #f472b6;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --orange: #f97316;

  --gradient-primary: linear-gradient(135deg, #8b5cf6, #c084fc);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-warm: linear-gradient(135deg, #f97316, #ef4444);
  --gradient-cool: linear-gradient(135deg, #a78bfa, #c084fc);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 55%),
                   radial-gradient(ellipse at 80% 20%, rgba(192, 132, 252, 0.04) 0%, transparent 55%),
                   radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 55%);

  --glass-blur: 20px;
  --glass-radius: 16px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --fast: 150ms var(--ease);
  --normal: 300ms var(--ease);
  --slow: 500ms var(--ease);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.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; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }
.max-w-full { max-width: 100%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.whitespace-nowrap { white-space: nowrap; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.select-none { user-select: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.top-2 { top: 0.5rem; }
.left-2 { left: 0.5rem; }
.right-2 { right: 0.5rem; }
.bottom-2 { bottom: 0.5rem; }
.top-4 { top: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-l-lg { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.border { border: 1px solid; }
.border-0 { border: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t-0 { border-top: 0; }
.border-transparent { border-color: transparent; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.list-none { list-style: none; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-full { grid-column: 1 / -1; }
.transition { transition: all var(--normal); }
.transition-all { transition: all var(--normal); }
.transition-colors { transition: color var(--fast), background-color var(--fast), border-color var(--fast); }
.transition-opacity { transition: opacity var(--fast); }
.transition-transform { transition: transform var(--fast); }
.transition-shadow { transition: box-shadow var(--normal); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.min-h-screen { min-height: 100vh; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.2); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.block { display: block; }
.inline-block { display: inline-block; }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh), var(--bg-gradient);
  pointer-events: none;
  z-index: -1;
  animation: meshShift 25s ease-in-out infinite;
}

@keyframes meshShift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  25% { transform: scale(1.08) rotate(0.8deg); opacity: 0.9; }
  50% { transform: scale(0.96) rotate(-0.6deg); opacity: 0.85; }
  75% { transform: scale(1.04) rotate(0.3deg); opacity: 0.95; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(139,92,246,0.03) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(139,92,246,0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

a { color: var(--text-secondary); text-decoration: none; transition: color var(--fast); }
a:hover { color: var(--purple-light); }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

::selection {
  background: rgba(139, 92, 246, 0.25);
  color: white;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   GLASSMORPHISM SYSTEM
   ============================================================ */
.glass,
.glass-card,
.glass-nav,
.glass-modal,
.glass-input,
.glass-button,
.glass-table,
.glass-badge {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--surface-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}

.glass-light {
  background: var(--surface-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.glass-card {
  border-radius: var(--glass-radius);
  transition: all var(--normal);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0;
  transition: opacity var(--normal);
}

.glass-card:hover::after { opacity: 1; }

.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--glass-shadow), 0 0 40px rgba(139, 92, 246, 0.06);
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-radius: 0;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
}

.glass-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08), rgba(139,92,246,0.08), transparent);
}

.glass-modal {
  border-radius: 20px;
  padding: 1.5rem;
  animation: modalIn 0.5s var(--ease-bounce);
}

@keyframes modalIn {
  0% { opacity: 0; transform: translateY(-30px) scale(0.92); }
  60% { opacity: 1; transform: translateY(5px) scale(1.01); }
  80% { transform: translateY(-2px); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.glass-input {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  width: 100%;
  transition: all var(--fast);
  outline: none;
}

.glass-input:focus {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08), inset 0 0 20px rgba(139,92,246,0.02);
  background: rgba(255, 255, 255, 0.04);
}

.glass-input::placeholder { color: var(--text-muted); }

.glass-input:hover {
  border-color: var(--border-hover);
}

.glass-button {
  border-radius: 12px;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.glass-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), transparent);
  opacity: 0;
  transition: opacity var(--normal);
}

.glass-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s var(--ease);
}

.glass-button:hover::after { left: 150%; }

.glass-button:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
}

.glass-button:hover::before { opacity: 1; }

.glass-button:active { transform: translateY(0) scale(0.98); }

.glass-button.primary {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05));
  border-color: rgba(139, 92, 246, 0.15);
}

.glass-button.primary:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 25px rgba(139, 92, 246, 0.2);
}

.glass-button.danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05));
  border-color: rgba(239, 68, 68, 0.15);
}

.glass-button.danger:hover {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.2);
}

.glass-badge {
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  position: relative;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  transition: all var(--fast);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(139,92,246,0.25);
}

.navbar-logo i {
  font-size: 1rem !important;
  color: #fff !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.navbar-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}

.navbar-logo:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  display: flex;
  flex: 1;
  max-width: 480px;
  margin: 0 1.5rem;
  position: relative;
}

.search-bar input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 12px 0 0 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--fast);
  backdrop-filter: blur(8px);
}

.search-bar input:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: inset 0 0 15px rgba(139,92,246,0.02);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar button {
  padding: 0.5rem 1rem;
  border-radius: 0 12px 12px 0;
  border: none;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  transition: all var(--fast);
  position: relative;
  overflow: hidden;
}

.search-bar button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}

.search-bar button:hover::after { left: 150%; }

.search-bar button:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.video-card {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  animation: cardIn 0.6s var(--ease-bounce) backwards;
  position: relative;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 50%, rgba(139,92,246,0.02) 80%);
  pointer-events: none;
  z-index: 1;
}

@keyframes cardIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.12);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.05);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(0,0,0,0.4);
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.12);
}

.video-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.video-card:hover .video-card-thumb::after {
  opacity: 1;
}

.video-card-body {
  padding: 0.875rem;
  position: relative;
  z-index: 2;
}

.video-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--fast);
}

.video-card:hover .video-card-title {
  color: var(--purple-light);
}

.video-card-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.video-card:nth-child(1) { animation-delay: 0.03s; }
.video-card:nth-child(2) { animation-delay: 0.06s; }
.video-card:nth-child(3) { animation-delay: 0.09s; }
.video-card:nth-child(4) { animation-delay: 0.12s; }
.video-card:nth-child(5) { animation-delay: 0.15s; }
.video-card:nth-child(6) { animation-delay: 0.18s; }
.video-card:nth-child(7) { animation-delay: 0.21s; }
.video-card:nth-child(8) { animation-delay: 0.24s; }
.video-card:nth-child(9) { animation-delay: 0.27s; }
.video-card:nth-child(10) { animation-delay: 0.3s; }
.video-card:nth-child(11) { animation-delay: 0.33s; }
.video-card:nth-child(12) { animation-delay: 0.36s; }

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.player-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 80px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.04);
}

.player-container video {
  width: 100%;
  height: 100%;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.player-controls button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  outline: none;
}

.player-container:hover .player-controls,
.player-container.show-controls .player-controls {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.75rem;
  transition: height 0.2s ease;
}

.player-progress:hover {
  height: 8px;
}

.player-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  position: relative;
  transition: width 0.1s linear;
}

.player-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 2s linear infinite;
}

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

.player-progress-thumb {
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,255,255,0.5), 0 0 30px rgba(139,92,246,0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-bounce);
}

.player-progress:hover .player-progress-thumb {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.float-y {
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-x {
  animation: floatX 4s ease-in-out infinite;
}

@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(139, 92, 246, 0.1); }
}

.bounce-in {
  animation: bounceIn 0.5s var(--ease-bounce);
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  80% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.slide-up-bounce {
  animation: slideUpBounce 0.5s var(--ease-bounce);
}

@keyframes slideUpBounce {
  0% { opacity: 0; transform: translateY(30px); }
  60% { opacity: 1; transform: translateY(-5px); }
  80% { transform: translateY(3px); }
  100% { transform: translateY(0); opacity: 1; }
}

.fade-in-scale {
  animation: fadeInScale 0.4s var(--ease-bounce);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fast);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.4s var(--ease);
}

.btn-icon:hover::after { left: 150%; }

.btn-icon:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
  transform: scale(1.08);
}

.btn-icon:active {
  transform: scale(0.95);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--fast);
  margin-bottom: -1px;
  position: relative;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--normal);
  border-radius: 1px;
}

.tab:hover::after,
.tab.active::after {
  width: 60%;
}

.tab:hover { color: var(--text-secondary); }

.tab.active {
  color: var(--text);
  border-bottom-color: var(--purple);
}

.tab.active::after { width: 80%; }

/* ============================================================
   TABLES
   ============================================================ */
.glass-table {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.glass-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.02);
}

.glass-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.glass-table tr {
  border-top: 1px solid var(--border);
  transition: background var(--fast), transform var(--fast);
}

.glass-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.glass-table tr:active {
  transform: scale(0.995);
}

/* ============================================================
   FORMS
   ============================================================ */
select.glass-input {
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  color: var(--text);
}

select.glass-input option {
  background: #0d1425;
  color: var(--text);
}

textarea.glass-input {
  resize: vertical;
  min-height: 80px;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), transparent);
}

.stat-card .stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: bounceIn 0.6s var(--ease-bounce);
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.2;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   DROPZONE
   ============================================================ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--normal);
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  position: relative;
  overflow: hidden;
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.03), transparent);
  opacity: 0;
  transition: opacity var(--normal);
}

.dropzone:hover::before,
.dropzone.drag-over::before { opacity: 1; }

.dropzone:hover,
.dropzone.drag-over {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.03);
  transform: scale(1.01);
}

.dropzone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  opacity: 0.35;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  transition: width 0.4s var(--ease);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s linear infinite;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--surface-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: toastIn 0.5s var(--ease-bounce);
  min-width: 300px;
  pointer-events: auto;
}

@keyframes toastIn {
  0% { transform: translateX(120%) translateY(-20px); opacity: 0; }
  50% { transform: translateX(-12px) translateY(0); opacity: 1; }
  70% { transform: translateX(6px); }
  85% { transform: translateX(-3px); }
  100% { transform: translateX(0); opacity: 1; }
}

.toast.success { border-color: rgba(34,197,94,0.25); }
.toast.error { border-color: rgba(239,68,68,0.25); }
.toast.info { border-color: rgba(139,92,246,0.25); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.1);
  color: var(--purple-light);
  transition: all var(--fast);
}

.tag:hover {
  background: rgba(139, 92, 246, 0.12);
  transform: scale(1.06);
  box-shadow: 0 0 15px rgba(139,92,246,0.1);
}

/* ============================================================
   LIVE BADGE
   ============================================================ */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 6px 2px rgba(239,68,68,0.2); }
}

/* ============================================================
   CONTEXT MENU
   ============================================================ */
.context-menu {
  position: fixed;
  border-radius: 14px;
  padding: 0.5rem 0;
  z-index: 100;
  min-width: 200px;
  background: var(--surface-strong);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: menuIn 0.2s var(--ease-bounce);
}

@keyframes menuIn {
  0% { opacity: 0; transform: scale(0.92); }
  60% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.context-menu button,
.context-menu .menu-item {
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.context-menu button:hover,
.context-menu .menu-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding-left: 1.25rem;
}

.context-menu .menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   MISC
   ============================================================ */
.page-enter {
  animation: pageIn 0.6s var(--ease-bounce);
}

@keyframes pageIn {
  0% { opacity: 0; transform: translateY(15px); }
  60% { opacity: 1; transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  opacity: 0.7;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  transition: all var(--normal);
}

.channel-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  background: rgba(255,255,255,0.03);
}

.channel-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.channel-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  transition: all var(--fast);
}

.comment:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.comment-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 50%);
  pointer-events: none;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.comment-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--fast);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.reaction-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  transition: left 0.4s var(--ease);
}

.reaction-btn:hover::after { left: 150%; }

.reaction-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  transform: scale(1.06);
}

.reaction-btn:active { transform: scale(0.95); }

.reaction-btn.liked {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
}

.reaction-btn.disliked {
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.06);
}

.rec-card {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all var(--fast);
}

.rec-card:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(4px);
}

.rec-card img {
  width: 128px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.rec-card-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.description-box {
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
}

.description-box h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.description-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.04);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

.glass-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1rem 0;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-start { align-items: flex-start; }
  .md\:text-left { text-align: left; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-80 { width: 20rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
  .search-bar { margin: 0 0.75rem; }
  .navbar { padding: 0 1rem; }
  .glass-modal { margin: 0.75rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .search-bar { display: none; }
}

/* ---- must be last to override any display utility ---- */
.hidden { display: none !important; }
