/* Kino Luganda — 2026 redesign */
:root {
  --bg: #07070f;
  --bg-2: #0b0b18;
  --panel: #101020;
  --panel-2: #15152a;
  --line: rgba(255,255,255,.08);
  --text: #ffffff;
  --muted: #9d9db4;
  --gold: #4ade80;
  --gold-2: #86efac;
  --gold-soft: rgba(74,222,128,.12);
  --ok: #4ade80;
  --bad: #f87171;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #04170c; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(16px, 4vw, 56px);
  background: rgba(7,7,15,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 9px; border-radius: 9px; background: linear-gradient(135deg, #f5b642, #c98a1b); color: #171106; font-weight: 900; font-size: 12.5px; letter-spacing: .04em; box-shadow: 0 2px 10px rgba(245,182,66,.35); }
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-2), #16a34a);
  color: #04170c; font-weight: 800; font-family: Georgia, serif; font-size: 23px;
  box-shadow: 0 6px 20px rgba(74,222,128,.28);
}
.brand-word { font-weight: 800; letter-spacing: .16em; font-size: 13px; }
.brand-word span { display: block; color: var(--gold); font-weight: 600; letter-spacing: .32em; font-size: 9px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  background: none; border: 1px solid transparent; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; color: #d7d7e6; font-size: 14px; font-weight: 600;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav .active { color: var(--gold); background: rgba(74,222,128,.1); }
.nav .cta {
  background: linear-gradient(145deg, var(--gold-2), #16a34a); color: #04170c;
  box-shadow: 0 8px 22px rgba(74,222,128,.25);
}
.nav .cta:hover { filter: brightness(1.06); background: linear-gradient(145deg, var(--gold-2), #16a34a); }

/* ---------- layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.section { margin: 46px 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.nowrap { white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end;
  margin-top: -74px; padding: clamp(110px, 14vh, 170px) 0 clamp(36px, 7vh, 76px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center 22%;
  filter: blur(3px) saturate(.92) brightness(.52);
  transform: scale(1.06);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,10,.97) 0%, rgba(7,7,10,.86) 38%, rgba(7,7,10,.35) 70%, rgba(7,7,10,.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 46%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 68px); font-weight: 850; letter-spacing: -.035em; margin: 14px 0 16px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #d9d4cc; font-size: clamp(15px, 1.3vw, 17px); max-width: 52ch; margin: 0 0 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #e9e2d7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-poster {
  position: relative; justify-self: end; width: min(100%, 420px); aspect-ratio: 2/3;
  border-radius: 22px; overflow: hidden; box-shadow: 0 34px 80px rgba(0,0,0,.6);
  background: #1a1a22;
}
.hero-poster .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster .meta {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.hero-poster .meta strong { font-size: 18px; }
.hero-poster .meta span { color: #cfc9c0; font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.09); color: var(--text);
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.15); }
.btn.gold {
  background: linear-gradient(145deg, var(--gold-2), #16a34a); color: #04170c; border-color: transparent;
  box-shadow: 0 12px 30px rgba(74,222,128,.28);
}
.btn.gold:hover { box-shadow: 0 16px 38px rgba(74,222,128,.38); }
.btn.danger { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.35); color: #ffb4b4; }
.btn.sm { padding: 8px 15px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: #d3cec7; font-size: 13px; font-weight: 650; cursor: pointer;
}
.chip.on { background: var(--text); color: #0b0b0f; border-color: transparent; }

/* ---------- shelves & grid ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 16px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .movie-card { scroll-snap-align: start; max-width: 230px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.load-more-wrap { display: flex; justify-content: center; margin: 26px 0 10px; }
.load-more-wrap:empty { display: none; }
.btn.load-more { padding: 13px 42px; font-size: 15px; }
.movie-card { position: relative; display: block; transition: transform .22s ease; }
.movie-card:hover { transform: translateY(-4px); }
.poster {
  position: relative; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden;
  background: #15151c; box-shadow: 0 14px 34px rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.06);
}
.poster .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.movie-card:hover .poster .poster-img { transform: scale(1.06); }
.poster .initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: Georgia, serif; font-size: clamp(44px, 6vw, 72px); color: rgba(255,255,255,.16);
}
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 4px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; background: rgba(7,7,10,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16); color: #f3ede4;
}
.badge.lock { color: #ffd479; border-color: rgba(74,222,128,.4); }
.play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: linear-gradient(0deg, rgba(7,7,10,.55), rgba(7,7,10,.05)); }
.movie-card:hover .play { opacity: 1; }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #0b0b0f; font-size: 19px; padding-left: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.movie-card .t { margin-top: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.movie-card .s { margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); border-color: rgba(74,222,128,.35); box-shadow: 0 20px 44px rgba(0,0,0,.4); }
.plan .name { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plan .price { font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.plan .price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.plan .desc { font-size: 13px; color: var(--muted); min-height: 34px; }
.tagbest {
  position: absolute; top: -10px; right: 16px; padding: 5px 11px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .13em;
  background: linear-gradient(145deg, var(--gold-2), #16a34a); color: #04170c;
}

/* ---------- player ---------- */
.player-shell {
  border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.player-shell video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.paywall { display: grid; place-items: center; gap: 14px; padding: 60px 24px; text-align: center; }

/* ---------- cards / forms ---------- */
.card {
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: border-color .2s, background .2s;
}
.input:focus { border-color: rgba(74,222,128,.55); background: rgba(255,255,255,.08); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(74,222,128,.3); font-size: 14px; }
.notice.err { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.35); }

/* ---------- tables / admin ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.admin-tabs button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--muted); font-weight: 650; cursor: pointer; font-size: 14px;
}
.admin-tabs button.on { background: var(--text); color: #0b0b0f; border-color: transparent; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 13px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.055); vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; background: rgba(255,255,255,.08); }
.tag.paid, .tag.active { background: rgba(74,222,128,.16); color: #86efac; }
.tag.pending { background: rgba(74,222,128,.16); color: #ffd479; }
.tag.failed, .tag.expired { background: rgba(248,113,113,.16); color: #fca5a5; }

/* ---------- empty / loading ---------- */
.empty { padding: 54px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { display: grid; place-items: center; min-height: 46vh; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { margin-top: 70px; border-top: 1px solid var(--line); background: #060609; }
.foot-inner {
  max-width: 1320px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--text); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  padding: 13px 22px; border-radius: 999px; background: #1d1d26; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(248,113,113,.4); color: #ffc9c9; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { margin-top: -66px; min-height: 66vh; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-poster { display: none; }
  .shelf { grid-auto-columns: 132px; gap: 12px; }
  .nav a, .nav button { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 560px) {
  .brand-word { display: block; font-size: 11.5px; letter-spacing: .12em; }
  .hero { min-height: 0; padding: 96px 0 26px; }
  .hero h1 { font-size: clamp(25px, 7.6vw, 33px); text-wrap: wrap; }
  .hero-actions .btn { flex: 1; }
  .plan .price { font-size: 26px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }

  /* phones: a dense 3-across poster wall, not one card per row */
  .wrap { padding: 0 12px; }
  .section { margin: 26px 0; }
  .row-head { margin-bottom: 9px; gap: 8px; }
  h2 { font-size: 17px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .shelf { grid-auto-columns: 30vw; gap: 9px; padding: 2px 2px 12px; }
  .shelf .movie-card { max-width: none; }
  .poster { border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.42); }
  .movie-card .t {
    margin-top: 6px; font-size: 11.5px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-weight: 650;
  }
  .movie-card .s { font-size: 10px; margin-top: 1px; }
  .badge { top: 6px; left: 6px; font-size: 7.5px; padding: 2px 6px; letter-spacing: .08em; }
  .card-badge { font-size: 7.5px; padding: 2px 6px; }
  .play { display: none; }
  .poster .initial { font-size: 34px; }
  /* film / series pages */
  .film-top { padding: 84px 0 34px; }
  .film-top h1 { font-size: clamp(24px, 7.4vw, 32px); }
  .synopsis { font-size: 14px; line-height: 1.6; }
  .hero-meta { gap: 6px; }
  .hero-metaitem { font-size: 10.5px; padding: 4px 8px; }
  .btn { padding: 11px 16px; font-size: 14px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .movie-card .t { font-size: 10.5px; }
  .movie-card .s { display: none; }
}

/* ---------- film page ---------- */
.film-top { position: relative; padding: clamp(96px, 16vh, 150px) 0 90px; margin-top: -74px; overflow: hidden; }
.film-art {
  position: absolute; inset: -8%;
  background-image: var(--art); background-size: cover; background-position: center 20%;
  filter: blur(14px) brightness(.42) saturate(1.05); transform: scale(1.08);
}
.film-top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 4%, rgba(7,7,10,.72) 40%, rgba(7,7,10,.55) 100%);
}
.film-top-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.film-top h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 850; letter-spacing: -.035em; margin: 6px 0 0; text-shadow: 0 3px 24px rgba(0,0,0,.6); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.hero-metaitem {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .04em;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #eae4db;
}
.movie-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.meta-line { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.synopsis { color: #d6d1c9; max-width: 72ch; font-size: 16px; line-height: 1.7; }
.lock-ico { font-size: 34px; margin-bottom: 8px; }

/* ---------- auth / forms / account / admin ---------- */
.auth-wrap { max-width: 470px; margin: clamp(34px, 7vw, 84px) auto 70px; padding: 0 18px; }
.auth-wrap .card {
  padding: clamp(22px, 4vw, 32px);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 16px;
  background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 999px;
}
.tabs button {
  flex: 1; padding: 10px 12px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.tabs button:hover { color: var(--text); }
.tabs button.on {
  background: linear-gradient(145deg, var(--gold-2), #16a34a); color: #04170c;
  box-shadow: 0 8px 22px rgba(74,222,128,.25);
}
.card h3 { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.card p.help, .help { color: var(--muted); font-size: 14px; margin: 0 0 18px; line-height: 1.55; }
.spacer { height: 12px; }
.btn.block { width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stat { background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat .n { font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; font-weight: 650; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.28); color: #bbf7d0; }
.notice.ok { background: rgba(88,196,138,.1); border-color: rgba(88,196,138,.32); color: #a9e7c6; }
.notice.err { background: rgba(226,96,96,.11); border-color: rgba(226,96,96,.35); color: #f0b1b1; }
.account-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 22px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 21px; color: #04170c; background: linear-gradient(145deg, var(--gold-2), #16a34a); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.plan { cursor: pointer; }
.plan.sel {
  border-color: rgba(74,222,128,.7);
  background: linear-gradient(165deg, rgba(74,222,128,.13), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px rgba(74,222,128,.35), 0 24px 54px rgba(74,222,128,.1);
}
.plan .pick {
  margin-top: auto; padding-top: 12px; font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.plan.sel .pick { color: var(--gold-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stats .stat { padding: 20px 22px; }
.stats .stat .n { font-size: clamp(26px, 3vw, 34px); }

/* ---------- MunoWatch-style browse ---------- */
.page { padding-top: 26px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-tools { display: flex; align-items: center; gap: 14px; }
.search {
  width: min(56vw, 300px); padding: 10px 14px; border-radius: 10px; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); outline: none; font-size: 14px;
}
.search:focus { border-color: rgba(74,222,128,.55); background: rgba(255,255,255,.09); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 650;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #d7d7e6;
}
.chip:hover { background: rgba(255,255,255,.11); }
.chip.on { background: rgba(74,222,128,.16); border-color: rgba(74,222,128,.55); color: #86efac; }
.card-badge {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  padding: 4px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  background: rgba(22,163,74,.92); color: #fff; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.movie-card { position: relative; }
.movie-card .t { margin-top: 9px; font-size: 14px; font-weight: 650; line-height: 1.3; }
.movie-card .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ep-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ep {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid transparent; transition: background .16s, border-color .16s;
}
.ep:hover { background: rgba(74,222,128,.07); border-color: rgba(74,222,128,.3); }
.ep-thumb {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: rgba(74,222,128,.12); color: #86efac; font-weight: 800; font-size: 15px;
}
.ep-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-title { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-sub { color: var(--muted); font-size: 12px; }
.ep-play { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #86efac; }
.ep-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.next-up {
  /* top-right: the bottom-right corner belongs to the player's fullscreen button */
  position: absolute; right: 14px; top: 14px; bottom: auto; z-index: 3;
  padding: 9px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(8,8,15,.82); border: 1px solid rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(8px); box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.next-up:hover { border-color: rgba(74,222,128,.6); color: #86efac; }
.player-shell { position: relative; }

/* phone: keep the next-episode pill tiny and clear of the controls */
@media (max-width: 560px) {
  .next-up { top: 8px; right: 8px; padding: 6px 10px; font-size: 10.5px; }
}

/* ---------- home shelves ---------- */
.shelf-sec { margin: 26px 0 6px; }
.shelf-sec .row-head { margin-bottom: 10px; }
.shelf-sec h2 { font-size: 21px; }
.shelf-arrows { display: flex; gap: 8px; }
.arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.arrow:hover { background: rgba(74,222,128,.18); border-color: rgba(74,222,128,.45); }
.shelf .movie-card { min-width: 148px; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(7,7,10,.68); color: #fff; font-size: 17px; cursor: pointer; backdrop-filter: blur(6px);
}
.fav-btn.on { color: #ff5d7a; border-color: rgba(255,93,122,.6); }
.movie-card .prog { height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); margin-top: 8px; overflow: hidden; }
.movie-card .prog i { display: block; height: 100%; background: #4ade80; border-radius: 99px; }
.movie-card .card-badge { right: 50px; }
.fav-big.on { color: #ff8fa3; border-color: rgba(255,93,122,.55); }
.gold-link { color: #4ade80; font-weight: 700; }
@media (max-width: 640px) { .shelf .movie-card { min-width: 30vw; } .shelf-sec h2 { font-size: 18px; } }


/* phones: the green tag sits under the poster, next to the film name (desktop keeps it on the poster) */
@media (max-width: 560px) {
  .movie-card .card-badge { position: static; display: inline-block; margin-top: 6px; font-size: 8.5px; padding: 2px 7px; }
  .movie-card:has(> .card-badge) > .t { margin-top: 3px; }
}

/* ---------- settings button, mobile drawer ---------- */
.nav .settings-btn {
  border: 1px solid rgba(245,182,66,.55); color: var(--gold); font-weight: 700;
  padding: 8px 16px !important; border-radius: 999px;
}
.nav .settings-btn:hover { background: rgba(245,182,66,.14); color: var(--gold); }
.menu-btn {
  display: none; margin-left: auto; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  width: 42px; height: 42px; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.drawer-bg {
  position: fixed; inset: 0; background: rgba(4,4,8,.6); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 60;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(300px, 84vw); z-index: 61;
  background: #171219; border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform .24s ease;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
body.drawer-open .drawer { transform: none; box-shadow: -18px 0 44px rgba(0,0,0,.5); }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-title { font-weight: 800; letter-spacing: .14em; font-size: 13px; }
.drawer-x { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px 8px; }
.drawer-item {
  display: block; width: 100%; text-align: left; padding: 13px 12px; border-radius: 12px;
  color: var(--text); background: none; border: none; font: inherit; font-size: 15.5px;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.drawer-item:hover { background: rgba(255,255,255,.06); }
.drawer-sub {
  background: linear-gradient(145deg, var(--gold-2), #16a34a); color: #101408; font-weight: 800;
  text-align: center; margin: 6px 0 4px;
}
.drawer-note { padding: 10px 12px; color: var(--good, #4ade80); font-size: 13px; font-weight: 650; }
@media (max-width: 640px) {
  .menu-btn { display: grid; }
  .nav { display: none; }
}
.plan .devs { font-size: 12px; font-weight: 700; color: #86efac; letter-spacing: .02em; }
