:root {
  --bg-primary: #090c10;
  --bg-surface: #111622;
  --bg-card: #171d2b;
  --bg-hover: #1e2638;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-red: #e50914;
  --accent-red-hover: #f40612;
  --accent-cyan: #38bdf8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(17, 22, 34, 0.85);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  font-size: 1.75rem;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo-img {
  transform: rotate(-8deg) scale(1.08);
}

.brand .highlight {
  color: var(--accent-red);
}

.search-bar-wrap {
  flex: 1;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar-wrap input {
  width: 100%;
  padding: 0.7rem 4.5rem 0.7rem 2.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-bar-wrap input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.voice-btn {
  position: absolute;
  right: 2.3rem;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.1);
}

.voice-btn.recording {
  animation: pulseMic 1.2s infinite;
  background: rgba(229, 9, 20, 0.3);
  border-radius: 50%;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.clear-btn {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Autocomplete & Trending Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(17, 22, 34, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
  max-height: 440px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.6rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-dropdown.hidden {
  display: none;
}

.dropdown-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.5rem 0.6rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trending-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem 0.8rem;
}

.trending-search-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trending-search-chip:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.search-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item-poster {
  width: 38px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #141a29;
  flex-shrink: 0;
}

.dropdown-item-info {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.dropdown-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item-rating {
  color: #ffc107;
  font-weight: 700;
}

.dropdown-item-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.secondary-btn {
  background: transparent;
}

.badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* Sponsored Leaderboard Ad */
.ad-slot-leaderboard {
  background: #0f131c;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
}

.ad-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.ad-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.ad-content strong {
  color: #fff;
}

.ad-cta {
  margin-left: 0.5rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 480px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease, filter 0.8s ease;
  z-index: 1;
}

.hero-section:hover .hero-backdrop {
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #090c10 10%, rgba(9, 12, 16, 0.7) 60%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(229, 9, 20, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rating-pill {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.genre-pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.hero-overview {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.primary-btn {
  background: var(--accent-red);
  color: #fff;
}
.primary-btn:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.ghost-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Streaming Providers Filter Bar */
.providers-filter-section {
  margin-bottom: 0.85rem;
}

.providers-filter-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.providers-filter-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.2rem;
}

.provider-chip {
  background: var(--bg-card);
  color: #cbd5e1;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.provider-chip:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.provider-chip.active {
  background: #fff;
  color: #0b0f19;
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.provider-chip.p-netflix.active {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.provider-chip.p-prime.active {
  background: #00a8e1;
  color: #fff;
  border-color: #00a8e1;
  box-shadow: 0 4px 15px rgba(0, 168, 225, 0.4);
}

.provider-chip.p-disney.active {
  background: #113ccf;
  color: #fff;
  border-color: #113ccf;
  box-shadow: 0 4px 15px rgba(17, 60, 207, 0.4);
}

.provider-chip.p-apple.active {
  background: #27272a;
  color: #fff;
  border-color: #52525b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.provider-chip.p-max.active {
  background: #7312d1;
  color: #fff;
  border-color: #7312d1;
  box-shadow: 0 4px 15px rgba(115, 18, 209, 0.4);
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.netflix-dot { background: #e50914; }
.prime-dot { background: #00a8e1; }
.disney-dot { background: #38bdf8; }
.apple-dot { background: #e2e8f0; }
.max-dot { background: #a855f7; }

/* Filters & Chips */
.filters-section {
  margin-bottom: 2rem;
}

.chips-container {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.chip {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.chip:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.chip.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* Movies Grid Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.count-tag {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Movie Card */
.movie-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.6);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0f131a;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .card-poster {
  transform: scale(1.05);
}

.card-rating {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(9, 12, 16, 0.8);
  backdrop-filter: blur(6px);
  color: #ffc107;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.card-bookmark-btn {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(9, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.card-bookmark-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

/* Netflix-Style Top 10 Badges & Numerals */
.top10-flame-badge {
  position: absolute;
  top: 2.7rem;
  left: 0.6rem;
  background: linear-gradient(135deg, #e50914, #ff2a4b);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(229, 9, 20, 0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top10-rank-num {
  position: absolute;
  bottom: -10px;
  left: 6px;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Arial Black', Impact, sans-serif;
  color: #070a12;
  -webkit-text-stroke: 2.5px #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  z-index: 2;
  letter-spacing: -3px;
  transition: transform 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.movie-card:hover .top10-rank-num {
  transform: scale(1.08) translateY(-3px);
  -webkit-text-stroke: 2.5px var(--accent-red);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* In-Feed Ad Banner */
.in-feed-ad-banner {
  background: linear-gradient(135deg, #161e31, #0f1422);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
}

.in-feed-ad-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.in-feed-ad-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.ad-btn {
  display: inline-block;
  background: var(--accent-cyan);
  color: #090c10;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  transition: var(--transition);
}
.ad-btn:hover {
  background: #7dd3fc;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Modals */
.modal-backdrop, .trailer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden, .trailer-modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 850px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close, .trailer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover, .trailer-close:hover {
  background: var(--accent-red);
}

.modal-backdrop-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-backdrop-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-surface) 0%, transparent 100%);
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.modal-poster-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border-color);
  aspect-ratio: 2/3;
  object-fit: cover;
}

.modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-overview {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.where-to-watch {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.where-to-watch h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.provider-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.provider-pill.netflix {
  background: rgba(229, 9, 20, 0.15);
  color: #ff5252;
  border-color: rgba(229, 9, 20, 0.3);
}

.provider-pill.prime {
  background: rgba(0, 168, 225, 0.15);
  color: #00a8e1;
  border-color: rgba(0, 168, 225, 0.3);
}

.provider-pill.apple {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-cast-section {
  margin-bottom: 1.5rem;
}

.modal-cast-section h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cast-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}

.cast-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e2638;
}

.cast-char {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Trailer Modal */
.trailer-container {
  width: 100%;
  max-width: 900px;
  position: relative;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.trailer-fallback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 22, 34, 0.95);
  padding: 0.75rem 1rem;
  border-radius: 0 0 12px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-top: none;
}

/* API Key Modal */
.api-modal {
  padding: 2rem;
  max-width: 500px;
}

.api-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.api-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.api-input-wrap {
  margin-bottom: 1.25rem;
}

.api-input-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.api-input-wrap input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.api-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.api-help {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SEO Content Hub & FAQ Guide */
.seo-content-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
}

.seo-container h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.seo-container p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.seo-keyword-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.seo-keyword-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

.seo-faq {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.seo-faq h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.seo-faq details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.seo-faq summary {
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.seo-faq details p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

/* Footer */
.app-footer {
  background: #06080c;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-brand .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.owner-credit {
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
  color: #e2e8f0 !important;
}

.owner-credit strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.footer-attribution {
  font-size: 0.8rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
}

/* Native Mobile Bottom Navigation Dock (Desktop Hidden) */
.mobile-bottom-nav {
  display: none;
}

/* Responsive queries */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for sticky bottom dock */
  }

  .main-content {
    padding: 0.85rem 1rem 1.5rem;
  }

  /* Sticky Top Nav on Mobile */
  .navbar {
    padding: 0.65rem 1rem;
  }

  .nav-container {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-actions {
    display: none; /* Relocated to ergonomic Bottom Nav Bar */
  }

  .search-bar-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.25rem;
  }

  .search-bar-wrap input {
    font-size: 0.9rem;
    padding: 0.65rem 4.2rem 0.65rem 2.5rem;
  }

  /* Cinematic Immersive Mobile Hero Spotlight */
  .hero-section {
    min-height: 480px;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    align-items: flex-end;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .hero-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
  }

  .hero-overview {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  /* Smooth Touch Momentum for Category Chips */
  .providers-filter-container,
  .chips-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
  }

  .providers-filter-container::-webkit-scrollbar,
  .chips-container::-webkit-scrollbar {
    display: none;
  }

  .provider-chip {
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
  }

  .top10-rank-num {
    font-size: 2.85rem;
    bottom: -6px;
    left: 4px;
    -webkit-text-stroke: 1.8px #ffffff;
  }

  .top10-flame-badge {
    top: 2.3rem;
    left: 0.4rem;
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }

  .chip {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
  }

  /* 2-Column High-Density Mobile Movie Grid */
  .section-header {
    margin-bottom: 0.85rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .card-body {
    padding: 0.65rem;
  }

  .card-title {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .card-meta {
    font-size: 0.75rem;
  }

  .card-bookmark-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    top: 0.4rem;
    left: 0.4rem;
  }

  .card-rating {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    top: 0.4rem;
    right: 0.4rem;
  }

  /* iOS / Android Style Bottom Sheet Modal */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-radius: 22px 22px 0 0;
    max-height: 88vh;
    max-width: 100%;
    animation: slideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-backdrop-img {
    height: 160px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    margin-top: -30px;
    gap: 1rem;
  }

  .modal-poster-col {
    display: none; /* Hide large redundant poster on mobile to maximize screen real estate */
  }

  .modal-title {
    font-size: 1.45rem;
  }

  .modal-overview {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
  }

  /* Native Mobile Bottom Navigation Dock */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 14, 23, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
  }

  .mobile-nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    user-select: none;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

  .mobile-nav-item.active {
    color: var(--accent-red);
  }

  .mobile-nav-icon {
    font-size: 1.25rem;
  }

  .mobile-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
  }

  .mobile-badge.hidden {
    display: none;
  }

  /* SEO Section on Mobile */
  .seo-content-section {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
}

/* ==========================================================================
   Legal & Information Pages (Privacy, Terms, About, Contact)
   ========================================================================== */
.page-container {
  max-width: 900px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.5px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section p {
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-section li {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--accent-cyan);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-section a:hover {
  color: #fff;
}

/* Features Grid on About Page */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.feature-box h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact Page Grid & Form */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.contact-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-box h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.highlight-link {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.highlight-link:hover {
  text-decoration: underline !important;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* Cookie & AdSense Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 820px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: slideUpCookie 0.4s ease-out;
}

.cookie-banner.hidden {
  display: none !important;
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.cookie-banner-content p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.75rem 1.25rem;
  }
  .legal-card h1 {
    font-size: 1.85rem;
  }
  .cookie-banner {
    bottom: 4.8rem; /* Sit above the mobile bottom dock */
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.85rem;
    width: calc(100% - 1.5rem);
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

