/* ── Fonts & root ──────────────────────────────────────────────────── */
:root {
  --bg:       #0a0c14;
  --card-bg:  #14172a;
  --border:   #1e2138;
  --text:     #f2f2f6;
  --subtext:  #7c809a;
  --accent:   #59005C;
  --gold:     #f5c518;
  --nav-h:    60px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
}
a { text-decoration: none; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.transparent-nav {
  background: transparent !important;
  transition: background .3s;
  height: var(--nav-h);
}
.transparent-nav.scrolled { background: rgba(10,12,20,.92) !important; backdrop-filter: blur(10px); }
.navbar-brand { font-weight: 900; font-size: 1.3rem; color: #fff !important; }

.nav-link {
  color: rgba(255,255,255,.6) !important;
  font-weight: 600; font-size: .9rem;
  transition: background .15s, color .15s;
}
.nav-link:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.nav-link.nav-active { background: rgba(255,255,255,.12); color: #fff !important; font-weight: 700; border-bottom: 2px solid #fff; }

.region-btn, .lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); border-radius: 6px; padding: .3rem .65rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .3px; transition: all .15s;
}
.region-btn:hover, .region-btn:focus, .region-btn.show,
.lang-btn:hover,   .lang-btn:focus,   .lang-btn.show {
  background: rgba(89,0,92,.25); color: #fff; border-color: rgba(89,0,92,.6);
}
.region-menu, .lang-menu {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .4rem; min-width: 190px; max-height: 320px;
  overflow-y: auto;
}
.region-menu .dropdown-item, .lang-menu .dropdown-item {
  color: var(--subtext); border-radius: 6px; font-size: .82rem; padding: .4rem .75rem;
}
.region-menu .dropdown-item:hover, .lang-menu .dropdown-item:hover {
  background: rgba(89,0,92,.2); color: var(--text);
}
.region-menu .dropdown-item.active, .lang-menu .dropdown-item.active {
  background: rgba(89,0,92,.35); color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative; min-height: 520px;
  background-size: cover; background-position: center 25%;
  background-color: #0a0c14;
  display: flex; align-items: flex-end;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,12,20,.97) 38%, rgba(10,12,20,.4) 75%, transparent 100%);
}
.hero-body {
  position: relative; z-index: 2;
  padding: 0 2.5rem 3rem; max-width: 620px;
}
.hero-eyebrow {
  font-size: .7rem; font-weight: 800; letter-spacing: 2.5px;
  color: var(--accent); text-transform: uppercase; margin-bottom: .7rem;
}
.hero-title {
  font-size: 3rem; font-weight: 900; color: #fff;
  line-height: 1.05; text-transform: uppercase;
  letter-spacing: -.5px; margin-bottom: .7rem;
}
.hero-meta { color: var(--gold); font-size: .88rem; margin-bottom: .6rem; }
.hero-overview {
  font-size: .88rem; color: rgba(255,255,255,.72);
  line-height: 1.7; max-width: 500px; margin: 0;
}
.bg-purple { background-color: #7c3aed !important; }

/* ── Content sections ───────────────────────────────────────────────── */
.content-section { padding: 1.5rem 2.5rem; }
.section-title { font-weight: 800; font-size: 1.05rem; color: var(--text); margin-bottom: .85rem; }

/* ── Horizontal scroll carousel ─────────────────────────────────────── */
.movie-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--card-bg);
}
.movie-scroll::-webkit-scrollbar { height: 4px; }
.movie-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.movie-scroll::-webkit-scrollbar-track { background: var(--card-bg); }

.scroll-card {
  flex: 0 0 148px; cursor: pointer;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.scroll-card:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(89,0,92,.35); }
.scroll-poster { width: 100%; height: 222px; object-fit: cover; display: block; }
.scroll-title  { font-size: .72rem; font-weight: 700; color: var(--text); padding: 6px 9px 2px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scroll-badges { padding: 3px 7px 7px; display: flex; flex-wrap: wrap; gap: 3px; }
.scroll-type-badge, .scroll-genre-badge {
  font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  cursor: pointer; transition: opacity .15s;
}
.scroll-type-badge:hover, .scroll-genre-badge:hover { opacity: .75; }
.type-movie  { background: #1d4ed8; color: #fff; }
.type-tv     { background: #7c3aed; color: #fff; }
.scroll-genre-badge { background: rgba(255,255,255,.1); color: var(--subtext); }
.lgbtq-badge {
  background: linear-gradient(90deg,#e40303,#ff8c00,#ffed00,#008026,#004dff,#750787) !important;
  color: #fff !important; font-weight: 700 !important;
}

/* Clickable genre badges across the site */
.badge-genre { cursor: pointer; transition: opacity .15s; }
.badge-genre:hover { opacity: .75; }

/* ── Rating badge ───────────────────────────────────────────────────── */
.rating-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.78); color: var(--gold);
  border-radius: 6px; padding: 3px 8px;
  font-size: .7rem; font-weight: 700;
}

/* ── Grid cards ─────────────────────────────────────────────────────── */
.movie-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.movie-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.5); }
.card-poster { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card-info   { padding: .7rem; }
.card-name   { font-weight: 700; font-size: .88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 .2rem; }
.card-meta-text { font-size: .72rem; color: var(--subtext); margin: 0; }

/* ── Search ─────────────────────────────────────────────────────────── */
.search-group .form-control {
  background: var(--card-bg) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; border-radius: 10px 0 0 10px !important;
  font-size: .95rem; padding: .65rem 1rem;
}
.search-group .form-control:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(89,0,92,.25) !important; }
.search-group .form-control::placeholder { color: var(--subtext) !important; }
.dice-btn {
  background: var(--card-bg) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; border-radius: 0 10px 10px 0 !important;
  font-size: 1.3rem; padding: 0 .75rem;
  transition: background .15s;
}
.dice-btn:hover { background: rgba(89,0,92,.2) !important; }

.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; z-index: 1000; margin: 4px 0 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); max-height: 340px; overflow-y: auto;
}
.autocomplete-list li {
  padding: .55rem 1rem; cursor: pointer; font-size: .88rem; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background .1s;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover { background: rgba(89,0,92,.2); }
.autocomplete-list.hidden { display: none !important; }
.ac-type {
  font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0; opacity: .75;
}

.search-msg { font-size: .8rem; color: var(--accent); min-height: 1.2rem; }

.btn-danger { background-color: var(--accent) !important; border-color: var(--accent) !important; }

/* ── Toast ──────────────────────────────────────────────────────────── */
#wlToast {
  background: #1a1d2e;
  border: 1px solid rgba(89,0,92,.5);
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
#wlToast.toast-success { border-color: rgba(34,197,94,.5); }
#wlToast.toast-removed { border-color: rgba(239,68,68,.4); }
.toast-body { font-size: .9rem; font-weight: 600; }

/* ── Detail modal ───────────────────────────────────────────────────── */
.detail-modal { background: #14172a; border-radius: 16px; }
.modal-poster { border-radius: 12px; width: 100%; max-width: 200px; }
.provider-logo { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; margin: 3px; }

/* ── Selected result card ───────────────────────────────────────────── */
.selected-poster { border-radius: 14px; max-width: 180px; width: 100%; }

/* ── Show More button ───────────────────────────────────────────────── */
.show-more-btn {
  background: transparent; border: 2px solid var(--accent);
  color: var(--accent); border-radius: 25px; font-weight: 700;
  padding: .55rem 2.5rem; font-size: .9rem; transition: all .15s;
}
.show-more-btn:hover { background: var(--accent); color: #fff; }

/* ── Refresh suggestions button ─────────────────────────────────────── */
.refresh-suggestions-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--subtext); border-radius: 20px; font-size: .75rem;
  font-weight: 600; padding: .25rem .75rem; transition: all .15s;
}
.refresh-suggestions-btn:hover { background: rgba(89,0,92,.15); color: var(--text); border-color: var(--accent); }

/* ── Watch history ───────────────────────────────────────────────────── */
.watched-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.watched-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #4ade80; font-weight: 900;
}
@keyframes watchedBurst {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: 1; }
  60%  { transform: translate(-50%,-60%) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%,-80%) scale(1);   opacity: 0; }
}

/* ── Auth navbar buttons ─────────────────────────────────────────────── */
.auth-nav-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8); border-radius: 6px; font-size: .78rem; font-weight: 600;
  transition: all .15s;
}
.auth-nav-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.auth-nav-btn-solid {
  background: var(--accent); border: 1px solid var(--accent);
  color: #fff; border-radius: 6px; font-size: .78rem; font-weight: 700;
  transition: all .15s;
}
.auth-nav-btn-solid:hover { opacity: .85; color: #fff; }

.user-btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85); border-radius: 8px; transition: all .15s;
}
.user-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.user-avatar    { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.user-initials  {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}

/* ── Auth pages ──────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; background: var(--bg);
}
.auth-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem 2rem; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.auth-logo   { display: block; font-size: 1.4rem; text-decoration: none; margin-bottom: 1.5rem; }
.auth-title  { font-size: 1.5rem; font-weight: 900; color: var(--text); margin: 0 0 .3rem; }
.auth-sub    { font-size: .85rem; color: var(--subtext); margin: 0 0 1.5rem; }
.auth-alert  {
  background: rgba(229,68,68,.12); border: 1px solid rgba(229,68,68,.3);
  color: #fca5a5; border-radius: 8px; padding: .6rem .9rem;
  font-size: .82rem; margin-bottom: 1rem;
}
.auth-field  { margin-bottom: 1rem; }
.auth-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--subtext); margin-bottom: .35rem; }
.auth-input  {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: .65rem .9rem; font-size: .9rem;
  transition: border-color .15s;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(89,0,92,.25); }
.auth-input::placeholder { color: var(--subtext); }
.auth-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: .75rem; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s; margin-top: .25rem;
}
.auth-btn:hover { opacity: .88; }
.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  color: var(--subtext); font-size: .78rem; margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-google-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: .7rem; font-size: .88rem;
  font-weight: 600; text-decoration: none; transition: all .15s;
}
.auth-google-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.auth-switch { text-align: center; font-size: .82rem; color: var(--subtext); margin: 1.25rem 0 0; }
.auth-switch a { color: #a855f7; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Genre filter bar ───────────────────────────────────────────────── */
.genre-filter-bar {
  display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 2.5rem;
  scrollbar-width: none; border-bottom: 1px solid var(--border);
}
.genre-filter-bar::-webkit-scrollbar { display: none; }

.genre-pill {
  flex-shrink: 0; background: transparent;
  border: 1px solid var(--border); color: var(--subtext);
  border-radius: 20px; padding: .3rem .9rem; font-size: .78rem;
  font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.genre-pill:hover { border-color: rgba(89,0,92,.5); color: var(--text); background: rgba(89,0,92,.12); }
.genre-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Multi-genre picker (search section) ────────────────────────────── */
.genre-picker-label {
  font-size: .78rem; font-weight: 600; color: var(--subtext);
  margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .5px;
}
.genre-picker {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.genre-pick-pill {
  background: transparent; border: 1px solid var(--border);
  color: var(--subtext); border-radius: 20px;
  padding: .28rem .75rem; font-size: .76rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.genre-pick-pill:hover { border-color: rgba(89,0,92,.5); color: var(--text); background: rgba(89,0,92,.1); }
.genre-pick-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.selected-genres-hint {
  display: inline-block; margin-top: .5rem;
  font-size: .78rem; font-weight: 700; color: #a855f7;
}

/* ── Selected genre chips (removable) ───────────────────────────────── */
.selected-genre-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(89,0,92,.25); border: 1px solid rgba(89,0,92,.55);
  color: #c084fc; border-radius: 20px;
  padding: .25rem .65rem; font-size: .76rem; font-weight: 700;
  margin: .4rem .3rem 0 0;
}
.chip-remove {
  background: none; border: none; color: #c084fc;
  cursor: pointer; font-size: 1rem; line-height: 1;
  padding: 0; opacity: .65; transition: opacity .15s;
}
.chip-remove:hover { opacity: 1; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 2.5rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1.5rem; margin-bottom: 1.25rem;
}
.footer-nav a {
  color: var(--subtext); font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-size: .78rem; color: var(--subtext); margin: 0;
}

/* ── Onboarding overlay & shell ──────────────────────────────────────── */
.ob-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.82); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 1rem;
}
.ob-shell {
  background: linear-gradient(155deg, #110020 0%, #0a0c1a 55%, #02101e 100%);
  border: 1px solid rgba(147,51,234,.2);
  border-radius: 26px; width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(89,0,92,.45), 0 0 0 1px rgba(255,255,255,.04);
}

/* Pane = one step inside the shell */
.ob-pane { padding: 2rem 2rem 2.5rem; position: relative; }

/* Purple glow emanating from top */
.ob-glow {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 320px;
  background: radial-gradient(ellipse at center top, rgba(147,51,234,.32) 0%, transparent 65%);
  pointer-events: none;
}

/* Close button */
.ob-x {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5); border-radius: 50%;
  width: 32px; height: 32px; font-size: .78rem; line-height: 1;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.ob-x:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Card fan (hero visual) ──────────────────────────────────────────── */
.ob-fan {
  position: relative; height: 190px;
  display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 1.75rem;
}
.ob-fan-card {
  position: absolute; width: 105px; height: 157px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
  background: #1a1a2e;
}
.ob-fan-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-fan-card:nth-child(1) { transform: rotate(-22deg) translateX(-160px) translateY(24px); z-index: 1; opacity: .65; }
.ob-fan-card:nth-child(2) { transform: rotate(-11deg) translateX(-80px) translateY(10px);  z-index: 2; opacity: .82; }
.ob-fan-card:nth-child(3) { transform: rotate(0deg);  z-index: 5; }
.ob-fan-card:nth-child(4) { transform: rotate(11deg)  translateX(80px)  translateY(10px);  z-index: 2; opacity: .82; }
.ob-fan-card:nth-child(5) { transform: rotate(22deg)  translateX(160px) translateY(24px);  z-index: 1; opacity: .65; }

/* ── Typography ──────────────────────────────────────────────────────── */
.ob-chip {
  display: inline-block;
  background: rgba(147,51,234,.18); border: 1px solid rgba(147,51,234,.38);
  color: #c084fc; border-radius: 20px;
  padding: .28rem .9rem; font-size: .73rem; font-weight: 700;
  letter-spacing: .6px; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.ob-hl {
  font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900;
  color: #fff; line-height: 1.08; margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.ob-hl-sm { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.ob-hl-grad {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ob-sub {
  font-size: .88rem; color: rgba(255,255,255,.48);
  margin-bottom: 1.5rem; line-height: 1.65;
  position: relative; z-index: 1;
}
.ob-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,.3);
  margin-bottom: .7rem; position: relative; z-index: 1;
}
.ob-counter {
  font-size: .85rem; color: #a855f7; font-weight: 700; margin-bottom: .75rem;
}
.ob-hint { color: rgba(255,255,255,.38); font-weight: 400; }

/* ── Genre buttons ───────────────────────────────────────────────────── */
.ob-genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .55rem; margin-bottom: 1.75rem;
  position: relative; z-index: 1;
}
.ob-genre-btn {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: .85rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.ob-genre-btn:hover { border-color: rgba(147,51,234,.5); background: rgba(89,0,92,.18); transform: translateY(-2px); }
.ob-genre-btn.ob-genre-selected { border-color: #9333ea; background: rgba(89,0,92,.3); }
.ob-genre-emoji { font-size: 1.6rem; }
.ob-genre-name  { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.8); }

/* ── CTA / action buttons ────────────────────────────────────────────── */
.ob-actions { display: flex; flex-direction: column; align-items: center; gap: .7rem; position: relative; z-index: 1; }
.ob-actions-row { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; }

.ob-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #fff; border: none; border-radius: 50px;
  padding: .9rem 2.75rem; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 28px rgba(89,0,92,.5);
  min-width: 180px; letter-spacing: .2px;
}
.ob-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(89,0,92,.65); }
.ob-cta:disabled { opacity: .38; cursor: not-allowed; }

.ob-back {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6); border-radius: 50px;
  padding: .8rem 1.6rem; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.ob-back:hover { background: rgba(255,255,255,.1); color: #fff; }

.ob-skip {
  background: none; border: none; color: rgba(255,255,255,.35);
  font-size: .8rem; cursor: pointer; padding: 0; transition: color .15s;
}
.ob-skip:hover { color: rgba(255,255,255,.7); }

.ob-register-link {
  color: #a855f7; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
.ob-register-link:hover { color: #c084fc; text-decoration: underline; }

/* ── Title pick grid (step 2) ────────────────────────────────────────── */
.ob-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .65rem; max-height: 320px; overflow-y: auto;
  margin-bottom: .75rem;
  scrollbar-width: thin; scrollbar-color: rgba(147,51,234,.4) transparent;
}
.ob-pick-card {
  position: relative; cursor: pointer; border-radius: 10px;
  overflow: hidden; border: 2px solid transparent;
  background: var(--card-bg);
  transition: border-color .15s, transform .15s;
}
.ob-pick-card:hover  { transform: scale(1.04); border-color: rgba(147,51,234,.5); }
.ob-pick-card img    { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.ob-pick-check {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: transparent; font-weight: 900;
  transition: all .15s;
}
.ob-pick-card.ob-picked { border-color: #9333ea; }
.ob-pick-card.ob-picked .ob-pick-check { background: #9333ea; border-color: #9333ea; color: #fff; }
.ob-pick-title {
  font-size: .62rem; font-weight: 700; color: var(--text);
  padding: 4px 6px 6px; margin: 0; background: var(--card-bg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Feature tiles (guest welcome) ──────────────────────────────────── */
.ob-feats { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.75rem; position: relative; z-index: 1; }
.ob-feat  {
  display: flex; align-items: flex-start; gap: .85rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: .85rem 1rem;
  transition: border-color .15s;
}
.ob-feat:hover { border-color: rgba(147,51,234,.3); }
.ob-feat-icon  { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.ob-feat strong { display: block; font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .1rem; }
.ob-feat p { font-size: .78rem; color: rgba(255,255,255,.42); margin: 0; line-height: 1.5; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .ob-shell   { border-radius: 20px; }
  .ob-pane    { padding: 1.5rem 1.25rem 2rem; }
  .ob-fan     { height: 155px; }
  .ob-fan-card { width: 84px; height: 126px; border-radius: 10px; }
  .ob-fan-card:nth-child(1) { transform: rotate(-22deg) translateX(-125px) translateY(18px); }
  .ob-fan-card:nth-child(2) { transform: rotate(-11deg) translateX(-62px)  translateY(8px); }
  .ob-fan-card:nth-child(4) { transform: rotate(11deg)  translateX(62px)   translateY(8px); }
  .ob-fan-card:nth-child(5) { transform: rotate(22deg)  translateX(125px)  translateY(18px); }
  .ob-hl      { font-size: 1.6rem; }
  .ob-genres  { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: .4rem; }
  .ob-pick-grid { max-height: 240px; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); }
}

/* ── Hamburger button ────────────────────────────────────────────────── */
.hamburger-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  width: 38px; height: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  transition: border-color .15s, background .15s;
  padding: 0; flex-shrink: 0;
}
.hamburger-btn:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }
.hamburger-btn span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.85); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile slide-down menu ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,12,20,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .28s ease, opacity .22s;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav-inner { padding: .5rem 1.5rem 2rem; }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; font-size: 1.05rem; font-weight: 700;
  color: rgba(255,255,255,.75); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color .15s;
}
.mobile-nav-link:hover { color: #fff; }
.mobile-nav-active { color: #9333ea !important; }
.mobile-settings-group {
  padding: 1rem 0 .5rem; border-bottom: 1px solid var(--border);
}
.mobile-settings-group:last-child { border-bottom: none; }
.mobile-settings-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: var(--subtext); margin-bottom: .6rem;
}
.mobile-setting-pill {
  background: transparent; border: 1px solid var(--border);
  color: var(--subtext); border-radius: 20px;
  padding: .28rem .7rem; font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all .15s; margin-bottom: .3rem;
}
.mobile-setting-pill:hover  { border-color: rgba(89,0,92,.5); color: var(--text); background: rgba(89,0,92,.1); }
.mobile-setting-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Onboarding v2 ───────────────────────────────────────────────────── */
.ob-wrap   { padding: 6rem 1.5rem 8rem; max-width: 1100px; margin: 0 auto; }
.ob-step   { animation: fadeInUp .35s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ob-header { text-align: center; margin-bottom: 2rem; }
.ob-logo-badge {
  font-size: 3rem; margin-bottom: 1rem;
  display: inline-block; animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.ob-title  { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--text); margin-bottom: .5rem; }
.ob-sub    { color: var(--subtext); font-size: .95rem; line-height: 1.65; max-width: 500px; margin: 0 auto 1rem; }
.ob-progress { font-size: .9rem; color: #a855f7; font-weight: 700; }
.ob-pick-hint { color: var(--subtext); font-weight: 400; }
.ob-section-title {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  text-align: center; margin-bottom: .4rem;
}
.ob-section-hint {
  text-align: center; color: var(--subtext); font-size: .85rem; margin-bottom: 1.5rem;
}

/* Genre cards (step 1) */
.ob-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem; margin-bottom: 2rem;
}
.ob-genre-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: 14px; padding: 1.2rem .75rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.ob-genre-card:hover { border-color: rgba(147,51,234,.5); background: rgba(89,0,92,.1); transform: translateY(-3px); }
.ob-genre-selected { border-color: #9333ea !important; background: rgba(89,0,92,.25) !important; }
.ob-genre-emoji { font-size: 1.8rem; }
.ob-genre-name  { font-size: .8rem; font-weight: 700; color: var(--text); }

/* Filter bar (step 2) */
.ob-filter-bar {
  display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .75rem;
  scrollbar-width: none; margin-bottom: 1rem;
}
.ob-filter-bar::-webkit-scrollbar { display: none; }
.ob-filter-pill {
  flex-shrink: 0; background: transparent;
  border: 1px solid var(--border); color: var(--subtext);
  border-radius: 20px; padding: .3rem .85rem; font-size: .78rem;
  font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.ob-filter-pill:hover { border-color: rgba(89,0,92,.5); color: var(--text); background: rgba(89,0,92,.1); }
.ob-filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Title grid (step 2) */
.ob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .85rem; margin-bottom: 2rem;
}
.ob-card {
  position: relative; cursor: pointer; border-radius: 10px;
  overflow: hidden; border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  background: var(--card-bg);
}
.ob-card:hover { transform: scale(1.04); border-color: rgba(147,51,234,.5); }
.ob-card img   { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.ob-check-ring {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ob-check-mark { font-size: .8rem; font-weight: 900; color: transparent; transition: color .15s; }
.ob-selected { border-color: #9333ea; }
.ob-selected .ob-check-ring { background: #9333ea; border-color: #9333ea; }
.ob-selected .ob-check-mark { color: #fff; }
.ob-card-info { background: var(--card-bg); padding: 5px 7px 7px; }
.ob-card-title { font-size: .7rem; font-weight: 700; color: var(--text); margin: 0 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-card-year  { font-size: .65rem; color: var(--subtext); margin: 0; }

/* Footer buttons */
.ob-step-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, var(--bg) 65%, transparent);
  padding: 1.5rem 2rem 1.75rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  z-index: 100;
}
.ob-btn-primary {
  background: var(--accent); color: #fff; border: none;
  border-radius: 12px; padding: .8rem 3rem;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: opacity .15s; letter-spacing: .3px;
  min-width: 200px;
}
.ob-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.ob-btn-primary:not(:disabled):hover { opacity: .88; }
.ob-btn-back {
  background: transparent; border: 1px solid var(--border);
  color: var(--subtext); border-radius: 10px; padding: .5rem 1.5rem;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ob-btn-back:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.ob-btn-skip { font-size: .8rem; color: var(--subtext); background: none; border: none; cursor: pointer; padding: 0; }
.ob-btn-skip:hover { color: var(--text); }

/* ── Responsive adjustments for onboarding ───────────────────────────── */
@media (max-width: 767.98px) {
  .ob-wrap  { padding: 5rem 1rem 7rem; }
  .ob-genre-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
  .ob-genre-card { padding: .9rem .5rem; }
  .ob-genre-emoji { font-size: 1.5rem; }
  .ob-grid  { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .6rem; }
}

/* RESPONSIVE */
@media (max-width: 767.98px) {

  /* Navbar: keep all items in one tight row */
  .transparent-nav .container-fluid { flex-wrap: nowrap; gap: .2rem; align-items: center; }
  .auth-nav-btn, .auth-nav-btn-solid {
    font-size: .68rem; padding: .25rem .45rem;
    line-height: 1.2; white-space: nowrap;
  }
  .user-btn span.d-none { display: none !important; }

  /* Hero */
  .hero-section    { min-height: 300px; background-position: center top; }
  .hero-body       { padding: 0 1.25rem 2rem; max-width: 100%; }
  .hero-title      { font-size: 1.75rem; }
  .hero-overview   { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3;
                     -webkit-box-orient: vertical; overflow: hidden; }

  /* Content sections */
  .content-section  { padding: 1.1rem 1rem; }
  .genre-filter-bar { padding: .5rem 1rem; }

  /* Scroll cards slightly narrower */
  .scroll-card   { flex: 0 0 128px; }
  .scroll-poster { height: 192px; }

  /* Search section */
  #searchSection { padding: 1rem; }
  #searchSection h1 { font-size: 1.35rem; }
  .genre-picker  { gap: .3rem; }
  .genre-pick-pill { font-size: .72rem; padding: .22rem .6rem; }

  /* Detail modal — full-screen on mobile */
  .modal-dialog  { margin: 0; max-width: 100%; }
  .detail-modal  { border-radius: 0; min-height: 100dvh; }
  .detail-modal .row.g-3 { flex-direction: column; }
  .detail-modal .col-md-4 img { max-height: 220px; width: auto; margin: 0 auto; display: block; }

  /* Watchlist grid: 2 columns max on phones */
  #wlGrid.row { --bs-gutter-x: .5rem; }

  /* Auth card */
  .auth-card  { padding: 1.75rem 1.25rem; border-radius: 14px; }
  .auth-title { font-size: 1.25rem; }
}

/* ── Small phones (< 480px) ─────────────────────────────────────────── */
@media (max-width: 479.98px) {
  .hero-title  { font-size: 1.4rem; }
  .hero-body   { padding: 0 1rem 1.5rem; }
  .scroll-card { flex: 0 0 112px; }
  .scroll-poster { height: 168px; }

  /* Make region + language dropdowns not clip off screen */
  .region-menu, .lang-menu { right: 0; left: auto; min-width: 160px; }

  /* Genre chips wrap cleanly */
  .selected-genre-chip { font-size: .7rem; padding: .2rem .5rem; }

  /* Watchlist page: full-width add input */
  #wlInput { font-size: .85rem; }
}

/* ── Landscape phones ───────────────────────────────────────────────── */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section { min-height: 220px; }
  .hero-title   { font-size: 1.3rem; }
  .hero-overview { display: none; }   /* too cramped in landscape */
}
