/* ═══════════════════════════════════════════════════════════
   MUVBY — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111118;
  --bg-card:       #161620;
  --bg-hover:      #1e1e2a;
  --accent:        #e50914;
  --accent-glow:   rgba(229, 9, 20, 0.35);
  --accent-soft:   rgba(229, 9, 20, 0.12);
  --text-primary:  #f0f0f5;
  --text-secondary:#9090a8;
  --text-muted:    #55556a;
  --border:        rgba(255, 255, 255, 0.06);
  --nav-height:    68px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.6);
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Security: Disable Text Selection ──────────────────── */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #333345; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 40px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-logo .logo-icon i { color: #fff; }
.nav-logo span { color: var(--text-primary); }
.nav-logo span em { color: var(--accent); font-style: normal; }

.nav-links {
  display: flex;
  gap: 6px;
  flex: 1;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.07); }
.nav-links a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 15px;
  transition: all var(--transition);
}
.nav-icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  transition: all var(--transition);
}
.nav-search-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.nav-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  padding: 8px 12px;
  width: 160px;
  font-family: inherit;
}
.nav-search-wrap input::placeholder { color: var(--text-muted); }
.nav-search-wrap .search-btn {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.nav-search-wrap:focus-within .search-btn { color: var(--accent); }

.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47ff, #e50914);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.nav-avatar:hover { border-color: rgba(255, 255, 255, 0.3); }

/* ─── Nav Filter Transitions ─────────────────────────────── */
#content-sections {
  transition: opacity 0.25s ease;
}
#content-sections.fade-out {
  opacity: 0;
}
.section--hidden {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: brightness(0.55);
}
.hero:hover .hero-bg { transform: scale(1.0); }

.hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,   var(--bg-primary) 0%,   rgba(10, 10, 15, 0.7) 35%, transparent 65%),
    linear-gradient(90deg,  rgba(10, 10, 15, 0.85) 0%, transparent 60%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 0 48px;
  max-width: 680px;
  animation: heroFadeUp 0.9s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge i { font-size: 10px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f5c518;
  font-size: 14px;
  font-weight: 600;
}
.hero-year, .hero-genre {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero-dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}
.hero-quality {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-logo-img {
  display: block;
  max-height: clamp(60px, 9vw, 110px);
  width: auto;
  max-width: 520px;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.hero-desc {
  font-size: 15px;
  color: rgba(240, 240, 245, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #ff1a27;
  box-shadow: 0 6px 28px rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-scroll i { color: var(--accent); }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 48px 0 16px; }
.section--genres { padding: 32px 0 8px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  margin-bottom: 22px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.section-title .accent-bar {
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
}
.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

/* ─── SLIDER ─────────────────────────────────────────────── */
.slider-wrap { position: relative; }
.slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 48px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.grabbing { cursor: grabbing; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: all var(--transition);
}
.slider-wrap:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* ─── MOVIE CARD ─────────────────────────────────────────── */
.card {
  flex: 0 0 auto;
  width: 168px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(229, 9, 20, 0.2);
  z-index: 2;
}

.card-poster {
  position: relative;
  height: 244px;
  overflow: hidden;
  background: var(--bg-hover);
}
.card-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-poster img { transform: scale(1.08); }
.card-poster::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(0deg, var(--bg-card), transparent);
}

.card-quality {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-play {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card-play { opacity: 1; }

.play-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(0.8);
  transition: transform var(--transition);
}
.card:hover .play-circle,
.top10-card:hover .play-circle { transform: scale(1); }
.play-circle .fa-play { margin-left: 3px; }

.card-info { padding: 12px 12px 14px; }
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.card-rating { color: #f5c518; display: flex; align-items: center; gap: 3px; font-weight: 600; }
.card-year { color: var(--text-muted); }
.card-type {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.card-type.movie  { background: rgba(229, 9, 20, 0.15); color: var(--accent); }
.card-type.series { background: rgba(100, 100, 255, 0.15); color: #8080ff; }

/* ─── Poster Color Variants ──────────────────────────────── */
.color-1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.color-2 { background: linear-gradient(135deg, #1e0a0a, #2d1515); }
.color-3 { background: linear-gradient(135deg, #0a1a0a, #152d15); }
.color-4 { background: linear-gradient(135deg, #1a1500, #2d2600); }
.color-5 { background: linear-gradient(135deg, #0f0a1e, #1a1530); }

/* ─── TOP 10 SECTION ─────────────────────────────────────── */
.top10-card {
  flex: 0 0 auto;
  width: 190px;
  position: relative;
  cursor: pointer;
}
.top10-rank {
  position: absolute;
  bottom: -5px; left: -10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 90px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--transition);
}
.top10-card:hover .top10-rank { -webkit-text-stroke-color: rgba(229, 9, 20, 0.4); }

.top10-poster {
  height: 270px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.top10-card:hover .top10-poster {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.12);
}
.top10-poster img { height: 100%; object-fit: cover; }

.top10-play {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition);
}
.top10-card:hover .top10-play { opacity: 1; }

/* ─── FEATURED BANNER ────────────────────────────────────── */
.featured-banner {
  margin: 16px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a0a1e 0%, #0d0a1e 50%, #0a0a14 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
}
.featured-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(100, 40, 180, 0.2), transparent);
}
.banner-text { flex: 1; position: relative; z-index: 1; }
.banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a040ff;
  margin-bottom: 10px;
}
.banner-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.banner-desc { font-size: 13px; color: var(--text-secondary); max-width: 380px; }
.banner-action { position: relative; z-index: 1; }
.banner-poster-stack { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.stack-img {
  position: absolute;
  width: 100px; height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-hover);
}
.stack-img:nth-child(1) { right: 0;   top: 10px; transform: rotate(6deg);  z-index: 1; }
.stack-img:nth-child(2) { right: 22px; top: 5px;  transform: rotate(2deg);  z-index: 2; }
.stack-img:nth-child(3) { right: 44px; top: 0;    transform: rotate(-3deg); z-index: 3; }

/* ─── GENRE PILLS ────────────────────────────────────────── */
.genres-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 48px 8px;
  scrollbar-width: none;
}
.genres-row::-webkit-scrollbar { display: none; }
.genre-pill {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}
.genre-pill:hover,
.genre-pill.active {
  background: var(--accent-soft);
  border-color: rgba(229, 9, 20, 0.3);
  color: var(--text-primary);
}
.genre-pill.active { color: var(--accent); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  margin-top: 48px;
  padding: 40px 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-top: 14px; }
.footer-brand .nav-logo { font-size: 20px; }
.footer-brand .logo-icon { width: 30px; height: 30px; font-size: 13px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--text-secondary); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}
.social-link:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.15); background: var(--bg-hover); }

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0 48px; }

/* ─── SEARCH OVERLAY ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding-top: var(--nav-height);
}
.search-overlay.active { display: flex; }
.search-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(12px);
}
.search-dropdown {
  position: relative;
  z-index: 1;
  margin: 12px 48px 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  animation: dropDown 0.2s ease;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-header strong { color: var(--text-primary); }
.search-results { overflow-y: auto; }
.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-hover); }
.search-thumb {
  width: 48px; height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-hover);
}
.search-thumb img { height: 100%; object-fit: cover; }
.search-info { flex: 1; }
.search-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}
.search-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.search-star { color: #f5c518; }
.search-item .card-type { margin-left: 0; }
.search-play-icon { color: var(--accent); font-size: 13px; flex-shrink: 0; }

/* ─── SKELETON SHIMMER ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(80px);
  opacity: 0;
  z-index: 9999;
  max-width: 300px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 18px; }
.toast-close {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}
.toast-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; gap: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-hamburger { display: flex; }
  .nav-search-wrap input { width: 120px; }
  .hero-content { padding: 0 24px; }
  .section-header { padding: 0 24px; }
  .slider-track { padding: 8px 24px 20px; }
  .genres-row { padding: 4px 24px 8px; }
  .featured-banner { margin: 16px 24px; flex-wrap: wrap; height: auto; padding: 28px; }
  .banner-poster-stack { display: none; }
  footer { padding: 32px 24px 24px; }
  .footer-links { gap: 28px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .card { width: 140px; }
  .card-poster { height: 200px; }
  .top10-card { width: 150px; }
  .top10-poster { height: 220px; }
  .top10-rank { font-size: 70px; }
  .footer-top { flex-direction: column; }
}
