/* Lovel AI Series — landing styles
   Tokens mirror lovel.ai :root variables */

:root {
  --surface-0: #0f0f0f;
  --surface-1: #141414;
  --surface-2: #1b1b1b;
  --surface-3: #282828;
  --surface-colored: #2c1f25;
  --surface-colored-2: #3c2b32;
  --border-1: #1e1e1e;
  --border-2: #282828;
  --border-3: #353535;

  --accent: #c74e84;
  --accent-hover: #f34fa8;
  --accent-light: #fe6cb5;
  --accent-rgb: 254, 123, 182;
  --green: #a0d03a;
  --green-dark: #70a400;

  --text-1: #ffffff;
  --text-2: #cbcbcb;
  --text-3: #8a8a8a;
  --text-4: #6d6d6d;

  --font-head: "Nunito", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-s: 10px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 20px;
  --radius-card: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }
body {
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 800; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-m); border: 0;
  font-weight: 700; font-size: 15px; color: var(--text-1); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--border-3); }
.btn--ghost:hover { background: var(--surface-2); color: #fff; }
.btn--glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); }
.btn--glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--cta {
  width: 100%; height: 56px; border-radius: var(--radius-l);
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.btn--icon { width: 44px; padding: 0; border-radius: 50%; background: var(--surface-1); border: 1px solid var(--border-2); }
.btn--icon:hover { background: var(--surface-2); }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; line-height: 1.2;
}
.badge--free { background: var(--green); color: var(--surface-1); font-family: var(--font-head); font-weight: 800; font-size: 11px; letter-spacing: .3px; }
.badge--now { background: var(--accent); color: #fff; }
.badge--new { background: rgba(160,208,58,.5); color: #fff; font-weight: 600; }
.badge--dark { background: rgba(0,0,0,.6); color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 13px 32px;
  background: rgba(15, 15, 15, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-1);
}
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .55), transparent);
  pointer-events: none;
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--text-1); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 11px; color: #fff;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -2px rgba(var(--accent-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s;
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text {
  font-family: var(--font-head); font-weight: 900; font-size: 24px; letter-spacing: -.5px;
  background: linear-gradient(90deg, #ffffff, #ffd9ec);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header__nav { flex: 1 1 auto; display: flex; gap: 22px; }
.header__nav a { position: relative; color: var(--text-2); font-weight: 600; font-size: 14px; padding: 6px 2px; transition: color .18s; }
.header__nav a:hover { color: #fff; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: right .22s;
}
.header__nav a:hover::after { right: 0; }
.header__actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Series page ---------- */
.series-main {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  padding: 8px 24px 40px;
}
.series-card {
  display: flex; flex-wrap: wrap; gap: 20px;
  width: 100%; max-width: 920px; padding: 20px;
  background: var(--surface-0); border: 1px solid var(--border-1); border-radius: var(--radius-card);
}

/* Player — vertical 9:16 */
.player {
  position: relative; flex: 0 1 360px; min-width: 0; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface-1); border: 1px solid var(--border-2);
}
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player__top {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0));
}
.player__author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-colored-2); border: 1px solid rgba(255,255,255,.2); }
.player__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .6); background: rgba(20,20,20,.7);
  display: flex; align-items: center; justify-content: center; color: var(--accent-light);
  transition: opacity .2s;
}
.player.is-playing .player__play { opacity: 0; pointer-events: none; }
.player__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,0));
}
.player__subtitle { text-align: center; font-size: 15px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.8); min-height: 1.4em; }
.progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; cursor: pointer; }
.progress__fill { height: 100%; width: 0; border-radius: 3px; background: var(--accent-light); }
.player__controls { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: #e1e1e1; }
.player__controls button { background: none; border: 0; color: inherit; padding: 4px; display: flex; }
.player__time { flex: 1 1 auto; }

/* End-of-episode overlay (shown on `ended`) */
.player__end {
  position: absolute; inset: 0; z-index: 2; padding: 24px;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; background: rgba(15,15,15,.78); backdrop-filter: blur(4px);
}
.player.is-ended .player__end { display: flex; }
.player__end-label { font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: .5px; }
.player__end-thumb {
  position: relative; width: 120px; aspect-ratio: 9 / 16; border-radius: var(--radius-l); overflow: hidden;
  background: var(--surface-colored-2); border: 1px solid rgba(var(--accent-rgb), .5);
}
.player__end-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.lock-circle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,20,20,.85); border: 1px solid var(--border-3);
  display: flex; align-items: center; justify-content: center;
}
.player__end h2 { font-size: 24px; line-height: 1.15; font-weight: 900; }
.player__end p { font-size: 14px; color: var(--text-2); }
.player__end-note { font-size: 12px; color: var(--text-3); }

/* Info panel */
.series-info { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px; }
.series-info__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.series-info__kicker { font-size: 13px; color: var(--text-3); font-weight: 500; }
.series-info__close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.series-info__close:hover { background: var(--surface-2); color: #fff; }
.series-info__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.series-info__title { font-size: 26px; line-height: 1.15; }
.views { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.series-info__desc { font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Episode list — vertical, Lovel style */
.episodes { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.episode {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  border-radius: var(--radius-m); border: 1px solid rgba(255,255,255,.1);
  color: var(--text-1); font-size: 14px; transition: background .15s, border-color .15s;
}
a.episode:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.2); color: #fff; }
.episode--now { border-color: rgba(var(--accent-rgb), .6); background: rgba(255,255,255,.05); }
.episode__name { font-weight: 700; }
.episode__dur { color: var(--text-3); flex: 1 1 auto; }
.episode__lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-3); }

.trust { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.trust span + span::before { content: "·"; margin-right: 12px; }

/* More series */
.section { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section__title { font-size: 22px; }
.section__link { font-weight: 600; font-size: 14px; }

.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.poster-grid--large { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .poster-grid--large { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .poster-grid--large { grid-template-columns: 1fr; } }
.poster {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface-2); color: var(--text-1);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.poster:hover img { transform: scale(1.03); }
.poster:hover { color: #fff; }
.poster .badge--new { position: absolute; top: 0; right: 0; border-radius: 0 var(--radius-xl) 0 var(--radius-xl); padding: 4px 12px; }
.poster__free { position: absolute; left: 10px; bottom: 10px; }
.poster__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  display: flex; flex-direction: column; gap: 2px;
}
.poster__title { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.2; }
.poster__meta { font-size: 12px; color: var(--text-2); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-1); padding: 20px 32px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
}
.footer nav { display: flex; gap: 16px; }
.footer nav a { color: var(--text-2); }

/* ---------- Gallery page ---------- */
.gallery-hero {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 400px;
  background: var(--surface-1); border: 1px solid var(--border-2);
  display: flex; align-items: flex-end; margin-bottom: 40px;
}
.gallery-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.gallery-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,.6) 50%, rgba(15,15,15,.1) 100%); }
.gallery-hero__body { position: relative; z-index: 1; padding: 40px; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.gallery-hero__title { font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: -.5px; }
.gallery-hero__desc { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.gallery-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-hero .btn { height: 56px; border-radius: var(--radius-l); padding: 0 24px; font-size: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 14px;
}
.chip:hover { color: #fff; }
.chip.is-active { background: #fff; color: var(--surface-1); }

.cta-band {
  border-radius: 24px; background: var(--surface-colored); border: 1px solid var(--surface-colored-2);
  padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 40px;
}
.cta-band__text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-band__text h2 { font-size: 32px; line-height: 1.15; font-weight: 900; }
.cta-band__text p { font-size: 16px; color: var(--text-2); }
.cta-band .btn { flex: 1 1 260px; height: 60px; border-radius: var(--radius-l); font-family: var(--font-head); font-weight: 800; font-size: 19px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .header { padding: 12px 16px; gap: 12px; }
  .header__nav { display: none; }
  .logo__text { font-size: 20px; }
  .btn--ghost.header__login { height: 36px; padding: 0 14px; font-size: 13px; }
  .header__signup { display: none; }

  .series-main { padding: 0; gap: 0; }
  .series-main .btn--icon { display: none; }
  .series-card { padding: 0; border: 0; border-radius: 0; gap: 0; }

  .player {
    flex: 1 1 100%; aspect-ratio: auto; height: min(600px, 75vh);
    border-radius: 0; border: 0; margin: 0;
  }
  .player__bottom { background: linear-gradient(0deg, var(--surface-0), rgba(0,0,0,0)); }
  .player__play { width: 72px; height: 72px; }

  .series-info { padding: 16px 16px 24px; }
  .series-info__close { display: none; }
  .series-info__title { font-size: 24px; }
  .btn--cta { height: 54px; font-size: 17px; }

  .section { padding: 0 16px 32px; }
  .footer { padding: 20px 16px; }

  .gallery-hero { min-height: 320px; }
  .gallery-hero__body { padding: 24px 16px; }
  .gallery-hero__title { font-size: 36px; }
  .cta-band { padding: 24px 20px; }
}

.legal-page{min-height:46vh;padding-top:40px;padding-bottom:60px;}
.legal-page h1{font-family:var(--font-head);font-weight:900;font-size:clamp(1.8rem,4vw,2.6rem);}

/* ---------- Trust badges (design preview) ---------- */
.trust-bar{
  max-width:1000px; margin:0 auto; padding:30px 24px 10px;
  display:flex; flex-wrap:wrap; gap:16px; justify-content:center; align-items:stretch;
}
.trust-badge{
  flex:1 1 240px; max-width:300px;
  background:var(--surface-1); border:1px solid var(--border-2); border-radius:var(--radius-l);
  padding:18px 20px; display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center;
  transition:transform .18s, border-color .18s;
}
.trust-badge:hover{ transform:translateY(-3px); border-color:var(--border-3); }
.trust-brand{ font-family:var(--font-head); font-weight:800; font-size:18px; letter-spacing:-.2px; color:#fff; display:flex; align-items:center; }
.trust-brand--tp{ color:#fff; }
.trust-brand--tp .tp-star{ color:#00b67a; font-size:20px; margin-right:6px; }
.trust-brand--g .gb{color:#4285f4} .trust-brand--g .gr{color:#ea4335} .trust-brand--g .gy{color:#fbbc05} .trust-brand--g .gg{color:#34a853}
.trust-brand--g{ font-size:18px; }
.trust-brand--imdb .imdb-box{ background:#f5c518; color:#000; font-weight:900; padding:3px 8px; border-radius:5px; font-size:17px; letter-spacing:-.5px; }
.trust-stars{ display:flex; gap:3px; font-size:16px; line-height:1; }
.trust-stars--tp span{ color:#00b67a; background:#00b67a; color:#fff; width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:3px;font-size:13px; }
.trust-stars--g span{ color:#fbbc05; }
.trust-stars--imdb span{ color:#f5c518; }
.trust-meta{ font-size:13px; color:var(--text-3); }
.trust-meta strong{ color:var(--text-1); font-weight:700; }
.trust-meta .imdb-10{ color:var(--text-3); font-weight:400; }
@media(max-width:560px){ .trust-badge{ flex:1 1 100%; max-width:none; } }

/* exit button while the tracker session is being fetched */
.btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: btnSpin .8s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
