﻿:root {
  --bg: #050508;
  --bg2: #0a0a10;
  --bg3: #0f0f18;
  --card: #111118;
  --card2: #16161f;
  --gold: #f5c518;
  --gold2: #e6b800;
  --red: #e63946;
  --red2: #ff4d5e;
  --accent: #7b2fff;
  --accent2: #a855f7;
  --text: #f0f0f8;
  --text2: #a0a0b8;
  --text3: #606075;
  --border: rgba(255,255,255,0.06);
  --glow: rgba(123,47,255,0.25);
  --gold-glow: rgba(245,197,24,0.2);
  --red-glow: rgba(230,57,70,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(123, 47, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* â”€â”€ SCROLLBAR â”€â”€ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Hide scrollbar completely on smaller screens (Mobile/Tablet) */
@media (max-width: 768px) {
  *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  * {
    scrollbar-width: none !important;
  }
}

/* ── TV SPATIAL NAVIGATION FOCUS ── */
:focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.4) !important;
  border-radius: inherit;
}

/* â”€â”€ NAVBAR â”€â”€ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.85rem 1.25rem;
  margin: 0.75rem auto 0;
  width: min(1380px, calc(100% - 1.5rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(5,5,8,0.78);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
#navbar.scrolled {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03)),
    rgba(5,5,8,0.92);
  border-color: rgba(245,197,24,0.14);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.55),
    0 0 24px rgba(245,197,24,0.07),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1.4px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 0 24px rgba(245,197,24,0.1);
}

.nav-logo-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: #1a1302;
  background: linear-gradient(135deg, #fff7d0 0%, #f5c518 35%, #c68b00 100%);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow:
    0 14px 28px rgba(245,197,24,0.18),
    inset 0 1px 0 rgba(255,255,255,0.55);
  flex-shrink: 0;
}

.nav-logo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}

.nav-logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff3b0 0%, #f5c518 28%, #ff7a59 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-sub {
  margin-top: 0.15rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: rgba(245,197,24,0.78);
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  align-items: center;
  margin-left: 0.5rem;
}
.nav-links a {
  color: rgba(240,240,248,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(245,197,24,0.14), rgba(123,47,255,0.12));
  border-color: rgba(245,197,24,0.18);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 60%;
}

.nav-search {
  flex: 1;
  max-width: 400px;
  margin-left: auto;
  position: relative;
}
.nav-search::before {
  content: '';
  position: absolute;
  inset: -10px -12px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 50%, rgba(245,197,24,0.18), transparent 34%),
              radial-gradient(circle at 80% 50%, rgba(123,47,255,0.18), transparent 30%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}
.nav-search input {
  width: 100%;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    rgba(10,10,16,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.68rem 1rem 0.68rem 3rem;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.nav-search input::placeholder { color: rgba(160,160,184,0.72); letter-spacing: 0.2px; }
.nav-search input:hover {
  border-color: rgba(245,197,24,0.22);
  box-shadow:
    0 20px 55px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-search input:focus {
  border-color: rgba(245,197,24,0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    rgba(12,12,20,0.86);
  box-shadow:
    0 0 0 4px rgba(245,197,24,0.14),
    0 24px 60px rgba(0,0,0,0.38),
    0 0 30px rgba(123,47,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-search .search-icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(123,47,255,0.12));
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,197,24,0.12), rgba(123,47,255,0.08));
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hamburger-btn span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  background: rgba(14,14,22,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  box-shadow:
    0 26px 70px rgba(0,0,0,0.72),
    0 0 0 1px rgba(245,197,24,0.06);
  backdrop-filter: blur(22px) saturate(160%);
}
.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(245,197,24,0.08); transform: translateX(2px); }
.search-result-item img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.search-result-info h4 { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.search-result-info p { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }

.nav-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.nav-btn {
  background: linear-gradient(135deg, var(--accent), var(--red));
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); }

/* ── HAMBURGER BTN ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2001;
}
.hamburger-btn span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }

/* â”€â”€ HERO CAROUSEL â”€â”€ */
#hero {
  position: relative;
  height: 92vh;
  overflow: hidden;
  margin-top: 70px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.08);
  transition: transform 8s ease;
  filter: brightness(0.55);
}
.carousel-slide.active .slide-bg { transform: scale(1); }

.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,5,8,0.98) 0%,
    rgba(5,5,8,0.7) 45%,
    rgba(5,5,8,0.1) 70%,
    transparent 100%
  ),
  linear-gradient(
    to top,
    rgba(5,5,8,0.95) 0%,
    transparent 40%
  );
}

.slide-content {
  position: absolute;
  bottom: 14%;
  left: 6%;
  max-width: 580px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.carousel-slide.active .slide-content { transform: translateY(0); opacity: 1; }

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--red));
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.slide-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.slide-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}
.slide-year { color: var(--text2); font-size: 0.88rem; }
.slide-runtime { color: var(--text3); font-size: 0.85rem; }
.slide-genres { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.genre-tag {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
}

.slide-desc {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-actions { display: flex; gap: 0.75rem; }
.btn-play {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--red-glow); }
.btn-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-info:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* Carousel controls */
.carousel-nav {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active { width: 28px; border-radius: 3px; background: var(--gold); }

/* Side thumbnails */
.carousel-thumbs {
  position: absolute;
  right: 2.5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
}
.thumb {
  width: 60px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  opacity: 0.5;
}
.thumb.active { border-color: var(--gold); opacity: 1; transform: scale(1.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* â”€â”€ MAIN CONTENT â”€â”€ */
.main-content {
  padding: 4rem 4% 2rem;
  position: relative;
  isolation: isolate;
}
.main-content::before {
  content: '';
  position: absolute;
  inset: 1.25rem 2.5% 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(245,197,24,0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(123,47,255,0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 28px 80px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: -1;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.section-title h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.35rem;
  letter-spacing: 2.5px;
  color: var(--text);
  text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.section-title .title-line {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--gold), var(--red), var(--accent));
  box-shadow: 0 0 18px rgba(245,197,24,0.25);
}
.see-all {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s, transform 0.3s, color 0.3s;
}
.see-all:hover { gap: 0.7rem; transform: translateX(2px); color: #fff; }

/* Category Tabs */
.cat-tabs {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-tab {
  position: relative;
  overflow: hidden;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(10,10,16,0.7);
  color: var(--text2);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  letter-spacing: 0.25px;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px) saturate(160%);
}
.cat-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(123,47,255,0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cat-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(245,197,24,0.22);
  color: var(--text);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.28),
    0 0 0 1px rgba(245,197,24,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.cat-tab:hover::before { opacity: 1; }
.cat-tab.active {
  background: linear-gradient(135deg, rgba(245,197,24,0.95), rgba(123,47,255,0.88));
  border-color: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 16px 36px rgba(123,47,255,0.22),
    0 0 22px rgba(245,197,24,0.12);
}

/* â”€â”€ MOVIE GRID â”€â”€ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.35rem;
  position: relative;
}

/* â”€â”€ MOVIE CARD â”€â”€ */
.movie-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(17,17,24,0.92);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.38s, border-color 0.38s;
  position: relative;
  group: true;
  content-visibility: auto;
  contain-intrinsic-size: 200px 320px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.movie-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,197,24,0.07), rgba(123,47,255,0.05));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.movie-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%, transparent 72%, rgba(0,0,0,0.18));
  opacity: 0.9;
  pointer-events: none;
}
.movie-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(245,197,24,0.28);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.62),
    0 0 0 1px rgba(245,197,24,0.16),
    0 0 28px rgba(123,47,255,0.12);
}
.movie-card:hover::before { opacity: 1; }

.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: saturate(1.02) contrast(1.05);
}
.movie-card:hover .card-poster img { transform: scale(1.08); filter: saturate(1.12) contrast(1.08); }

.card-quality {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10,10,16,0.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.card-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff4d5e, #e63946);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(230,57,70,0.35);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.96) 0%, rgba(5,5,8,0.42) 42%, transparent 78%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}
.movie-card:hover .card-overlay { opacity: 1; }
.card-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(230,57,70,0.35), 0 0 0 1px rgba(255,255,255,0.12);
}
.card-play-btn:hover { transform: scale(1.12); box-shadow: 0 16px 32px rgba(230,57,70,0.45); }

.card-info {
  padding: 0.95rem 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(245,197,24,0.16), rgba(245,197,24,0.08));
  border: 1px solid rgba(245,197,24,0.18);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
}
.card-year {
  background: linear-gradient(135deg, rgba(230,57,70,0.16), rgba(230,57,70,0.08));
  border: 1px solid rgba(230,57,70,0.16);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red2);
}
.card-runtime {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: var(--text2);
}
.card-genres {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.card-genre {
  padding: 0.2rem 0.58rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--text2);
  background: rgba(255,255,255,0.03);
}

/* â”€â”€ LOADING SKELETON â”€â”€ */
.skeleton {
  background-color: var(--card);
  background-image: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.07) 18%, transparent 33%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { aspect-ratio: 2/3.6; }

/* â”€â”€ UPCOMING SECTION â”€â”€ */
#upcoming { padding: 2rem 4% 4rem; }

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.upcoming-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 280px 300px;
}
.upcoming-card:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.upcoming-poster {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.upcoming-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.upcoming-card:hover .upcoming-poster img { transform: scale(1.06); }
.upcoming-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.95), transparent 60%);
}
.upcoming-release-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold2), #f59e0b);
  color: #111;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.upcoming-info {
  padding: 1rem 1rem 0.85rem;
  flex: 1;
}
.upcoming-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.upcoming-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.upcoming-desc {
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── LOAD MORE BUTTON ── */
.load-more-btn {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}
.load-more-btn:hover {
  background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(123,47,255,0.15));
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245,197,24,0.2);
}

/* ── VIDEO MODAL (PREMIUM & RESPONSIVE) ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(135deg, rgba(5,5,8,0.92) 0%, rgba(20,10,35,0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  padding-top: max(3rem, env(safe-area-inset-top));
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none; /* Firefox ke liye scrollbar hide */
}
#modal-overlay.open { display: flex; }

#modal-overlay::-webkit-scrollbar { display: none; /* Chrome/Safari ke liye scrollbar hide */ }

.modal-box {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  overflow: hidden; /* Hide main scroll here */
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(123,47,255,0.1);
  animation: modalIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
}
.modal-close:hover { 
  background: var(--red); 
  border-color: var(--red); 
  transform: rotate(90deg);
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
}

/* Top Section with layout */
.modal-top {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.modal-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.modal-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,14,0.1) 0%,
    rgba(10,10,14,0.7) 40%,
    var(--bg2) 95%,
    var(--bg2) 100%
  );
}

.modal-info {
  position: relative;
  z-index: 5;
  padding: 2.5rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.modal-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.2rem;
}
.modal-meta > div, .modal-meta > span {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.modal-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Actions styling */
.modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.premium-play-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #5716cc 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 30px rgba(123,47,255,0.3);
  transition: all 0.3s;
}
.premium-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(123,47,255,0.4);
}

.btn-watchlist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 30, 42, 0.4) 0%, rgba(15, 15, 20, 0.6) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-color: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-watchlist:hover {
  background: linear-gradient(180deg, rgba(45, 45, 60, 0.5) 0%, rgba(20, 20, 30, 0.7) 100%);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 15px rgba(245,197,24,0.15);
  transform: translateY(-1.5px);
  color: var(--gold);
}
.btn-watchlist.active {
  background: linear-gradient(180deg, rgba(245,197,24,0.15) 0%, rgba(245,197,24,0.05) 100%);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(245,197,24,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.select-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-select,
.quality-select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.75rem 2.2rem 0.75rem 1.2rem;
  background: linear-gradient(180deg, rgba(30, 30, 42, 0.4) 0%, rgba(15, 15, 20, 0.6) 100%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: auto, 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-color: rgba(255,255,255,0.05); /* 3D edge effect */
  border-radius: 12px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lang-select option,
.quality-select option {
  background-color: var(--bg2);
  color: #fff;
  font-weight: 500;
}

.lang-select:hover, .quality-select:hover {
  background: linear-gradient(180deg, rgba(45, 45, 60, 0.5) 0%, rgba(20, 20, 30, 0.7) 100%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: auto, 14px;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1.5px);
}

.lang-select:focus, .quality-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,47,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.modal-bottom {
  padding: 0 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden !important;
  touch-action: pan-y;
}

.external-sources {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .modal-top { min-height: auto; }
  .modal-image-wrapper { position: relative; height: 280px; }
  .modal-gradient { background: linear-gradient(to top, var(--bg2) 0%, transparent 100%); }
  .modal-info { padding: 1.5rem; margin-top: -80px; }
  .modal-title { font-size: 2.2rem; }
  .modal-desc { max-width: 100%; font-size: 0.9rem; margin-bottom: 1rem; }
  .modal-bottom { padding: 0 1.5rem 1.5rem; }
  .modal-actions { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .select-group { flex-direction: row; display: grid; grid-template-columns: 1fr 1fr; }
  .lang-select, .quality-select { width: 100%; }
}
@media (max-width: 480px) {
  .modal-close { top: 0.8rem; right: 0.8rem; width: 36px; height: 36px; }
  .modal-image-wrapper { height: 220px; }
  .select-group { grid-template-columns: 1fr; }
}

/* Smooth scaling for player zoom */
.video-embed {
  transition: transform 220ms ease;
  transform-origin: center center;
}

.player-chip--zoom {
  padding: 6px 10px;
  font-size: 14px;
}

/* Subtitle (CC) button overlay inside the player on the left */
.video-embed .player-subtitle {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.video-embed .player-subtitle.active {
  background: linear-gradient(135deg, rgba(230,57,70,0.98), rgba(168,85,247,0.92));
  color: #fff;
  box-shadow: 0 14px 36px rgba(123,47,255,0.18);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden !important;
  display: block;
}
.player-controls {
  /* Default: controls sit below the player (non-overlay) */
  position: relative;
  display: none;
  display: flex;
  gap: 8px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 14px;
  background: transparent;
  width: 100%;
}

/* Overlay variant when controls are direct children of the video embed */
.video-embed > .player-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6,6,12,0.42);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: opacity 220ms ease, transform 220ms ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
.player-chip {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.player-chip:hover { transform: translateY(-1px); filter: brightness(1.03); }
.player-chip span { font-size: 13px; line-height: 1; }
.player-chip__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.player-chip--source {
  background: rgba(20,20,30,0.92);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}
.player-chip--lang {
  background: linear-gradient(135deg, rgba(245,197,24,0.96), rgba(255,175,64,0.92));
  color: #151515;
}
.player-chip--fs {
  display: inline-flex;
  background: rgba(20,20,30,0.92);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}
.player-chip--fs:hover {
  filter: brightness(1.03);
}
.player-chip--source,
.player-chip--fs {
  position: relative;
  overflow: hidden;
}
.player-chip--source { transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease; }
.player-chip--source:hover {
  filter: brightness(1.03);
  transform: translateY(-2px) scale(1.01);
}
.player-chip--source.active {
  background: linear-gradient(135deg, rgba(255,175,64,0.96), rgba(230,57,70,0.92));
  color: #fff;
  box-shadow: 0 12px 28px rgba(230,57,70,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}
.video-embed.cinema-mode {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 99998 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border-color: transparent !important;
}
.video-embed.cinema-mode .player-controls {
  left: 12px;
  right: 12px;
  bottom: 12px;
  justify-content: center;
}
.video-embed:hover > .player-controls,
.video-embed.cinema-mode > .player-controls,
.video-embed.fullscreen-mode > .player-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.video-embed.fullscreen-mode {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text3);
  text-align: center;
  padding: 2rem;
}
.video-placeholder .play-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 0 40px var(--red-glow);
}
.video-placeholder .play-big:hover { transform: scale(1.08); }

/* External source row (buttons placed outside the player to avoid overlay) */
.external-sources {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.external-sources .player-chip--source {
  min-width: 120px;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  border-color: rgba(255,255,255,0.12);
}
.external-sources .player-chip--source.active {
  transform: translateY(-2px);
}


/* â”€â”€ FOOTER â”€â”€ */
.site-footer {
  position: relative;
  margin-top: 2.5rem;
  padding: 4rem 4% 2rem;
  background:
    radial-gradient(circle at top left, rgba(245,197,24,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(123,47,255,0.14), transparent 24%),
    linear-gradient(180deg, #0b0b12 0%, #030305 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.55), rgba(255,255,255,0.18), rgba(123,47,255,0.45), transparent);
  box-shadow: 0 0 18px rgba(245,197,24,0.18);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.footer-brand {
  padding-right: 1rem;
}
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.9rem;
}
.footer-desc {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 32rem;
}
.footer-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-pills span {
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text2);
  font-size: 0.76rem;
  letter-spacing: 0.3px;
}
.footer-col {
  min-width: 0;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text3);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: transform 0.25s ease, color 0.25s ease;
}
.footer-col a:hover {
  color: var(--gold);
  transform: translateX(6px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text3);
}

/* â”€â”€ TOAST â”€â”€ */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card2);
  border: 1px solid rgba(123,47,255,0.3);
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  font-size: 0.88rem;
  color: var(--text);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#toast.show { transform: translateX(0); }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 1024px) {
  #navbar {
    width: min(100% - 1rem, 1380px);
    padding: 0.8rem 1rem;
    gap: 1rem;
  }
  .nav-links {
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    white-space: nowrap;
    padding: 0.38rem 0.75rem;
  }
  .nav-search {
    max-width: 320px;
    flex: 1 1 auto;
  }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  #hero { height: 84vh; }
  .slide-content { left: 5%; max-width: 520px; }
}

@media (max-width: 768px) {
  #navbar {
    width: min(100% - 0.75rem, 1380px);
    margin-top: 0.4rem;
    padding: 0.85rem 0.9rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 20px;
  }
  .nav-logo { font-size: 1.5rem; line-height: 1; }
  .nav-brand { gap: 0.5rem; }
  .nav-logo-mark { width: 2.25rem; height: 2.25rem; border-radius: 14px; font-size: 0.82rem; }
  .nav-logo-main { font-size: 1.48rem; letter-spacing: 2.4px; }
  .nav-logo-sub { font-size: 0.58rem; letter-spacing: 2.2px; }
  .hamburger-btn { display: flex; margin-left: auto; order: 1; }
  .nav-search {
    order: 2;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }
  .nav-search::before {
    inset: -8px -8px;
    opacity: 0.55;
  }
  .nav-search input {
    padding: 0.72rem 0.95rem 0.72rem 2.8rem;
    font-size: 0.88rem;
  }
  .nav-search .search-icon {
    left: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 0.45rem;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    position: fixed;
    top: 12px;
    right: -100%;
    width: min(320px, calc(100vw - 24px));
    height: calc(100vh - 24px);
    background: rgba(10,10,16,0.98);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -18px 0 50px rgba(0,0,0,0.7);
    z-index: 999;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; width: 100%; padding: 0.5rem 0; }
  .nav-links a::after { left: 0; transform: none; }
  .nav-links a:hover::after, .nav-links a.active::after { width: 40px; }
  #hero {
    height: 72vh;
    margin-top: 118px;
  }
  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: none;
  }
  .slide-title { font-size: clamp(2rem, 8vw, 3rem); }
  .slide-desc {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }
  .slide-actions { flex-direction: column; }
  .slide-actions .btn-play,
  .slide-actions .btn-info {
    width: 100%;
    justify-content: center;
  }
  .carousel-thumbs { display: none; }
  .carousel-nav { bottom: 4.5%; }
  .main-content, #upcoming { padding-left: 5%; padding-right: 5%; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 0.5rem; padding-right: 0; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
  .modal-title { font-size: 1.8rem; }
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.45rem;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: 0 0 auto; padding: 0.52rem 0.9rem; font-size: 0.79rem; }
  .search-results-dropdown { max-height: 300px; }
  .player-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }
  .external-sources .player-chip--source {
    min-width: 132px;
    flex: 1 1 132px;
  }
}

@media (max-width: 640px) {
  /* On small screens make controls non-overlaying: place under the player */
  .player-controls {
    position: static;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 0 0 0;
    margin-top: 8px;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .external-sources {
    gap: 8px;
    justify-content: stretch;
  }
  .external-sources .player-chip--source {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
    padding: 10px 12px;
  }
  .footer-pills { gap: 0.45rem; }
  .footer-pills span { font-size: 0.72rem; padding: 0.44rem 0.7rem; }
}

@media (max-width: 480px) {
  #navbar {
    width: min(100% - 0.5rem, 1380px);
    padding: 0.72rem 0.75rem 0.82rem;
    gap: 0.55rem;
  }
  .nav-logo { gap: 0.55rem; }
  .nav-logo-mark { width: 2rem; height: 2rem; border-radius: 12px; font-size: 0.74rem; }
  .nav-logo-main { font-size: 1.28rem; letter-spacing: 1.8px; }
  .nav-logo-sub { display: none; }
  .hamburger-btn { width: 42px; height: 42px; border-radius: 12px; }
  .nav-links a {
    padding: 0.32rem 0.68rem;
    font-size: 0.76rem;
  }
  .nav-links { width: calc(100vw - 12px); right: -100%; border-radius: 18px; }
  #hero {
    height: 66vh;
    margin-top: 112px;
  }
  .slide-content { bottom: 10%; }
  .slide-badge { font-size: 0.66rem; padding: 0.26rem 0.75rem; }
  .slide-title { font-size: clamp(1.8rem, 10vw, 2.5rem); }
  .slide-meta { gap: 0.55rem; }
  .slide-rating, .slide-year, .slide-runtime { font-size: 0.78rem; }
  .slide-desc { font-size: 0.82rem; }
  .btn-play, .btn-info {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
  .main-content, #upcoming { padding-left: 4.5%; padding-right: 4.5%; }
  .movie-grid { gap: 0.7rem; }
  .card-info { padding: 0.72rem; }
  .card-title { font-size: 0.8rem; }
  .card-rating, .card-year, .card-runtime, .card-genre { font-size: 0.68rem; }
  .cat-tabs { gap: 0.38rem; }
  .cat-tab { padding: 0.48rem 0.82rem; font-size: 0.75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-bottom { align-items: flex-start; }
  .player-controls {
    gap: 6px;
  }
  .player-chip {
    padding: 6px 10px;
    font-size: 11px;
  }
  .player-chip__icon {
    width: 16px;
    height: 16px;
  }
  .player-controls {
    gap: 8px;
  }
  .external-sources .player-chip--source {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 40px;
  }
}

/* â”€â”€ SECTION DIVIDER â”€â”€ */
.section-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 3.5rem 4%;
}

/* No results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text3);
  grid-column: 1 / -1;
}
.no-results h3 { font-size: 1.4rem; color: var(--text2); margin-bottom: 0.5rem; }

/* Stars animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.movie-card { animation: fadeUp 0.5s both; }
