/* ═══════════════════════════════════════════
   CSS RESET & VARIABLES
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --void-black: #06060c;
  --void-deep: #0b0b14;
  --void-surface: #12121f;
  --void-card: #16162a;
  --void-border: rgba(139, 92, 246, 0.12);
  --nebula-purple: #7c3aed;
  --nebula-violet: #a855f7;
  --nebula-blue: #3b82f6;
  --nebula-cyan: #06b6d4;
  --nebula-glow: rgba(124, 58, 237, 0.35);
  --text-primary: #f0eef6;
  --text-secondary: #9d96b0;
  --text-muted: #5e5878;
  --glass-bg: rgba(18, 18, 35, 0.72);
  --glass-border: rgba(139, 92, 246, 0.15);
  --glass-blur: 20px;
  --card-radius: 6px;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --row-height: 180px;
  --card-gap: 10px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--nebula-purple) var(--void-deep);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--void-black);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--nebula-purple); border-radius: 3px; }

/* ═══════════════════════════════════════════
   ANIMATED BACKGROUND — STARFIELD
   ═══════════════════════════════════════════ */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 6, 12, 0.88);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--nebula-violet), var(--nebula-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  user-select: none;
}

.nav-logo span {
  font-weight: 400;
  opacity: 0.6;
}

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

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: width 0.4s var(--transition-smooth), padding 0.4s var(--transition-smooth),
              background 0.4s ease, border-color 0.4s ease;
  border: 1px solid transparent;
  border-radius: 4px;
}

.search-container.active .search-input {
  width: 240px;
  padding: 8px 36px 8px 12px;
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.search-btn {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.search-btn:hover { color: var(--text-primary); }

.search-btn svg { width: 20px; height: 20px; }

.btn-autoplay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-autoplay:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}

.btn-autoplay svg { width: 16px; height: 16px; }

/* Auto-play overlay indicator */
.ap-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fs-player:hover .ap-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ap-title {
  font-weight: 600;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-counter {
  color: var(--text-muted);
  font-size: 12px;
}

.ap-next, .ap-prev {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.ap-next:hover, .ap-prev:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.ap-next svg, .ap-prev svg { width: 14px; height: 14px; }

.nav-profile {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-profile:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--nebula-glow);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  max-height: 820px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  animation: heroZoom 25s ease-in-out infinite alternate;
  filter: brightness(0.55) saturate(1.2);
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--void-black) 0%, transparent 50%),
    linear-gradient(to right, rgba(6,6,12,0.85) 0%, rgba(6,6,12,0.3) 50%, transparent 70%),
    linear-gradient(to bottom, rgba(6,6,12,0.5) 0%, transparent 30%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 60px rgba(6,6,12,0.5);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 48px;
  z-index: 10;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nebula-violet);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--nebula-violet);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero-artist {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.hero-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
}

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

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text-primary);
  color: var(--void-black);
  border: none;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s var(--transition-bounce), box-shadow 0.3s ease, background 0.2s ease;
}

.btn-play svg { width: 22px; height: 22px; }

.btn-play:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

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

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.2s var(--transition-bounce), border-color 0.3s ease;
}

.btn-info svg { width: 20px; height: 20px; }

.btn-info:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.03);
}

/* Mute/Sound button on hero */
.hero-mute {
  position: absolute;
  bottom: 15%;
  right: 48px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-mute:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.6);
}

.hero-mute svg { width: 18px; height: 18px; }

/* Age rating badge */
.hero-rating {
  position: absolute;
  bottom: 15%;
  right: 104px;
  z-index: 10;
  padding: 6px 16px;
  border-left: 2px solid rgba(255,255,255,0.4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════ */
.content {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  padding-bottom: 80px;
}

/* ═══════════════════════════════════════════
   CATEGORY ROW
   ═══════════════════════════════════════════ */
.category-row {
  margin-bottom: 42px;
  position: relative;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 48px;
  margin-bottom: 14px;
}

.category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.category-explore {
  font-size: 12px;
  color: var(--nebula-violet);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.category-header:hover .category-explore {
  opacity: 1;
  transform: translateX(0);
}

.category-explore:hover { color: var(--nebula-cyan); }

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
}

.carousel {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 12px 56px 104px;
  margin: 0 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.carousel::-webkit-scrollbar { display: none; }

/* Carousel navigation arrows */
.carousel-arrow {
  position: absolute;
  top: 12px;
  bottom: 24px;
  width: 48px;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 1;
  transition: color 0.3s ease, background 0.3s ease;
}

.carousel-arrow:hover {
  color: var(--text-primary);
  background: rgba(6, 6, 12, 0.85);
}

.carousel-arrow.left {
  left: 0;
  padding-right: 4px;
}

.carousel-arrow.right {
  right: 0;
  padding-left: 4px;
}

.carousel-arrow svg { width: 28px; height: 28px; }

/* ═══════════════════════════════════════════
   VIDEO CARD
   ═══════════════════════════════════════════ */
.video-card {
  flex-shrink: 0;
  width: 300px;
  border-radius: var(--card-radius);
  overflow: visible;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.35s var(--transition-smooth), z-index 0s 0.35s;
}

.video-card:hover {
  z-index: 30;
  transition: z-index 0s 0s;
}

.video-card-inner {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--void-card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: box-shadow 0.35s ease;
}

.video-card:hover .video-card-inner {
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(124,58,237,0.1);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.card-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth), filter 0.5s ease;
}

.video-card:hover .card-thumb {
  filter: brightness(0.7);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,12,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-card:hover .card-overlay { opacity: 1; }

.card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--transition-bounce);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.card-play-icon svg {
  width: 22px;
  height: 22px;
  color: var(--void-black);
  margin-left: 3px;
}

.video-card:hover .card-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  background: rgba(0,0,0,0.75);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* Progress bar for "Continue Watching" */
.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}

.card-progress-bar {
  height: 100%;
  background: var(--nebula-purple);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

/* Card info panel */
.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.video-card:hover .card-title { color: white; }

.card-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-year { color: var(--text-secondary); }

.card-views {
  color: var(--text-muted);
}

/* Expanded detail on hover */
.card-expanded {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: var(--void-card);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  box-shadow: none;
}

.video-card:hover .card-expanded {
  opacity: 1;
  pointer-events: auto;
}

.card-expanded-inner {
  padding: 6px 14px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-direction {
  width: 100%;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card-tag {
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--void-border);
  color: var(--text-secondary);
  background: rgba(124,58,237,0.06);
}

/* ═══════════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  backdrop-filter: blur(8px);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s 0s;
}

.modal {
  width: 90vw;
  max-width: 1100px;
  background: var(--void-surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}

.modal-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.modal-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(0,0,0,0.85);
  transform: scale(1.1);
}

.modal-close svg { width: 18px; height: 18px; }

.modal-details {
  padding: 28px 32px 32px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 700px;
}

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 12, 0.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
  overflow-y: auto;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}

.search-overlay-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 48px 48px;
}

.search-overlay-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--glass-border);
  padding: 16px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

.search-overlay-input::placeholder { color: var(--text-muted); }
.search-overlay-input:focus { border-color: var(--nebula-purple); }

.search-overlay-close {
  position: fixed;
  top: 20px;
  right: 48px;
  z-index: 210;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.search-overlay-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.search-overlay-close svg { width: 20px; height: 20px; }

.search-results {
  margin-top: 36px;
}

.search-results-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.search-result-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.search-result-card:hover {
  background: rgba(124,58,237,0.08);
  border-color: var(--glass-border);
  transform: translateX(4px);
}

.search-result-thumb {
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.search-result-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.search-result-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   FULLSCREEN PLAYER
   ═══════════════════════════════════════════ */
.fs-player {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.fs-player.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.fs-player iframe,
#apPlayerContainer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.fs-player-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.fs-player:hover .fs-player-close { opacity: 1; }

.fs-player-close:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

.fs-player-close svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════
   CATEGORY MODAL (View All)
   ═══════════════════════════════════════════ */
.cat-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  backdrop-filter: blur(10px);
}

.cat-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s 0s;
}

.cat-modal {
  width: 92vw;
  max-width: 1200px;
  height: 80vh;
  max-height: 740px;
  background: var(--void-surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--transition-smooth);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.cat-modal-backdrop.active .cat-modal {
  transform: scale(1) translateY(0);
}

.cat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.cat-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 1px;
}

.cat-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.cat-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.cat-modal-close svg { width: 18px; height: 18px; }

.cat-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cat-modal-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  flex-shrink: 0;
}

.cat-modal-video iframe,
.cat-modal-video #catYtPlayer {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.cat-modal-now-playing {
  padding: 18px 24px;
  flex: 1;
  overflow: hidden;
}

.cat-modal-now-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-modal-now-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.cat-modal-playlist {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
  background: rgba(0,0,0,0.15);
}

.cat-modal-playlist-header {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky;
  top: 0;
  background: var(--void-deep);
  z-index: 2;
}

.cat-playlist-item {
  display: flex;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}

.cat-playlist-item:hover {
  background: rgba(124, 58, 237, 0.08);
}

.cat-playlist-item.active {
  background: rgba(124, 58, 237, 0.15);
  border-left: 2px solid var(--nebula-purple);
}

.cat-playlist-item-thumb {
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-playlist-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.cat-playlist-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.cat-playlist-item.active .cat-playlist-item-title {
  color: var(--nebula-violet);
}

.cat-playlist-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.cat-playlist-item-index {
  font-size: 12px;
  color: var(--text-muted);
  width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-playlist-item.active .cat-playlist-item-index {
  color: var(--nebula-violet);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 40px 48px 48px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer a {
  color: var(--nebula-violet);
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   ANIMATIONS / ENTRANCE
   ═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s var(--transition-smooth) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.category-row:nth-child(1) { animation-delay: 0s; }
.category-row:nth-child(2) { animation-delay: 0.08s; }
.category-row:nth-child(3) { animation-delay: 0.16s; }
.category-row:nth-child(4) { animation-delay: 0.24s; }
.category-row:nth-child(5) { animation-delay: 0.32s; }

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s var(--transition-smooth) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.45s; }
.hero-content > *:nth-child(3) { animation-delay: 0.55s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .hero-content { left: 20px; right: 20px; bottom: 12%; }
  .hero-description { display: none; }
  .hero-rating { display: none; }
  .hero-mute { right: 20px; }
  .category-header { padding: 0 20px; }
  .carousel { padding: 12px 20px 24px; margin: 0 36px; }
  .video-card { width: 240px; }
  .search-overlay-inner { padding: 80px 20px 20px; }
  .search-overlay-input { font-size: 24px; }
  .search-overlay-close { right: 20px; }
  .modal-details { padding: 20px 24px 24px; }
  .modal-title { font-size: 20px; }
  .cat-modal-body { flex-direction: column; }
  .cat-modal-playlist { width: 100%; height: 200px; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .cat-modal { height: 90vh; max-height: none; }
  .footer { padding: 30px 20px 40px; }
}

@media (max-width: 480px) {
  .video-card { width: 200px; }
  .hero { height: 70vh; min-height: 400px; }
  .btn-info { display: none; }
  .hero-title { font-size: 34px; }
}
