/* ==========================================================================
   CINEPLAY — stylesheet
   Tema: hitam sinematik, aksen merah, teks putih/abu. Premium & minimalis.
   ========================================================================== */

:root {
  --bg: #08080b;
  --bg-soft: #0e0e13;
  --bg-elev: #14141b;
  --bg-card: #17171f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --ink: #ffffff;
  --ink-2: #b9b9c6;
  --ink-3: #85859a;
  --red: #e0322f;
  --red-bright: #ff3b38;
  --red-deep: #a81d1c;
  --gold: #f5b942;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 18px 46px rgba(0, 0, 0, .55);
  --shadow-soft: 0 8px 26px rgba(0, 0, 0, .4);
  --header-h: 88px;
  --max: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 460px at 12% -6%, rgba(224, 50, 47, .16), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(124, 58, 237, .13), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }

::selection { background: rgba(224, 50, 47, .38); }

/* ------------------------------ utilitas ------------------------------ */

.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: 2.2rem 0 4rem; }
.muted { color: var(--ink-3); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* ------------------------------- tombol ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  background: rgba(255, 255, 255, .07); color: var(--ink); text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.btn-primary { background: linear-gradient(135deg, var(--red) 0%, #c22a28 55%, var(--red-deep) 100%); color: #fff; box-shadow: 0 10px 26px rgba(224, 50, 47, .3); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(224, 50, 47, .46); }

.btn-support { background: rgba(224, 50, 47, .13); color: #ff8b88; border-color: rgba(224, 50, 47, .5); }
.btn-support:hover { background: rgba(224, 50, 47, .26); color: #fff; border-color: var(--red); }

.btn-outline { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.3); }

.btn-ghost { background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-danger { background: rgba(224, 50, 47, .16); color: #ff9c99; border-color: rgba(224, 50, 47, .42); }
.btn-danger:hover { background: rgba(224, 50, 47, .32); color: #fff; }

.btn-lg { padding: .8rem 1.5rem; font-size: .97rem; border-radius: 12px; }
.btn-sm { padding: .45rem .85rem; font-size: .82rem; border-radius: 9px; }
.btn-xs { padding: .34rem .68rem; font-size: .76rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* --------------------------- page loader ------------------------------ */

.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--bg); transition: opacity .45s var(--ease), visibility .45s;
}
.page-loader span { font-family: "Bebas Neue", Inter, sans-serif; letter-spacing: .38em; font-size: 1.1rem; color: var(--ink-3); }
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--red);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------- header ------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(180deg, rgba(8, 8, 11, .96) 0%, rgba(8, 8, 11, .74) 62%, rgba(8, 8, 11, 0) 100%);
  transition: background .3s var(--ease), backdrop-filter .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(8, 8, 11, .93);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.4rem, var(--max)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem; height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.scrolled .header-inner { height: 70px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
/* Logo asli 2172×724 (rasio ~3:1) dipakai apa adanya, hanya diskalakan. */
.brand-logo { height: 52px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 42px; }
.brand-text { font-family: "Bebas Neue", Inter, sans-serif; font-size: 1.5rem; letter-spacing: .16em; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }
.nav-link {
  padding: .45rem .8rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.nav-link.active { color: var(--ink); position: relative; }
.nav-link.active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .1rem; height: 2px;
  background: var(--red); border-radius: 2px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.header-search { display: flex; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s, background .2s; }
.header-search:focus-within { border-color: rgba(224, 50, 47, .6); background: rgba(255, 255, 255, .1); }
.header-search input {
  background: none; border: 0; color: var(--ink); padding: .5rem .7rem; width: 190px; font-size: .85rem; outline: none;
}
.header-search input::placeholder { color: var(--ink-3); }
.header-search button { background: none; border: 0; color: var(--ink-2); padding: .5rem .7rem; cursor: pointer; font-size: 1.05rem; }
.header-search button:hover { color: var(--red-bright); }

.hamburger {
  display: none; width: 42px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); cursor: pointer; padding: 0; place-items: center; gap: 4px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: .3rem; padding: .9rem 1.2rem 1.4rem;
  background: rgba(8, 8, 11, .98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-link { padding: .75rem .8rem; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.mobile-link:hover, .mobile-link.active { background: rgba(255, 255, 255, .07); color: var(--ink); }
.mobile-search { display: flex; gap: .5rem; margin: .6rem 0 .4rem; }
.mobile-search input { flex: 1; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; color: var(--ink); outline: none; }
.mobile-search button { background: var(--red); border: 0; color: #fff; border-radius: 10px; padding: 0 1.1rem; font-weight: 600; cursor: pointer; }

/* --------------------------------- hero -------------------------------- */

.hero { position: relative; min-height: clamp(500px, 74vh, 720px); overflow: hidden; background: #0a0a0f; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.035);
  transition: opacity .85s var(--ease), transform 7s linear, visibility .85s;
  display: flex; align-items: flex-end;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
/* Poster diperbesar + di-blur sebagai latar sinematik (gaya banner mobile) */
.hero-bg {
  position: absolute; inset: -8%; background-size: cover; background-position: center 18%;
  filter: blur(30px) saturate(122%) brightness(.5); transform: scale(1.18);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 9, .96) 0%, rgba(6, 6, 9, .84) 40%, rgba(6, 6, 9, .42) 68%, rgba(6, 6, 9, .78) 100%),
    linear-gradient(180deg, rgba(6, 6, 9, .9) 0%, rgba(6, 6, 9, .22) 30%, rgba(6, 6, 9, .82) 76%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: min(100% - 2.4rem, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: clamp(1.6rem, 3.4vw, 3.2rem);
  align-items: center; padding: clamp(2.8rem, 7vh, 4.6rem) 0 clamp(3rem, 7vh, 4.4rem);
}
.hero-text { max-width: 700px; }
.hero-poster-wrap { position: relative; order: 2; }
.hero-poster {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .74), 0 0 0 1px rgba(255, 255, 255, .12);
}
.hero-poster-wrap::after {
  content: ""; position: absolute; inset: auto 10% -14px 10%; height: 28px;
  background: radial-gradient(ellipse at center, rgba(224, 50, 47, .45), transparent 70%); filter: blur(12px);
}
.hero-poster-link { position: absolute; inset: 0; border-radius: 16px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-bright); margin-bottom: .85rem;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224, 50, 47, .22); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(224, 50, 47, 0); } }
.hero-title {
  font-size: clamp(2.1rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.03; letter-spacing: -.03em;
  margin-bottom: .85rem; text-transform: uppercase; text-shadow: 0 8px 30px rgba(0, 0, 0, .62);
}

/* meta hero: rating bintang emas + ikon kalender/durasi + pil genre */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; color: var(--ink-2); font-size: .92rem; margin-bottom: 1rem; }
.hero-meta-item { display: inline-flex; align-items: center; gap: .34rem; font-weight: 500; }
.hero-meta-item.rating { color: var(--gold); font-weight: 700; }
.hero-meta-item.rating svg { transform: translateY(-.5px); }
.hero-meta-pill {
  display: inline-flex; align-items: center; padding: .28rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07);
  font-size: .82rem; color: var(--ink);
}
.hero-synopsis {
  color: var(--ink-2); font-size: 1rem; max-width: 620px; margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-btn { min-width: 186px; border-radius: 999px; font-weight: 600; }
.hero-btn.btn-support { border-radius: 999px; border-color: rgba(224, 50, 47, .55); background: rgba(20, 12, 14, .55); backdrop-filter: blur(8px); color: var(--ink); }
.hero-btn.btn-support:hover { background: rgba(224, 50, 47, .22); color: #fff; }
.hero-btn.btn-support svg { color: var(--red-bright); }

.hero-controls {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: .9rem;
  background: rgba(10, 10, 14, .6); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .5rem;
}
.hero-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-dots { display: flex; gap: .4rem; }
.hero-dot { width: 22px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: background .25s, width .25s; }
.hero-dot.active { background: var(--red); width: 34px; }

/* ---------------------------- quick strip ------------------------------ */

.quick-strip { background: rgba(255, 255, 255, .025); border-block: 1px solid var(--line); margin-bottom: 1.6rem; }
.quick-inner { display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem; align-items: center; padding: .95rem 0; }
.quick-item { display: flex; flex-direction: column; }
.quick-item strong { font-size: 1.15rem; font-weight: 700; }
.quick-item span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.quick-cta { margin-left: auto; }

/* ------------------------------- bintang ------------------------------- */

.stars { display: inline-flex; gap: 1px; font-size: .92rem; letter-spacing: 1px; }
.stars .star { color: rgba(255, 255, 255, .22); }
.stars .star.on { color: var(--gold); }
.stars .star.half { color: var(--gold); opacity: .55; }

/* ------------------------------ section -------------------------------- */

.row-section { margin-bottom: 2.9rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.section-title { font-size: clamp(1.18rem, 2.1vw, 1.5rem); font-weight: 800; margin: 0; position: relative; padding-left: .8rem; letter-spacing: -.01em; }
.section-title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--red-bright), var(--red-deep)); }
.section-link {
  display: inline-flex; align-items: center; gap: .28rem; font-size: .85rem; font-weight: 600;
  color: var(--ink-2); transition: color .2s, gap .2s;
}
.section-link:hover { color: var(--red-bright); gap: .45rem; }

/* ------------------------------ movie row ------------------------------ */

.movie-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(178px, 1fr);
  gap: 1.1rem; overflow-x: auto; padding: .3rem .2rem 1.3rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.movie-row::-webkit-scrollbar { height: 7px; }
.movie-row::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }
.movie-row::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 8px; }
.movie-row .movie-card { scroll-snap-align: start; }

.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 1.5rem 1.2rem; }
.movie-grid-lg { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

/* ------------------------------ movie card ----------------------------- */

.movie-card { min-width: 0; transition: transform .3s var(--ease); }
.movie-card:hover { transform: translateY(-5px); }
.movie-poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev); box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, .07);
}
.movie-poster > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.movie-card:hover .movie-poster > img { transform: scale(1.08); filter: brightness(.62) saturate(112%); }
.poster-link { position: absolute; inset: 0; z-index: 3; }

.poster-overlay {
  position: absolute; inset: 0; z-index: 4; padding: .8rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(4, 4, 7, .45) 0%, rgba(4, 4, 7, .3) 38%, rgba(4, 4, 7, .94) 100%);
  opacity: 0; transition: opacity .34s var(--ease);
  pointer-events: none;
}
.movie-card:hover .poster-overlay, .movie-card:focus-within .poster-overlay { opacity: 1; }
.overlay-bottom { display: flex; flex-direction: column; gap: .3rem; }
.overlay-title { font-size: .98rem; font-weight: 700; margin: 0; }
.overlay-meta { font-size: .75rem; color: var(--ink-3); margin: 0; }
.overlay-synopsis { font-size: .75rem; color: var(--ink-2); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.overlay-actions { display: flex; gap: .4rem; margin-top: .35rem; pointer-events: auto; }
.overlay-actions .btn { flex: 1; gap: .3rem; }
.overlay-actions svg { width: 14px; height: 14px; }

/* chip genre (merah) & rating (bintang emas) menempel pada poster */
.poster-genre, .poster-rating {
  position: absolute; top: .55rem; z-index: 5; display: inline-flex; align-items: center; gap: .28rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .26rem .55rem; border-radius: 7px; backdrop-filter: blur(7px);
  transition: opacity .3s var(--ease);
}
.poster-genre {
  left: .55rem; background: linear-gradient(135deg, rgba(232, 43, 39, .97), rgba(168, 29, 28, .97));
  color: #fff; box-shadow: 0 4px 14px rgba(224, 50, 47, .35);
}
.poster-rating {
  right: .55rem; background: rgba(8, 8, 11, .78); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .16);
}
.poster-rating svg { width: 12px; height: 12px; color: var(--gold); }
.movie-card:hover .poster-genre, .movie-card:hover .poster-rating,
.movie-card:focus-within .poster-genre, .movie-card:focus-within .poster-rating { opacity: 0; }

.card-badge {
  position: absolute; bottom: .55rem; left: .55rem; z-index: 5; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .24rem .5rem; border-radius: 7px;
}
.card-badge.draft { background: rgba(251, 191, 36, .94); color: #241a02; }
.card-badge.featured { background: rgba(224, 50, 47, .95); color: #fff; left: auto; right: .55rem; }

.movie-info { padding: .7rem .1rem 0; }
.movie-title { font-size: .94rem; font-weight: 600; margin: 0 0 .28rem; line-height: 1.35; }
.movie-title a:hover { color: var(--red-bright); }
.movie-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.movie-meta { display: flex; align-items: center; gap: .45rem; font-size: .77rem; color: var(--ink-3); flex-wrap: wrap; }
.movie-meta-item { display: inline-flex; align-items: center; gap: .3rem; }
.movie-meta-item + .movie-meta-item::before { content: "•"; color: rgba(255, 255, 255, .25); margin-right: .12rem; }
/* Tombol khusus perangkat sentuh — hanya aktif di @media (hover: none) di bawah. */
.movie-actions-touch { display: none; gap: .4rem; margin-top: .6rem; }
.movie-actions-touch .btn { flex: 1; gap: .28rem; }
.movie-actions-touch svg { width: 13px; height: 13px; }

/* --------------------------- skeleton loading -------------------------- */

.shimmer { position: relative; overflow: hidden; background: rgba(255, 255, 255, .055); }
.shimmer::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-poster { aspect-ratio: 2 / 3; border-radius: var(--radius); }
.skel-line { height: 11px; border-radius: 6px; margin-top: .6rem; }
.skel-card { padding-bottom: .4rem; }

/* ------------------------------ rank list ------------------------------ */

.rank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem 1.4rem; }
.rank-tile {
  display: grid; grid-template-columns: 46px 58px 1fr; align-items: center; gap: .85rem;
  padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .028);
  transition: background .22s, border-color .22s, transform .22s;
}
.rank-tile:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-strong); transform: translateX(4px); }
.rank-number { font-family: "Bebas Neue", Inter, sans-serif; font-size: 2rem; line-height: 1; color: rgba(255, 255, 255, .22); text-align: center; }
.rank-tile img { width: 58px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.rank-body { min-width: 0; display: flex; flex-direction: column; }
.rank-title { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { font-size: .76rem; color: var(--ink-3); }

/* ------------------------------ cta band ------------------------------- */

.cta-band { margin: 1rem 0 3rem; border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid var(--line); }
.cta-band-inner {
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(700px 320px at 88% 10%, rgba(224, 50, 47, .26), transparent 62%),
    linear-gradient(135deg, #16161e 0%, #0c0c11 100%);
}
.cta-band h2 { font-size: clamp(1.3rem, 3vw, 2.05rem); font-weight: 800; max-width: 22ch; }
.cta-band p { color: var(--ink-2); max-width: 66ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* ------------------------------- filter -------------------------------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; margin-bottom: .3rem; }
.page-sub { color: var(--ink-2); margin: 0; }
.page-sub.big { font-size: 1.08rem; color: var(--ink-2); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-3); margin-bottom: 1.1rem; }
.crumb:hover { color: var(--red-bright); }
.crumb.current { color: var(--ink-2); }
.crumb-sep { color: rgba(255, 255, 255, .2); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .85rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); margin-bottom: 1.6rem;
}
.filter-search { display: flex; gap: .5rem; flex: 1 1 260px; }
.filter-search input, .filter-select, .inline-add input, .inline-edit input, .field input, .field textarea, .field select, .auth-card input {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: .6rem .8rem; font-size: .88rem; outline: none; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.filter-search input:focus, .filter-select:focus, .field input:focus, .field textarea:focus, .auth-card input:focus {
  border-color: rgba(224, 50, 47, .65); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(224, 50, 47, .13);
}
.filter-select { flex: 0 1 auto; width: auto; min-width: 140px; }
.push-right { margin-left: auto; }

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.page-btn {
  min-width: 40px; padding: .48rem .8rem; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); font-size: .85rem; text-align: center; transition: background .2s, border-color .2s;
}
.page-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-strong); }
.page-btn.current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .35; pointer-events: none; }

.chip, .genre-chips a {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); font-size: .84rem; transition: background .2s, border-color .2s, color .2s;
}
.genre-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip:hover, .genre-chips a:hover { background: rgba(255, 255, 255, .1); }
.chip.active, .genre-chips a.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.genre-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.5rem 1.2rem; background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display: flex; flex-direction: column; gap: .2rem; transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.genre-tile:hover { transform: translateY(-4px); border-color: rgba(224, 50, 47, .5); background: linear-gradient(150deg, rgba(224,50,47,.18), rgba(255,255,255,.03)); }
.genre-initial { font-family: "Bebas Neue", Inter, sans-serif; font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .18); }
.genre-name { font-weight: 700; font-size: 1.05rem; }
.genre-count { font-size: .78rem; color: var(--ink-3); }

.empty-state { text-align: center; padding: 3.4rem 1.4rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); }
.empty-icon { font-size: 2.6rem; margin-bottom: .6rem; }
.empty-state h3 { font-size: 1.2rem; }
.empty-state p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.search-status { color: var(--ink-2); margin-bottom: 1.2rem; }

/* --------------------------- detail film ------------------------------- */

.detail-page { position: relative; overflow: hidden; }
.detail-backdrop {
  position: absolute; inset: 0 0 auto; height: 520px; background-size: cover; background-position: center 20%;
  filter: blur(46px) brightness(.5) saturate(120%); transform: scale(1.15); opacity: .8;
}
.detail-page::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px;
  background: linear-gradient(180deg, rgba(8,8,11,.6), rgba(8,8,11,.92) 62%, var(--bg));
  pointer-events: none;
}
.detail-inner { position: relative; z-index: 1; padding: 1.6rem 0 3rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(1.6rem, 3.4vw, 3rem); margin-bottom: 3.4rem; }
.detail-poster { position: relative; }
.detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 34px 74px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.1); }
.detail-rating-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: .2rem; background: rgba(10,10,14,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.detail-rating-badge span { color: var(--gold); margin-right: .2rem; }
.detail-rating-badge small { font-size: .7rem; color: var(--ink-3); font-weight: 500; }
.detail-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: .4rem 0 .9rem; }
.detail-metas { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.meta-pill { font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink-2); }
.meta-pill.genre { border-color: rgba(224, 50, 47, .42); color: #ff9c99; background: rgba(224, 50, 47, .1); }
.detail-stars { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.stars-label { font-size: .86rem; color: var(--ink-2); }
.detail-synopsis { color: var(--ink-2); font-size: 1.02rem; max-width: 74ch; margin-bottom: 1.7rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }

.about-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); padding: 1.5rem; }
.about-title, .watch-about h2, .watch-synopsis h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 1rem; position: relative; padding-left: .75rem; }
.about-title::before, .watch-about h2::before, .watch-synopsis h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 3px; background: var(--red); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem 1.6rem; }
.about-row { display: flex; flex-direction: column; gap: .15rem; }
.about-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.about-value { color: var(--ink); font-size: .93rem; }
.notice-warn { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .38); color: #fde68a; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: .88rem; }

/* ------------------------------- watch --------------------------------- */

.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 3rem; }
.watch-player { border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); border: 1px solid var(--line); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame video, .player-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-error {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: 2rem 1.4rem; background: linear-gradient(150deg, #14141b, #0a0a0f); border-radius: var(--radius-lg);
}
.player-error h3 { margin: 0; }
.player-error p { color: var(--ink-2); max-width: 46ch; margin: 0 0 .6rem; font-size: .9rem; }
.player-error-icon { font-size: 2.4rem; }
.watch-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1.3rem 0 .4rem; }
.watch-title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--ink-2); font-size: .88rem; }
.watch-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.watch-synopsis, .watch-about { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.watch-synopsis p { color: var(--ink-2); max-width: 78ch; }

.support-panel {
  border: 1px solid rgba(224, 50, 47, .32); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  background: radial-gradient(420px 200px at 50% -10%, rgba(224, 50, 47, .2), transparent 68%), rgba(255,255,255,.028);
}
.support-panel-icon { font-size: 1.9rem; }
.support-panel h3 { font-size: 1.1rem; margin: .5rem 0 .6rem; }
.support-panel p { color: var(--ink-2); font-size: .88rem; }
.support-panel-note { font-size: .74rem !important; color: var(--ink-3) !important; margin: .7rem 0 0 !important; }

.side-list { margin-top: 1.4rem; }
.side-list h3 { font-size: .95rem; font-weight: 700; margin-bottom: .8rem; }
.side-item { display: grid; grid-template-columns: 56px 1fr; gap: .7rem; padding: .5rem; border-radius: 12px; transition: background .2s; }
.side-item:hover { background: rgba(255, 255, 255, .06); }
.side-item img { width: 56px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.side-item-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.side-item-body strong { font-size: .88rem; font-weight: 600; }
.side-item-body small { font-size: .74rem; color: var(--ink-3); }

/* ------------------------------- modal --------------------------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem;
  background: rgba(4, 4, 7, .82); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .28s var(--ease); overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  width: min(100%, 560px); max-height: calc(100dvh - 2rem); overflow-y: auto; position: relative;
  background: linear-gradient(160deg, #17171f 0%, #0f0f15 100%);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-title { font-size: 1.35rem; font-weight: 800; }
.modal-desc { color: var(--ink-2); font-size: .9rem; }
.modal-film { font-weight: 600; color: #ff9c99; font-size: .88rem; margin-bottom: 1.2rem; }
.field-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; font-weight: 600; }

.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .55rem; margin-bottom: 1rem; }
.amount-btn {
  padding: .75rem .6rem; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.amount-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.amount-btn.selected { background: rgba(224, 50, 47, .9); border-color: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(224, 50, 47, .3); }
.amount-other { grid-column: span 2; }
.custom-amount { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: .2rem .8rem; }
.custom-amount .rp { color: var(--ink-3); font-weight: 600; }
.custom-amount input { background: none; border: 0; outline: none; color: var(--ink); padding: .55rem 0; width: 100%; font-size: .95rem; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field-hint { font-size: .76rem; color: var(--ink-3); line-height: 1.5; }
.field-hint a { color: #ff9c99; text-decoration: underline; }
.field textarea { resize: vertical; font-family: inherit; }

.modal-error { background: rgba(224,50,47,.14); border: 1px solid rgba(224,50,47,.45); color: #ffb3b0; border-radius: 10px; padding: .6rem .8rem; font-size: .84rem; margin-bottom: .8rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.modal-actions .btn { flex: 1 1 160px; }
.modal-foot { font-size: .78rem; color: var(--ink-3); margin: 1rem 0 0; text-align: center; }

.qris-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.qris-badge { background: linear-gradient(135deg, #e0322f, #a81d1c); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: .72rem; padding: .3rem .7rem; border-radius: 7px; }
.qris-note { font-size: .76rem; color: var(--ink-3); }
.qris-box { display: grid; place-items: center; padding: 1rem; background: #fff; border-radius: var(--radius); margin-bottom: 1rem; min-height: 220px; }
.qris-box img, #support-qris-img { max-width: min(100%, 300px); max-height: 46vh; object-fit: contain; border-radius: 8px; }
.qris-empty { text-align: center; color: #333; padding: 1.4rem; }
.qris-empty-icon { font-size: 2.2rem; }
.qris-empty p { margin: .3rem 0; font-size: .86rem; }
.qris-empty .muted { color: #666 !important; }
.qris-contact { margin: .7rem 0 .2rem; border-color: #999; background: #f2f2f2; color: #222; }
.qris-contact:hover { background: #e4e4e4; border-color: #777; }
.qris-admin-note { font-size: .76rem !important; margin-top: .7rem !important; padding-top: .6rem; border-top: 1px dashed #ccc; }
.qris-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.qris-detail > div { display: flex; flex-direction: column; gap: .12rem; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.qris-detail span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.qris-detail strong { font-size: .92rem; }
.qris-instruction { font-size: .82rem; color: var(--ink-2); background: rgba(255,255,255,.035); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; padding: .75rem .9rem; }
.thanks-box { text-align: center; padding: 1.4rem .4rem; }
.thanks-icon { font-size: 2.6rem; }
.thanks-box h3 { margin: .5rem 0 .6rem; }
.thanks-box p { color: var(--ink-2); font-size: .9rem; }

/* -------------------------------- toast -------------------------------- */

.toast-stack { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1000; display: flex; flex-direction: column; gap: .55rem; max-width: min(92vw, 380px); }
.toast {
  display: flex; align-items: flex-start; gap: .65rem; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(20, 20, 26, .97); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: .87rem; animation: toastIn .35s var(--ease);
}
.toast.ok { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--red); }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
.toast-icon { font-size: 1.05rem; line-height: 1.3; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ------------------------------- footer -------------------------------- */

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.4)); position: relative; z-index: 1; }
.footer-inner {
  width: min(100% - 2.4rem, var(--max)); margin-inline: auto; padding: 3rem 0 2rem;
  display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 2.2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem; }
.footer-col a, .footer-col span.footer-static { color: var(--ink-2); font-size: .87rem; }
.footer-col a:hover { color: var(--red-bright); }
.footer-logo { height: 46px; width: auto; margin-bottom: .8rem; }
.footer-about-col p { color: var(--ink-3); font-size: .85rem; margin: 0; }
.footer-tagline { color: #ff9c99 !important; font-weight: 500; margin-top: .5rem !important; }
.footer-bottom {
  width: min(100% - 2.4rem, var(--max)); margin-inline: auto; padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; font-size: .78rem; color: var(--ink-3);
}

/* ----------------------------- static page ----------------------------- */

.static-page { max-width: 980px; }
.static-hero { margin-bottom: 2rem; }
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 1.2rem; margin-top: 2rem; position: relative; padding-left: .75rem; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 3px; background: var(--red); }
.prose a { color: #ff9c99; text-decoration: underline; }
.feature-list { padding-left: 1.1rem; }
.feature-list li { margin-bottom: .55rem; }
.prose-note { margin-top: 2rem; font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; }
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.stat-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: rgba(255,255,255,.03); display: flex; flex-direction: column; }
.stat-box strong { font-size: 1.7rem; font-weight: 800; }
.stat-box span { font-size: .76rem; color: var(--ink-3); letter-spacing: .06em; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: .2rem; }

/* ================================ ADMIN ================================ */

.admin-body { background: var(--bg); }
.admin-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100dvh; }

.admin-side {
  border-right: 1px solid var(--line); background: linear-gradient(180deg, #101017, #0a0a0f);
  padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: .7rem;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.admin-brand { margin-bottom: .1rem; }
.admin-brand .brand-logo { height: 40px; }
.admin-badge { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; margin-top: .6rem; }
.admin-link {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px;
  color: var(--ink-2); font-size: .88rem; font-weight: 500; background: none; border: 0; cursor: pointer;
  width: 100%; text-align: left; transition: background .2s, color .2s;
}
.admin-link:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.admin-link.active { background: rgba(224, 50, 47, .16); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.admin-link.danger:hover { background: rgba(224, 50, 47, .2); color: #ffb3b0; }
.admin-link-icon { width: 1.2rem; text-align: center; opacity: .85; }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.logout-form { margin: 0; }
.admin-who { font-size: .74rem; color: var(--ink-3); margin: .7rem 0 0; line-height: 1.5; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--line); background: rgba(14, 14, 19, .88); backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.admin-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.admin-top-actions { margin-left: auto; display: flex; gap: .5rem; }
.admin-hamburger { display: none; }
.admin-content { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.admin-crumbs { margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display: flex; flex-direction: column; gap: .25rem;
}
.stat-card.tone-ok { border-color: rgba(52, 211, 153, .3); }
.stat-card.tone-accent { border-color: rgba(224, 50, 47, .34); }
.stat-card.tone-warn { border-color: rgba(251, 191, 36, .34); }
.stat-label { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.stat-sub { font-size: .78rem; color: var(--ink-3); }

.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.2rem; align-items: start; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: rgba(255,255,255,.028); }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.admin-card-head h2 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.admin-card-head.divider { margin-top: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

.admin-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.admin-table th {
  text-align: left; padding: .7rem .85rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255,255,255,.025); }
.admin-table .thumb { width: 44px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; }
.admin-table.compact td, .admin-table.compact th { padding: .55rem .7rem; }
.cell-title { font-weight: 600; }
.cell-title:hover { color: var(--red-bright); }
.cell-sub { font-size: .74rem; color: var(--ink-3); }
.cell-message { max-width: 220px; color: var(--ink-2); font-size: .82rem; }
.th-actions { text-align: right; }
.td-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { margin: 0; display: inline; }
.inline-edit { display: flex; gap: .4rem; align-items: center; }
.inline-edit input { min-width: 120px; }
.inline-add { display: flex; gap: .5rem; }
.table-foot { font-size: .78rem; color: var(--ink-3); margin: 1rem 0 0; }
.tiny-featured { color: var(--red-bright); font-weight: 600; }

.status-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .55rem; border-radius: 7px; text-transform: uppercase; letter-spacing: .06em; }
.status-pill.published { background: rgba(52, 211, 153, .16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .34); }
.status-pill.draft { background: rgba(251, 191, 36, .14); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .32); }

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.activity-list li { display: grid; grid-template-columns: 10px 1fr; gap: .7rem; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .45rem; background: var(--warn); }
.activity-dot.ok { background: var(--ok); }
.activity-body { display: flex; flex-direction: column; font-size: .88rem; }
.activity-body small { color: var(--ink-3); font-size: .75rem; }

.bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 2fr) auto; gap: .8rem; align-items: center; margin-bottom: .6rem; font-size: .82rem; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.bar-track { height: 7px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.bar-fill.ok { background: linear-gradient(90deg, #10b981, var(--ok)); }
.bar-value { color: var(--ink-2); font-weight: 600; white-space: nowrap; }

.admin-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.quick-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; display: flex; flex-direction: column; gap: .2rem;
  background: rgba(255,255,255,.03); transition: transform .22s var(--ease), border-color .22s, background .22s;
}
.quick-card:hover { transform: translateY(-3px); border-color: rgba(224, 50, 47, .42); background: rgba(224, 50, 47, .1); }
.quick-card > span { font-size: 1.3rem; }
.quick-card strong { font-size: .95rem; }
.quick-card small { color: var(--ink-3); font-size: .78rem; }

/* ------------------------------- form film ----------------------------- */

.film-form { display: block; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 1.3rem; align-items: start; }
.form-main, .form-side { display: flex; flex-direction: column; gap: 1.3rem; }
.form-side .admin-card { margin: 0; }
.sticky-save { position: sticky; top: 84px; }
.sticky-save .btn { margin-bottom: .5rem; }

.genre-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.genre-check { position: relative; display: inline-flex; }
.genre-check input { position: absolute; opacity: 0; pointer-events: none; }
.genre-check span {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); font-size: .84rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.genre-check span:hover { background: rgba(255,255,255,.1); }
.genre-check input:checked + span { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.genre-check input:focus-visible + span { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.toggle-row { margin-bottom: 1.1rem; }
.switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--line-strong); position: relative; transition: background .25s; flex: 0 0 auto; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--red); border-color: var(--red); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-label { font-weight: 600; font-size: .9rem; }

.upload-box { display: flex; flex-direction: column; gap: .6rem; }
.upload-preview {
  border: 1px dashed var(--line-strong); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.03);
  aspect-ratio: 2 / 3; display: grid; place-items: center;
}
.upload-preview.small { aspect-ratio: 1 / 1; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview.small img { object-fit: contain; padding: .6rem; background: #fff; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--ink-3); text-align: center; padding: 1rem; }
.upload-empty span { font-size: 1.8rem; }
.check-row { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: var(--ink-2); cursor: pointer; }
.progress { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s; }
.video-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .83rem; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .85rem; }
.notice-error, .notice-ok {
  border-radius: 12px; padding: .85rem 1rem; font-size: .87rem; margin-bottom: 1.2rem;
}
.notice-error { background: rgba(224, 50, 47, .12); border: 1px solid rgba(224, 50, 47, .42); color: #ffb3b0; }
.notice-error ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice-ok { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .38); color: #6ee7b7; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.req { color: var(--red-bright); }
.field-row.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ------------------------------- auth ---------------------------------- */

.auth-body { display: grid; place-items: center; min-height: 100dvh; padding: 2rem 1rem; position: relative; }
.auth-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 420px at 18% 6%, rgba(224, 50, 47, .22), transparent 62%),
    radial-gradient(680px 460px at 88% 92%, rgba(124, 58, 237, .18), transparent 66%);
}
.auth-wrap { position: relative; z-index: 1; width: min(100%, 430px); display: flex; flex-direction: column; gap: 1.4rem; align-items: center; }
.auth-brand img { height: 76px; width: auto; }
.auth-card {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.9rem;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.4rem; }
.auth-sub { color: var(--ink-2); font-size: .87rem; margin-bottom: 1.3rem; }
.auth-foot { text-align: center; font-size: .82rem; margin: 1rem 0 0; }
.auth-foot a { color: var(--ink-3); }
.auth-foot a:hover { color: var(--red-bright); }
.password-wrap { position: relative; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: .4rem; opacity: .6; }
.pw-toggle:hover { opacity: 1; }

/* ============================== RESPONSIVE ============================== */

@media (max-width: 1100px) {
  .hero-content { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
}

@media (max-width: 980px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 300; transform: translateX(-102%);
    transition: transform .3s var(--ease); height: 100dvh;
  }
  .admin-side.open { transform: translateX(0); box-shadow: var(--shadow); }
  .admin-hamburger { display: grid; }
  .admin-content { padding: 1.2rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-save { position: static; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .main-nav, .header-search, .login-btn { display: none; }
  .hamburger { display: grid; }
  .brand-logo { height: 42px; }
  .site-header.scrolled .brand-logo { height: 36px; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: minmax(0, 1fr); padding: 2.4rem 0 3.2rem; gap: 1.3rem; }
  /* Poster naik ke atas teks (gaya banner mobile) supaya teks tetap jadi fokus bawah */
  .hero-poster-wrap { order: -1; max-width: 150px; }
  .hero-title { font-size: clamp(1.9rem, 7.6vw, 2.6rem); }
  .hero-synopsis { font-size: .92rem; -webkit-line-clamp: 3; }
  .hero-actions { gap: .55rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-btn { min-width: 0; }
  .hero-controls { bottom: .6rem; }
  .quick-cta { margin-left: 0; width: 100%; }
  .quick-cta .btn { width: 100%; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-poster { max-width: 230px; margin-inline: auto; }
  .detail-actions .btn { flex: 1 1 100%; }
  .movie-row { grid-auto-columns: minmax(152px, 1fr); }
  .movie-grid, .movie-grid-lg { grid-template-columns: repeat(auto-fill, minmax(154px, 1fr)); gap: 1.45rem 1.05rem; }
  .rank-list { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-bottom: 1.4rem; }
  .modal { padding: 1.4rem; border-radius: var(--radius); }
  .amount-other { grid-column: span 2; }
  .overlay-actions { flex-direction: column; }
  .about-grid, .qris-detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: min(100% - 1.6rem, var(--max)); }
  .header-inner { width: min(100% - 1.6rem, var(--max)); gap: .7rem; }
  .movie-grid, .movie-grid-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .9rem; }
  .movie-row { grid-auto-columns: minmax(142px, 1fr); gap: .95rem; }
  .movie-title { font-size: .88rem; }
  .poster-genre, .poster-rating { font-size: .64rem; padding: .22rem .45rem; }
  .movie-meta { font-size: .72rem; }
  .amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amount-other { grid-column: span 2; }
  .modal-backdrop { padding: .6rem; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 1.2rem); }
  .toast-stack { right: .6rem; left: .6rem; bottom: .6rem; max-width: none; }
  .footer-bottom { flex-direction: column; }
  .stat-value { font-size: 1.5rem; }
  .genre-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .tile-x { display: none; }
}

@media (prefers-reduced-motion: reduce) {

/* ====================== TAMBAHAN (revisi tahap uji) ====================== */

/* ------------------- animasi masuk (reveal on scroll) ------------------- */
.row-section, .admin-card, .stat-card, .genre-tile, .rank-tile, .cta-band, .movie-card {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.row-section.in-view, .admin-card.in-view, .stat-card.in-view, .genre-tile.in-view,
.rank-tile.in-view, .cta-band.in-view, .movie-card.in-view {
  opacity: 1; transform: none;
}
/* tanpa JS / reduced motion: selalu terlihat */
.no-js .row-section, .no-js .admin-card { opacity: 1; transform: none; }
.rank-tile.in-view:hover { transform: translateX(4px); }
.movie-card.in-view:hover { transform: translateY(-6px); }
.genre-tile.in-view:hover { transform: translateY(-4px); }

/* ------------------------ kategori chips di home ------------------------ */
.cat-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.cat-strip a {
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035); font-size: .84rem; font-weight: 500; color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.cat-strip a:hover { background: rgba(224, 50, 47, .16); border-color: rgba(224, 50, 47, .45); color: #fff; transform: translateY(-2px); }

/* ------------------------------- skeleton ------------------------------- */
.skeleton-grid { margin-top: .4rem; }
.hero-skeleton { min-height: clamp(420px, 62vh, 620px); display: grid; place-items: center; background: rgba(255,255,255,.03); }

/* -------------------------------- misc ---------------------------------- */
.dot { color: var(--ink-3); }
.side-item-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-table td .inline-edit input { max-width: 190px; }
#search-results[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.movie-row { scroll-padding-left: .2rem; }
.hero-content { will-change: transform; }

/* tombol yang benar-benar mudah ditekan di layar sentuh */
@media (hover: none) {
  /* Tanpa hover, overlay poster tidak bisa dibuka — jadi chip genre/rating tetap
     terlihat dan tombol dipindah ke baris permanen di bawah judul. */
  .poster-overlay { display: none; }
  .movie-card:hover { transform: none; }
  .movie-actions-touch { display: flex; }
  .movie-actions-touch .btn { min-height: 40px; font-size: .8rem; }
  .btn { min-height: 40px; }
}
