/* =====================
   LAYAR PRD21 — GLOBAL
   ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none !important;
}
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface2: #242424;
  --border: #2e2e2e;
  --primary: #e50914;
  --primary-dark: #b00710;
  --text: #e5e5e5;
  --muted: #888;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar .logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.navbar .logo img {
  max-height: 20px;
}
.navbar .logo .logo-mobile {
  display: none;
}
.navbar .logo .logo-desktop {
  display: inline-block;
}
.navbar nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.navbar nav a {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}
.navbar nav a:hover,
.navbar nav a.active {
  color: var(--text);
}
.navbar nav a.active {
  font-weight: bold;
}
/* Nav "Menu" dropdown */
.nav-more-wrap {
  position: relative;
}
.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-more-btn:hover,
.nav-more-btn.open {
  color: var(--text);
  background: var(--surface);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.15s,
    transform 0.15s;
  scrollbar-width: thin;
}
.nav-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-drop-item {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.nav-drop-item:hover {
  background: var(--surface2);
  color: var(--text);
}
.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.navbar .search-form {
  display: flex;
}
.navbar .search-form input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 13px;
  width: 180px;
  outline: none;
}
.navbar .search-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

/* HERO / BANNER */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(15, 15, 15, 0.95) 0%,
      rgba(15, 15, 15, 0.5) 50%,
      transparent 100%
    ),
    linear-gradient(to top, #0f0f0f 0%, transparent 60%);
}
.hero-content {
  position: relative;
  padding: 40px 40px 140px;
  z-index: 2;
  max-width: 580px;
}
.hero-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.15;
}
.hero-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-meta span {
  margin-right: 12px;
}
.hero-desc {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 10px;
}
/* arrows */
.hero-arrow {
  position: absolute;
  top: calc(50% - 50px);
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.hero-prev {
  left: 16px;
}
.hero-next {
  right: 16px;
}
/* thumbnail strip */
.hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}
.hero-strip::-webkit-scrollbar {
  display: none;
}
.hero-thumb {
  flex: 0 0 90px;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  transition:
    opacity 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.hero-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.hero-thumb-title {
  font-size: 10px;
  color: #fff;
  padding: 4px 5px;
  background: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-thumb:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}
.hero-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-4px);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.btn:hover {
  opacity: 0.85;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-icon {
  padding: 8px;
  border-radius: 50%;
}

/* SECTION */
.section {
  padding: 32px 24px 0 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
}
.section-title span {
  color: var(--primary);
}
.see-all {
  font-size: 13px;
  color: var(--muted);
}
.see-all:hover {
  color: var(--text);
}

/* SLIDER */
.slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-track .movie-card {
  flex: 0 0 150px;
  width: 150px;
}
.slider-nav {
  display: flex;
  gap: 6px;
}
.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
}
.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* MOVIE GRID */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.movie-card:hover img {
  opacity: 0.5;
}

/* poster area */
.movie-card .poster-wrap {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.movie-card .poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.movie-card .poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 28px;
}

/* EPS badge — top-right, purple */
.movie-card .card-eps {
  position: absolute;
  top: 0;
  right: 0;
  background: #7c3aed;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 6px;
  border-radius: 0 0 0 6px;
  text-align: center;
  text-transform: uppercase;
}

/* rank number — bottom-left of poster */
.card_rank {
  display: flex;
  align-items: start;
}
.card_rank .card-rank {
  font-size: 233px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  /* text-shadow: 0 0 0 2px #000; */
  background: linear-gradient(0deg, transparent 10%, var(--primary));;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* -webkit-text-stroke: 3px #1a1a2e;
  paint-order: stroke fill; */
  pointer-events: none;
  user-select: none;
  margin-right: -49px;
  margin-left: -12px;
}

/* bottom foot on poster */
.movie-card .card-poster-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 7px 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}
.movie-card .card-year {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.movie-card .card-season {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
}

/* info below poster */
.movie-card .card-info {
  padding: 9px 10px 0 0;
}
.movie-card .card-genre {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: capitalize;
}
.movie-card .card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HORIZONTAL SCROLL */
.scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.scroll-row::-webkit-scrollbar {
  height: 4px;
}
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.scroll-row .movie-card {
  flex-shrink: 0;
  width: 150px;
}

/* FILTER BAR */
.filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filter-bar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-bar label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-bar select,
.filter-bar input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  min-width: 130px;
}

/* MOVIE DETAIL */
.movie-detail {
  display: flex;
  gap: 32px;
  padding: 32px 24px;
}
.movie-detail .poster-wrap {
  flex-shrink: 0;
  width: 220px;
}
.movie-detail .poster-wrap img,
.movie-detail .poster-wrap .poster-placeholder {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.movie-detail .detail-body {
  flex: 1;
  min-width: 0;
}

/* title */
.detail-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* top meta line */
.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
/* rating progress circle */
.tl-rating {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.rating-circle-svg {
  transform: rotate(-90deg);
}
.rating-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 5;
}
.rating-circle-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.rating-circle-text {
  position: absolute;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}
.tl-sep {
  color: var(--border);
}
.tl-link {
  color: var(--muted);
}
.tl-link:hover {
  color: var(--primary);
}
.tl-status {
  font-weight: 600;
}
.tl-status--ongoing {
  color: #22c55e;
}
.tl-status--completed {
  color: var(--muted);
}
.tl-status--upcoming {
  color: #f59e0b;
}

/* tags inline */
.detail-tags {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.detail-tags-label {
  margin-right: 5px;
  color: var(--muted);
}
.detail-tags-sep {
  color: var(--muted);
}
.detail-tag-link {
  color: var(--text);
}
.detail-tag-link:hover {
  color: var(--primary);
}

/* action buttons row */
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
}
.btn-action:hover {
  background: var(--surface);
}
.btn-action.watchlist-added,
.btn-action.liked {
  color: var(--primary);
  border-color: var(--primary);
}

/* latest episode */
.detail-latest-ep {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.detail-latest-ep a {
  color: var(--primary);
  font-weight: 600;
}

/* synopsis */
.detail-synopsis-wrap {
  margin-bottom: 20px;
}
.detail-synopsis {
  color: #bbb;
  line-height: 1.75;
  font-size: 14px;
}

/* play row */
.detail-play-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-play-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
}
.btn-play-dark:hover {
  background: var(--surface);
}

.detail-section {
  margin-top: 24px;
}
.detail-section h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CAST ROW */
.cast-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.cast-row::-webkit-scrollbar {
  background: transparent;
  height: 5px;
}
.cast-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.cast-card {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  display: block;
  color: inherit;
}
a.cast-card:hover .cast-name {
  color: var(--primary);
}
a.cast-card:hover .cast-photo {
  outline: 2px solid var(--primary);
}
.cast-card .cast-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 30px;
}
.cast-card .cast-name {
  font-size: 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 600;
}
.cast-card .cast-role {
  font-size: 11px;
  color: var(--muted);
}

/* REVIEWS */
.review-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.review-form h3 {
  margin-bottom: 14px;
  font-size: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 13px;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}
.review-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-user {
  font-weight: 600;
  font-size: 14px;
}
.review-rating {
  color: #ffd700;
  font-weight: 700;
}
.review-body {
  color: #ccc;
  font-size: 14px;
}
.review-date {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* EPISODES */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.episode-item {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
}
.episode-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  width: 40px;
  flex-shrink: 0;
}
.episode-info {
  flex: 1;
}
.episode-title {
  font-size: 14px;
  font-weight: 600;
}
.episode-dur {
  font-size: 12px;
  color: var(--muted);
}

/* WATCHLIST PAGE */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* AUTH PAGES */
.auth-wrap {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 16px;
}
.auth-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}
.auth-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before {
  left: 0;
}
.auth-divider::after {
  right: 0;
}
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #222;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  width: 100%;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.auth-google:hover {
  background: #f5f5f5;
}
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff6b6b;
}
.alert-success {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
}
.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.auth-link a {
  color: var(--primary);
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a,
.pagination span {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Page footer SEO text */
.page-footer-text {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* NOTIFICATION BAR */
.notif-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.notif-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  opacity: 0.7;
  transition: opacity 0.15s;
  position: absolute;
  right: 16px;
  font-size: 14px;
  color: inherit;
}
.notif-close:hover {
  opacity: 1;
}
.notif-info {
  background: rgba(59, 130, 246, 0.15);
  color: #7dd3fc;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}
.notif-success {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border-bottom: 1px solid rgba(22, 163, 74, 0.25);
}
.notif-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #fde68a;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}
.notif-danger {
  background: rgba(229, 9, 20, 0.15);
  color: #fca5a5;
  border-bottom: 1px solid rgba(229, 9, 20, 0.25);
}

/* NOTIFICATION BELL DROPDOWN */
.notif-bell-wrap {
  position: relative;
}
.notif-bell-btn {
  border: 0;
  color: #fff;
  background: transparent;
  padding: 6px 14px;
  position: relative;
}
.notif-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  z-index: 400;
  overflow: hidden;
}
.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  gap: 8px;
}
.notif-dropdown-count {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.notif-dropdown-body {
  max-height: 360px;
  overflow-y: auto;
}
.notif-dropdown-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
}
.notif-dropdown-empty i {
  font-size: 1.6rem;
  opacity: .4;
}
.notif-dropdown-empty p { margin: 0; }
.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.notif-dropdown-item:last-child { border-bottom: none; }
.notif-dropdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.notif-dropdown-item--info    .notif-dropdown-dot { background: #3b82f6; }
.notif-dropdown-item--success .notif-dropdown-dot { background: #22c55e; }
.notif-dropdown-item--warning .notif-dropdown-dot { background: #eab308; }
.notif-dropdown-item--danger  .notif-dropdown-dot { background: var(--primary); }
.notif-dropdown-msg {
  color: var(--text);
  flex: 1;
}
@media (max-width: 480px) {
  .notif-dropdown {
    width: calc(100vw - 32px);
    right: -125px;
  }
}

/* AD SLOTS */
.ad-slot {
  text-align: center;
  overflow: hidden;
}
.ad-slot:empty {
  display: none;
}
.ad-slot-section {
  padding: 8px 24px;
}

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  padding: 36px 24px 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}
.footer-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.footer-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--muted);
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  font-size: 14px;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
}
.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

/* IMAGE SKELETON LOADER */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
.img-skeleton {
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    var(--surface) 50%,
    var(--surface2) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.4s infinite linear;
}
img.img-loading {
  opacity: 0;
  transition: opacity 0.35s ease;
}
img.img-ready {
  opacity: 1;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.toast-success {
  border-color: #2ed573;
  color: #2ed573;
}
.toast.toast-error {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* WATCHLIST ADDED STATE */
.watchlist-added {
  border-color: #2ed573;
  color: #2ed573;
  pointer-events: auto;
}
.watchlist-added:hover {
  opacity: 0.8;
}

/* LIKE BUTTON */
.like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}
.like-btn.liked {
  color: var(--primary);
}

/* SEARCH TRIGGER BUTTON */
.search-trigger {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.search-trigger:hover {
  opacity: 0.85;
}

/* SEARCH MODAL */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-modal[hidden] {
  display: none;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.search-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: searchSlideIn 0.18s ease;
}
@keyframes searchSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-icon-inner {
  color: var(--muted);
  font-size: 15px;
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.search-input-wrap input::placeholder {
  color: var(--muted);
}
.search-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.search-close:hover {
  color: var(--text);
}

/* Search results */
.search-results {
  max-height: 420px;
  overflow-y: auto;
}
.search-results::-webkit-scrollbar {
  width: 4px;
}
.search-results::-webkit-scrollbar-thumb {
  background: var(--border);
}

.search-empty,
.search-loading {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.focused {
  background: var(--surface2);
}
.search-result-poster {
  width: 40px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}
.search-result-poster-placeholder {
  width: 40px;
  height: 58px;
  border-radius: 4px;
  background: var(--surface2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.search-result-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.search-see-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--primary);
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.search-see-all:hover {
  background: var(--surface2);
}

/* ── WATCH PAGE ───────────────────────────────────── */
.watch-wrap {
    display: grid;
  margin: 0 auto;
}

/* Top bar */
.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}
.watch-back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}
.watch-back:hover {
  color: var(--text);
}
.watch-now-label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grid */
.watch-grid {
  display: grid;
  grid-template-columns: 1fr 700px;
  /* min-height: 480px; */
}

/* Left main */
.watch-main {
  display: flex;
  flex-direction: column;
}

.watch-player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
  flex-shrink: 0;
}
.watch-iframe,
.watch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.player-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.player-unavailable i {
  font-size: 40px;
  opacity: 0.35;
}
.player-external {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  background: rgba(0,0,0,.5);
}
.player-external i { font-size: 36px; opacity: 0.5; }
.player-external p { margin: 0; font-size: .9rem; }
.btn-watch-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent, #e50914);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-watch-external:hover { opacity: .85; }

/* Source switcher bar */
.watch-source-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wsrc-label {
  color: var(--muted);
  margin-right: 4px;
}
.wsrc-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wsrc-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.wsrc-btn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Server bar */
.server-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.server-bar-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.server-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.server-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.server-btn:hover {
  background: var(--surface3, #2a2a2a);
  color: var(--text);
}
.server-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Meta bar */
.watch-meta-bar {
  padding: 16px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.watch-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.watch-ep-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.watch-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.watch-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── RIGHT SIDEBAR ─────────────────────────────────── */
.watch-side {
  display: flex;
  padding: 14px 16px;
  flex-direction: column;
  height: 100%;
}

/* Episode panel */
.watch-ep-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.wep-head {
  padding: 0 0 14px 0;
  flex-shrink: 0;
}
.wep-head.select-active {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wep-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wep-head h3 i {
  color: var(--primary);
}

.wep-season-select-wrap {
  padding: 10px 12px;
  flex-shrink: 0;
}
.wep-season-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.wep-season-select:focus {
  border-color: var(--primary);
}

.wep-list-wrap {
  overflow-y: auto;
  flex: 1;
}
.wep-list-wrap::-webkit-scrollbar {
  width: 4px;
}
.wep-list-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.wep-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.wep-item:last-child {
  border-bottom: none;
}
.wep-item:hover:not(.no-video) {
  background: var(--surface2);
}
.wep-item.active {
  background: rgba(229, 9, 20, 0.08);
  border-left: 3px solid var(--primary);
}
.wep-item.no-video {
  cursor: default;
  opacity: 0.5;
}
.wep-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.wep-s {
  font-size: 0.58em;
  display: block;
  color: var(--muted);
  font-weight: 600;
}
.wep-info {
  flex: 1;
  min-width: 0;
}
.wep-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wep-dur {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.wep-play-icon {
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}
.wep-lock-icon {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}

/* Movie panel (right side for movie type) */
.watch-movie-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wmp-head {
  padding: 14px 16px;
  flex-shrink: 0;
}
.wmp-head h3 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wmp-head h3 i {
  color: var(--primary);
}
.wmp-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  flex-shrink: 0;
}
.wmp-player-wrap .watch-iframe,
.wmp-player-wrap .watch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.wmp-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.wmp-unavailable i {
  font-size: 32px;
  opacity: 0.35;
}
.wmp-poster {
  width: 100%;
  max-width: 160px;
  border-radius: var(--radius);
  margin-top: 8px;
}
.wmp-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
@media screen and (max-width: 1300px) {
    .watch-wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 960px) {
  .watch-grid {
    grid-template-columns: 1fr;
  }
  .wmp-player-wrap {
    flex: 1;
    aspect-ratio: unset;
  }
  .watch-title {
    font-size: 17px;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
  }
  .navbar nav {
    display: none;
  }
  .navbar .logo .logo-desktop {
    display: none;
  }
  .navbar .logo .logo-mobile {
    display: inline-block;
  }
  .movie-detail {
    gap: 0;
    padding: 0;
    flex-direction: column;
  }
  .detail-body {
    padding: 32px 24px;
  }
  .movie-detail .poster-wrap {
    width: 100%;
    padding: 24px;
    background-image:linear-gradient(to right, #000 30%,transparent), var(--detail-background);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .movie-detail .poster-wrap img {
    width: 150px;
  }
  .hero {
    height: 320px;
  }
  .hero-title {
    font-size: 24px;
  }
  .section {
    padding: 20px 12px 0 12px;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-inner {
    padding: 24px 16px 16px;
  }
  .section_movie_top_home .section-header {
    padding: 0 12px !important;
  }
  body {
    padding-bottom: 58px;
  }
}

.section_movie_top_home {
  position: relative;
}
.section_movie_top_home .section-header {
  position: absolute;
  left: 0;
  bottom: 40%;
  width: 100%;
  z-index: 1;
  padding: 0 24px;
}
.section_movie_top_home .section-header > div {
  width: 100%;
}
.section_movie_top_home .section-header > div > div {
  width: 100%;
  justify-content: space-between;
}
.watchlist-wrap {
  display: flex;
}

/* ── MOBILE BOTTOM NAV ─────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}
.mobile-nav {
  position: fixed;
  display: flex;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 52px;
  gap: 3px;
  padding: 6px 2px;
  color: var(--muted);
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mnav-item i {
  font-size: 18px;
  line-height: 1;
}
.mnav-item span {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.mnav-item:hover,
.mnav-item:active {
  color: var(--text);
}
.mnav-item.mnav-active {
  color: var(--primary);
}

/* ── MOBILE POPUP BACKDROP ─────────────────────────────────────────────── */
.mpopup-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s;
}
.mpopup-backdrop.open {
  display: block;
  opacity: 1;
}

/* ── MOBILE POPUP SHEET ────────────────────────────────────────────────── */
.mpopup {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  background: #141414;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--border);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 1, 0.45, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mpopup.open {
  transform: translateY(0);
}

.mpopup-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.mpopup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.mpopup-head span {
  font-weight: 700;
  font-size: 15px;
}
.mpopup-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.mpopup-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.mpopup-body {
  overflow-y: auto;
  padding: 14px 16px 16px;
  flex: 1;
}
.mpopup-body::-webkit-scrollbar {
  width: 3px;
}
.mpopup-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.mpopup-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 8px;
}
.mpopup-section-label:first-child {
  margin-top: 0;
}

/* Filter chips */
.mfilter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mfilter-chip {
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.mfilter-chip:hover,
.mfilter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Report */
.mreport-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.mreport-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.mreport-opt:hover {
  background: var(--surface2);
  color: var(--text);
}
.mreport-opt input[type="radio"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.mreport-opt i {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
}
.mreport-note {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.mreport-note:focus {
  border-color: var(--primary);
}

/* Contact */
.mcontact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mcontact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.mcontact-item:hover {
  background: var(--surface2);
}
.mcontact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}
.mcontact-label {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

/* Scroll lock when popup is open */
body.mpopup-lock {
  overflow: hidden;
}

/* ── WATCH GRID: series = full-width player (no sidebar) ─────────────── */
.watch-grid-series {
  grid-template-columns: 1fr !important;
}

/* ── NETFLIX-STYLE EPISODE SECTION ───────────────────────────────────── */
.wes-wrap {
  margin: 0 auto;
  padding: 0 20px 0 20px;
}

/* Header row */
.wes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 12px ;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.wes-title {
  font-size: 20px;
  font-weight: 800;
}
.wes-season-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  outline: none;
  appearance: auto;
}
.wes-season-btn:focus { border-color: var(--primary); }

/* Episode row */
.wes-ep {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 0;
  cursor: pointer;
  transition: background .15s;
  border-radius: var(--radius);
}
.wes-ep:last-child {
    border-bottom: 0 !important;
}
.wes-ep:hover:not(.wes-ep-locked) { background: rgba(255,255,255,.04); }
.wes-ep.wes-ep-active { background: #333 !important; }
.wes-ep.wes-ep-locked { cursor: default; opacity: .6; }

/* Episode number */
.wes-ep-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--muted);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  padding-left: 4px;
}

/* Thumbnail */
.wes-ep-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface2);
}
.wes-ep-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.wes-ep-thumb-empty {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 24px;
}
.wes-ep-hover-overlay,
.wes-ep-playing-overlay,
.wes-ep-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}
.wes-ep-hover-overlay { background: rgba(0,0,0,.5); color: #fff; }
.wes-ep-playing-overlay { background: rgba(229,9,20,.35); color: #fff; opacity: 1; }
.wes-ep-lock-overlay { background: rgba(0,0,0,.55); color: var(--muted); opacity: 1; font-size: 16px; }
.wes-ep:hover:not(.wes-ep-locked) .wes-ep-hover-overlay { opacity: 1; }

/* Info */
.wes-ep-info {
  flex: 1;
  min-width: 0;
}
.wes-ep-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.wes-ep-synopsis {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Duration */
.wes-ep-dur {
  font-size: 13px;
  font-weight: bold;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
  min-width: 48px;
  text-align: right;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .wes-wrap { padding: 0 12px 0 12px; }
  .wes-ep-thumb-wrap { width: 120px; }
  .wes-ep-num { font-size: 18px; min-width: 24px; }
  .wes-ep-name { font-size: 13px; }
  .wes-ep-synopsis { -webkit-line-clamp: 2; line-clamp: 2; font-size: 12px; }
}
#watchlist-wrap-14 .watchlist-btn {
  position: relative !important;
  border-radius: var(--radius) !important;
  background: var(--surface2) !important;
}
