/* ═══════════════════════════════════════════════════════════════════════════
   WatchKRD 2.0 — Design System
   Kurdish-first (RTL) · Cinematic dark · Netflix-class layout
   Uses CSS logical properties so RTL (ckb) and LTR (en) both work natively.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:        #07070c;
  --bg-2:      #0c0c14;
  --surface:   #12121c;
  --surface-2: #1a1a28;
  --stroke:    rgba(255,255,255,.09);
  --stroke-2:  rgba(255,255,255,.18);
  --text:      #f2f3f8;
  --text-2:    rgba(242,243,248,.72);
  --text-3:    rgba(242,243,248,.45);
  --accent:    #5eb0ee;
  --accent-2:  #8ecaf5;
  --accent-3:  #ffd60a;
  --good:      #30d158;
  --bad:       #ff453a;
  --grad:      linear-gradient(135deg, var(--accent), var(--accent-2));
  --glow:      rgba(94,176,238,.35);
  --glass:     rgba(255,255,255,.06);
  --glass-2:   rgba(255,255,255,.12);
  --blur:      blur(24px) saturate(1.6);

  /* Type */
  --font-display: 'Noto Kufi Arabic', 'Vazirmatn', system-ui, sans-serif;
  --font-body:    'Vazirmatn', 'Noto Naskh Arabic', system-ui, sans-serif;

  /* Shape */
  --r:    18px;
  --r-sm: 12px;
  --r-lg: 26px;
  --shadow:    0 14px 44px rgba(0,0,0,.55);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.35);

  /* Layout */
  --nav-h: 64px;
  --pad-x: max(16px, 4vw);
  --content-w: 1440px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* Ambient page glow — living cinematic backdrop */
.wk-ambient {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 42% at 85% -8%, rgba(94,176,238,.12), transparent 65%),
    radial-gradient(55% 40% at 8% 108%, rgba(120,60,255,.10), transparent 60%),
    radial-gradient(40% 30% at 50% 50%, rgba(142,202,245,.04), transparent 70%),
    var(--bg);
}
.wk-ambient::before, .wk-ambient::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: .55; will-change: transform;
}
.wk-ambient::before {
  width: 44vw; height: 44vw; top: -14vw; inset-inline-end: -10vw;
  background: radial-gradient(circle, rgba(94,176,238,.16), transparent 70%);
  animation: orbA 26s ease-in-out infinite alternate;
}
.wk-ambient::after {
  width: 36vw; height: 36vw; bottom: -12vw; inset-inline-start: -8vw;
  background: radial-gradient(circle, rgba(120,60,255,.13), transparent 70%);
  animation: orbB 32s ease-in-out infinite alternate;
}
@keyframes orbA { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vw, 5vh) scale(1.15); } }
@keyframes orbB { from { transform: translate(0,0) scale(1); } to { transform: translate(5vw, -4vh) scale(1.12); } }

/* ═══ NAVBAR ═══ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding-inline: var(--pad-x);
  /* Always-dark scrim so nav links stay readable over bright hero posters */
  background: linear-gradient(180deg, rgba(5,5,10,.78) 0%, rgba(5,5,10,.45) 70%, rgba(5,5,10,0) 100%);
  transition: background .3s, backdrop-filter .3s, transform .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(8,8,14,.82);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  border-block-end: 1px solid var(--stroke);
}
body.nav-hidden .nav { transform: translateY(-110%); }

.nav-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: .3px; display: inline-flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.nav-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .2s; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.nav-links a:hover { color: #fff; background: var(--glass); }
.nav-links a.active { color: #fff; background: var(--glass-2); }

.nav-spacer { flex: 1; }

/* Search */
.nav-search { position: relative; width: min(320px, 34vw); }
.nav-search input {
  width: 100%; padding: 9px 40px 9px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  color: #fff; outline: none; font-size: .9rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
[dir="rtl"] .nav-search input { padding: 9px 16px 9px 40px; }
.nav-search input:focus { border-color: var(--accent); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(94,176,238,.18); }
.nav-search input::placeholder { color: var(--text-3); }
.nav-search .s-ico {
  position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 13px;
  color: var(--text-3); pointer-events: none; display: flex;
}
.search-pop {
  position: absolute; top: calc(100% + 10px); inset-inline: 0; z-index: 300;
  min-width: min(400px, 92vw);
  background: rgba(14,14,22,.97); border: 1px solid var(--stroke-2);
  border-radius: var(--r); box-shadow: var(--shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  max-height: 60vh; overflow-y: auto; display: none;
}
.search-pop.open { display: block; animation: popIn .18s ease; }
.search-pop-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
  transition: background .15s;
}
.search-pop-item:hover { background: var(--glass); }
.search-pop-item img { width: 42px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex-shrink: 0; }
.search-pop-item .t { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.search-pop-item .m { font-size: .78rem; color: var(--text-3); margin-block-start: 2px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* User pill / auth buttons */
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  font-size: .86rem; font-weight: 700; color: var(--text-2);
  transition: background .2s, color .2s;
}
[dir="rtl"] .nav-user { padding: 4px 4px 4px 14px; }
.nav-user:hover { background: var(--glass-2); color: #fff; }
.nav-user .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 800; font-size: .88rem; color: #fff; white-space: nowrap;
  background: var(--grad);
  box-shadow: 0 8px 24px var(--glow), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 6px rgba(0,0,0,.25);
  position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.56,.4,1), box-shadow .2s;
}
.btn-cta::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: inset-inline-start .55s ease;
  pointer-events: none;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--glow), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 6px rgba(0,0,0,.25); }
.btn-cta:hover::before { inset-inline-start: 120%; }
.btn-cta:active { transform: scale(.97); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .88rem; color: #fff; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--stroke-2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: background .2s, transform .15s;
}
.btn-ghost:hover { background: var(--glass-2); }
.btn-ghost:active { transform: scale(.97); }

.lang-toggle {
  font-size: .8rem; font-weight: 800; padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke); color: var(--text-2);
  cursor: pointer; transition: all .2s; letter-spacing: .3px;
}
.lang-toggle:hover { color: #fff; border-color: var(--stroke-2); }

/* Burger + drawer (mobile) */
.nav-burger {
  display: none; background: var(--glass); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 9px; cursor: pointer; color: #fff;
}
.drawer-dim {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-dim.on { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 401;
  width: min(300px, 84vw); padding: 20px;
  background: rgba(12,12,20,.97); border-inline-start: 1px solid var(--stroke-2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.9,.3,1);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer a {
  padding: 13px 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 1rem;
  color: var(--text-2); transition: background .15s, color .15s;
}
.drawer a:hover, .drawer a.active { background: var(--glass); color: #fff; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 14px; }
.drawer-close { background: none; border: none; color: var(--text-2); cursor: pointer; padding: 8px; border-radius: 10px; }
.drawer-close:hover { background: var(--glass); color: #fff; }

/* ═══ HERO ═══ */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding: 0 var(--pad-x) clamp(48px, 9vh, 110px);
  isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 20%;
  transform: scale(1.03);
  /* Barely-perceptible slow drift — calm, not restless */
  animation: heroDrift 90s ease-in-out infinite alternate;
  transition: opacity 1.4s ease;
}
@keyframes heroDrift {
  from { transform: scale(1.03) translate(0,0); }
  to   { transform: scale(1.06) translate(-0.8%, -0.5%); }
}
.hero-fade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(7,7,12,.55) 38%, rgba(7,7,12,.18) 68%, rgba(7,7,12,.45) 100%),
    linear-gradient(to inline-end, rgba(7,7,12,.72) 0%, transparent 55%);
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 999px; margin-block-end: 16px;
  background: rgba(94,176,238,.16); border: 1px solid rgba(94,176,238,.4); color: #a8d8f8;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.08;
  letter-spacing: -.5px; margin-block-end: 14px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-desc {
  color: var(--text-2); font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.85;
  margin-block-end: 22px; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-block-end: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-cta { padding: 13px 34px; font-size: 1rem; border-radius: 14px; }
.hero-actions .btn-ghost { padding: 13px 28px; font-size: 1rem; border-radius: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.badge.gold { background: rgba(255,214,10,.14); border-color: rgba(255,214,10,.35); color: var(--accent-3); }
.badge.pink { background: rgba(94,176,238,.14); border-color: rgba(94,176,238,.4); color: #a8d8f8; }
.badge.green { background: rgba(48,209,88,.14); border-color: rgba(48,209,88,.4); color: #6af09e; }

/* ═══ ROWS (horizontal scrollers) ═══ */
.rows { position: relative; z-index: 1; margin-block-start: clamp(-70px, -6vh, -40px); padding-block-end: 40px; }
.row-sec { margin-block-end: 38px; }
.row-head {
  display: flex; align-items: center; gap: 14px;
  padding-inline: var(--pad-x); margin-block-end: 14px;
}
.row-title {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 12px;
}
.row-title::before {
  content: ''; width: 4.5px; height: 1.05em; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 12px var(--glow);
}
.row-more {
  margin-inline-start: auto; font-size: .82rem; font-weight: 700; color: var(--text-3);
  padding: 7px 16px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--stroke); transition: color .2s, background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.row-more:hover { color: #fff; background: var(--glass-2); }

.row-scroll {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 10px var(--pad-x) 18px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* Poster card — 3D tilt + glass gloss */
.card {
  position: relative; flex: 0 0 auto; width: clamp(132px, 15vw, 196px);
  scroll-snap-align: start; cursor: pointer;
  perspective: 800px;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), z-index 0s;
}
.card:hover { transform: translateY(-9px) scale(1.05); z-index: 5; }
.card-poster {
  position: relative; aspect-ratio: 2/3; border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: box-shadow .35s, border-color .35s, transform .45s cubic-bezier(.2,.9,.3,1.2);
}
.card:hover .card-poster {
  transform: rotateX(4deg) rotateY(-3deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 24px rgba(94,176,238,.22), 0 0 0 2px var(--accent);
  border-color: transparent;
}
[dir="rtl"] .card:hover .card-poster { transform: rotateX(4deg) rotateY(3deg); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.card:hover .card-poster img { transform: scale(1.08); }
/* Glass gloss sweep across the poster on hover */
.card-poster::after {
  content: ''; position: absolute; inset: -60% auto auto -60%; width: 70%; height: 220%;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: rotate(18deg) translateX(-140%); pointer-events: none;
}
.card:hover .card-poster::after { transition: transform .8s ease; transform: rotate(18deg) translateX(340%); }
.card-shine {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 46%);
  display: flex; align-items: flex-end; padding: 12px;
}
.card:hover .card-shine { opacity: 1; }
.card-play {
  position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%,-50%) scale(.6);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(94,176,238,.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, transform .25s cubic-bezier(.34,1.56,.4,1);
  box-shadow: 0 8px 26px var(--glow);
}
[dir="rtl"] .card-play { transform: translate(50%,-50%) scale(.6); }
.card:hover .card-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
[dir="rtl"] .card:hover .card-play { transform: translate(50%,-50%) scale(1); }
.card-rating {
  position: absolute; top: 8px; inset-inline-start: 8px;
  font-size: .68rem; font-weight: 900; padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.68); color: var(--accent-3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 4px;
}
.card-sub-badge {
  position: absolute; top: 8px; inset-inline-end: 8px;
  font-size: .6rem; font-weight: 900; padding: 3px 8px; border-radius: 999px;
  background: var(--grad); color: #fff; letter-spacing: .3px;
  box-shadow: 0 3px 10px var(--glow);
}
.card-info { padding: 10px 4px 0; }
.card-title {
  font-size: .88rem; font-weight: 700; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { font-size: .74rem; color: var(--text-3); margin-block-start: 2px; }

/* ═══ GRID (browse pages) ═══ */
.page-wrap { max-width: var(--content-w); margin: 0 auto; padding: calc(var(--nav-h) + 28px) var(--pad-x) 70px; }
.page-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 900; letter-spacing: -.5px; margin-block-end: 8px;
}
.page-sub { color: var(--text-3); margin-block-end: 26px; font-size: .95rem; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 26px; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--stroke); color: var(--text-2);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.chip:hover { color: #fff; border-color: var(--stroke-2); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px var(--glow); }
.grid {
  display: grid; gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (max-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px 10px; } }
.grid .card { width: auto; }

/* ═══ SKELETON ═══ */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ═══ MODALS / SHEETS ═══ */
.modal-dim {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-dim.on { opacity: 1; pointer-events: all; }
.modal {
  width: min(460px, 100%); max-height: 88vh; overflow-y: auto;
  background: rgba(16,16,26,.98); border: 1px solid var(--stroke-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px;
  transform: translateY(16px) scale(.97); transition: transform .25s cubic-bezier(.22,.9,.3,1.2);
}
.modal-dim.on .modal { transform: none; }
.modal h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; margin-block-end: 18px; }

/* Forms */
.field { margin-block-end: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-block-end: 6px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
  color: #fff; outline: none; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,176,238,.16); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 96px; resize: vertical; }

.form-msg { border-radius: var(--r-sm); padding: 11px 15px; font-size: .88rem; font-weight: 600; margin-block-end: 14px; display: none; }
.form-msg.err { display: block; background: rgba(255,69,58,.13); border: 1px solid rgba(255,69,58,.35); color: #ff9d94; }
.form-msg.ok  { display: block; background: rgba(48,209,88,.13); border: 1px solid rgba(48,209,88,.35); color: #7ee8a2; }

/* ═══ FOOTER ═══ */
.footer {
  border-block-start: 1px solid var(--stroke);
  padding: 46px var(--pad-x) 60px; text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(94,176,238,.03));
}
.footer .nav-logo { font-size: 1.5rem; justify-content: center; display: flex; margin-block-end: 10px; }
.footer p { color: var(--text-3); font-size: .9rem; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-block-start: 18px; }
.footer-links a, .footer-links button {
  color: var(--text-3); font-size: .84rem; background: none; border: none; cursor: pointer;
  transition: color .2s; font-weight: 600;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; }

/* ═══ WATCH PAGE ═══ */
.watch-hero { position: relative; isolation: isolate; }
.watch-backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(8px) brightness(.5) saturate(1.15); transform: scale(1.08);
  opacity: 0; transition: opacity 1s;
}
.watch-backdrop.on { opacity: 1; }
.watch-grid {
  display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start;
}
@media (max-width: 860px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-grid > .poster-col { max-width: 240px; margin-inline: auto; }
}
.watch-poster {
  aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--stroke-2); box-shadow: var(--shadow);
  background: var(--surface-2); position: relative;
}
.watch-poster img { width: 100%; height: 100%; object-fit: cover; }
.watch-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.8px;
  margin-block-end: 14px;
}
.watch-desc {
  background: linear-gradient(135deg, rgba(94,176,238,.06), rgba(142,202,245,.04) 55%, rgba(120,60,255,.06));
  border: 1px solid rgba(94,176,238,.18); border-radius: var(--r);
  padding: 20px 24px; line-height: 2.05; font-size: 1.05rem; color: var(--text-2);
  margin-block-end: 24px; position: relative; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.watch-desc::after {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,176,238,.5), rgba(142,202,245,.4), transparent);
}
.sec-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  margin-block-end: 14px; display: flex; align-items: center; gap: 11px;
}
.sec-title::before {
  content: ''; width: 4px; height: 1em; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 10px var(--glow);
}

/* Season tabs + episodes */
.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 16px; }
.ep-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ep-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--stroke);
  cursor: pointer; transition: background .18s, border-color .18s, transform .15s;
}
.ep-item:hover { background: var(--glass-2); border-color: rgba(94,176,238,.4); transform: translateY(-2px); }
.ep-num {
  font-size: .76rem; font-weight: 900; color: var(--accent);
  background: rgba(94,176,238,.12); padding: 4px 10px; border-radius: 8px;
  white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.ep-title { flex: 1; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-play {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--glass-2); display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.ep-item:hover .ep-play { background: var(--accent); box-shadow: 0 4px 14px var(--glow); }

/* Reviews */
.rv-item {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-sm);
  padding: 15px 18px; margin-block-end: 10px;
}
.rv-name { font-weight: 800; color: var(--accent-3); font-size: .88rem; margin-block-end: 5px; }
.rv-body { line-height: 1.8; color: var(--text-2); font-size: .94rem; }
.rv-spoiler-box { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; }
.rv-spoiler-box .txt { filter: blur(7px); user-select: none; transition: filter .25s; }
.rv-spoiler-box .warn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #a8d8f8; background: rgba(0,0,0,.3); transition: opacity .25s;
}
.rv-spoiler-box.show .txt { filter: none; user-select: auto; }
.rv-spoiler-box.show .warn { opacity: 0; pointer-events: none; }

/* ═══ UTILITIES ═══ */
.icon { fill: currentColor; flex-shrink: 0; }
.hide { display: none !important; }
.center { text-align: center; }
.spin-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(94,176,238,.16); border-top-color: var(--accent);
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav > .nav-create-room { display: none; } /* lives in the drawer on small screens */
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav { gap: 8px; padding-inline: 12px; }
  /* Phone: logo + ONE search + burger. Account & language live in the drawer. */
  .nav-search { width: auto; flex: 1; min-width: 0; }
  .nav > .lang-toggle, .nav > .nav-user, .nav > .btn-cta { display: none; }
  .nav-logo { font-size: 1.15rem; }
  .search-pop { position: fixed; top: var(--nav-h); inset-inline: 8px; min-width: 0; }
  .hero { min-height: 72vh; }
  .hero-actions .btn-cta, .hero-actions .btn-ghost { padding: 12px 22px; font-size: .92rem; }
  .page-wrap { padding-block-start: calc(var(--nav-h) + 18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Baby-blue theme: dark ink on solid light-accent fills ── */
.btn-cta, .chip.active, .card-sub-badge { color: #062033; }
.btn-cta svg, .chip.active svg { fill: #062033; }
