/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0b0b0b;
  color: #e5e5e5;
  overflow-x: hidden;
  padding-bottom: 120px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
  z-index: 100;
}

.nav-left { display: flex; align-items: center; gap: 32px; }

.logo {
  color: #e50914;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  text-transform: uppercase;
}
.logo span { color: #ffffff; }

/* ===== NAV ICON BUTTONS ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}
.nav-icon-btn:hover {
  background: #e50914;
  border-color: #e50914;
  transform: scale(1.08);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e50914;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #0b0b0b;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: #141414;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 9999;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.8);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #888;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 8px 6px;
  cursor: pointer;
  transition: 0.2s;
  flex: 1;
  text-align: center;
}

.bottom-nav-item i { font-size: 18px; }

.bottom-nav-item:hover,
.bottom-nav-item.active { color: #e50914; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  padding: 0 60px 100px;
  transition: background-image 0.8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0b0b0b 0%, rgba(11,11,11,0.7) 30%, transparent 70%),
    linear-gradient(90deg, rgba(11,11,11,0.9) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  animation: heroFadeIn 0.8s ease;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.9);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-play {
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0b0b0b;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.btn-play:hover {
  background: #e50914;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(229,9,20,0.4);
}

.btn-info {
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-info:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  transform: scale(1.03);
}

.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-rating { color: #f5c518; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.hero-year { color: #ccc; font-size: 15px; }
.hero-type {
  background: #e50914; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.hero-description {
  color: #ddd; font-size: 17px; line-height: 1.6;
  margin-bottom: 28px; max-width: 600px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* ===== CONTENT ===== */
.content { position: relative; z-index: 3; margin-top: -80px; padding: 0 40px 60px; }

.row { margin-bottom: 44px; }

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.row h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.row h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: #e50914;
  border-radius: 2px;
  display: inline-block;
}

.view-all-btn {
  background: transparent; color: #aaa;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px; border-radius: 60px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: 0.2s;
  white-space: nowrap;
}
.view-all-btn:hover { background: #e50914; color: #fff; border-color: #e50914; }

/* ===== CONTINUE WATCHING ===== */
.continue-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 0 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.continue-scroll::-webkit-scrollbar { height: 4px; }
.continue-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.continue-card {
  flex-shrink: 0;
  width: 220px;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}
.continue-card:hover { transform: translateY(-4px); }

.continue-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s;
}
.continue-card:hover img {
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px rgba(229,9,20,0.3);
}

.continue-progress {
  position: absolute;
  bottom: 62px;
  left: 8px;
  right: 8px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.continue-progress-bar {
  height: 100%;
  background: #e50914;
  border-radius: 2px;
  transition: width 0.3s;
}

.continue-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.continue-subtitle {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* ===== HORIZONTAL SCROLL ===== */
.horizontal-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 0 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.horizontal-scroll::-webkit-scrollbar { height: 4px; }
.horizontal-scroll::-webkit-scrollbar-track { background: transparent; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.horizontal-scroll::-webkit-scrollbar-thumb:hover { background: #e50914; }

/* ===== POSTER WRAPPER + STAR RATING (nasa LOOB ng poster) ===== */
.poster-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  /* ✅ GPU acceleration para smooth ang hover at scroll */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.poster-wrapper img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #1a1a1a;
  content-visibility: auto;
}

.poster-wrapper:hover {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 40px rgba(229,9,20,0.25);
  z-index: 5;
}

/* ✅ Rating badge sa loob ng poster (ibabang kaliwang corner) */
.poster-rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.75);
  color: #f5c518;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 3;
}
.poster-rating .fa-star {
  font-size: 11px;
  color: #f5c518;
}
.poster-rating .rating-number {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ===== TOP 10 ROW ===== */
.top10-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.top10-scroll::-webkit-scrollbar { display: none; }

.top10-item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
  padding-right: 12px;
}
.top10-item:hover { transform: scale(1.08); }

.top10-number {
  font-size: 120px;
  font-weight: 900;
  color: #0b0b0b;
  -webkit-text-stroke: 3px #555;
  line-height: 0.8;
  margin-right: -20px;
  z-index: 1;
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  letter-spacing: -8px;
  pointer-events: none;
}

.top10-poster-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  z-index: 2;
}

.top10-poster-wrap img {
  width: 140px;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ===== STREAMING PROVIDERS ROW ===== */
.providers-row { margin-top: 10px; margin-bottom: 44px; }

.providers-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.providers-scroll::-webkit-scrollbar { height: 4px; }
.providers-scroll::-webkit-scrollbar-track { background: transparent; }
.providers-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.providers-scroll::-webkit-scrollbar-thumb:hover { background: #e50914; }

.provider-card {
  flex-shrink: 0;
  width: 170px;
  height: 95px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
  padding: 18px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  position: relative;
}

.provider-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.provider-card:hover::before { opacity: 1; }

.provider-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px currentColor;
  border-color: currentColor;
}

.provider-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.provider-card span {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===== VIVAMAX PROVIDER CARD — original logo style (asul + orange) ===== */
.provider-card-vivamax {
  background: #000 !important;
  border-color: #ff6a00 !important;
  position: relative;
  overflow: hidden;
}
.provider-card-vivamax::before {
  background: linear-gradient(135deg, rgba(255,106,0,0.15), transparent);
}
.provider-card-vivamax:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px rgba(255,106,0,0.5) !important;
  border-color: #ff6a00 !important;
}

.vivamax-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'Harabara Mais', 'Arial Black', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.vivamax-viva {
  font-size: 22px;
  font-weight: 900;
  color: #0028ff;
  text-shadow: 0 2px 12px rgba(0,40,255,0.6);
}

.vivamax-max {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6a00 0%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(255,106,0,0.5);
}

/* ===== FULL PAGES ===== */
.view-all-page,
.my-list-page,
.more-page,
.user-profile-page,
.search-modal {
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 600;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 40px 140px 40px;
}
.view-all-page.open,
.my-list-page.open,
.more-page.open,
.user-profile-page.open,
.search-modal.open { display: flex; }

.view-all-header {
  position: sticky;
  top: 0;
  background: #0b0b0b;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.view-all-header h2 { font-size: 26px; font-weight: 700; color: #fff; }

/* ===== BACK BUTTONS ===== */
.back-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 22px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.back-btn:hover { background: #e50914; border-color: #e50914; }

/* ===== FIXED BACK BUTTON ===== */
.fixed-back-btn {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 10000 !important;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
  pointer-events: auto;
  font-family: inherit;
}
.fixed-back-btn:hover {
  background: #e50914;
  border-color: #e50914;
  transform: scale(1.05);
}

/* ===== GRID — 4 PER ROW ===== */
.view-all-grid,
.my-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.view-all-grid .poster-wrapper,
.my-list-grid .poster-wrapper {
  width: 100%;
}
.view-all-grid .poster-wrapper:hover,
.my-list-grid .poster-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px rgba(229,9,20,0.2);
}

.view-all-loading, .view-all-end {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

/* ===== MY LIST EMPTY ===== */
.my-list-empty {
  text-align: center;
  color: #666;
  padding: 80px 20px;
}
.my-list-empty i {
  font-size: 64px;
  color: #333;
  margin-bottom: 20px;
  display: block;
}
.my-list-empty p { font-size: 16px; }

/* ===== GENRE/MORE PAGE ===== */
.more-list { display: flex; flex-direction: column; gap: 4px; }
.more-list a {
  color: #ccc; text-decoration: none; font-size: 18px;
  padding: 18px 20px; cursor: pointer; transition: 0.2s;
  border-radius: 8px; border-left: 3px solid transparent;
}
.more-list a:hover {
  background: rgba(255,255,255,0.04);
  color: #fff; border-left-color: #e50914;
}

/* ===== SEARCH ===== */
.search-container {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 22px;
  width: 100%; max-width: 600px; margin-bottom: 30px;
}
.search-container i { color: #aaa; font-size: 18px; }
.search-container input {
  background: transparent; border: none; color: #fff;
  font-size: 18px; outline: none; width: 100%;
}
.search-container input::placeholder { color: #666; }
.search-modal .results {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; width: 100%;
}
.search-modal .results .poster-wrapper {
  width: 100%;
}
.search-modal .results .poster-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(229,9,20,0.2);
}

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  display: none; justify-content: center; align-items: flex-start;
  z-index: 700; padding: 40px 20px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-content {
  background: #141414; border-radius: 16px;
  width: 100%; max-width: 880px;
  overflow: hidden; position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== DETAILS VIEW ===== */
.details-view { display: block; }

.details-poster {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.details-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.details-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #141414 0%, rgba(20,20,20,0.4) 50%, transparent 100%);
}

.details-body {
  padding: 0 28px 28px;
  background: #141414;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.details-body h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.details-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #ccc;
  flex-wrap: wrap;
}

.details-rating {
  color: #e50914;
  font-weight: 700;
  font-size: 22px;
}

.details-sep { color: #444; }

.details-year, .details-runtime {
  color: #ccc;
  font-size: 16px;
}

/* ===== BUTTONS ===== */
.details-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.btn-play-now {
  flex: 1;
  max-width: 220px;
  min-width: 150px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #0b0b0b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-play-now:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}

.btn-trailer {
  flex: 1;
  max-width: 220px;
  min-width: 150px;
  padding: 14px 28px;
  border: 1px solid rgba(229,9,20,0.5);
  border-radius: 8px;
  background: rgba(229,9,20,0.15);
  color: #ff6b6b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-trailer:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
  transform: scale(1.02);
}

.btn-add-list {
  flex: 1;
  max-width: 220px;
  min-width: 150px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-list:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.details-description {
  color: #bbb;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: left;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== EPISODES SECTION ===== */
.episodes-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.season-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  -webkit-overflow-scrolling: touch;
}
.season-selector::-webkit-scrollbar { height: 4px; }
.season-selector::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.season-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
  padding: 8px 18px;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.season-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.season-btn.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.season-btn.upcoming {
  opacity: 0.6;
  border-style: dashed;
}
.season-btn.upcoming:hover {
  opacity: 0.85;
}

.season-btn.ongoing::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.seasons-info {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #ff8a8a;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.seasons-info strong {
  color: #fff;
  font-weight: 700;
}

.episodes-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.episodes-summary strong {
  color: #fff;
  font-weight: 700;
}

.episodes-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-item {
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: 0.25s;
  align-items: center;
  position: relative;
}
.episode-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(229,9,20,0.4);
  transform: translateX(4px);
}

.episode-thumb {
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1a1a;
}

.episode-info {
  flex: 1;
  min-width: 0;
}

.episode-number {
  font-size: 11px;
  font-weight: 700;
  color: #e50914;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.episode-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-overview {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-play-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e50914;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: 0.2s;
}
.episode-item:hover .episode-play-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(229,9,20,0.5);
}

.episodes-loading {
  text-align: center;
  color: #666;
  padding: 20px;
  font-size: 14px;
}

.episode-item.watched::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #22c55e;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(34,197,94,0.5);
  z-index: 2;
}

.episode-item.watched .episode-number::after {
  content: ' • Watched';
  color: #22c55e;
  font-size: 10px;
}

.episode-item.watched {
  border-color: rgba(34,197,94,0.3);
}

.episode-item.watched:hover {
  border-color: rgba(34,197,94,0.6);
}

/* ===== CAST SECTION ===== */
.cast-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.cast-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  -webkit-overflow-scrolling: touch;
}
.cast-scroll::-webkit-scrollbar { height: 4px; }
.cast-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.cast-card {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s;
}
.cast-card:hover { transform: translateY(-4px); }

.cast-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.1);
  transition: border-color 0.25s;
}
.cast-card:hover img {
  border-color: #e50914;
  box-shadow: 0 0 20px rgba(229,9,20,0.4);
}

.cast-card .cast-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cast-card .cast-role {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== YOU MAY ALSO LIKE ===== */
.similar-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.similar-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.similar-scroll::-webkit-scrollbar { height: 4px; }
.similar-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.similar-scroll::-webkit-scrollbar-thumb:hover { background: #e50914; }

.similar-scroll img {
  width: 130px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.3s, box-shadow 0.3s;
}
.similar-scroll img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(229,9,20,0.3);
}

/* ===== TRAILER MODAL ===== */
.trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 20px;
}

.trailer-modal.open { display: flex; }

.trailer-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  animation: trailerIn 0.3s ease;
}

@keyframes trailerIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.trailer-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9);
}

.trailer-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== USER PROFILE PAGE ===== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(229,9,20,0.15), rgba(229,9,20,0.05));
  border-radius: 16px;
  border: 1px solid rgba(229,9,20,0.2);
  margin-bottom: 28px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #b00710);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(229,9,20,0.4);
}

.profile-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 14px;
  color: #888;
}

.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-section-title i {
  color: #e50914;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.history-grid .poster-wrapper {
  width: 100%;
}
.history-grid .poster-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(229,9,20,0.3);
}

.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.history-empty i {
  font-size: 48px;
  color: #333;
  margin-bottom: 12px;
  display: block;
}
.history-empty p {
  font-size: 14px;
}

.clear-history-btn {
  margin-top: 16px;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  color: #ff6b6b;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.clear-history-btn:hover {
  background: rgba(229,9,20,0.3);
  color: #fff;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.theme-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.theme-option.active {
  border-color: #e50914;
  background: rgba(229,9,20,0.1);
}

.theme-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.theme-preview-default {
  background: linear-gradient(135deg, #0b0b0b 50%, #e50914 50%);
}
.theme-preview-light {
  background: linear-gradient(135deg, #f5f5f5 50%, #e50914 50%);
}
.theme-preview-blue {
  background: linear-gradient(135deg, #0a0e1a 50%, #1e90ff 50%);
}
.theme-preview-purple {
  background: linear-gradient(135deg, #13071f 50%, #a855f7 50%);
}
.theme-preview-green {
  background: linear-gradient(135deg, #071a0f 50%, #22c55e 50%);
}

.theme-option span {
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
}
.theme-option.active span {
  color: #fff;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  cursor: pointer;
}

.switch-row span:first-child {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

.switch-row input[type="checkbox"] {
  display: none;
}

.switch {
  width: 46px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 13px;
  position: relative;
  transition: 0.3s;
  flex-shrink: 0;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-row input[type="checkbox"]:checked + .switch {
  background: #e50914;
}
.switch-row input[type="checkbox"]:checked + .switch::after {
  left: 23px;
}

.profile-logout-btn {
  width: 100%;
  padding: 16px;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  color: #ff6b6b;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profile-logout-btn:hover {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
  transform: scale(1.02);
}

/* ===== FILTER PANEL ===== */
.filter-btn {
  margin-left: auto;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  color: #ff6b6b;
  padding: 8px 16px;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}
.filter-btn:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
}

.filter-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  animation: filterSlide 0.3s ease;
  position: relative;
  z-index: 50;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .filter-grid { grid-template-columns: 1fr; }
}

@keyframes filterSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-group {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: 0.2s;
}
.filter-group select:focus {
  border-color: #e50914;
  background: rgba(255,255,255,0.1);
}
.filter-group select option {
  background: #1a1a1a;
  color: #fff;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.filter-apply-btn {
  flex: 1;
  background: #e50914;
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.filter-apply-btn:hover {
  background: #ff0a16;
  transform: scale(1.02);
}

.filter-clear-btn {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.filter-clear-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ===== NOTIFICATIONS PANEL ===== */
.notif-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: 500px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  z-index: 800;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: notifSlide 0.25s ease;
}
.notif-panel.open { display: flex; }

@keyframes notifSlide {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.notif-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.notif-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.notif-close-btn:hover {
  background: #e50914;
  border-color: #e50914;
}

.notif-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.notif-item:hover {
  background: rgba(255,255,255,0.06);
}

.notif-item-img {
  width: 50px;
  height: 75px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1a1a;
  flex-shrink: 0;
}

.notif-item-info {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-meta {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-item-meta i {
  color: #e50914;
}

.notif-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.notif-empty i {
  font-size: 42px;
  color: #333;
  margin-bottom: 12px;
  display: block;
}
.notif-empty p {
  font-size: 13px;
}

/* ===== LIGHT THEME ===== */
body.theme-light {
  background: #f5f5f5;
  color: #1a1a1a;
}

body.theme-light .navbar {
  background: linear-gradient(180deg, rgba(245,245,245,0.98) 0%, rgba(245,245,245,0.7) 70%, transparent 100%);
}

body.theme-light .logo span {
  color: #1a1a1a;
}

body.theme-light .bottom-nav {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
}

body.theme-light .bottom-nav-item {
  color: #666;
}

body.theme-light .hero-overlay {
  background:
    linear-gradient(0deg, #f5f5f5 0%, rgba(245,245,245,0.7) 30%, transparent 70%),
    linear-gradient(90deg, rgba(245,245,245,0.9) 0%, transparent 50%);
}

body.theme-light .hero-content h1 {
  color: #1a1a1a;
  text-shadow: 0 4px 30px rgba(255,255,255,0.9);
}

body.theme-light .hero-description {
  color: #444;
}

body.theme-light .row h2 {
  color: #1a1a1a;
}

body.theme-light .view-all-page,
body.theme-light .my-list-page,
body.theme-light .more-page,
body.theme-light .user-profile-page,
body.theme-light .search-modal {
  background: #f5f5f5;
}

body.theme-light .view-all-header {
  background: #f5f5f5;
  border-bottom-color: rgba(0,0,0,0.08);
}

body.theme-light .view-all-header h2 {
  color: #1a1a1a;
}

body.theme-light .back-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}

body.theme-light .fixed-back-btn {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.15);
  color: #1a1a1a;
}
body.theme-light .fixed-back-btn:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
}

body.theme-light .modal-content {
  background: #ffffff;
}

body.theme-light .details-body {
  background: #ffffff;
}

body.theme-light .details-poster-overlay {
  background: linear-gradient(0deg, #ffffff 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}

body.theme-light .details-body h2 {
  color: #1a1a1a;
}

body.theme-light .details-year,
body.theme-light .details-runtime {
  color: #666;
}

body.theme-light .details-description {
  color: #555;
}

body.theme-light .section-title {
  color: #1a1a1a;
}

body.theme-light .episode-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
}

body.theme-light .episode-name {
  color: #1a1a1a;
}

body.theme-light .episode-overview {
  color: #666;
}

body.theme-light .cast-name {
  color: #1a1a1a;
}

body.theme-light .nav-icon-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a1a;
}

body.theme-light .notif-badge {
  border-color: #f5f5f5;
}

body.theme-light .filter-panel {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

body.theme-light .filter-group select {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}

body.theme-light .switch-row {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}

body.theme-light .switch-row span:first-child {
  color: #333;
}

body.theme-light .switch {
  background: rgba(0,0,0,0.15);
}

body.theme-light .notif-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}

body.theme-light .notif-item-title {
  color: #1a1a1a;
}

body.theme-light .notif-item:hover {
  background: rgba(0,0,0,0.04);
}

body.theme-light .season-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #555;
}

body.theme-light .season-btn:hover {
  background: rgba(0,0,0,0.1);
  color: #1a1a1a;
}

body.theme-light .seasons-info {
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.25);
  color: #c00;
}

body.theme-light .seasons-info strong {
  color: #1a1a1a;
}

body.theme-light .episodes-summary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #555;
}

body.theme-light .episodes-summary strong {
  color: #1a1a1a;
}

body.theme-light .continue-title {
  color: #1a1a1a;
}

body.theme-light .more-list a {
  color: #444;
}

body.theme-light .more-list a:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.04);
}

body.theme-light .poster-rating {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.theme-light .poster-rating .fa-star {
  color: #f5c518;
}
body.theme-light .poster-rating .rating-number {
  color: #222;
}

/* ===== THEME VARIATIONS ===== */
body.theme-blue {
  background: #0a0e1a;
}
body.theme-blue .bottom-nav {
  background: #0d1425;
}
body.theme-blue .logo {
  color: #1e90ff;
}
body.theme-blue .bottom-nav-item.active,
body.theme-blue .bottom-nav-item:hover {
  color: #1e90ff;
}
body.theme-blue .row h2::before {
  background: #1e90ff;
}
body.theme-blue .season-btn.active {
  background: #1e90ff;
  border-color: #1e90ff;
}
body.theme-blue .episode-number {
  color: #1e90ff;
}
body.theme-blue .episode-play-icon {
  background: #1e90ff;
}
body.theme-blue .profile-avatar {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
}
body.theme-blue .nav-icon-btn:hover {
  background: #1e90ff;
  border-color: #1e90ff;
}

body.theme-purple {
  background: #13071f;
}
body.theme-purple .bottom-nav {
  background: #1a0b28;
}
body.theme-purple .logo {
  color: #a855f7;
}
body.theme-purple .bottom-nav-item.active,
body.theme-purple .bottom-nav-item:hover {
  color: #a855f7;
}
body.theme-purple .row h2::before {
  background: #a855f7;
}
body.theme-purple .season-btn.active {
  background: #a855f7;
  border-color: #a855f7;
}
body.theme-purple .episode-number {
  color: #a855f7;
}
body.theme-purple .episode-play-icon {
  background: #a855f7;
}
body.theme-purple .profile-avatar {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}
body.theme-purple .nav-icon-btn:hover {
  background: #a855f7;
  border-color: #a855f7;
}

body.theme-green {
  background: #071a0f;
}
body.theme-green .bottom-nav {
  background: #0a2515;
}
body.theme-green .logo {
  color: #22c55e;
}
body.theme-green .bottom-nav-item.active,
body.theme-green .bottom-nav-item:hover {
  color: #22c55e;
}
body.theme-green .row h2::before {
  background: #22c55e;
}
body.theme-green .season-btn.active {
  background: #22c55e;
  border-color: #22c55e;
}
body.theme-green .episode-number {
  color: #22c55e;
}
body.theme-green .episode-play-icon {
  background: #22c55e;
}
body.theme-green .profile-avatar {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
body.theme-green .nav-icon-btn:hover {
  background: #22c55e;
  border-color: #22c55e;
}

/* ===== FOOTER ===== */
.footer {
  background: #0b0b0b;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #888; padding: 40px 20px;
  text-align: center;
}
.footer-content { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }
.footer-content p { font-size: 14px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: #888; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: #e50914; }

/* ===== LOGIN SCREEN ===== */
body.locked { overflow: hidden; }

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  padding: 20px;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(229,9,20,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(229,9,20,0.1) 0%, transparent 50%),
    #0b0b0b;
  pointer-events: none;
}

.login-box {
  position: relative;
  z-index: 2;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9);
  animation: loginIn 0.4s ease;
}

@keyframes loginIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: block;
  text-align: center;
  color: #e50914;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.login-logo span { color: #fff; }

.login-box h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  transition: 0.2s;
}

.login-field:focus-within {
  border-color: #e50914;
  background: rgba(255,255,255,0.08);
}

.login-field i {
  color: #888;
  font-size: 16px;
  width: 18px;
}

.login-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}

.login-field input::placeholder { color: #666; }

.login-error {
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  color: #ff6b6b;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
}
.login-btn:hover {
  background: #ff0a16;
  transform: scale(1.02);
}
.login-btn:active { transform: scale(0.98); }

.login-note {
  color: #666;
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

/* ===== TELEGRAM FLOAT BUTTON ===== */
.telegram-float {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5);
  z-index: 9998;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s;
  animation: telegramPulse 2.5s infinite;
}

.telegram-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 34px rgba(0, 136, 204, 0.8), 0 0 0 8px rgba(0, 136, 204, 0.12);
}

.telegram-float i {
  margin-left: -1px;
}

@keyframes telegramPulse {
  0% {
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.5);
  }
  70% {
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5), 0 0 0 14px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0);
  }
}

body.locked .telegram-float { display: none; }

/* ===== SNOW EFFECT ===== */
#snow-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 99990 !important;
  overflow: hidden !important;
  display: block !important;
}

.snowflake {
  position: absolute;
  top: -30px;
  color: #ffffff;
  opacity: 0.9;
  user-select: none;
  pointer-events: none;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(255,255,255,0.4);
  will-change: transform, opacity;
  line-height: 1;
}

@keyframes snowfall {
  0% {
    transform: translateY(-30px) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

body.theme-light .snowflake {
  color: #7eb8e8;
  text-shadow: 0 0 6px rgba(126,184,232,0.8), 0 0 12px rgba(126,184,232,0.4);
}

body.locked #snow-container {
  display: none !important;
}

@media (max-width: 768px) {
  .snowflake { font-size: 9px !important; }
}

@media (max-width: 480px) {
  .snowflake { font-size: 8px !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .view-all-grid, .my-list-grid { grid-template-columns: repeat(4, 1fr); }
  .search-modal .results { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .logo { font-size: 20px; }

  .nav-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .hero { height: 75vh; min-height: 500px; padding: 0 20px 80px; }
  .hero-content h1 { font-size: 34px; letter-spacing: -0.5px; margin-bottom: 14px; }
  .hero-description { font-size: 14px; -webkit-line-clamp: 3; margin-bottom: 20px; }
  .hero-meta { gap: 10px; margin-bottom: 12px; }
  .hero-rating, .hero-year { font-size: 13px; }
  .btn-play, .btn-info { padding: 11px 22px; font-size: 14px; }

  .content { padding: 0 16px 40px; margin-top: -60px; }
  .row { margin-bottom: 32px; }
  .row-header { flex-wrap: wrap; gap: 8px; }
  .row h2 { font-size: 18px; }
  .row h2::before { height: 18px; width: 3px; }
  .view-all-btn { font-size: 12px; padding: 5px 12px; }

  .horizontal-scroll { gap: 10px; }

  .poster-wrapper { width: 130px; }
  .poster-rating { font-size: 10px; padding: 3px 6px; gap: 3px; bottom: 6px; left: 6px; }
  .poster-rating .fa-star { font-size: 10px; }
  .poster-rating .rating-number { font-size: 10px; }

  .continue-card { width: 180px; }
  .continue-title { font-size: 12px; }

  .top10-number { font-size: 80px; -webkit-text-stroke: 2px #555; letter-spacing: -5px; }
  .top10-poster-wrap img { width: 105px; }

  .view-all-grid, .my-list-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .search-modal .results { grid-template-columns: repeat(4, 1fr); gap: 10px; }

  .providers-row h2 { font-size: 18px; }
  .provider-card { width: 130px; height: 75px; padding: 12px; }
  .vivamax-viva, .vivamax-max { font-size: 18px; }

  .view-all-page, .my-list-page, .more-page, .user-profile-page, .search-modal {
    padding: 0 16px 140px 16px;
  }
  .view-all-header h2 { font-size: 20px; }

  .modal { padding: 20px 10px; }
  .modal-content { border-radius: 12px; }

  .details-poster { height: 320px; }
  .details-body { padding: 0 16px 24px; margin-top: -50px; }
  .details-body h2 { font-size: 24px; }
  .details-meta { gap: 8px; font-size: 14px; margin-bottom: 16px; }
  .details-rating { font-size: 18px; }
  .details-year, .details-runtime { font-size: 14px; }
  .details-description { font-size: 14px; }
  .details-buttons { gap: 10px; margin-bottom: 18px; }
  .btn-play-now, .btn-add-list, .btn-trailer {
    padding: 12px 20px;
    font-size: 15px;
    max-width: 180px;
  }

  .search-container { padding: 10px 16px; }
  .search-container input { font-size: 15px; }

  .bottom-nav { height: 64px; }
  .bottom-nav-item { font-size: 9px; padding: 6px 4px; }
  .bottom-nav-item i { font-size: 16px; }

  .more-list a { font-size: 16px; padding: 14px 16px; }

  .fixed-back-btn {
    top: 10px !important;
    left: 10px !important;
    padding: 8px 16px;
    font-size: 13px;
  }

  .episode-thumb { width: 100px; }
  .episode-name { font-size: 13px; }
  .episode-overview { font-size: 11px; -webkit-line-clamp: 2; }
  .episode-play-icon { width: 32px; height: 32px; font-size: 12px; }
  .season-btn { padding: 6px 14px; font-size: 12px; }
  .seasons-info { font-size: 12px; padding: 8px 12px; }
  .episodes-summary { font-size: 12px; padding: 8px 12px; }

  .cast-card { width: 80px; }
  .cast-card img { width: 80px; height: 80px; }
  .cast-card .cast-name { font-size: 11px; }
  .cast-card .cast-role { font-size: 10px; }

  .similar-scroll img { width: 110px; }

  .profile-header { padding: 18px; gap: 14px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 28px; }
  .profile-info h3 { font-size: 20px; }
  .profile-section-title { font-size: 16px; }
  .history-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .theme-options { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .theme-option { padding: 8px; }
  .theme-option span { font-size: 11px; }

  .filter-panel { padding: 14px; }
  .filter-group label { font-size: 11px; }
  .filter-group select { padding: 8px 12px; font-size: 13px; }

  .notif-panel {
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 400px;
  }

  .switch-row { padding: 12px 14px; }
  .switch-row span:first-child { font-size: 13px; }

  .section-title { font-size: 16px; }

  .trailer-modal { padding: 10px; }

  .telegram-float {
    right: 14px;
    bottom: 78px;
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  /* ✅ Mobile: bawasan ang heavy animations */
  .poster-wrapper:hover {
    transform: scale(1.03) translateY(-3px);
  }
  .top10-item:hover {
    transform: scale(1.04);
  }
  .provider-card:hover {
    transform: translateY(-2px) scale(1.02);
  }
  .snowflake {
    animation-duration: 15s !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 26px; }
  .hero-description { font-size: 13px; -webkit-line-clamp: 4; }
  .details-poster { height: 260px; }
  .details-body h2 { font-size: 22px; }
  .footer-content { font-size: 13px; }
  .footer-links { gap: 12px; }
  .view-all-grid, .my-list-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .search-modal .results { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .provider-card { width: 110px; height: 65px; padding: 10px; }
  .vivamax-viva, .vivamax-max { font-size: 15px; }
  .top10-number { font-size: 64px; letter-spacing: -4px; }
  .top10-poster-wrap img { width: 88px; }
  .login-box { padding: 32px 24px; }
  .login-logo { font-size: 26px; }
  .login-box h2 { font-size: 20px; }

  .episode-thumb { width: 80px; }
  .episode-info { min-width: 0; }
  .episode-name { font-size: 12px; }
  .episode-overview { display: none; }

  .similar-scroll img { width: 100px; }
  .cast-card { width: 70px; }
  .cast-card img { width: 70px; height: 70px; }

  .history-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .theme-options { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .theme-option span { font-size: 10px; }

  .continue-card { width: 150px; }
  .continue-title { font-size: 11px; }
  .continue-subtitle { font-size: 10px; }

  .poster-wrapper { width: 110px; }
  .poster-rating { font-size: 9px; padding: 3px 5px; gap: 3px; bottom: 5px; left: 5px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,0.85); }
  .poster-rating .fa-star { font-size: 9px; }
  .poster-rating .rating-number { font-size: 9px; }

  .telegram-float {
    right: 12px;
    bottom: 76px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}