/* ============================================
   MOVIESUPDATE — STYLESHEET v5.0 FINAL
   ============================================ */

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

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

:root {
  --navy-dark:    #0a1628;
  --navy:         #0d2148;
  --navy-mid:     #1a3a6b;
  --navy-light:   #2c5282;
  --accent:       #3b82f6;
  --accent-bright:#60a5fa;
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-300:     #cbd5e1;
  --gray-500:     #64748b;
  --text-main:    #1e293b;
  --text-muted:   #64748b;
  --gold:         #f59e0b;
  --red:          #ef4444;
  --green:        #22c55e;
  --card-bg:      #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.15);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --nav-height:   106px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 10px; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-top {
  height: 56px;
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
}

.navbar-search {
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-bright); }

.search-bar {
  width: 100%;
  display: flex; align-items: center;
  background: var(--navy-mid);
  border-radius: 30px;
  padding: 0 16px; gap: 8px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-size: 0.875rem; padding: 10px 0;
}
.search-bar input::placeholder { color: var(--gray-300); }
.search-icon { color: var(--gray-300); flex-shrink: 0; }

.nav-tabs {
  display: flex; gap: 4px; margin-left: auto;
}
.nav-tab {
  background: none; border: none; color: var(--gray-300);
  font-size: 0.8rem; font-weight: 500; padding: 8px 14px;
  border-radius: 30px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.nav-tab:hover { color: var(--white); background: var(--navy-mid); }
.nav-tab.active { color: var(--white); background: var(--accent); }

.darkmode-btn {
  background: none;
  border: none;
  color: var(--gray-300);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  min-width: 36px;
}
.darkmode-btn:hover { background: var(--navy-mid); color: var(--white); }
.darkmode-btn [data-lucide] { width: 20px; height: 20px; stroke: currentColor; }
body.dark .darkmode-btn { color: var(--accent-bright); }

/* ============================================
   PAGE WRAPPER & SECTIONS
   ============================================ */
.page-wrapper {
  padding-top: var(--nav-height);
  width: 100%;
  overflow-x: hidden;
}

.section {
  display: none;
  padding: 16px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.2s ease;
}
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  border-radius: 2px;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 340px;
  background: var(--navy-dark);
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 28px 28px 24px;
}
.hero-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1.5px; padding: 4px 10px;
  background: var(--accent); color: var(--white);
  border-radius: 4px; margin-bottom: 10px; text-transform: uppercase;
}
.hero-title {
  font-size: 1.7rem; font-weight: 800;
  color: var(--white); margin-bottom: 8px; line-height: 1.2;
}
.hero-desc {
  font-size: 0.85rem; color: var(--gray-300);
  max-width: 500px; line-height: 1.6; margin-bottom: 14px;
}
.hero-btn {
  background: var(--accent); color: var(--white);
  border: none; border-radius: 30px;
  padding: 10px 22px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.hero-btn:hover { background: var(--accent-bright); }

.hero-dots {
  display: flex; gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
  margin-top: 10px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer; transition: all 0.2s;
  border: none;
}
.hero-dot.active { background: var(--navy-dark); width: 20px; border-radius: 4px; }

/* ============================================
   TRAILERS SECTION
   ============================================ */
.trailers-scroll {
  display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 12px;
  margin-bottom: 32px; scrollbar-width: none;
}
.trailers-scroll::-webkit-scrollbar { display: none; }

.trailer-card {
  flex-shrink: 0; width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden; background: var(--navy-dark);
  cursor: pointer; position: relative;
  box-shadow: var(--shadow-md); transition: transform 0.2s;
}
.trailer-card:hover { transform: scale(1.03); }

.trailer-thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}
.trailer-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s, background 0.2s;
}
.trailer-play-btn svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--navy-dark); }
.trailer-card:hover .trailer-play-btn { background: var(--accent); }
.trailer-card:hover .trailer-play-btn svg { fill: white; }

.trailer-info { padding: 10px 12px 12px; }
.trailer-title {
  font-size: 0.82rem; font-weight: 700;
  color: var(--white); line-height: 1.3; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trailer-year { font-size: 0.72rem; color: var(--gray-300); }

.trailer-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 3000;
  align-items: center; justify-content: center; padding: 20px;
}
.trailer-modal-overlay.open { display: flex; }
.trailer-modal {
  width: 100%; max-width: 700px;
  border-radius: var(--radius-lg);
  overflow: hidden; background: #000;
  animation: slideUp 0.3s ease;
}
.trailer-iframe-wrap { position: relative; padding-top: 56.25%; background: #000; }
.trailer-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.trailer-modal-close {
  display: block; width: 100%;
  background: var(--navy-dark); color: var(--white);
  border: none; padding: 13px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.trailer-modal-close:hover { background: var(--navy-mid); }

/* ============================================
   CARD GRID
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 32px;
}
.movie-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--gray-100);
}
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-img-wrap { position: relative; }
.card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--navy); display: block;
}
.bookmark-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(10,22,40,0.7);
  border: none; border-radius: 6px;
  padding: 4px 7px; font-size: 1rem;
  cursor: pointer; transition: transform 0.15s;
  backdrop-filter: blur(4px);
}
.bookmark-btn:hover { transform: scale(1.15); }

.card-body { padding: 12px 14px 14px; }
.card-tag {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 1px; padding: 3px 8px; border-radius: 4px;
  margin-bottom: 6px; text-transform: uppercase;
  background: var(--navy-dark); color: var(--white);
}
.card-tag.Hollywood { background: var(--navy); }
.card-tag.Anime     { background: #7c3aed; }
.card-tag.Indian    { background: #b45309; }

.card-title {
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-main); margin-bottom: 4px; line-height: 1.3;
}
.card-meta {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.card-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.8rem; font-weight: 600; color: var(--gold);
}
.avg-rating {
  font-size: 0.75rem; color: var(--accent);
  font-weight: 600; margin: 4px 0 6px;
}
.star-rating { display: flex; gap: 3px; margin-top: 6px; }
.star {
  font-size: 1rem; cursor: pointer; color: var(--gray-300);
  transition: color 0.15s; line-height: 1;
  background: none; border: none; padding: 0;
}
.star.active, .star:hover { color: var(--gold); }

/* ============================================
   NEWS SECTION
   ============================================ */
.news-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.filter-btn {
  background: var(--white); border: 1.5px solid var(--gray-300);
  color: var(--text-muted); padding: 6px 14px;
  border-radius: 30px; font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy-dark); color: var(--white);
  border-color: var(--navy-dark);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: var(--navy); display: block;
}
.news-card-body { padding: 16px; }
.news-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 1.2px; padding: 3px 9px;
  background: var(--accent); color: var(--white);
  border-radius: 4px; margin-bottom: 10px;
}
.news-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-main); line-height: 1.45; margin-bottom: 8px;
}
.news-excerpt {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 14px;
}
.news-footer {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted);
  border-top: 1px solid var(--gray-100); padding-top: 10px;
}

/* ============================================
   GENRES SECTION
   ============================================ */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.genre-card-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.genre-card-img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.genre-card-img.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

.genre-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.1) 100%
  );
}

.genre-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  z-index: 1;
}

.genre-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.genre-results { margin-top: 8px; }

/* ============================================
   RECOMMENDATIONS
   ============================================ */
.mood-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

/* ============================================
   RATINGS & WATCHLIST
   ============================================ */
.ratings-list { display: flex; flex-direction: column; gap: 14px; }
.rating-item {
  background: var(--white); border-radius: var(--radius-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.rating-item-img {
  width: 80px; height: 50px; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--navy); flex-shrink: 0;
}
.rating-item-info { flex: 1; }
.rating-item-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.rating-item-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.no-ratings {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: 0.95rem;
}
.no-ratings .emoji { font-size: 2.5rem; display: block; margin-bottom: 12px; }

.watchlist-item { cursor: default; transition: box-shadow 0.2s; }
.watchlist-item:hover { box-shadow: var(--shadow-md); }
.watchlist-remove-btn {
  background: var(--gray-100); border: none; border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.watchlist-remove-btn:hover { background: #fee2e2; }
.watchlist-remove-btn [data-lucide] { width: 16px; height: 16px; stroke: var(--red); }

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-results-section {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--white); z-index: 999;
  max-height: 70vh; overflow-y: auto;
  padding: 20px 24px; box-shadow: var(--shadow-lg);
  border-bottom: 2px solid var(--accent);
}
.search-results-section.visible { display: block; }
.search-result-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: opacity 0.2s;
}
.search-result-item:hover { opacity: 0.75; }
.search-result-item img {
  width: 60px; height: 38px; object-fit: cover;
  border-radius: 6px; background: var(--navy); flex-shrink: 0;
}
.sri-title { font-size: 0.9rem; font-weight: 600; }
.sri-meta { font-size: 0.75rem; color: var(--text-muted); }
.search-header {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 10px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.see-all-btn {
  background: var(--accent); color: var(--white);
  border: none; border-radius: 20px;
  padding: 4px 12px; font-size: 0.75rem;
  cursor: pointer; margin-left: auto;
}

/* ============================================
   MODAL (Bottom Sheet)
   ============================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 2000;
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 680px; max-height: 92vh;
  overflow-y: auto; animation: sheetUp 0.35s cubic-bezier(0.32,0.72,0,1);
  padding-bottom: 32px; -webkit-overflow-scrolling: touch;
}
@keyframes sheetUp {
  from { transform: translateY(100%); opacity: 0.5; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-handle {
  width: 40px; height: 4px; background: var(--gray-300);
  border-radius: 4px; margin: 12px auto 0;
}
.modal-trailer-wrap { position: relative; padding-top: 56.25%; background: #000; }
.modal-trailer-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.modal-trailer-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: var(--navy-dark);
  flex-direction: column; gap: 8px; color: var(--gray-300); font-size: 0.85rem;
}
.modal-trailer-placeholder .play-icon {
  width: 52px; height: 52px; background: rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.modal-trailer-placeholder .play-icon svg { width: 22px; height: 22px; fill: white; margin-left: 4px; }
.modal-header {
  display: flex; gap: 14px; padding: 16px 20px 12px; align-items: flex-start;
}
.modal-poster {
  width: 80px; height: 120px; object-fit: cover;
  border-radius: 10px; background: var(--navy);
  flex-shrink: 0; box-shadow: var(--shadow-md);
}
.modal-header-info { flex: 1; }
.modal-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 1px; padding: 3px 9px;
  background: var(--navy-dark); color: var(--white);
  border-radius: 4px; margin-bottom: 6px;
}
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.modal-meta { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.modal-divider { height: 1px; background: var(--gray-100); margin: 4px 20px; }
.modal-desc { padding: 12px 20px; font-size: 0.88rem; line-height: 1.75; color: var(--text-main); }
.modal-cast-section { padding: 4px 20px 12px; }
.modal-cast-title { font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.cast-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none;
}
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card { flex-shrink: 0; text-align: center; width: 72px; }
.cast-photo {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; background: var(--navy);
  display: block; margin: 0 auto 6px;
  border: 2px solid var(--gray-100);
}
.cast-name { font-size: 0.68rem; font-weight: 600; color: var(--text-main); line-height: 1.3; word-break: break-word; }
.cast-character { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.modal-rating-section {
  padding: 12px 20px; background: var(--gray-100);
  margin: 8px 20px; border-radius: var(--radius-md);
}
.modal-rating-section h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.modal-rating-section .star { font-size: 1.4rem; }
.modal-actions { padding: 8px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.modal-bookmark {
  display: block; width: 100%;
  background: var(--navy-mid); color: var(--white);
  border: none; border-radius: 12px; padding: 14px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.modal-bookmark.bookmarked { background: var(--accent); }
.modal-close {
  display: block; width: 100%;
  background: var(--gray-100); color: var(--text-main);
  border: none; border-radius: 12px; padding: 14px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-dark); color: var(--white);
  padding: 12px 22px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 500;
  opacity: 0; transition: all 0.3s; z-index: 3000;
  white-space: nowrap; box-shadow: var(--shadow-lg); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   SKELETON & SPINNER
   ============================================ */
.skeleton-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--gray-100);
}
.skeleton-img { width: 100%; aspect-ratio: 16/9; background: var(--gray-100); }
.skeleton-body { padding: 12px; }
.skeleton-line { height: 12px; border-radius: 6px; background: var(--gray-100); margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   LOAD MORE
   ============================================ */
.load-more-btn {
  display: block; margin: 24px auto 0;
  background: var(--navy-dark); color: var(--white);
  border: none; border-radius: 30px;
  padding: 12px 32px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.load-more-btn:hover { background: var(--navy-mid); }

/* ============================================
   LUCIDE ICONS
   ============================================ */
[data-lucide] { width: 16px; height: 16px; stroke-width: 2.2; vertical-align: middle; flex-shrink: 0; }
.nav-tab [data-lucide] { width: 14px; height: 14px; }
.mobile-tab [data-lucide] { width: 22px; height: 22px; stroke-width: 2; display: block; margin: 0 auto 2px; }
.search-icon[data-lucide] { width: 15px; height: 15px; stroke: var(--gray-300); }
.section-title [data-lucide] { width: 22px; height: 22px; color: var(--accent); stroke: var(--accent); }
.nav-tab [data-lucide], .mobile-tab [data-lucide] { stroke: currentColor; }

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-dark); padding: 8px 0 12px;
  z-index: 900; box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
}
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mobile-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; background: none; border: none;
  color: var(--gray-300); cursor: pointer;
  font-size: 0.62rem; font-weight: 500;
  padding: 4px 10px; transition: color 0.2s;
}
.mobile-tab.active { color: var(--accent-bright); }

/* ============================================
   DARK MODE
   ============================================ */
body.dark {
  --off-white:    #0a0f1a;
  --white:        #111827;
  --gray-100:     #1f2937;
  --gray-300:     #4b5563;
  --gray-500:     #6b7280;
  --text-main:    #f1f5f9;
  --text-muted:   #9ca3af;
  --card-bg:      #111827;
  --navy-dark:    #060d1a;
  --navy:         #0a1628;
  --navy-mid:     #0d2148;
  --navy-light:   #1a3a6b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
}
body.dark .nav-logo { color: #ffffff; }
body.dark .nav-logo span { color: var(--accent-bright); }
body.dark .movie-card,
body.dark .news-card,
body.dark .rating-item { border-color: #1f2937; }
body.dark .filter-btn { background: #1f2937; border-color: #374151; color: #9ca3af; }
body.dark .filter-btn.active,
body.dark .filter-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
body.dark .search-results-section { background: #111827; border-color: var(--accent); }
body.dark .search-result-item { border-color: #1f2937; }
body.dark .modal { background: #111827; }
body.dark .modal-rating-section { background: #1f2937; }
body.dark .modal-close { background: #1f2937; color: var(--text-main); }
body.dark .modal-close:hover { background: #374151; }
body.dark .watchlist-remove-btn { background: #1f2937; }
body.dark .load-more-btn { background: #1f2937; color: var(--text-main); }
body.dark .section-title { color: var(--text-main); }
body.dark .hero-dot { background: #4b5563; }
body.dark .hero-dot.active { background: var(--accent-bright); }
body.dark .darkmode-btn { color: var(--accent-bright); }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 640px) {
  .navbar-top { padding: 0 14px; gap: 8px; }
  .nav-logo { font-size: 1.05rem; }
  .nav-tabs { display: none; }
  .darkmode-btn { display: flex; flex-shrink: 0; }
  .navbar-search { padding: 6px 14px 10px; }
  .section { padding: 12px 14px 24px; }
  .hero-carousel { height: 260px; }
  .hero-title { font-size: 1.2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .genres-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .mobile-nav { display: block; }
  .page-wrapper { padding-bottom: 70px; }
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.modal-comments-section {
  padding: 8px 0 4px;
  border-top: 1px solid var(--gray-100);
  margin-top: 8px;
}

.comment-input-wrap {
  padding: 0 20px 16px;
  display: flex; gap: 10px; align-items: flex-end;
}
.comment-input-wrap textarea {
  flex: 1; background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 12px; padding: 10px 14px;
  font-size: 0.85rem; font-family: 'Inter', sans-serif;
  color: var(--text-main); resize: none;
  min-height: 44px; max-height: 100px;
  transition: border-color 0.2s; outline: none;
}
.comment-input-wrap textarea:focus {
  border-color: var(--accent);
}
.comment-input-wrap button {
  background: var(--accent); color: white;
  border: none; border-radius: 10px;
  padding: 10px 16px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s;
}
.comment-input-wrap button:hover { background: var(--accent-bright); }

.comments-list {
  max-height: 280px; overflow-y: auto;
  padding: 0 20px;
}
.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 4px;
}
.comment-author {
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
}
.comment-time {
  font-size: 0.72rem; color: var(--text-muted);
}
.comment-text {
  font-size: 0.85rem; color: var(--text-main);
  line-height: 1.5;
}

body.dark .comment-input-wrap textarea {
  background: #1f2937; color: var(--text-main);
}
body.dark .comment-item {
  border-color: #1f2937;
}
body.dark .modal-comments-section {
  border-color: #1f2937;
}

<div class="card-grid" id="trending-grid"></div>

    /* ============================================
   HOME FOOTER
   ============================================ */
.home-footer {
  margin-top: 48px;
  padding: 32px 24px 20px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }
.social-btn svg { width: 18px; height: 18px; }

.social-btn.tiktok   { background: #010101; color: #ffffff; }
.social-btn.youtube  { background: #FF0000; color: #ffffff; }
.social-btn.twitter  { background: #000000; color: #ffffff; }
.social-btn.instagram {
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
}

.footer-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0 auto 16px;
  max-width: 160px;
}

.footer-copyright {
  font-size: 0.73rem;
  color: var(--text-muted);
}

body.dark .home-footer { border-color: #1f2937; }
body.dark .footer-logo { color: var(--white); }
body.dark .footer-divider { background: #1f2937; }