@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0b0c0f;
  --surface: #13141a;
  --surface2: #1c1d26;
  --surface3: #252636;
  --border: #2e2f42;
  --accent: #6c63ff;
  --accent-hover: #8b85ff;
  --red: #e50914;
  --gold: #f5c518;
  --green: #46d369;
  --text: #eeeef5;
  --muted: #8a8aaa;
  --card-w: 175px;
  --radius: 10px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Outfit', sans-serif; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 4%;
  background: linear-gradient(to bottom, rgba(11,12,15,0.95), transparent);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(11,12,15,0.98);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text); flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

.search-wrap { position: relative; }
.search-bar {
  display: flex; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 13px; gap: 8px;
  transition: border-color 0.2s, width 0.3s; width: 220px;
}
.search-bar:focus-within { border-color: var(--accent); width: 280px; }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 0.85rem; width: 100%; font-family: inherit; }
.search-bar input::placeholder { color: var(--muted); }
.search-icon { color: var(--muted); flex-shrink: 0; }

.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: none; z-index: 100; max-height: 400px; overflow-y: auto;
}
.search-dropdown.show { display: block; }
.search-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background 0.15s;
}
.search-drop-item:hover { background: var(--surface2); }
.search-drop-thumb { width: 40px; height: 58px; object-fit: cover; border-radius: 5px; background: var(--surface2); flex-shrink: 0; }
.search-drop-info { flex: 1; min-width: 0; }
.search-drop-title { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-drop-meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.btn-signin {
  background: var(--accent); color: #fff; border: none;
  padding: 8px 18px; border-radius: 7px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.btn-signin:hover { background: var(--accent-hover); }

.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; position: relative;
}
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6); display: none; z-index: 200;
}
.user-menu.show { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 7px; cursor: pointer;
  font-size: 0.85rem; transition: background 0.15s; color: var(--muted);
}
.user-menu-item:hover { background: var(--surface2); color: var(--text); }
.user-menu-item.danger { color: var(--red); }

.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  position: relative; height: 90vh; min-height: 520px;
  display: flex; align-items: flex-end; padding: 0 4% 5%;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: background-image 1s ease;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,15,0.9) 30%, transparent 70%),
              linear-gradient(to top, var(--bg) 0%, rgba(11,12,15,0.5) 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 5px;
}
.hero-badge.new { background: var(--accent); color: #fff; }
.hero-badge.hd { background: var(--surface3); border: 1px solid var(--border); color: var(--muted); }
.hero-badge.rating { background: rgba(245,197,24,0.15); border: 1px solid var(--gold); color: var(--gold); }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -1px; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.8rem; font-size: 0.82rem; flex-wrap: wrap; }
.hero-rating { color: var(--gold); font-weight: 700; }
.hero-sep { color: var(--border); }
.hero-year, .hero-genre, .hero-runtime { color: var(--muted); }
.hero-overview {
  color: rgba(238,238,245,0.75); font-size: 0.92rem; line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-play:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-trailer {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  color: var(--text); border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 22px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.btn-trailer:hover { background: rgba(255,255,255,0.18); }

.btn-add-list {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); color: var(--text);
  font-size: 1.1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s;
}
.btn-add-list:hover, .btn-add-list.added { background: rgba(108,99,255,0.3); border-color: var(--accent); color: var(--accent); }

.hero-dots {
  position: absolute; bottom: 2rem; right: 4%;
  display: flex; gap: 7px; z-index: 2;
}
.hero-dot-btn {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.3s;
}
.hero-dot-btn.active { background: var(--accent); width: 20px; border-radius: 3px; }

/* ── SECTIONS ── */
.section { padding: 1.5rem 4%; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.section-title { font-size: 1.15rem; font-weight: 700; }
.section-title span { color: var(--accent); }
.see-all {
  font-size: 0.78rem; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s;
}
.see-all:hover { opacity: 1; }

/* ── CARD ROW ── */
.card-row-wrap { position: relative; }
.card-row {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 100%; max-height: 200px;
  background: rgba(11,12,15,0.95); border: 1px solid var(--border);
  color: var(--text); font-size: 1.2rem; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.card-row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: var(--accent); border-color: var(--accent); }
.row-arrow.left { left: -14px; }
.row-arrow.right { right: -14px; }

/* ── MOVIE CARD ── */
.card {
  flex-shrink: 0; width: var(--card-w); cursor: pointer;
  position: relative; border-radius: var(--radius);
  transition: transform 0.25s;
}
.card:hover { transform: scale(1.07); z-index: 10; }
.card-poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: var(--radius); background: var(--surface2); display: block;
}
.card-overlay {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(to top, rgba(11,12,15,0.95) 0%, rgba(11,12,15,0.3) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.25s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px;
}
.card:hover .card-overlay { opacity: 1; }
.card-play-btn {
  width: 34px; height: 34px; background: var(--accent); border: none;
  border-radius: 50%; color: #fff; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; transition: transform 0.2s; flex-shrink: 0;
}
.card-play-btn:hover { transform: scale(1.1); }
.card-title { font-size: 0.75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 0.65rem; color: var(--gold); margin-top: 2px; }
.card-badge {
  position: absolute; top: 7px; left: 7px;
  background: var(--accent); color: #fff; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.5px; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase;
}
.card-badge.green { background: var(--green); color: #000; }

/* Progress bar on card */
.card-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.2); border-radius: 0 0 var(--radius) var(--radius);
}
.card-progress-fill { height: 100%; background: var(--accent); border-radius: inherit; }

/* ── GENRE TABS ── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cat-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.cat-tab:hover, .cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── GRID ── */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }

/* ── CONTINUE WATCHING ── */
.cw-card {
  flex-shrink: 0; width: 260px; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface2); transition: transform 0.2s;
}
.cw-card:hover { transform: scale(1.03); }
.cw-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface3); }
.cw-info { padding: 8px 10px; }
.cw-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-sub { font-size: 0.7rem; color: var(--muted); margin: 2px 0 6px; }
.cw-bar { height: 3px; background: var(--border); border-radius: 2px; }
.cw-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ── SEARCH RESULTS ── */
#search-results-section { display: none; padding: 5rem 4% 2rem; }
#search-results-section.visible { display: block; }

/* ── TRAILER MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; width: 90%; max-width: 860px;
  transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px; border-radius: 6px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--red); border-color: var(--red); }
.modal-body { aspect-ratio: 16/9; }
.modal-body iframe { width: 100%; height: 100%; border: none; }

/* ── FOOTER ── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 4%; margin-top: 4rem; }
.footer-top { display: flex; gap: 4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-col { min-width: 120px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.8rem; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── DETAIL PAGE ── */
.detail-hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: flex-end; padding: 0 4% 4%;
}
.detail-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,15,0.97) 45%, transparent),
              linear-gradient(to top, var(--bg) 0%, transparent 60%);
}
.detail-content { position: relative; z-index: 2; max-width: 640px; }
.detail-poster-row { display: flex; gap: 2rem; align-items: flex-start; }

/* ── AI ASSISTANT WIDGET ── */
.ai-assistant-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 2200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.assistant-launcher {
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(145deg,#6c63ff,#5347d8); color: #fff;
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.assistant-launcher:hover { transform: translateY(-2px); }
.assistant-panel {
  width: 340px; max-width: calc(100vw - 28px);
  background: rgba(19,20,26,0.98); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.assistant-panel.open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.assistant-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.assistant-title { display: block; font-size: 0.95rem; font-weight: 700; }
.assistant-subtitle { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.assistant-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.2rem; cursor: pointer;
}
.assistant-messages {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 280px; overflow-y: auto; padding: 14px 18px;
}
.assistant-bubble {
  max-width: 100%; padding: 12px 14px;
  border-radius: 18px; line-height: 1.5; font-size: 0.9rem;
}
.assistant-bot {
  background: rgba(108,99,255,0.14); color: var(--text);
  align-self: flex-start; border: 1px solid rgba(108,99,255,0.22);
}
.assistant-user {
  background: rgba(255,255,255,0.08); color: var(--text);
  align-self: flex-end; border: 1px solid rgba(255,255,255,0.14);
}
.assistant-input-wrap {
  display: flex; gap: 10px; padding: 14px 16px 16px;
  border-top: 1px solid var(--border); background: rgba(11,12,15,0.9);
}
#assistant-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); padding: 11px 16px; font-size: 0.9rem;
  outline: none;
}
#assistant-input::placeholder { color: var(--muted); }
.assistant-send {
  background: var(--accent); border: none; color: #fff;
  border-radius: 999px; padding: 0 18px; min-width: 72px;
  font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.assistant-send:hover { background: var(--accent-hover); }
@media (max-width: 720px) {
  .ai-assistant-widget { right: 12px; bottom: 12px; }
  .assistant-panel { width: calc(100vw - 24px); }
}
.detail-poster { width: 210px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 12px 48px rgba(0,0,0,0.8); }
.detail-info { flex: 1; }
.detail-title { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 0.8rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 0.8rem; }
.tag { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; }
.tag.accent { background: rgba(108,99,255,0.15); border-color: var(--accent); color: var(--accent); }
.tag.gold { background: rgba(245,197,24,0.1); border-color: var(--gold); color: var(--gold); }
.detail-overview { color: rgba(238,238,245,0.75); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-watchlist {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 11px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.btn-watchlist:hover, .btn-watchlist.added { border-color: var(--accent); color: var(--accent); }

.btn-download {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 11px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s;
  font-family: inherit;
}
.btn-download:hover { border-color: var(--green); color: var(--green); }

.detail-extra { padding: 2rem 4%; display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.detail-main { min-width: 0; }
.detail-side { }

.info-table { width: 100%; }
.info-table tr td { padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.info-table tr td:first-child { color: var(--muted); width: 120px; }

/* ── EPISODES ── */
.episodes-section { padding: 2rem 4%; }
.season-tabs { display: flex; gap: 8px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.season-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: 6px 16px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.season-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.episode-list { display: flex; flex-direction: column; gap: 10px; }
.episode-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.episode-item:hover { border-color: var(--accent); background: var(--surface3); }
.episode-thumb { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; background: var(--surface3); flex-shrink: 0; }
.episode-info { flex: 1; min-width: 0; }
.episode-num { font-size: 0.7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.episode-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.episode-overview { font-size: 0.78rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-meta { font-size: 0.72rem; color: var(--muted); margin-top: 5px; }

/* Seasons & Episodes in sidebar */
.season-block { margin-bottom: 10px; }
.season-header { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 8px 0; }
.episode-list { display: flex; flex-direction: column; gap: 6px; }
.episode-item { background: transparent; border: none; padding: 6px 8px; border-radius: 6px; }
.episode-item:hover { background: rgba(108,99,255,0.06); }
.episode-item strong { color: var(--accent); margin-right: 6px; }


/* ── CAST ── */
.cast-section { padding: 1.5rem 4%; }
.cast-grid { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cast-grid::-webkit-scrollbar { display: none; }
.cast-card { flex-shrink: 0; width: 90px; text-align: center; }
.cast-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface2); margin: 0 auto 6px; border: 2px solid var(--border); }
.cast-name { font-size: 0.7rem; font-weight: 600; }
.cast-char { font-size: 0.62rem; color: var(--muted); }

/* ── REVIEWS ── */
.reviews-section { padding: 1.5rem 4%; }
.review-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.review-author { font-size: 0.85rem; font-weight: 600; }
.review-date { font-size: 0.72rem; color: var(--muted); }
.review-rating { color: var(--gold); font-size: 0.8rem; margin-left: auto; }
.review-text { font-size: 0.82rem; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ── WATCH PAGE ── */
.watch-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; padding: 5rem 3% 3%; }
.video-wrap { position: sticky; top: calc(var(--nav-h) + 1rem); }
.video-box { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.video-box iframe { width: 100%; height: 100%; border: none; }

.source-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.src-btn {
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
  padding: 6px 14px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.src-btn.active, .src-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.sub-notice { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); border-radius: 8px; padding: 10px 14px; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }

.watch-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.watch-meta-row { color: var(--muted); font-size: 0.82rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.watch-actions { display: flex; gap: 10px; margin-bottom: 1.5rem; }
.watch-sidebar { display: flex; flex-direction: column; gap: 1rem; max-height: calc(100vh - var(--nav-h) - 2rem); overflow-y: auto; scrollbar-width: none; }
.watch-sidebar::-webkit-scrollbar { display: none; }
.sidebar-title { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; }
.related-item { display: flex; gap: 10px; cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.related-item:hover { background: var(--surface2); }
.related-thumb { width: 80px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: var(--surface2); flex-shrink: 0; }
.related-info { flex: 1; min-width: 0; }
.related-title { font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-year { font-size: 0.7rem; color: var(--muted); }
.related-rating { font-size: 0.7rem; color: var(--gold); }

/* ── AUTH ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 40%, rgba(108,99,255,0.12) 0%, transparent 60%), var(--bg);
  padding: 2rem;
}
.auth-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; width: 100%; max-width: 420px; }
.auth-logo { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }
.auth-logo span { color: var(--accent); }
.auth-subtitle { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.auth-tabs { display: flex; background: var(--surface2); border-radius: 8px; padding: 4px; margin-bottom: 1.5rem; }
.auth-tab { flex: 1; text-align: center; padding: 8px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all 0.2s; background: none; border: none; font-family: inherit; }
.auth-tab.active { background: var(--accent); color: #fff; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 5px; color: var(--muted); }
.form-group input { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; color: var(--text); font-size: 0.9rem; outline: none; transition: border-color 0.2s; font-family: inherit; }
.form-group input:focus { border-color: var(--accent); }
.btn-auth { width: 100%; background: var(--accent); color: #fff; border: none; padding: 13px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s; font-family: inherit; }
.btn-auth:hover { background: var(--accent-hover); }
.auth-divider { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 1.2rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.btn-google { width: 100%; background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 11px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color 0.2s; font-family: inherit; }
.btn-google:hover { border-color: var(--accent); }

/* ── SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { width: var(--card-w); aspect-ratio: 2/3; flex-shrink: 0; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--accent); color: var(--text); padding: 12px 20px; border-radius: 8px; font-size: 0.85rem; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.3s; max-width: 300px; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --card-w: 135px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-bar { width: 160px; }
  .search-bar:focus-within { width: 200px; }
  .hero-title { font-size: 2.5rem; }
  .btn-trailer span { display: none; }
  .detail-poster-row { flex-direction: column; }
  .detail-poster { width: 150px; }
  .detail-extra { grid-template-columns: 1fr; }
  .detail-side { display: none; }
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { display: none; }
  .auth-box { padding: 2rem 1.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .episode-thumb { width: 100px; }
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: var(--surface); border-right: 1px solid var(--border);
  z-index: 2000; transform: translateX(-100%);
  transition: transform 0.3s; padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.mobile-nav-logo span { color: var(--accent); }
.mobile-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: background 0.2s, color 0.2s; }
.mobile-nav a:hover { background: var(--surface2); color: var(--text); }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1999; display: none; }
.mobile-nav-overlay.show { display: block; }