/* ─────────────────────────────────────────
   LOVBIRD — dark romance streaming catalogue
   ───────────────────────────────────────── */

:root {
  --bg: #07060a;
  --bg-2: #0e0c13;
  --surface: #15121c;
  --surface-2: #1d1926;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3eef2;
  --muted: #9a919e;
  --muted-2: #6b6370;
  --rose: #e0335f;
  --rose-2: #ff5c85;
  --rose-deep: #7a0f2f;
  --wine: #3b0a1e;
  --gold: #d9b26f;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
em { font-style: italic; }

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose-2), var(--rose) 60%, #b81f4c);
  color: #fff;
  box-shadow: 0 8px 28px rgba(224, 51, 95, .35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(224, 51, 95, .5); transform: translateY(-1px); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-outline { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-outline:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 40px; padding: 0 40px;
  background: linear-gradient(to bottom, rgba(7,6,10,.92), rgba(7,6,10,0));
  transition: background .3s;
}
.nav.is-scrolled { background: rgba(7,6,10,.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .12em; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 8px rgba(224,51,95,.6)); }
.hero-logo {
  position: absolute; right: -4%; top: 50%; width: min(58vw, 640px); transform: translateY(-52%);
  mix-blend-mode: screen; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(224,51,95,.35));
  animation: logoPulse 6s ease-in-out infinite alternate;
}
@keyframes logoPulse { from { opacity: .75; transform: translateY(-52%) scale(.98); } to { opacity: .95; transform: translateY(-52%) scale(1.02); } }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; }

/* ── Hero ────────────────────────────── */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 0 40px 80px; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(224,51,95,.55), transparent 65%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(122,15,47,.6), transparent 70%),
    radial-gradient(ellipse 30% 30% at 85% 85%, rgba(217,178,111,.18), transparent 70%),
    linear-gradient(160deg, #1a0a14 0%, #07060a 55%, #0b0710 100%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: scale(1.06) translate(-1.5%, 1%); } }
.hero-grain {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(7,6,10,.7) 30%, transparent 70%),
              linear-gradient(to right, rgba(7,6,10,.85) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag-new { background: var(--rose); color: #fff; }
.hero-series { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.hero-title { font-size: clamp(56px, 8vw, 112px); margin-bottom: 18px; }
.hero-title em { color: var(--rose-2); }
.hero-desc { font-size: 18px; color: #d8d0d6; max-width: 520px; margin-bottom: 20px; }
.hero-stats { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Catalogue ───────────────────────── */
.catalogue { padding: 40px 40px 100px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 44px; }
.section-head p { color: var(--muted); margin-top: 4px; }
.search {
  display: flex; align-items: center; gap: 10px; width: 300px; padding: 11px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: border-color .2s;
}
.search:focus-within { border-color: rgba(224,51,95,.5); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--muted-2); }

.types { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.type { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s; }
.type:hover { color: var(--text); }
.type.is-active { color: #fff; background: linear-gradient(135deg, var(--rose-2), var(--rose)); box-shadow: 0 4px 16px rgba(224,51,95,.35); }
.card-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.4); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 6px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.pill {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--muted); background: transparent; border: 1px solid transparent;
  transition: all .2s;
}
.pill:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pill.is-active { color: var(--text); background: var(--surface-2); border-color: var(--line); }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid-empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ── Episode card ────────────────────── */
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--surface); aspect-ratio: 2 / 3;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  animation: cardIn .5s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.card-art { position: absolute; inset: 0; transition: transform .6s ease; }
.card:hover .card-art { transform: scale(1.06); }
.card-art::after {
  content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-title-art {
  position: absolute; inset: 0 0 40% 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(30px, 3vw, 42px); line-height: .95; color: rgba(255,255,255,.92);
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,4,8,.95) 0%, rgba(5,4,8,.4) 45%, transparent 70%); }
.card-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.card-ep { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.4); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 6px; }
.card-lock {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: var(--gold);
}
.card-lock.is-free { color: #fff; background: var(--rose); }
.card-body { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.card-cat { font-size: 11px; color: var(--rose-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.card-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.card-line { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.card-play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s;
}
.card:hover .card-play { opacity: 1; }
.card-play span {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35);
  transform: scale(.85); transition: transform .25s;
}
.card:hover .card-play span { transform: scale(1); }
.card.is-featured { grid-column: span 2; grid-row: span 2; }
.card.is-featured .card-name { font-size: 40px; }
.card.is-featured .card-title-art { font-size: clamp(48px, 6vw, 96px); }

/* ── Membership ──────────────────────── */
.membership {
  position: relative; padding: 110px 40px; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 15% 50%, rgba(122,15,47,.5), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(224,51,95,.25), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.membership-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-2); font-weight: 600; margin-bottom: 16px; }
.membership h2 { font-size: clamp(44px, 5vw, 72px); margin-bottom: 20px; }
.membership-copy > p { font-size: 17px; color: #d8d0d6; margin-bottom: 28px; max-width: 460px; }
.perks { list-style: none; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; color: #d8d0d6; }
.perks li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plans { display: grid; gap: 14px; }
.plan {
  position: relative; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.plan:hover { border-color: rgba(255,255,255,.18); }
.plan-featured { background: linear-gradient(160deg, #24101a, var(--surface)); border-color: rgba(224,51,95,.45); box-shadow: 0 20px 60px rgba(224,51,95,.15); }
.plan-badge { position: absolute; top: -12px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #1a1208; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.plan-price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.plan-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pay-methods { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); padding: 4px 8px; }
.pay-logo { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: -.02em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; }
.pay-apple { color: var(--text); }

/* ── About / Footer ──────────────────── */
.about { max-width: 760px; margin: 0 auto; padding: 110px 40px; text-align: center; }
.about blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; color: var(--text); margin-bottom: 24px; }
.about p { color: var(--muted); font-size: 16px; }

.footer { padding: 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer .brand { font-size: 20px; }
.footer-domain { color: var(--muted-2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-left: auto; color: var(--muted-2); }

/* ── Preview modal ───────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,6,.85); backdrop-filter: blur(10px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(880px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: rise .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.modal-close:hover { background: rgba(255,255,255,.15); }
.modal-player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.modal-poster { position: absolute; inset: 0; opacity: .9; }
.modal-play { position: absolute; inset: 0; display: grid; place-items: center; }
.modal-play svg { width: 74px; height: 74px; padding: 22px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); }
.modal-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.modal-progress span { display: block; height: 100%; width: 0; background: var(--rose); }
.modal.is-playing .modal-progress span { animation: progress 45s linear forwards; }
@keyframes progress { to { width: 100%; } }
.modal.is-playing .modal-play { opacity: 0; pointer-events: none; }
.modal-preview-tag { position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.modal-body { padding: 28px 32px 32px; }
.modal-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.modal-meta .card-cat { margin: 0; }
.modal-body h3 { font-size: 40px; margin-bottom: 10px; }
.modal-body p { color: #d8d0d6; font-size: 16px; max-width: 620px; margin-bottom: 24px; }
.modal-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-hint { font-size: 13px; color: var(--muted); }

/* ── Toast ───────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 200; padding: 14px 20px; border-radius: 12px; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  opacity: 0; transition: all .3s; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ──────────────────────── */
@media (max-width: 1000px) {
  .membership-inner { grid-template-columns: 1fr; gap: 48px; }
  .card.is-featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .nav { padding: 0 16px; gap: 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 0 16px 56px; min-height: 86vh; }
  .hero-logo { width: 90vw; right: -25%; top: 30%; opacity: .55; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-desc { font-size: 16px; }
  .catalogue, .membership, .about, .footer { padding-left: 16px; padding-right: 16px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-head h2 { font-size: 36px; }
  .search { width: 100%; }
  .pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card.is-featured { grid-column: span 2; }
  .card-name { font-size: 19px; }
  .card-line { display: none; }
  .card-foot { font-size: 11px; margin-top: 6px; }
  .card-title-art { font-size: 26px; padding: 16px; }
  .card.is-featured .card-title-art { font-size: 44px; }
  .modal-body { padding: 20px; }
  .modal-body h3 { font-size: 30px; }
  .footer-legal { margin-left: 0; }
}

/* ═══════════════════════════════════════
   Coins · wallet · store · player
   ═══════════════════════════════════════ */
.coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a3, #f0b33a 55%, #b8791a); box-shadow: inset 0 -2px 3px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.4); vertical-align: middle; flex-shrink: 0; }
.coin.big { width: 34px; height: 34px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.wallet-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: border-color .2s; }
.wallet-chip:hover { border-color: rgba(240,179,58,.6); }
.wallet-chip.big { font-size: 18px; padding: 8px 16px; }
.wallet-plus { width: 20px; height: 20px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.vip-chip { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; background: linear-gradient(135deg, #f7d98b, #d9a84a); color: #2a1a05; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.modal-sm { width: min(440px, 100%); }
.modal-sm .modal-body { padding: 32px; text-align: center; }
.modal-sm h3 { font-size: 34px; margin-bottom: 6px; }
.modal-sm p { margin-bottom: 18px; }
.auth-logo { width: 56px; margin-bottom: 8px; }
#auth-form { display: grid; gap: 10px; margin-top: 8px; }
#auth-form input { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); outline: 0; font-size: 15px; }
#auth-form input:focus { border-color: rgba(224,51,95,.6); }
.auth-msg { margin: 14px 0 0 !important; font-size: 13px; color: var(--muted); min-height: 18px; }
.auth-msg a { color: var(--rose-2); font-weight: 600; }
.auth-legal { font-size: 11px; margin: 10px 0 0 !important; }

.wallet-balance { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1; margin: 12px 0 4px; }
.wallet-balance .muted { font-family: var(--font-body); font-size: 14px; }
.wallet-split { font-size: 13px; margin-bottom: 22px; }
.vip-badge { padding: 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(247,217,139,.2), rgba(217,168,74,.1)); color: #f7d98b; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
#wallet-modal .btn-block { margin-top: 10px; }
.toggle { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; font-size: 13px; color: var(--muted); }
.toggle input { accent-color: var(--rose); width: 18px; height: 18px; }

.store { padding: 28px 28px 24px; }
.store-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.store-head h3 { font-size: 34px; margin-bottom: 4px; }
.store-tabs { margin-bottom: 18px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: all .2s; }
.pack:hover { border-color: rgba(240,179,58,.6); transform: translateY(-2px); }
.pack.has-badge { border-color: rgba(224,51,95,.5); }
.pack.is-loading { opacity: .5; pointer-events: none; }
.pack .coin { width: 34px; height: 34px; }
.pack-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pack-coins { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; }
.pack-bonus { font-size: 12px; color: #f7d98b; font-weight: 600; }
.pack-price { margin-top: 8px; padding: 9px 0; width: 100%; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.pack-price small { font-weight: 400; color: var(--muted); }
.pack.vip .pack-price { background: linear-gradient(135deg, #f7d98b, #d9a84a); color: #2a1a05; }
.pack.vip .pack-price small { color: #5a3d10; }
.vip-perks { grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(247,217,139,.15), rgba(217,168,74,.05)); color: #f7d98b; font-size: 13px; font-weight: 600; text-align: center; }
.store-pay { margin-top: 18px; justify-content: center; }
.card-free { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7be0a5; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 6px; }

/* Category header image */
.cat-header { position: relative; height: 180px; border-radius: var(--radius-lg); background-size: cover; background-position: center; margin-bottom: 24px; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.cat-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,6,10,.9), transparent 70%); }
.cat-header h3 { position: relative; font-size: 40px; }

/* ── Watch page ── */
.watch-page { padding-top: var(--nav-h); }
.watch { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 40px; padding: 24px 40px 80px; max-width: 1300px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 9 / 16; max-height: calc(100vh - var(--nav-h) - 48px); width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.player.is-audio { aspect-ratio: 1; }
.player-poster { position: absolute; inset: 0; background: var(--surface) center/cover; filter: brightness(.7); }
.player video, .player audio { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player audio { top: auto; height: 0; opacity: 0; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.player-big-play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.4); color: #fff; transition: transform .2s; }
.player-big-play:hover { transform: scale(1.06); }
.player-locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; background: rgba(7,6,10,.82); backdrop-filter: blur(14px); }
.player-locked .lock-icon { font-size: 44px; }
.player-locked h3 { font-size: 36px; }
.player-locked .btn-outline { margin-top: 4px; }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 12px 12px 14px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); }
.pc-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(255,255,255,.1); }
.pc-btn:hover { background: rgba(255,255,255,.22); }
.pc-progress { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); cursor: pointer; }
.pc-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--rose); }
.pc-time { font-size: 11px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-ep-label { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 8px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .06em; }

.series-info h1 { font-size: clamp(36px, 4vw, 56px); margin: 4px 0 8px; }
.s-logline { color: #d8d0d6; font-size: 16px; max-width: 620px; margin-top: 12px; }
.ep-head { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 14px; }
.ep-head h2 { font-size: 30px; }
.legend-free { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #7be0a5; vertical-align: middle; }
.ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ep { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--surface) center/cover; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 16px; color: var(--text); transition: all .15s; overflow: hidden; }
.ep:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.ep.is-free { border-color: rgba(123,224,165,.35); }
.ep.is-locked { color: var(--muted); }
.ep.is-current { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(224,51,95,.35); color: #fff; }
.ep-n { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ep-tag { position: absolute; top: 4px; right: 5px; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.ep-tag.free { color: #7be0a5; }
.ep-tag.lock { font-size: 11px; }

@media (max-width: 900px) {
  .watch { grid-template-columns: 1fr; gap: 20px; padding: 12px 16px 60px; }
  .player { max-width: 420px; margin: 0 auto; max-height: 72vh; }
  .series-info h1 { font-size: 32px; }
  .ep-list { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
  .store { padding: 20px 16px; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .modal-sm .modal-body { padding: 24px 20px; }
  .wallet-chip span:nth-child(2) { font-size: 13px; }
}

.agegate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(4,3,6,.92); backdrop-filter: blur(16px); }
.agegate-card { width: min(460px, 100%); padding: 40px 32px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.agegate-card h3 { font-size: 38px; margin: 6px 0 8px; }
.agegate-card p { margin-bottom: 24px; }
.agegate-actions { display: grid; gap: 10px; }
.check-18 { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); text-align: left; padding: 2px 4px; }
.check-18 input { accent-color: var(--rose); width: 18px; height: 18px; flex-shrink: 0; }
.store-head { padding-right: 48px; }

.cooling { margin: 16px 0 0; align-items: flex-start; line-height: 1.5; }
.cooling a { color: var(--rose-2); }
.danger-link { color: #ff7a7a !important; font-size: 13px; }

.history { margin: 6px 0 4px; text-align: left; }
.history summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 8px 0; list-style: none; }
.history summary::before { content: "▸ "; } .history[open] summary::before { content: "▾ "; }
.history-list { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.tx { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tx:last-child { border-bottom: 0; }
.tx .neg { color: #ff7a7a; font-weight: 600; } .tx .pos { color: #7be0a5; font-weight: 600; }
.tx small { color: var(--muted-2); font-size: 11px; }
