/* =====================================================================
   MamsFlix — design system
   Arah: iOS "Liquid Glass" (kaca cair yang membiaskan artwork) × Netflix.
   Kanvas hitam murni (OLED), satu warna merah merek, chrome berbahan kaca.
   ===================================================================== */

:root {
  --accent: #E50914;
  --accent-hi: #FF2A36;
  --accent-ink: #fff;
  --black: #000;
  --label: #fff;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .36);
  --label-4: rgba(235, 235, 245, .18);
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .16);
  --fill-3: rgba(118, 118, 128, .12);
  --sep: rgba(84, 84, 88, .55);
  --grouped: #1C1C1E;
  --grouped-2: #2C2C2E;
  --yellow: #FFD60A;
  --green: #30D158;
  --blue: #0A84FF;
  --orange: #FF9F0A;
  --red: #FF453A;

  --glass-bg: rgba(38, 38, 42, .42);
  --glass-bg-strong: rgba(30, 30, 34, .72);
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .22);
  --glass-blur: 18px;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --tab-h: 64px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", system-ui, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--label);
  font: 400 15px/1.45 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(229, 9, 20, .45); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografi (skala large-title iOS) ---------- */
.t-large { font: 700 clamp(28px, 4.2vw, 40px)/1.08 var(--font-display); letter-spacing: -.028em; margin: 0; }
.t-title1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -.024em; margin: 0; }
.t-title2 { font: 700 22px/1.2 var(--font-display); letter-spacing: -.02em; margin: 0; }
.t-title3 { font: 600 19px/1.25 var(--font-display); letter-spacing: -.018em; margin: 0; }
.t-headline { font: 600 17px/1.3 var(--font); letter-spacing: -.016em; }
.t-body { font: 400 17px/1.5 var(--font); letter-spacing: -.014em; }
.t-callout { font: 400 16px/1.45 var(--font); }
.t-sub { font: 400 15px/1.4 var(--font); color: var(--label-2); }
.t-foot { font: 400 13px/1.35 var(--font); color: var(--label-2); letter-spacing: -.004em; }
.t-cap { font: 500 12px/1.3 var(--font); color: var(--label-2); letter-spacing: 0; }
.muted { color: var(--label-2); }
.dim { color: var(--label-3); }
.num { font-variant-numeric: tabular-nums; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* =====================================================================
   LIQUID GLASS — bahan dasar semua chrome
   ===================================================================== */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 0 .5px rgba(255, 255, 255, .04),
    0 10px 36px -8px rgba(0, 0, 0, .55);
  isolation: isolate;
}
/* kilau spekular: pantulan cahaya di tepi atas */
.glass::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 42%);
  z-index: -1;
}
.glass-strong { background: var(--glass-bg-strong); }
.glass-clear { background: rgba(255, 255, 255, .06); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 28, 30, .94); }
}

/* =====================================================================
   TOMBOL
   ===================================================================== */
.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: var(--r-pill);
  font: 600 16px/1 var(--font);
  letter-spacing: -.012em;
  white-space: nowrap;
  transition: transform .25s var(--ease-spring), background-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 17px; }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255, 255, 255, .86); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px -6px rgba(229, 9, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-glass { color: #fff; }
.btn-glass:hover { background: rgba(70, 70, 76, .5); }
.btn-tinted { background: var(--fill); color: #fff; }
.btn-tinted:hover { background: rgba(120, 120, 128, .34); }
.btn-plain { color: var(--accent-hi); padding: 0 6px; height: auto; }
.btn-plain:hover { opacity: .8; }
.btn-danger { background: rgba(255, 69, 58, .16); color: var(--red); }
.btn.is-on { color: #fff; }
.btn.is-on svg { color: var(--accent-hi); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .count { font-weight: 500; color: var(--label-2); font-size: .86em; font-variant-numeric: tabular-nums; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  transition: transform .25s var(--ease-spring), background-color .2s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 18px; height: 18px; }

/* =====================================================================
   NAVIGASI ATAS (desktop) — kapsul kaca melayang
   ===================================================================== */
.topbar {
  position: fixed;
  top: 12px; right: var(--gutter); bottom: auto; left: var(--gutter); inset: 12px var(--gutter) auto;
  z-index: 60;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s;
}
.topbar > * { pointer-events: auto; }
.topbar.is-hidden { transform: translateY(-120%); opacity: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  height: 48px;
  padding: 0 16px 0 10px;
  border-radius: var(--r-pill);
}
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 2px 8px rgba(229, 9, 20, .55)); }
.brand-word {
  font: 800 21px/1 var(--font-display);
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 0%, #ffd9db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-word b { font-weight: 800; color: transparent; background: linear-gradient(180deg, #ff4b53, #e50914 70%); -webkit-background-clip: text; background-clip: text; }

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--r-pill);
  height: 52px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font: 600 15px/1 var(--font);
  color: rgba(255, 255, 255, .78);
  transition: color .2s, background-color .25s;
  white-space: nowrap;
}
.nav-link svg { width: 18px; height: 18px; opacity: .9; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 10px rgba(0, 0, 0, .25); }
.nav-link.is-active svg { color: var(--accent-hi); opacity: 1; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-tools { justify-self: end; display: flex; gap: 10px; align-items: center; }
.nav-tools .icon-btn { width: 48px; height: 48px; }
.account-btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px 0 6px; border-radius: var(--r-pill); font: 600 15px/1 var(--font); }
.account-btn .chev { width: 14px; height: 14px; opacity: .7; }
.avatar {
  --c: #0A84FF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  font: 700 14px/1 var(--font-round);
  color: #fff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  text-transform: uppercase;
}
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; }
.avatar.guest { background: var(--fill); }
.avatar.guest svg { width: 20px; height: 20px; color: var(--label-2); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* menu tarik-turun (gaya context menu iOS) */
.popover {
  position: fixed;
  z-index: 90;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: calc(100svh - 100px);
  overflow: auto;
  padding: 8px;
  border-radius: var(--r-lg);
  transform-origin: top center;
  animation: pop-in .32s var(--ease-spring);
  --glass-bg: rgba(36, 36, 40, .72);
}
@keyframes pop-in { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  font: 400 16px/1.25 var(--font);
  text-align: left;
  color: #fff;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.menu-item svg { width: 20px; height: 20px; flex: none; color: var(--label-2); }
.menu-item .grow { flex: 1; min-width: 0; }
.menu-item .meta { color: var(--label-3); font-size: 14px; }
.menu-item.is-active { color: #fff; }
.menu-item.is-active > svg:first-child { color: var(--accent-hi); }
.menu-item.danger, .menu-item.danger svg { color: var(--red); }
.menu-sep { height: 1px; margin: 6px 12px; background: var(--sep); }
.menu-title { padding: 10px 12px 6px; font: 600 13px/1.2 var(--font); color: var(--label-3); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.menu-grid .menu-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; font-weight: 600; }
.menu-grid .menu-item svg { color: var(--accent-hi); }

/* ---------- tab bar bawah (mobile) ---------- */
.tabbar {
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: none;
  gap: 10px;
  align-items: center;
  transition: transform .45s var(--ease);
}
.tabbar.is-hidden { transform: translateY(150%); }
.tabbar-main {
  flex: 1;
  display: flex;
  height: var(--tab-h);
  padding: 5px;
  border-radius: var(--r-pill);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--r-pill);
  font: 600 10.5px/1 var(--font);
  color: rgba(255, 255, 255, .7);
  letter-spacing: .005em;
  transition: color .2s, background-color .25s;
}
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--accent-hi); background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.tabbar-search { width: var(--tab-h); height: var(--tab-h); border-radius: 50%; display: grid; place-items: center; }
.tabbar-search svg { width: 26px; height: 26px; }
.tabbar-search.is-active { color: var(--accent-hi); }

@media (max-width: 860px) {
  .nav-capsule, .account-btn .account-name, .account-btn .chev { display: none; }
  .account-btn { padding: 0; width: 48px; justify-content: center; }
  .topbar { grid-template-columns: 1fr auto; top: 8px; right: 12px; bottom: auto; left: 12px; inset: 8px 12px auto; height: 56px; }
  .nav-tools .nav-search { display: none; }
  .tabbar { display: flex; }
  .brand { height: 44px; }
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.app { min-height: 100svh; }
.page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 80px; min-height: 70svh; }
.page.flush { padding-top: 0; }
.wrap { padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
@media (max-width: 860px) {
  .page { padding-top: 84px; padding-bottom: calc(var(--tab-h) + 48px + var(--sab, 0px)); }
}

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .t-large { flex: 1; min-width: 200px; }
.page-head p { margin: 8px 0 0; max-width: 62ch; }

/* ---------- route transition ---------- */
.view { animation: view-in .5s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

/* =====================================================================
   HERO (artwork penuh, Netflix-style) + karusel
   ===================================================================== */
.hero {
  position: relative;
  height: clamp(540px, 88svh, 880px);
  overflow: hidden;
  background: #000;
}
.hero.compact { height: clamp(460px, 74svh, 740px); }
.hero-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-art {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-art { transform: scale(1); }
.hero::after, .hero-slide::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  pointer-events: none;
}
.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 16%, rgba(0, 0, 0, 0) 46%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%);
}
.hero-body {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(140px, 17svh, 190px);
  max-width: 620px;
}
.hero.compact .hero-body { bottom: clamp(100px, 13svh, 140px); }
.hero-logo { max-width: min(440px, 78vw); max-height: 170px; width: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6)); margin-bottom: 18px; }
.hero-title { font: 800 clamp(34px, 5.6vw, 64px)/1 var(--font-display); letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-tagline { font: italic 400 15px/1.4 var(--font); color: rgba(255, 255, 255, .8); margin: 0 0 8px; }
.hero-overview { margin: 14px 0 22px; color: rgba(255, 255, 255, .84); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pager {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 96px;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-pill);
}
.hero-dot { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: width .5s var(--ease), background-color .3s; }
.hero-dot.is-active { width: 26px; background: #fff; }
.hero-nav { position: absolute; z-index: 3; right: var(--gutter); bottom: 90px; display: flex; gap: 8px; }
.hero.compact .hero-pager { bottom: 60px; }
.hero.compact .hero-nav { bottom: 54px; }
.hero-mute { position: absolute; z-index: 3; right: var(--gutter); bottom: 90px; }
@media (max-width: 860px) {
  .hero { height: clamp(560px, 86svh, 760px); }
  .hero-body { bottom: 124px; text-align: center; left: 16px; right: 16px; margin: auto; }
  .hero.compact .hero-body { bottom: 88px; }
  .hero-logo { margin-inline: auto; object-position: center bottom; max-height: 130px; }
  .hero-actions, .hero-body > .row-flex { justify-content: center; }
  .hero-overview { display: none; }
  .hero-pager { left: 50%; transform: translateX(-50%); bottom: 84px; }
  .hero.compact .hero-pager { bottom: 48px; }
  .hero-nav { display: none; }
  .hero-slide::after {
    background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .75) 26%, rgba(0, 0, 0, 0) 58%), linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 22%);
  }
}

/* meta baris (tahun, durasi, rating, dst.) */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 14px/1.3 var(--font); color: rgba(255, 255, 255, .8); }
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta .star { color: var(--yellow); }
.meta svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .hero .meta { justify-content: center; } }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font: 600 12px/1 var(--font);
  letter-spacing: .01em;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  white-space: nowrap;
}
.tag.outline { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.tag.green { background: rgba(48, 209, 88, .18); color: #4ee07a; }
.tag.red { background: rgba(229, 9, 20, .9); }
.tag.gold { background: rgba(255, 214, 10, .16); color: var(--yellow); }
.tag.blue { background: rgba(10, 132, 255, .2); color: #5eb0ff; }

/* Penanda sumber konten (sumber utama / LokLok) — dipakai di kartu dan fakta.
   Warna mengikuti aksen merek situs (--accent) yang diatur di panel admin. */
.ll-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font: 700 11px/1 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent-hi) 72%, #fff);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-hi) 42%, transparent);
  white-space: nowrap;
  vertical-align: middle;
}
.ll-badge svg { width: 12px; height: 12px; flex: none; }
.fact .ll-badge { height: 22px; padding: 0 8px; font-size: 10px; }

/* Pita sumber di kartu: menempel di tepi kiri-atas artwork supaya asal item
   langsung dikenali. Chip kualitas/season di kiri digeser turun agar tidak
   tertutup pita; chip di kanan (Serial) tetap di tempatnya. */
.card-art .src-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 3px 8px 3px 6px;
  border-radius: 0 0 6px 0;
  font: 800 9px/1 var(--font);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-hi));
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.card.has-src .card-badges .group { margin-top: 17px; }
/* Penanda sumber di hero detail mengikuti perataan judul (kiri), bukan tombol. */
.hero-body > .row-flex.hero-src { justify-content: flex-start; }

/* Kartu dari LokLok memakai warna merek LokLok (merah muda → ungu), bukan
   aksen situs, supaya asal judul langsung terlihat beda dari sumber utama. */
.card-art .src-ribbon.ll {
  color: #fff;
  background: linear-gradient(120deg, #FF4D9D, #A855F7);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45), 0 0 10px -2px rgba(255, 77, 157, .6);
}
/* Kartu LokLok sama persis ukurannya dengan kartu lain: tidak ada cincin di LUAR
   artwork (dulu box-shadow 1,5 px membuat kartu tampak lebih besar & menabrak
   tepi di grid HP). Penanda asal cukup lewat pita sumber di atas. */

/* =====================================================================
   SECTION + ROW (scroller horizontal)
   ===================================================================== */
.section { margin-top: 40px; }
/* baris di luar layar tidak di-render sampai mendekati viewport */
/* content-visibility dihapus: di HP gambar ikut di-render ulang saat masuk layar → berkedip ketika scroll. */
.section:first-child { margin-top: 0; }
.home-rows { position: relative; z-index: 2; margin-top: -64px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: var(--gutter);
  margin-bottom: 12px;
  min-height: 36px;
}
.section-head h2 { font: 700 21px/1.2 var(--font-display); letter-spacing: -.02em; margin: 0; }
.section-head .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font: 500 15px/1 var(--font); color: var(--label-2); }
.section-head .more:hover { color: #fff; }
.section-head .more svg { width: 16px; height: 16px; }
.section-head .picker { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); font: 700 21px/1 var(--font-display); letter-spacing: -.02em; margin-left: -12px; }
.section-head .picker svg { width: 16px; height: 16px; color: var(--label-2); }

.scroller {
  --card-w: clamp(132px, 14.6vw, 196px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-w);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 16px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller.wide { --card-w: clamp(240px, 26vw, 360px); }
.scroller.rank { --card-w: clamp(196px, 21vw, 290px); gap: 6px; }
.row-wrap { position: relative; }
.row-arrow {
  position: absolute;
  top: 0;
  bottom: 16px;
  z-index: 4;
  width: calc(var(--gutter) + 6px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s;
  color: #fff;
}
.row-arrow span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.row-arrow svg { width: 22px; height: 22px; }
.row-arrow.prev { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent); }
.row-arrow.next { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .7), transparent); }
.row-wrap:hover .row-arrow:not([disabled]) { opacity: 1; }
.row-arrow[disabled] { pointer-events: none; }
@media (hover: none) { .row-arrow { display: none; } }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(128px, 15vw, 188px), 1fr));
  gap: 22px 12px;
}
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* =====================================================================
   KARTU
   ===================================================================== */
.card { display: block; min-width: 0; -webkit-tap-highlight-color: transparent; }
.card-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(145deg, #1c1c1f, #101012);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08) inset;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.card-art img.loading { opacity: 0; }
.card-art::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); pointer-events: none; }
@media (hover: hover) {
  .card:hover .card-art { transform: translateY(-4px) scale(1.035); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .16); }
}
.card:active .card-art { transform: scale(.97); }
.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; justify-content: space-between; align-items: flex-start; }
.card-badges .group { display: flex; gap: 4px; }
.chip-glass {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  font: 700 11px/1 var(--font);
  letter-spacing: .01em;
  color: #fff;
  background: rgba(20, 20, 22, .66);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.chip-glass.red { background: rgba(229, 9, 20, .82); }
.chip-glass svg { width: 11px; height: 11px; }
.chip-glass .star { color: var(--yellow); }
.card-foot { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; gap: 4px; }
.card-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.card-progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
/* Tinggi judul & sub dikunci agar SEMUA kartu sama tinggi. Kartu sumber kedua
   sering tanpa tahun/runtime (baris sub kosong), sehingga tanpa kunci ini kartu
   pendek menyisakan celah di bawahnya dan grid terlihat renggang/tidak rata. */
.card-title { margin-top: 9px; font: 600 14px/1.3 var(--font); letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.card-sub { margin-top: 2px; font: 400 13px/1.3 var(--font); color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.card-x { position: absolute; top: 6px; right: 6px; z-index: 2; opacity: 0; transition: opacity .2s; }
.card:hover .card-x, .card:focus-within .card-x { opacity: 1; }
@media (hover: none) { .card-x { opacity: 1; } }

/* kartu landscape (episode, lanjut nonton, koleksi) */
.card.landscape .card-art { aspect-ratio: 16 / 9; border-radius: var(--r-sm); }
.card.landscape .card-art::before { content: ""; position: absolute; top: 40%; right: 0; bottom: 0; left: 0; inset: 40% 0 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); z-index: 1; pointer-events: none; }
.card.landscape .card-badges, .card.landscape .card-foot, .card.landscape .card-progress { z-index: 2; }
.card.landscape .play-hint { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.card.landscape .play-hint svg { width: 20px; height: 20px; }
.card.landscape:hover .play-hint { opacity: 1; transform: none; }
.card.is-current .card-art { box-shadow: 0 0 0 2px var(--accent), 0 0 24px -4px rgba(229, 9, 20, .6); }
.card.is-current .card-title { color: var(--accent-hi); }
.card .card-desc { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--label-3); }
.card.disabled { opacity: .5; pointer-events: none; }

/* kartu peringkat ala Netflix: angka raksasa bergaris */
.rank-card { display: grid; grid-template-columns: 46% 1fr; align-items: end; }
.rank-card .rank-num {
  font: 900 clamp(110px, 12vw, 170px)/.78 var(--font-display);
  letter-spacing: -.08em;
  color: #000;
  -webkit-text-stroke: 3px rgba(255, 255, 255, .55);
  paint-order: stroke fill;
  text-align: right;
  margin-right: -12px;
  user-select: none;
  transition: -webkit-text-stroke-color .3s;
}
.rank-card:hover .rank-num { -webkit-text-stroke-color: var(--accent-hi); }
.rank-card .card { position: relative; z-index: 1; }
.rank-card .card-title, .rank-card .card-sub { display: none; }

/* kartu koleksi (backdrop besar) */
.collection-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card .cc-body { position: absolute; top: auto; right: 0; bottom: 0; left: 0; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .9), transparent); }
.collection-card h3 { margin: 0; font: 700 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.collection-card p { margin: 4px 0 0; font-size: 13px; color: var(--label-2); }

/* tile genre/negara/network */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile {
  --c: #2C2C2E;
  position: relative;
  min-height: 92px;
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 60%), #141416;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 14px 30px -12px color-mix(in srgb, var(--c) 60%, #000); }
.tile b { font: 700 18px/1.15 var(--font-display); letter-spacing: -.02em; }
.tile span { font-size: 13px; color: var(--label-2); margin-top: 3px; }
.tile .tile-icon { position: absolute; top: 14px; right: 14px; font: 800 28px/1 var(--font-display); color: rgba(255, 255, 255, .2); letter-spacing: -.04em; }
.tile-grid.years { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.tile-grid.years .tile { min-height: 70px; align-items: center; justify-content: center; }
.tile-grid.years .tile b { font: 700 24px/1 var(--font-round); font-variant-numeric: tabular-nums; }

/* =====================================================================
   SEGMENTED CONTROL & CHIP
   ===================================================================== */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--fill-2);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06);
  gap: 2px;
}
.segmented button, .segmented a {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font: 600 13.5px/32px var(--font);
  color: var(--label-2);
  transition: color .2s, background-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.segmented .is-active { color: #fff; background: rgba(120, 120, 128, .42); box-shadow: 0 3px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font: 500 14px/1 var(--font);
  background: var(--fill-2);
  color: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--fill); }
.chip.is-active { background: #fff; color: #000; }
.chip svg { width: 15px; height: 15px; }
.chip .x { width: 14px; height: 14px; opacity: .6; }

/* =====================================================================
   DETAIL (film / serial / episode)
   ===================================================================== */
.detail-hero { height: clamp(560px, 84svh, 860px); }
.detail-hero .hero-body { max-width: 720px; bottom: 44px; }
.detail-play {
  position: absolute;
  z-index: 3;
  top: 0; right: 0; bottom: 26%; left: 0; inset: 0 0 26%;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease-spring);
  --glass-bg: rgba(255, 255, 255, .14);
}
.detail-play svg { width: 34px; height: 34px; margin-left: 4px; }
.detail-play:hover { transform: scale(1.08); }
.detail-play:active { transform: scale(.94); }
.genre-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; font: 500 15px/1.3 var(--font); }
.genre-links a { color: rgba(255, 255, 255, .86); }
.genre-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 12px; }
.detail-body .overview { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 68ch; margin: 0; }
.facts { border-radius: var(--r-lg); padding: 6px 0; background: var(--grouped); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: 14.5px; }
.fact + .fact { box-shadow: inset 16px 0 0 var(--grouped), inset 0 .5px 0 var(--sep); }
.fact span { color: var(--label-2); }
.fact b { font-weight: 500; text-align: right; }
.fact a:hover { color: var(--accent-hi); }
.companies { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 24px; }
.companies img { height: 26px; width: auto; max-width: 110px; object-fit: contain; filter: brightness(0) invert(1); opacity: .72; }
@media (max-width: 980px) { .detail-body { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 860px) {
  .detail-hero { height: auto; min-height: 0; overflow: visible; }
  .detail-hero .hero-slide { position: relative; opacity: 1; visibility: visible; padding-top: min(52svh, 420px); }
  .detail-hero .hero-art { height: min(64svh, 520px); bottom: auto; }
  .detail-hero .hero-slide::after { top: 0; right: 0; bottom: auto; left: 0; inset: 0 0 auto; height: min(64svh, 520px); background: linear-gradient(0deg, #000 3%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .05) 70%, rgba(0, 0, 0, .55) 100%); }
  .detail-hero .hero-body { position: relative; bottom: auto; left: 0; right: 0; padding: 0 16px; margin: -40px 0 0; text-align: left; max-width: none; }
  .detail-hero .hero-logo { margin-inline: 0; object-position: left bottom; max-height: 110px; }
  .detail-hero .meta { justify-content: flex-start; }
  .detail-hero .hero-overview { display: -webkit-box !important; font-size: 15px; }
  .detail-play { top: auto; right: auto; bottom: auto; left: auto; inset: auto; left: 50%; top: calc(min(64svh, 520px) / 2 - 36px); width: 72px; height: 72px; margin: 0 0 0 -36px; }
  .action-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .action-bar::-webkit-scrollbar { display: none; }
  .action-bar .btn { --h: 40px; padding: 0 14px; font-size: 14px; }
  .action-bar .btn .lbl-long { display: none; }
}

.ep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ep-head h2 { flex: 1; }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; max-width: 720px; }
.ep-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--grouped); min-width: 0; }
.ep-nav a:hover { background: var(--grouped-2); }
.ep-nav a.next { justify-content: flex-end; text-align: right; }
.ep-nav small { display: block; font-size: 12px; color: var(--label-3); }
.ep-nav b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-nav svg { width: 18px; height: 18px; flex: none; color: var(--label-2); }
.ep-nav .grow { min-width: 0; }

/* pemeran */
.cast-row { --card-w: 112px; }
.person { text-align: center; display: block; }
.person .ph { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--grouped-2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); display: grid; place-items: center; transition: transform .35s var(--ease-spring); }
.person:hover .ph { transform: scale(1.05); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .ph svg { width: 40px; height: 40px; color: var(--label-3); }
.person b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.person span { display: block; font-size: 12.5px; color: var(--label-2); margin-top: 2px; line-height: 1.25; }

/* galeri */
.gallery { --card-w: clamp(260px, 30vw, 420px); }
.gallery img { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: var(--r-sm); background: #111; cursor: zoom-in; }

/* =====================================================================
   SHEET / MODAL (bottom sheet di mobile, kartu tengah di desktop)
   ===================================================================== */
.scrim {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in .3s var(--ease);
}
.scrim.closing { animation: fade-out .25s var(--ease) forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet {
  width: min(560px, 100%);
  max-height: min(86svh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  animation: sheet-in .5s var(--ease);
  --glass-bg: rgba(30, 30, 34, .78);
}
.sheet.wide { width: min(820px, 100%); }
.scrim.closing .sheet { animation: sheet-out .3s var(--ease) forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-grabber { display: none; width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px 22px; flex: none; }
.sheet-head h2 { flex: 1; font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; margin: 0; }
.sheet-body { padding: 4px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); flex: none; box-shadow: inset 0 .5px 0 var(--sep); }
.sheet-section + .sheet-section { margin-top: 22px; }
.sheet-section h3 { font: 600 15px/1.2 var(--font); margin: 0 0 10px; color: var(--label-2); display: flex; align-items: center; gap: 6px; }
.sheet-section h3 svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .scrim { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; max-height: 92svh; border-radius: 28px 28px 0 0; border-bottom: 0; }
  .sheet-grabber { display: block; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* =====================================================================
   FORM & LIST (grouped inset ala Settings iOS)
   ===================================================================== */
.group { border-radius: var(--r-lg); background: var(--grouped); overflow: hidden; }
.group + .group { margin-top: 26px; }
.group-title { font: 400 13px/1.2 var(--font); color: var(--label-2); margin: 26px 16px 8px; }
.group-title:first-child { margin-top: 0; }
.group-note { font: 400 13px/1.35 var(--font); color: var(--label-3); margin: 8px 16px 0; }
.cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 16px;
  position: relative;
  width: 100%;
  text-align: left;
}
.cell + .cell::before { content: ""; position: absolute; top: 0; right: 0; left: 56px; height: .5px; background: var(--sep); }
.cell.no-icon + .cell::before, .cell.no-icon + .cell.no-icon::before { left: 16px; }
a.cell:hover, button.cell:hover { background: rgba(255, 255, 255, .04); }
.cell .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--c, #3A3A3C); }
.cell .ic svg { width: 18px; height: 18px; color: #fff; }
.cell .grow { flex: 1; min-width: 0; }
.cell .grow small { display: block; color: var(--label-2); font-size: 13px; margin-top: 2px; }
.cell .val { color: var(--label-2); font-size: 15px; text-align: right; }
.cell > svg.go { width: 16px; height: 16px; color: var(--label-3); }
.cell.danger { color: var(--red); }

.field { display: block; }
.field + .field { margin-top: 14px; }
.field > span { display: block; font: 500 13px/1.2 var(--font); color: var(--label-2); margin: 0 4px 7px; }
.input, .select, .textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  background: var(--fill-3);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08);
  font-size: 16px;
  outline: none;
  transition: box-shadow .2s, background-color .2s;
}
.textarea { height: auto; min-height: 96px; padding: 13px 16px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { background: rgba(118, 118, 128, .2); box-shadow: inset 0 0 0 1.5px rgba(10, 132, 255, .9); }
.input::placeholder, .textarea::placeholder { color: var(--label-3); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.form-error { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 10px; }
.form-ok { color: var(--green); font-size: 14px; margin-top: 10px; }

/* toggle iOS */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 16px; background: rgba(120, 120, 128, .32); transition: background-color .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .3s var(--ease-spring); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }

/* search */
.searchbar { position: relative; }
.searchbar svg.lead { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--label-2); pointer-events: none; }
.searchbar .input { height: 52px; padding-left: 46px; border-radius: var(--r-pill); font-size: 17px; }
.searchbar .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   AUTH
   ===================================================================== */
.auth-page { min-height: 100svh; display: grid; place-items: center; padding: 100px 16px 60px; position: relative; overflow: hidden; }
.auth-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 8px; transform: rotate(-8deg) scale(1.3); opacity: .38; pointer-events: none; }
.auth-bg img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; }
.auth-page::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: radial-gradient(60% 60% at 50% 45%, rgba(0, 0, 0, .25), #000 85%); pointer-events: none; z-index: 1; }
.auth-card { position: relative; z-index: 2; width: min(420px, 100%); padding: 30px 26px 26px; border-radius: 32px; --glass-bg: rgba(28, 28, 32, .62); }
.auth-card .brand-mark { width: 52px; height: 52px; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; }
.auth-card .sub { text-align: center; margin: 8px 0 24px; }
.auth-card .btn { width: 100%; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--label-2); }
.auth-alt a { color: var(--accent-hi); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--label-3); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: .5px; background: var(--sep); }

/* =====================================================================
   GUEST / PROMO BANNER
   ===================================================================== */
.benefit-card { margin: 0 var(--gutter); padding: 22px; border-radius: var(--r-xl); display: grid; grid-template-columns: 1.1fr 2fr; gap: 24px; align-items: center; --glass-bg: rgba(40, 18, 20, .45); }
.benefit-card h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--font-display); letter-spacing: -.02em; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { display: flex; gap: 12px; }
.benefit .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(229, 9, 20, .18); flex: none; }
.benefit .ic svg { width: 20px; height: 20px; color: var(--accent-hi); }
.benefit b { display: block; font-size: 14.5px; }
.benefit span { display: block; font-size: 13px; color: var(--label-2); margin-top: 2px; }
.benefit-card .cta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 980px) { .benefit-card { grid-template-columns: 1fr; } .benefits { grid-template-columns: 1fr; } }

.announce {
  --a1: #6d040b; --a2: #c1121c; --ic: #ff4d57;
  position: relative; z-index: 61; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 8px 52px; font-size: 14px; line-height: 1.35; text-align: center; color: #fff;
  background: linear-gradient(100deg, var(--a1) 0%, var(--a2) 50%, var(--a1) 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08), 0 6px 24px -12px rgba(0,0,0,.6);
  animation: ann-in .55s cubic-bezier(.2,.9,.25,1) both;
}
.announce.promo { --a1: #2b0a4d; --a2: #a1129a; --ic: #ff7ad9; background: linear-gradient(100deg, #2b0a4d 0%, #a1129a 45%, #c1121c 100%); }
.announce.warn { --a1: #4a2c00; --a2: #a86a00; --ic: #ffc23d; }
/* Kilau tipis yang lewat sesekali — menarik mata tanpa mengganggu */
.announce::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-100%);
  animation: ann-shine 7s ease-in-out 1.2s infinite; }
.announce::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 140% at 50% -40%, rgba(255,255,255,.18), transparent 60%); }
.announce-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.14); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ic) 55%, transparent); animation: ann-pulse 2.8s ease-out 0.6s infinite; }
.announce-ic svg { width: 16px; height: 16px; }
.announce-text { min-width: 0; max-width: 860px; font-weight: 500; text-wrap: balance; }
.announce-link { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); transition: background .2s, transform .2s; }
.announce-link:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.announce-link svg { width: 14px; height: 14px; }
.announce .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; color: rgba(255,255,255,.85); }
.announce .icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.announce.is-closing { animation: ann-out .32s ease-in forwards; }
@keyframes ann-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes ann-out { to { opacity: 0; transform: translateY(-100%); margin-bottom: calc(-1 * var(--ann-h, 46px)); } }
@keyframes ann-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ann-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ic) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (max-width: 600px) {
  .announce { justify-content: flex-start; text-align: left; gap: 10px; padding: 8px 44px 8px 12px; font-size: 13px; }
  .announce-link { height: 26px; padding: 0 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .announce, .announce::before, .announce-ic { animation: none; } }
/* Bilah atas turun setinggi pengumuman (tinggi diukur JS → --ann-h) */
.announce + .app .topbar { top: calc(var(--ann-h, 46px) + 12px); }

/* =====================================================================
   TOAST (gaya notifikasi Dynamic Island)
   ===================================================================== */
.toasts { position: fixed; z-index: 200; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: var(--r-pill); font: 500 14.5px/1.3 var(--font); pointer-events: auto; animation: toast-in .5s var(--ease-spring); --glass-bg: rgba(28, 28, 30, .82); }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.ok svg { color: var(--green); }
.toast.err svg { color: var(--red); }
.toast .btn-plain { margin-left: 6px; font-size: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* =====================================================================
   STATE: skeleton, empty, error, pager
   ===================================================================== */
.skel { background: #1a1a1d; animation: skel-pulse 1.1s ease-in-out infinite alternate; border-radius: var(--r-md); }
@keyframes skel-pulse { from { opacity: .55; } to { opacity: 1; } }
.skel-card { aspect-ratio: 2/3; }
.skel-line { height: 14px; margin-top: 10px; border-radius: 6px; }
.empty { text-align: center; padding: 70px 20px; max-width: 440px; margin: 0 auto; }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--fill-2); }
.empty .ic svg { width: 30px; height: 30px; color: var(--label-2); }
.empty h3 { font: 700 20px/1.2 var(--font-display); margin: 0 0 6px; letter-spacing: -.02em; }
.empty p { color: var(--label-2); margin: 0 0 18px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 34px; }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; min-height: 50svh; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding: 56px var(--gutter) calc(40px + env(safe-area-inset-bottom)); margin-top: 40px; box-shadow: inset 0 .5px 0 var(--sep); color: var(--label-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer h4 { margin: 0 0 12px; color: #fff; font: 600 14px/1.2 var(--font); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer .legal { margin-top: 32px; font-size: 12.5px; color: var(--label-3); max-width: 80ch; line-height: 1.5; }
@media (max-width: 860px) { .footer { padding-bottom: calc(var(--tab-h) + 40px); } .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* =====================================================================
   KOMENTAR
   ===================================================================== */
.comments { max-width: 820px; }
.composer { display: flex; gap: 12px; align-items: flex-start; }
.composer .grow { flex: 1; }
.composer .tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rating-pick { display: inline-flex; gap: 2px; }
.rating-pick button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--label-4); }
.rating-pick button svg { width: 18px; height: 18px; }
.rating-pick button.on { color: var(--yellow); }
.comment { display: flex; gap: 12px; padding: 16px 0; }
.comment + .comment { box-shadow: inset 0 .5px 0 var(--sep); }
.comment .grow { flex: 1; min-width: 0; }
.comment .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment .who b { font-weight: 600; }
.comment .who time { color: var(--label-3); font-size: 13px; }
.comment p { margin: 5px 0 8px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.comment .spoiler { filter: blur(6px); cursor: pointer; transition: filter .3s; user-select: none; }
.comment .spoiler.shown { filter: none; user-select: auto; }
.comment .acts { display: flex; gap: 4px; align-items: center; color: var(--label-2); font-size: 13px; }
.comment .acts button { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px; border-radius: 15px; }
.comment .acts button:hover { background: var(--fill-3); color: #fff; }
.comment .acts button.on { color: var(--accent-hi); }
.comment .acts svg { width: 16px; height: 16px; }
.replies { margin-top: 4px; padding-left: 14px; box-shadow: inset 2px 0 0 var(--fill-2); }
.replies .comment { padding: 10px 0; }

/* =====================================================================
   SHORTS (feed vertikal)
   ===================================================================== */
.shorts { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 70; background: #000; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.short { position: relative; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; }
.short-frame { position: relative; height: min(100svh - 32px, 860px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 24px; overflow: hidden; background: #0d0d0f; }
.short-frame video, .short-frame img.poster { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short-frame video.contain { object-fit: contain; }
.short-info { position: absolute; z-index: 2; left: 0; right: 70px; bottom: 0; padding: 60px 16px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.short-info .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.short-info p { margin: 8px 0; font-size: 14.5px; }
.short-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; margin-top: 4px; }
.short-tag img { width: 26px; height: 38px; object-fit: cover; border-radius: 5px; }
.short-rail { position: absolute; z-index: 2; right: 10px; bottom: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.short-rail button, .short-rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 12px/1 var(--font); }
.short-rail .icon-btn { width: 48px; height: 48px; }
.short-rail .on svg { color: var(--accent-hi); fill: var(--accent-hi); }
.short-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.short-progress i { display: block; height: 100%; width: 0; background: #fff; }
.short-spoiler { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); background: rgba(0, 0, 0, .4); }
.shorts-close { position: fixed; z-index: 72; top: 16px; left: 16px; }
.shorts-nav { position: fixed; z-index: 72; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.short-tap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1; }
.short-state { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.short-state.show { opacity: 1; }
.short-state svg { width: 32px; height: 32px; }
@media (max-width: 640px) { .short-frame { height: 100svh; border-radius: 0; width: 100vw; } .shorts-nav { display: none; } }

/* =====================================================================
   NONTON BARENG
   ===================================================================== */
.party-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 0 var(--gutter); }
.party-chat { display: flex; flex-direction: column; height: min(70svh, 640px); border-radius: var(--r-lg); overflow: hidden; background: var(--grouped); }
.party-chat .head { padding: 14px 16px; display: flex; align-items: center; gap: 10px; box-shadow: inset 0 -.5px 0 var(--sep); }
.party-chat .log { flex: 1; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.party-chat .msg { font-size: 14px; line-height: 1.4; }
.party-chat .msg b { font-weight: 600; margin-right: 6px; }
.party-chat .msg.sys { color: var(--label-3); font-size: 13px; text-align: center; }
.party-chat form { display: flex; gap: 8px; padding: 10px; box-shadow: inset 0 .5px 0 var(--sep); }
.party-chat .input { height: 42px; border-radius: 21px; }
.people { display: flex; gap: -6px; }
.people .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--grouped); }
.room-card { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px; border-radius: var(--r-lg); background: var(--grouped); align-items: center; }
.room-card:hover { background: var(--grouped-2); }
.room-card img { aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; width: 100%; background: #111; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 69, 58, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 69, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); } }
@media (max-width: 980px) { .party-layout { grid-template-columns: 1fr; } .party-chat { height: 420px; } }

/* =====================================================================
   LEADERBOARD / REQUEST / PLANS / CHANGELOG
   ===================================================================== */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; max-width: 720px; margin: 0 auto 28px; }
.podium .p { text-align: center; padding: 18px 10px; border-radius: var(--r-lg); background: var(--grouped); }
.podium .p.first { padding-top: 30px; background: linear-gradient(180deg, rgba(255, 214, 10, .16), var(--grouped) 70%); }
.podium .p .avatar { margin: 0 auto 10px; }
.podium .medal { font: 800 30px/1 var(--font-round); color: var(--label-3); margin-bottom: 8px; }
.podium .first .medal { color: var(--yellow); }
.lb-row { display: grid; grid-template-columns: 40px 36px 1fr auto; gap: 12px; align-items: center; }
.lb-row .rank { font: 700 16px/1 var(--font-round); color: var(--label-2); text-align: center; font-variant-numeric: tabular-nums; }
.req-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; }
.req-card img, .req-card .ph { width: 64px; aspect-ratio: 2/3; border-radius: 8px; object-fit: cover; background: var(--grouped-2); }
.vote-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 8px 10px; border-radius: 14px; background: var(--fill-3); font: 700 15px/1 var(--font-round); font-variant-numeric: tabular-nums; }
.vote-btn svg { width: 18px; height: 18px; }
.vote-btn.on { background: rgba(229, 9, 20, .2); color: var(--accent-hi); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { padding: 26px; border-radius: var(--r-xl); background: var(--grouped); display: flex; flex-direction: column; }
.plan.featured { --glass-bg: rgba(80, 10, 16, .42); background: var(--glass-bg); }
.plan h3 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.plan .price { font: 800 36px/1.1 var(--font-display); letter-spacing: -.03em; margin: 12px 0 4px; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 26px 0; }
.release + .release { box-shadow: inset 0 .5px 0 var(--sep); }
.release h3 { margin: 0 0 4px; font: 700 24px/1.1 var(--font-round); }
.release ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.release li b { display: block; }
.release li span { color: var(--label-2); font-size: 14.5px; }
@media (max-width: 720px) { .release { grid-template-columns: 1fr; gap: 10px; } }

/* app page */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 24px 60px -20px rgba(229, 9, 20, .6); }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font: 700 14px/1 var(--font-round); flex: none; }

/* profile */
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.tabs-line { display: flex; gap: 6px; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }

/* admin */
.admin-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }
.admin-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; }
.admin-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-weight: 500; color: var(--label-2); }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-nav a.is-active, .admin-nav a:hover { background: var(--fill-3); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--grouped); }
.stat span { font-size: 13px; color: var(--label-2); }
.stat b { display: block; font: 700 22px/1.2 var(--font-display); margin-top: 4px; word-break: break-all; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--label-3); margin-right: 6px; vertical-align: 1px; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-dot.bad { background: var(--red); box-shadow: 0 0 10px var(--red); }
pre.code { background: #0c0c0e; border-radius: 12px; padding: 14px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; max-height: 340px; color: #d1d1d6; white-space: pre-wrap; word-break: break-all; }
.route-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.route-table td { padding: 8px 10px; box-shadow: inset 0 -.5px 0 var(--sep); vertical-align: middle; }
.route-table td:first-child { color: var(--label-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.route-table .input { height: 38px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; border-radius: 10px; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-art { transform: none !important; }
}

/* =====================================================================
   PERFORMA
   ===================================================================== */
/* Elemen kecil di dalam kartu/baris tidak perlu blur latar: warnanya cukup solid. */
.card .glass, .row-arrow .glass, .hero-pager.glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(24, 24, 28, .72);
}
.card .glass::before, .row-arrow .glass::before { display: none; }
.scroller { contain: layout paint; -webkit-overflow-scrolling: touch; }
.card-art { contain: paint; }
.hero-art { backface-visibility: hidden; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis .sheet-body, .lenis .popover { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- MODE RINGAN (html.lite) — HP spek rendah / hemat data ----------
   Diaktifkan otomatis oleh skrip di index.html, atau manual di Pengaturan. */
html.lite .glass,
html.lite .scrim,
html.lite .short-spoiler,
html.lite .mfp-subs .cue {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.lite .glass { background: rgba(30, 30, 34, .94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 .5px rgba(255, 255, 255, .1); }
html.lite .glass::before { display: none; }
html.lite .scrim { background: rgba(0, 0, 0, .78); }
html.lite .short-spoiler { background: rgba(0, 0, 0, .92); }
html.lite .detail-play.glass, html.lite .mfp-btn.glass, html.lite .hero-actions .glass { background: rgba(0, 0, 0, .55); }
html.lite .hero-art { transform: none !important; transition: none !important; }
html.lite .hero-slide { transition: opacity .35s linear, visibility .35s; }
html.lite .hero-logo, html.lite .brand-mark { filter: none; }
html.lite .hero-title { text-shadow: none; }
html.lite .view, html.lite .popover, html.lite .sheet, html.lite .toast { animation-duration: .18s; }
html.lite .view { animation: none; }
html.lite .skel { animation: none; opacity: .8; }
html.lite .live-dot { animation: none; }
html.lite .btn-accent { box-shadow: none; }
html.lite .card-art, html.lite .tile, html.lite .person .ph, html.lite .collection-card img { transition: none; }
html.lite .card:hover .card-art, html.lite .tile:hover { transform: none; box-shadow: none; }
html.lite .auth-bg { display: none; }
html.lite .topbar, html.lite .tabbar { transition-duration: .25s; }

/* =====================================================================
   PRODUKSI: auth, admin, rapikan duplikasi
   ===================================================================== */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--label-2); }
.pw-toggle:hover { color: #fff; }
.field-hint { display: block; margin: 6px 4px 0; font-size: 12.5px; color: var(--label-3); }
.field + .field-hint { margin-bottom: 4px; }
.loader.sm { width: 20px; height: 20px; border-width: 2.5px; }
.tag svg { width: 12px; height: 12px; flex: none; }
.auth-card .t-foot a { color: var(--accent-hi); }
.admin-user { flex-wrap: wrap; }
.admin-user .grow small { word-break: break-all; }
.admin-user-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-user-acts .select { width: auto; height: 36px; font-size: 14px; }
@media (max-width: 860px) {
  /* Tab bar sudah punya tab Akun — tombol akun di atas tidak perlu dobel. */
  .nav-tools .account-btn { display: none; }
  .admin-user-acts { width: 100%; padding-left: 50px; }
}
.plans { max-width: 1180px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Tombol "Tonton" sudah ada di bawah judul → lingkaran play di atas artwork tidak perlu dobel. */
.detail-hero:has(.hero-actions .btn-play) .detail-play { display: none; }
@media (max-width: 640px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn-lg { --h: 48px; padding: 0 18px; font-size: 16px; }
}

/* =====================================================================
   POLISH v3 — scrollbar Windows, overflow baris, responsive, detail kecil
   ===================================================================== */
/* Scrollbar tipis & gelap (Windows/Linux menampilkan scrollbar klasik yang tebal & terang). */
html { scrollbar-color: rgba(255, 255, 255, .22) #000; scrollbar-width: thin; }
.sheet-body, .popover, .party-chat .log, pre.code, .mfp-menu, .chips[style*="overflow"] { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }
::-webkit-scrollbar-corner { background: transparent; }

/* Baris horizontal: tidak boleh punya scroll vertikal (angka peringkat & efek hover
   sempat memunculkan scrollbar vertikal di Windows). Padding memberi ruang efek hover. */
.scroller, .chips.scroll, .action-bar, .tabs-line, .admin-nav, .segmented { overflow-y: hidden; }
.scroller { padding-top: 8px; padding-bottom: 18px; margin-top: -4px; }
.chips.scroll::-webkit-scrollbar, .action-bar::-webkit-scrollbar, .tabs-line::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { display: none; }
.admin-nav { scrollbar-width: none; }
.rank-card .rank-num { overflow: hidden; }
.card { outline-offset: 4px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-art { box-shadow: 0 0 0 2px var(--blue); }

/* Judul section + kontrol (segmented) rapi di layar sempit. */
@media (max-width: 640px) {
  .section { margin-top: 30px; }
  .section-head { flex-wrap: wrap; row-gap: 8px; margin-bottom: 8px; }
  .section-head h2, .section-head .picker { font-size: 19px; }
  .section-head .segmented { margin-left: 0 !important; order: 3; width: 100%; }
  .section-head .segmented button { flex: 1; }
  .scroller { gap: 10px; --card-w: clamp(118px, 31vw, 150px); }
  .scroller.wide { --card-w: min(78vw, 300px); }
  .scroller.rank { --card-w: clamp(170px, 46vw, 220px); }
  .card-title { font-size: 13.5px; }
  .card-sub { font-size: 12.5px; }
  .chip-glass { height: 20px; font-size: 10.5px; padding: 0 6px; }
  /* Grid poster 3 kolom di HP (2 kolom terlalu besar & boros scroll). */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
  .grid.wide { grid-template-columns: 1fr; }
  .grid .card-badges .chip-glass:not(:first-child), .grid .card-foot .chip-glass + .chip-glass { display: none; }
  .page-head { margin-bottom: 18px; }
  .t-large { font-size: 28px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Panel rating: bintang turun ke baris sendiri di layar sempit. */
.rating-panel .cell { flex-wrap: wrap; row-gap: 10px; }
.rating-pick button { border-radius: 8px; transition: color .15s, transform .15s var(--ease-spring); }
.rating-pick button:hover { transform: scale(1.15); }
.rating-pick:hover button { color: var(--yellow); }
.rating-pick button:hover ~ button { color: var(--label-4); }
@media (max-width: 640px) {
  .rating-panel .rating-pick { width: 100%; justify-content: space-between; }
  .rating-panel .rating-pick button { width: 30px; height: 30px; }
}

/* Komposer komentar & tombol kecil */
.composer textarea { min-height: 84px; }
.comment .acts button { transition: background-color .15s, color .15s; }
.empty { padding: 56px 20px; }
.empty .btn { margin-top: 4px; }

/* Header halaman & segmented lebih konsisten */
.segmented { max-width: 100%; }
.segmented button, .segmented a { min-width: 0; }

/* Footer: lebih ringkas di HP */
@media (max-width: 640px) {
  .footer { padding-top: 40px; font-size: 13.5px; }
  .footer-grid { gap: 22px 16px; }
  .footer ul { gap: 7px; }
}

/* Tabbar: label aktif lebih jelas, area sentuh nyaman */
.tab { min-width: 0; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Form & input */
.input:disabled, .select:disabled { opacity: .55; }
.textarea { scrollbar-width: thin; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Gambar rusak/kosong tetap rapi */
.card-art:not(:has(img))::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: radial-gradient(60% 40% at 50% 40%, rgba(255, 255, 255, .06), transparent); }

/* =====================================================================
   PENCARIAN
   ===================================================================== */
.search-page { max-width: 1320px; margin-inline: auto; }
.search-top { position: sticky; top: calc(var(--nav-h) + 16px); z-index: 20; padding: 10px 0 12px; margin: -10px 0 8px; background: linear-gradient(180deg, #000 72%, rgba(0, 0, 0, 0)); transition: top .45s var(--ease); }
body:has(.topbar.is-hidden) .search-top { top: 0; }
.search-main { max-width: 860px; }
.search-main .input { height: 56px; font-size: 17px; padding-right: 96px; background: rgba(118, 118, 128, .2); }
.search-main .input::-webkit-search-cancel-button { display: none; }
.search-main .clear { right: 10px; }
.search-kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); min-width: 24px; height: 24px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; font: 600 12px/1 var(--font); color: var(--label-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
.search-main .clear:not([hidden]) ~ .search-kbd, .search-main .input:focus ~ .search-kbd { display: none; }
@media (hover: none) { .search-kbd { display: none; } }
.search-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.search-sort { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.search-sort svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--label-2); pointer-events: none; }
.search-sort .select { height: 38px; width: auto; padding-left: 36px; border-radius: var(--r-pill); font-size: 14px; }
.search-genres { margin-top: 10px; }
.search-genres .chip { height: 32px; font-size: 13.5px; padding: 0 13px; }
.search-count { margin: 6px 0 16px; }
.search-block { margin-top: 26px; }
.search-block:first-child { margin-top: 10px; }
.search-popular .section { margin-inline: calc(var(--gutter) * -1); }
.recent-chip { padding: 0 4px 0 0; gap: 0; }
.recent-chip button { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 6px 0 14px; }
.recent-chip .x-btn { padding: 0 8px; opacity: .55; }
.recent-chip .x-btn:hover { opacity: 1; }
.recent-chip .x-btn svg { width: 13px; height: 13px; }
.top-terms { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.top-terms .cell { min-height: 48px; }
.top-terms .rank { width: 26px; color: var(--label-3); font-size: 15px; }
.top-terms .rank.hot { color: var(--accent-hi); }
.top-terms .trend { font-size: 12.5px; color: var(--label-3); }
.top-terms .trend.up { color: var(--green); }
.top-terms .trend.down { color: var(--red); }
.search-hit { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px; margin-bottom: 26px; border-radius: var(--r-xl); background: var(--grouped); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.search-hit-art { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #111; }
.search-hit-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.search-hit:hover .search-hit-art img { transform: scale(1.04); }
.search-hit .t-title2 { margin: 4px 0 8px; }
.search-hit .t-title2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
mark { background: none; color: var(--accent-hi); }
@media (max-width: 860px) {
  .search-top { top: 0; padding-top: calc(env(safe-area-inset-top) + 8px); }
  .search-page { padding-top: 76px; }
}
@media (max-width: 640px) {
  .search-main .input { height: 50px; font-size: 16px; }
  .search-filters .segmented { flex: 1; }
  .search-filters .segmented button { flex: 1; padding: 0 8px; }
  .search-sort { margin-left: 0; width: 100%; }
  .search-sort .select { width: 100%; }
  .search-hit { grid-template-columns: 1fr; gap: 12px; padding: 10px; }
  .search-hit .row-flex .btn { flex: 1; }
}
html.lite .search-top { background: #000; }
mark { color: inherit; background: rgba(229, 9, 20, .32); border-radius: 3px; padding: 0 1px; }
.search-popular { margin-top: 18px; }
@media (max-width: 860px) {
  body:has(.search-page) .topbar { display: none; }
  .search-page { padding-top: 12px; }
}
@media (max-width: 640px) {
  .search-filters { flex-wrap: nowrap; gap: 8px; }
  .search-sort { width: auto; flex: none; }
  .search-sort .select { width: auto; max-width: 150px; font-size: 13.5px; }
  .search-filters .segmented button { font-size: 13px; }
  .top-terms { grid-template-columns: 1fr 1fr; }
  .top-terms .cell { min-height: 44px; padding: 8px 12px; gap: 10px; }
  .top-terms .trend { display: none; }
}
@media (max-width: 640px) {
  .search-sort .select { width: 44px; max-width: none; padding: 0; color: transparent; }
  .search-sort .select option { color: #fff; }
  .search-sort svg { left: 14px; }
}
@media (max-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 74px; padding: 12px; }
  .tile b { font-size: 16px; }
  .tile .tile-icon { font-size: 22px; top: 10px; right: 10px; }
  .tile-grid.years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile-grid.years .tile { min-height: 56px; }
  .tile-grid.years .tile b { font-size: 18px; }
  .pager { gap: 8px; }
  .pager .t-foot { text-align: center; min-width: 0; }
  .pager .btn-sm { padding: 0 12px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   DETAIL v3 — episode, navigasi episode, panel "sedang diputar"
   ===================================================================== */
.lbl-short { display: none; }
@media (max-width: 860px) { .action-bar .btn .lbl-short { display: inline; } }

/* Hero episode */
.ep-crumb { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -4px; padding: 4px 10px 4px 4px; border-radius: var(--r-pill); font: 600 14px/1.2 var(--font); color: rgba(255, 255, 255, .78); transition: background-color .2s, color .2s; max-width: 100%; }
.ep-crumb:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ep-crumb svg { width: 18px; height: 18px; flex: none; }
.ep-crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-kicker { margin: 0 0 6px; font: 700 13px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.ep-kicker .dim { color: var(--label-3); letter-spacing: .02em; }
.ep-title { margin: 0 0 12px; font: 800 clamp(28px, 4vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.detail-hero .hero-overview { margin-top: 12px; }
.detail-hero .hero-actions { flex-wrap: wrap; }
.detail-hero .action-bar { margin: 14px 0 0; }
.detail-hero .hero-logo { max-height: 96px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .ep-title { font-size: 26px; }
  .detail-hero .hero-actions .btn-lg { flex: 1; }
}

/* Kartu navigasi episode (sebelumnya / berikutnya) */
.ep-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ep-step { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-lg); background: var(--grouped); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); min-width: 0; transition: background-color .2s, transform .3s var(--ease-spring); }
.ep-step:hover { background: var(--grouped-2); }
.ep-step:active { transform: scale(.98); }
.ep-step.next { flex-direction: row-reverse; text-align: right; }
.ep-step-thumb { position: relative; width: 132px; flex: none; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1c1c1f; display: grid; place-items: center; color: var(--label-3); }
.ep-step-thumb img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-step-thumb > svg { width: 26px; height: 26px; }
.ep-step-ic { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .38); color: #fff; opacity: 0; transition: opacity .2s; }
.ep-step-ic svg { width: 26px; height: 26px; }
.ep-step:hover .ep-step-ic { opacity: 1; }
.ep-step-text { min-width: 0; flex: 1; }
.ep-step-text small { display: block; font: 600 12px/1.2 var(--font); letter-spacing: .03em; text-transform: uppercase; color: var(--label-3); margin-bottom: 4px; }
.ep-step-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 15px/1.3 var(--font); }
@media (max-width: 640px) {
  .ep-steps { gap: 8px; margin-top: 16px; }
  .ep-step { flex-direction: column !important; align-items: stretch; text-align: left !important; gap: 8px; padding: 8px; }
  .ep-step-thumb { width: 100%; }
  .ep-step-ic { opacity: 1; background: rgba(0, 0, 0, .3); }
  .ep-step-text b { font-size: 13.5px; }
  .ep-step.next .ep-step-text { text-align: right; }
}

/* Panel "sedang diputar" di bawah pemutar */
.now-playing { max-width: 1280px; margin: 18px auto 0; }
.np-head { display: flex; align-items: flex-end; gap: 16px; }
.np-text { min-width: 0; flex: 1; }
.np-title { margin: 0 0 8px; font: 800 clamp(22px, 2.6vw, 32px)/1.15 var(--font-display); letter-spacing: -.025em; }
.ep-kicker-inline { color: var(--accent-hi); font-size: .7em; letter-spacing: .02em; vertical-align: .12em; margin-right: 4px; }
.now-playing .ep-crumb { margin-bottom: 8px; }
.now-playing .action-bar { margin: 14px 0 0; }
.hero-player { padding-bottom: 8px; }
@media (min-width: 861px) {
  .now-playing { width: min(calc(100% - 2 * var(--gutter)), 1280px); padding-inline: 0; }
}
@media (max-width: 860px) {
  .now-playing { margin-top: 14px; }
  .np-title { font-size: 21px; }
}
.ep-steps > span:empty { display: block; }
@media (max-width: 640px) {
  .ep-steps:has(> span:empty) { grid-template-columns: 1fr; }
  .ep-steps > span:empty { display: none; }
  .ep-steps:has(> span:empty) .ep-step { flex-direction: row !important; align-items: center; }
  .ep-steps:has(> span:empty) .ep-step-thumb { width: 120px; }
  .ep-steps:has(> span:empty) .ep-step.next { flex-direction: row-reverse !important; }
}
/* Daftar episode di HP: baris ringkas (thumbnail kiri, teks kanan), bukan kartu raksasa. */
@media (max-width: 640px) {
  [data-episodes] .grid.wide { grid-template-columns: 1fr; gap: 12px; }
  [data-episodes] .card.landscape { display: grid; grid-template-columns: 44% minmax(0, 1fr); column-gap: 12px; align-items: start; }
  [data-episodes] .card.landscape .card-art { grid-row: 1 / span 3; }
  [data-episodes] .card.landscape .card-title { margin-top: 2px; font-size: 14px; }
  [data-episodes] .card.landscape .card-desc { -webkit-line-clamp: 3; font-size: 12.5px; }
  [data-episodes] .card.landscape .card-badges .chip-glass + .chip-glass { display: none; }
}
/* Room Nonton Bareng */
.room-code { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--fill-2); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); transition: background-color .2s; }
.room-code:hover { background: var(--fill); }
.room-code small { font: 600 11px/1 var(--font); color: var(--label-3); text-transform: uppercase; letter-spacing: .06em; }
.room-code b { font: 700 15px/1 var(--font-round); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.room-code svg { width: 15px; height: 15px; color: var(--label-2); }
@media (max-width: 860px) {
  body:has(.party-layout) .tabbar { display: none; }
  .party-layout { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 640px) {
  .detail-hero .hero-actions { gap: 8px; }
  .detail-hero .hero-actions .btn-play { flex: 1 1 100%; }
  .detail-hero .hero-actions .btn-glass { flex: 1 1 0; min-width: 0; }
}
.detail-hero .action-bar .btn { --h: 40px; padding: 0 14px; font-size: 14.5px; }
@media (max-width: 860px) {
  .detail-hero .action-bar { margin: 14px -16px 0; }
  .now-playing .action-bar { margin: 14px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); }
}

/* Anti-kedip saat scroll di layar sentuh: efek tekan (scale) hanya untuk perangkat dengan hover,
   karena di HP sentuhan saat mulai scroll memicu :active pada kartu yang dilewati. */
@media (hover: none) {
  .card:active .card-art, .tile:active, .person:active .ph, .btn:active, .collection-card:active img { transform: none; }
  .card-art, .card-art img, .collection-card img, .tile { transition: none !important; }
}
.card-art img, .hero-art { -webkit-user-drag: none; user-select: none; }

/* =====================================================================
   MOBILE v4 — ukuran pas di layar kecil
   ===================================================================== */
.room-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.room-frame { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12); background: #000; }
.room-note { margin: 10px 4px 0; display: flex; gap: 6px; align-items: flex-start; }
.room-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (max-width: 860px) {
  /* Room: video menempel di atas tepi-ke-tepi, lalu judul & aksi, lalu chat. */
  .party-room { display: flex; flex-direction: column; padding-top: 0 !important; padding-bottom: 0 !important; }
  .party-room .party-layout { display: contents; }
  .party-room .room-main { order: 1; position: sticky; top: 0; z-index: 30; background: #000; }
  .party-room .room-frame { border-radius: 0; box-shadow: none; }
  .party-room .room-note { margin: 8px 16px 0; font-size: 12px; }
  .party-room .room-head { order: 2; margin: 12px 0 10px !important; }
  .party-room .room-head .t-title1 { font-size: 20px; }
  .party-room .room-acts { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .party-room .room-acts .btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; flex: none; }
  .party-room .party-chat { order: 3; margin: 0 12px 12px; height: calc(100svh - 56.25vw - 150px); min-height: 260px; border-radius: 18px; }
  body:has(.party-room) .topbar { display: none; }
}

@media (max-width: 430px) {
  .btn-lg { --h: 46px; padding: 0 18px; font-size: 15.5px; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn-lg { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  .hero-actions .btn-lg svg { width: 18px; height: 18px; }
  .hero:not(.detail-hero) { height: clamp(500px, 78svh, 680px); }
  .hero:not(.detail-hero) .hero-body { bottom: 112px; }
  .hero-pager { bottom: 76px; }
  .hero-title { font-size: 32px; }
  .hero-logo { max-height: 104px; }
  .home-rows { margin-top: -48px; }
  .scroller.rank { --card-w: clamp(150px, 42vw, 190px); }
  .rank-card .rank-num { font-size: clamp(84px, 24vw, 112px); -webkit-text-stroke-width: 2px; }
  :root { --tab-h: 58px; }
  .tab { font-size: 10px; gap: 2px; }
  .tab svg { width: 22px; height: 22px; }
  .tabbar-search svg { width: 23px; height: 23px; }
  .topbar { height: 50px; }
  .brand { height: 40px; padding: 0 13px 0 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 19px; }
  .t-large { font-size: 26px; }
  .page-head p { font-size: 14px; }
  /* Koleksi: 2 kolom kartu ringkas, bukan kartu raksasa satu kolom */
  .grid.wide:has(> .collection-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-card { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .collection-card .cc-body { padding: 26px 10px 9px; }
  .collection-card h3 { font-size: 14px; }
  .collection-card p { font-size: 11.5px; }
  /* Paket */
  .plan { padding: 18px; border-radius: var(--r-lg); }
  .plan h3 { font-size: 18px; }
  .plan .price { font-size: 28px; margin: 6px 0 2px; }
  .plan ul { margin: 14px 0 16px; gap: 8px; }
  .plan li { font-size: 14px; }
  .plans { gap: 12px; }
  /* Kosong, form, sheet */
  .empty { padding: 40px 16px; }
  .empty .ic { width: 54px; height: 54px; border-radius: 16px; }
  .empty h3 { font-size: 18px; }
  .sheet-head h2 { font-size: 18px; }
  .sheet-body { padding: 4px 16px 18px; }
  .input, .select { height: 46px; }
  .podium .avatar.lg { width: 56px; height: 56px; font-size: 22px; }
  .profile-head .avatar.lg { width: 60px; height: 60px; font-size: 24px; }
  .profile-head .t-title1 { font-size: 24px; }
  .detail-play { width: 64px; height: 64px; }
  .section-head { min-height: 32px; }
}
.room-back { display: none; }
@media (max-width: 860px) { .room-back { display: inline-flex; } }
@media (max-width: 430px) { .hero-actions .btn-lg { font-size: 15px; gap: 6px; } }
@media (max-width: 370px) { .hero-actions .btn-lg svg { display: none; } }

/* Halaman detail di HP: tinggi hero mengikuti isi (judul, info, tombol), tidak pernah menimpa konten di bawahnya. */
@media (max-width: 860px) {
  .detail-hero, .detail-hero.compact { height: auto !important; min-height: 0; }
  .detail-hero .hero-slide { height: auto; }
  .detail-hero .hero-body { padding-bottom: 6px; }
}

/* ===================== PWA: banner pasang, panduan iOS, halaman /app ===================== */
.install-card {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 22px;
  --glass-bg: #1c1c1e; background: #1c1c1e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .12);
  animation: install-in .5s var(--ease-spring);
}
.install-card.out { animation: install-out .3s var(--ease) forwards; }
.install-card img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-text b { font: 600 15px/1.25 var(--font); }
.install-text span { font-size: 13px; line-height: 1.3; color: var(--label-2); }
.install-card .btn { flex: none; }
.install-x { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--label-2); background: rgba(255, 255, 255, .08); }
.install-x svg { width: 16px; height: 16px; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
@keyframes install-out { to { opacity: 0; transform: translate(-50%, 20px); } }
@media (max-width: 860px) {
  /* di atas tab bar bawah */
  .install-card { bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) { .install-card { gap: 10px; padding: 10px 10px 10px 12px; } .install-card img { width: 42px; height: 42px; } .install-text span { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
@media (max-width: 340px) { .install-text span { display: none; } }

.ios-guide-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 159, 10, .12); color: #ffd60a; font-size: 14px; }
.ios-guide-warn svg { width: 20px; height: 20px; flex: none; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ios-steps li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.ios-step-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(10, 132, 255, .16); color: #0a84ff; }
.ios-step-ic svg { width: 24px; height: 24px; }
.ios-step-ic img { width: 44px; height: 44px; border-radius: 11px; }
.ios-steps b { display: block; font-size: 15px; }
.ios-steps small { display: block; color: var(--label-2); font-size: 13px; line-height: 1.35; margin-top: 2px; }

.app-hero2 { text-align: center; padding: 18px 0 30px; }
.app-hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 22px 60px rgba(229, 9, 20, .28); margin-bottom: 18px; }
.app-hero2 .t-sub { max-width: 480px; margin: 8px auto 0; }
.app-cta { margin-top: 20px; display: flex; justify-content: center; }
.app-hint { margin: 12px auto 0; max-width: 420px; font-size: 13px; color: var(--label-3); }
.app-perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
.app-perk { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .05); }
.app-perk svg { width: 24px; height: 24px; color: var(--accent-hi); margin-bottom: 4px; }
.app-perk b { font-size: 15px; }
.app-perk span { font-size: 13px; color: var(--label-2); line-height: 1.35; }
@media (min-width: 700px) { .app-perks { grid-template-columns: repeat(4, 1fr); } }

/* Mode aplikasi terpasang: hormati notch / status bar (black-translucent di iOS),
   tidak ada tarik-untuk-refresh browser, tidak ada seleksi teks tak sengaja di UI. */
html.standalone body { overscroll-behavior-y: none; }
html.standalone .topbar { top: calc(12px + env(safe-area-inset-top)); }
@media (max-width: 860px) { html.standalone .topbar { top: calc(8px + env(safe-area-inset-top)); } }
html.standalone .announce + .app .topbar { top: calc(var(--ann-h, 46px) + 12px + env(safe-area-inset-top)); }
html.standalone .tabbar, html.standalone .topbar, html.standalone .mfp-bar, html.standalone .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.standalone .toasts { top: calc(14px + env(safe-area-inset-top)); }

/* ===================== Obrolan suara (Nonton Bareng) ===================== */
.vc { flex: none; box-shadow: inset 0 -.5px 0 var(--sep); }
.vc-idle { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; }
.vc-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(48, 209, 88, .14); color: var(--green); }
.vc-ic svg { width: 19px; height: 19px; }
.vc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vc-txt b { font: 600 14px/1.25 var(--font); }
.vc-txt small { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-stack { display: flex; flex: none; }
.vc-stack .avatar { box-shadow: 0 0 0 2px var(--grouped); }
.vc-stack .avatar + .avatar { margin-left: -8px; }
.vc-idle .btn { flex: none; }
.vc-idle .btn svg { width: 17px; height: 17px; }
.vc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: vc-spin .8s linear infinite; }
@keyframes vc-spin { to { transform: rotate(360deg); } }

.vc-live { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(48, 209, 88, .07), transparent 70%); }
.vc-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.vc-head b { font: 600 13px/1 var(--font); flex: 1; }
.vc-head small { font: 600 12px/1 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; }
.vc-peers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.vc-peers::-webkit-scrollbar { display: none; }
.vc-peer { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; border-radius: 12px; color: var(--label); }
.vc-peer:hover { background: var(--fill-2); }
.vc-peer.is-me { cursor: default; }
.vc-peer.is-me:hover { background: none; }
.vc-av { position: relative; display: block; border-radius: 50%; transition: box-shadow .15s; }
.vc-av .avatar { width: 40px; height: 40px; font-size: 16px; }
.vc-peer.is-speaking .vc-av { box-shadow: 0 0 0 2.5px var(--grouped), 0 0 0 4.5px var(--green); }
.vc-peer.is-wait .vc-av { opacity: .5; }
.vc-badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #3a3a3c; box-shadow: 0 0 0 2px var(--grouped); color: var(--red); }
.vc-badge svg { width: 11px; height: 11px; stroke-width: 2.4; }
.vc-crown { position: absolute; left: -3px; top: -4px; font: 700 11px/1 var(--font); color: #ffd60a; font-style: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.vc-peer small { max-width: 56px; font-size: 11.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--label-2); }
.vc-peer.is-speaking small { color: var(--label); }
.vc-peer em { font-style: normal; font-size: 10px; color: var(--label-3); margin-top: -3px; }
.vc-ctrl { display: flex; gap: 8px; }
.vc-mic { flex: 1; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 21px; font: 600 14px/1 var(--font); transition: background-color .2s, transform .15s; touch-action: none; -webkit-user-select: none; user-select: none; }
.vc-mic svg { width: 19px; height: 19px; }
.vc-mic.is-muted { background: var(--fill); color: var(--label); }
.vc-mic.is-muted svg { color: var(--red); }
.vc-mic.is-live { background: var(--green); color: #000; }
.vc-mic:active { transform: scale(.97); }
.vc-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--label); }
.vc-btn svg { width: 19px; height: 19px; }
.vc-btn:hover { background: var(--fill-2); }
.vc-leave { background: rgba(255, 69, 58, .16); color: var(--red); }
.vc-leave:hover { background: rgba(255, 69, 58, .26); }

.vc-pop { width: min(300px, calc(100vw - 24px)); padding: 4px; }
.vc-pop-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.vc-pop-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.vc-opt small { display: block; color: var(--label-3); font-size: 12px; margin-top: 2px; }
.vc-opt.col { flex-direction: column; align-items: stretch; gap: 8px; }
.vc-opt.col > span { display: flex; justify-content: space-between; }
.vc-opt input[type="range"] { width: 100%; accent-color: var(--accent); }
.vc-opt select.input { height: 40px; font-size: 14px; }
.vc-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding: 10px 12px 8px; font-size: 12px; color: var(--label-3); box-shadow: inset 0 .5px 0 var(--sep); }
.vc-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.vc-pop .menu-item[disabled] { opacity: .4; pointer-events: none; }
@media (max-width: 860px) {
  .party-room .party-chat { min-height: 320px; }
}

/* ===================== Room: pengaturan, peserta, admin ===================== */
.tag.blue { background: rgba(10, 132, 255, .18); color: #64b5ff; }
.tag svg { width: 13px; height: 13px; }
.room-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.room-kicker .sep { color: var(--label-3); }
.room-kicker .tag { height: 20px; padding: 0 7px; font-size: 11px; }
.room-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; margin-left: 2px; border-radius: 999px; background: var(--fill); color: var(--label-2); font: 600 11px/1 var(--font); vertical-align: middle; }
.room-badge svg { width: 12px; height: 12px; }
.room-badge.lock { background: rgba(255, 159, 10, .16); color: #ffd60a; }

.people-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 16px; background: var(--fill-2); }
.people-btn:hover { background: var(--fill); }
.people-btn > svg { width: 14px; height: 14px; color: var(--label-3); }
.people-btn .people .avatar:first-child { margin-left: 0; }

.pp-list { display: flex; flex-direction: column; gap: 6px; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fill-2); }
.pp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pp-name > b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pp-tags .tag { height: 20px; padding: 0 7px; font-size: 11px; }
.pp-tags .tag:empty { display: none; }
.pp-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.pp-acts .icon-btn svg { width: 17px; height: 17px; }
.pp-kick { background: rgba(255, 69, 58, .14); color: var(--red); }
.pp-kick:hover { background: rgba(255, 69, 58, .24); }
.pp-note { margin: 12px 4px 0; }
.msg-admin { display: inline-block; padding: 1px 5px; border-radius: 5px; background: rgba(10, 132, 255, .2); color: #64b5ff; font: 700 10px/1.3 var(--font); vertical-align: 1px; text-transform: uppercase; letter-spacing: .04em; }
.party-chat .msg.sys svg { width: 13px; height: 13px; vertical-align: -2px; color: #64b5ff; }
.vc-admin { position: absolute; left: -4px; top: -4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 2px var(--grouped); }
.vc-admin svg { width: 11px; height: 11px; color: #fff; stroke-width: 2.3; }
.vc-idle.is-off .vc-ic { background: var(--fill); color: var(--label-3); }

/* formulir room */
.rf-lead { margin: 0 2px 16px; color: var(--label-2); font-size: 14.5px; line-height: 1.45; }
.rf .field { margin-bottom: 16px; }
.rf .field + .field { margin-top: 0; }
.rf-group { border-radius: 16px; background: var(--fill-2); overflow: hidden; }
.rf-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.rf-row + .rf-row { box-shadow: inset 0 .5px 0 var(--sep); }
.rf-row .grow { font-size: 15px; }
.rf-row small { display: block; color: var(--label-3); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.rf-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--fill); color: var(--label-2); }
.rf-ic svg { width: 17px; height: 17px; }

/* admin: room live */
.ar-list { display: flex; flex-direction: column; gap: 10px; }
.ar-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--grouped); }
.ar-card > img, .ar-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; background: #111; }
.ar-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ar-top b { font-size: 16px; }
.ar-body code { font: 600 12px/1 ui-monospace, monospace; letter-spacing: .06em; }
.ar-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; font-size: 13px; color: var(--label-2); }
.ar-stats span { display: inline-flex; align-items: center; gap: 5px; }
.ar-stats svg { width: 15px; height: 15px; }
.ar-people { display: flex; align-items: center; padding-left: 8px; margin-top: 4px; }
.ar-people .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--grouped); }
.ar-acts { display: flex; flex-direction: column; gap: 6px; }
.ar-acts .btn { justify-content: center; }
@media (max-width: 760px) {
  .ar-card { grid-template-columns: 96px 1fr; }
  .ar-acts { grid-column: 1 / -1; flex-direction: row; }
  .ar-acts .btn { flex: 1; }
}

/* ===================== Ruang aman bawah (bilah browser HP) =====================
   --vv-gap diisi main.js dari visualViewport: tinggi bagian layar yang tertutup bilah
   browser (mis. bilah alamat mengambang Safari iOS 26, Samsung Internet, Chrome edge-to-edge).
   Ditambah safe-area (garis gestur / home indicator) supaya menu & tombol tidak "tenggelam". */
:root { --sab: calc(env(safe-area-inset-bottom, 0px) + var(--vv-gap, 0px)); }
.tabbar { bottom: calc(10px + var(--sab)); transition: transform .45s var(--ease), bottom .2s var(--ease); }
@media (max-width: 860px) {
  .page { padding-bottom: calc(var(--tab-h) + 48px + var(--sab)); }
  .footer { padding-bottom: calc(var(--tab-h) + 40px + var(--sab)); }
  .install-card { bottom: calc(var(--tab-h) + 22px + var(--sab)); }
  /* halaman tanpa .page (beranda, detail) juga diberi ruang di atas tab bar */
  body:has(#footer[hidden]) #view > .view:not(.page) { padding-bottom: calc(var(--tab-h) + 24px + var(--sab)); }
}
.sheet-foot { padding-bottom: calc(16px + var(--sab)); }
.sheet-body:last-child { padding-bottom: calc(18px + var(--sab)); }
.short-info { padding-bottom: calc(18px + var(--sab)); }
.short-rail { bottom: calc(24px + var(--sab)); }
.short-progress { bottom: var(--vv-gap, 0px); }
.party-layout { padding-bottom: var(--sab); }

/* ===================== Sorotan Nonton Bareng di menu ===================== */
.live-pill { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 10px/1 var(--font); font-style: normal; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); }
.live-pill[hidden] { display: none; }
.nav-party { position: relative; color: #fff; }
.nav-party svg { color: var(--accent-hi); opacity: 1; }
.nav-party::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .45); background: linear-gradient(135deg, rgba(229, 9, 20, .18), rgba(229, 9, 20, .04)); pointer-events: none; }
.nav-party .live-pill { margin-left: 2px; }
@media (max-width: 1080px) and (min-width: 861px) { .nav-capsule .nav-link > svg:first-child { display: none; } }
.tab-party { color: #fff; }
.tab-party-ic { position: relative; width: 40px; height: 28px; margin-top: -2px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #b20710); box-shadow: 0 4px 14px rgba(229, 9, 20, .45); }
.tab-party-ic svg { width: 20px; height: 20px; color: #fff; }
.tab-party .live-pill { position: absolute; top: -6px; right: -8px; background: #fff; color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .6); }
.tab-party.is-active { color: #fff; }
.tab-party.is-active .tab-party-ic { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 4px 14px rgba(229, 9, 20, .55); }

/* ===================== Pembayaran (Tako) ===================== */
.pay-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11.5px/1 var(--font); white-space: nowrap; flex: none; background: var(--fill); color: var(--label-2); }
.pay-badge.ok { background: rgba(48, 209, 88, .16); color: #4ee07a; }
.pay-badge.info { background: rgba(10, 132, 255, .16); color: #64b5ff; }
.pay-badge.warn { background: rgba(255, 159, 10, .16); color: #ffb340; }
.pay-badge.err { background: rgba(255, 69, 58, .16); color: #ff6961; }
.link-btn { padding: 0; background: none; border: 0; color: var(--accent-hi); font: inherit; text-decoration: underline; cursor: pointer; }

.pm-mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; font: 800 13px/1 var(--font); letter-spacing: -.02em; color: #fff; }
.pm-qris { background: linear-gradient(135deg, #e3262f, #8f1219); font-size: 11px; }
.pm-gopay { background: linear-gradient(135deg, #00aed6, #00809e); font-size: 15px; }
.pm-dana { background: linear-gradient(135deg, #118eea, #0b5fb0); font-size: 18px; }
.co-sum { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(229, 9, 20, .16), rgba(229, 9, 20, .04)); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .25); }
.co-sum > div { flex: 1; min-width: 0; }
.co-sum b { display: block; font-size: 16px; }
.co-sum small { display: block; color: var(--label-2); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.co-sum strong { font: 700 20px/1 var(--font-round, var(--font)); white-space: nowrap; }
.co-title { margin: 18px 4px 8px; font: 600 13px/1 var(--font); color: var(--label-2); }
.co-methods { display: flex; flex-direction: column; gap: 8px; }
.co-m { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--fill-2); text-align: left; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background-color .15s; }
.co-m > span:not(.pm-mark):not(.pay-mark) { flex: 1; min-width: 0; }
.co-m b { display: block; font-size: 15px; }
.co-m small { display: block; color: var(--label-3); font-size: 12.5px; margin-top: 2px; }
.co-radio { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--label-3); }
.co-m[aria-checked="true"] { background: rgba(229, 9, 20, .1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.co-m[aria-checked="true"] .co-radio { box-shadow: inset 0 0 0 7px var(--accent); }
.co-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--label-3); }
.co-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.ps-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.ps-head > div { flex: 1; min-width: 0; }
.ps-head b { display: block; font-size: 16px; }
.ps-head small { color: var(--label-2); font-size: 13px; }
.ps-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--fill); color: var(--label); }
.ps-ic svg { width: 22px; height: 22px; }
.ps-ic.ps-paid { background: rgba(48, 209, 88, .18); color: #4ee07a; }
.ps-ic.ps-pending, .ps-ic.ps-creating { background: rgba(255, 214, 10, .14); color: var(--yellow); }
.ps-ic.ps-failed, .ps-ic.ps-error { background: rgba(255, 69, 58, .16); color: #ff6961; }
.ps-steps { margin: 0 0 14px; padding-left: 20px; color: var(--label-2); font-size: 14px; line-height: 1.5; }
.ps-steps li + li { margin-top: 4px; }
.ps-wait { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border-radius: 14px; background: var(--fill-2); color: var(--label-2); font-size: 14px; }
.ps-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ps-acts .btn { width: 100%; justify-content: center; }
.ps-foot { text-align: center; margin: 12px 0 0; }
.ps-msg { padding: 14px 16px; border-radius: 14px; background: var(--fill-2); font-size: 14.5px; line-height: 1.5; color: var(--label-2); }
.ps-msg.ok { background: rgba(48, 209, 88, .12); color: var(--label); }
.ps-msg.ok b { display: block; font-size: 16px; margin-bottom: 2px; color: #4ee07a; }
.pr-card { max-width: 460px; margin: 40px auto 0; }

.pay-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px auto 0; max-width: 60ch; text-align: center; font-size: 13.5px; color: var(--label-2); }
.pay-trust svg { width: 16px; height: 16px; flex: none; color: #4ee07a; }
.pay-hist, .pay-table { display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--grouped); text-align: left; }
.pay-row:hover { background: var(--grouped-2); }
.pay-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pay-row-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-row-main small { font-size: 12px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-row-amt { font: 600 14px/1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-row > svg { width: 16px; height: 16px; color: var(--label-3); flex: none; }
@media (max-width: 520px) { .pay-row { flex-wrap: wrap; } .pay-row-main { flex-basis: 100%; } .pay-row > svg { display: none; } }

/* admin */
.chip-check { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--fill-2); cursor: pointer; font-size: 14px; }
.chip-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; font: 500 12.5px/1 ui-monospace, monospace; }
details.adv { margin-top: 12px; }
details.adv summary { cursor: pointer; color: var(--label-2); font-size: 13.5px; margin-bottom: 10px; }
.pay-detail .pd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pay-detail .pd-top b { font-size: 20px; }
.pd-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255, 159, 10, .12); color: #ffb340; font-size: 13.5px; margin: 0 0 12px; }
.pd-warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); min-width: 0; }
.kv span { display: block; font-size: 12px; color: var(--label-3); margin-bottom: 3px; }
.kv b { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.kv code { font-size: 11.5px; }
@media (max-width: 560px) { .kv-grid { grid-template-columns: 1fr; } }
.pd-chain { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.pd-chain svg { width: 16px; height: 16px; flex: none; }
.pd-chain.ok { background: rgba(48, 209, 88, .1); color: #4ee07a; }
.pd-chain.bad { background: rgba(255, 69, 58, .14); color: #ff6961; font-weight: 600; }
.pd-events { list-style: none; margin: 0; padding: 0 0 0 4px; }
.pd-events li { position: relative; display: flex; gap: 12px; padding: 0 0 14px 0; }
.pd-events li::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1.5px; background: var(--sep); }
.pd-events li:last-child::before { display: none; }
.pd-dot { width: 10px; height: 10px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(229, 9, 20, .2); }
.pd-events b { display: block; font-size: 14px; }
.pd-events small { display: block; color: var(--label-3); font-size: 12px; margin-top: 2px; }
.pd-events details { margin-top: 6px; }
.pd-events summary { cursor: pointer; font-size: 12.5px; color: var(--label-2); }
.pd-events pre.code { max-height: 260px; overflow: auto; font-size: 11.5px; margin: 6px 0 0; }
.stat-grid + form, .stat-grid + .group-title { margin-top: 22px; display: block; }

/* ===================== Paket bertingkat ===================== */
.plans.tiers-2 { max-width: 760px; }
.plans.tiers-3 { max-width: 1080px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plans.tiers-4 { max-width: 1240px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan.tier { position: relative; --tier: #8e8e93; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.plan.tier[data-tier] { background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 16%, var(--grouped)) 0%, var(--grouped) 46%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 30%, transparent); }
.plan.tier.is-hot { box-shadow: inset 0 0 0 2px var(--tier), 0 18px 50px -24px var(--tier); }
.plan.tier.is-current { box-shadow: inset 0 0 0 2px #ffd60a; }
.tier-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--tier); color: #fff; font: 700 11.5px/1 var(--font); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 16px -6px var(--tier); }
.tier-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-head h3 { color: #fff; }
.plan.tier[data-tier] .tier-head h3 { color: color-mix(in srgb, var(--tier) 35%, #fff); }
.tier-tag { margin: 6px 0 0; color: var(--label-2); font-size: 14px; line-height: 1.4; min-height: 1.4em; }
.tier-durs { display: flex; gap: 6px; margin: 16px 0 2px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.tier-durs button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; font: 600 13px/1.1 var(--font); color: var(--label-2); transition: background-color .15s, color .15s; }
.tier-durs button small { font: 700 10.5px/1 var(--font); color: #4ee07a; }
.tier-durs button[aria-checked="true"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tier-single { margin: 16px 0 2px; font: 600 13px/1 var(--font); color: var(--label-2); }
.tier-sub { min-height: 1.3em; }
.tier-save { color: #4ee07a; font-weight: 700; }
.tier-cta { width: 100%; justify-content: center; }
.plan.tier.is-hot .tier-cta.btn-accent { background: var(--tier); }
@media (max-width: 520px) { .tier-durs button { font-size: 12px; padding: 8px 2px; } }

.co-stack { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 0; padding: 10px 12px; border-radius: 12px; background: rgba(10, 132, 255, .1); color: #8cc8ff; font-size: 13px; line-height: 1.45; }
.co-stack svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* admin: editor paket */
.te-tier { --tier: #E50914; padding: 16px; margin-bottom: 14px; border-radius: 18px; background: var(--grouped); box-shadow: inset 3px 0 0 var(--tier); }
.te-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.te-num { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tier); color: #fff; font: 700 13px/1 var(--font); }
.te-name { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.te-head input[type="color"] { width: 38px; height: 38px; flex: none; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.te-sub { margin: 4px 4px 8px; font: 600 13px/1 var(--font); color: var(--label-2); }
.te-durs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.te-dur { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px; border-radius: 14px; background: var(--fill-2); }
.te-dur .field { margin: 0 !important; }
.te-dur .field > span { margin-bottom: 5px; font-size: 12px; }
.te-dur .te-custom[hidden] { display: none; }
.te-dur:has(.te-custom[hidden]) { grid-template-columns: 1.1fr 1fr 1fr auto; }
.te-x { margin-bottom: 4px; }
@media (max-width: 640px) {
  .te-dur, .te-dur:has(.te-custom[hidden]) { grid-template-columns: 1fr 1fr; }
  .te-x { grid-column: 1 / -1; justify-self: end; }
}
/* admin: daftar akun sumber (rotasi) */
.src-acc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border-radius: 14px; background: var(--fill-2); }
.src-acc .field { margin: 0 !important; }
.src-acc .field > span { margin-bottom: 5px; font-size: 12px; }
.src-acc-btns { display: flex; gap: 6px; padding-bottom: 2px; }
.src-acc-out { grid-column: 1 / -1; margin: 0 !important; }
.src-acc-out:empty { display: none; }
@media (max-width: 640px) {
  .src-acc { grid-template-columns: 1fr 1fr; }
  .src-acc-btns { grid-column: 1 / -1; justify-content: flex-end; }
}
.plan ul { align-content: start; }
.pay-trust { align-items: flex-start; text-align: left; }
.pay-trust svg { margin-top: 2px; }

/* ===================== Logo merek ===================== */
.brand-ic { display: inline-block; flex: none; vertical-align: middle; }
.brand-tile { display: grid; place-items: center; flex: none; border-radius: 30%; background: var(--b); box-shadow: 0 8px 20px -10px var(--b), inset 0 0 0 .5px rgba(255, 255, 255, .18); }
.pay-mark { display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
.pay-mark-qris { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.co-m .pay-mark { width: 44px; height: 44px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.share-app { display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--label); padding: 6px 0; border-radius: 14px; transition: background-color .15s; }
.share-app:hover { background: var(--fill-2); }
.share-copy { display: flex; gap: 8px; }
.share-copy .input { flex: 1; min-width: 0; font-size: 13.5px; color: var(--label-2); }
.share-copy .btn { flex: none; }
@media (max-width: 380px) { .share-copy { flex-direction: column; } }
.social-btn { gap: 8px; }
.social-btn .brand-ic { width: 18px; height: 18px; }
.brand-field { display: flex; gap: 12px; align-items: flex-end; }
.brand-field > .brand-ic { margin-bottom: 12px; }
.brand-field > .field { flex: 1; min-width: 0; }
.brand-field + .brand-field { margin-top: 14px; }
.chip-check .pay-mark { border-radius: 7px !important; }
.pay-trust { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pay-trust > span { display: inline-flex; gap: 6px; align-items: flex-start; }
.pay-trust > span svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: #4ee07a; }
.pay-trust-marks { display: flex; gap: 8px; }
.pay-row > .pay-mark { border-radius: 10px !important; }

/* ===================== Room ber-PIN ===================== */
.rf-err { margin: 10px 4px 0; color: #ff6961; font-size: 13.5px; }
.rf-err[hidden] { display: none; }
.room-badge[data-copy-pin] { cursor: pointer; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.room-badge[data-copy-pin]:hover { background: rgba(255, 159, 10, .26); }
.pin-gate { max-width: 420px; margin: 40px auto 0; text-align: center; }
.pin-ic { width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 22px; background: rgba(255, 159, 10, .14); color: #ffd60a; }
.pin-ic svg { width: 34px; height: 34px; }
.pin-gate .t-sub { margin: 8px auto 22px; max-width: 34ch; }
.pin-boxes { display: flex; justify-content: center; gap: 12px; }
.pin-box { width: 58px; height: 68px; border: 0; border-radius: 16px; background: var(--fill); color: #fff; text-align: center; font: 700 28px/1 var(--font-round, var(--font)); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background-color .15s; caret-color: var(--accent); }
.pin-box:focus { outline: none; background: var(--fill-2); box-shadow: inset 0 0 0 2px var(--accent); }
.pin-err { margin: 14px 0 0; color: #ff6961; font-size: 14px; }
.pin-err[hidden] { display: none; }
.pin-boxes.shake { animation: pin-shake .4s; }
@keyframes pin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-width: 380px) { .pin-box { width: 52px; height: 62px; } }
.pay-trust > span { display: block; max-width: 52ch; }
.pay-trust > span svg { display: inline-block; vertical-align: -2px; margin: 0 6px 0 0; }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 12px; background: var(--fill-2); font: 600 13.5px/1 var(--font); color: var(--label); }
.pay-chip .pay-mark { border-radius: 8px !important; }
.pay-trust-marks { flex-wrap: wrap; justify-content: center; }
.tabbar-main, .tab-party { overflow: visible; }
.tab-party .live-pill { top: -5px; right: -7px; }
.co-m > .pay-mark { flex: 0 0 44px; }
.co-m > span:not(.pay-mark):not(.pm-mark) { flex: 1; min-width: 0; }
.tab .tab-party-ic { overflow: visible; max-width: none; }
.pay-mark-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); overflow: hidden; }
.pay-mark-logo img { width: 84%; height: 84%; object-fit: contain; display: block; }
.pay-mark-logo img.plogo-qris { width: 86%; height: auto; }
.pay-mark-logo img.plogo-dana { width: 78%; height: 78%; }

/* ---- Turnstile (anti-bot) di halaman masuk/daftar ---- */
.ts-box { display: flex; justify-content: center; margin: 4px 0 2px; min-height: 0; }
.ts-box:empty { display: none; }
.ts-box iframe { max-width: 100%; }
.ts-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--label-2, rgba(235, 235, 245, .6)); text-align: center; }

/* ---- Panduan izin mikrofon ---- */
.mic-help { display: grid; gap: 12px; }
.mic-help-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 69, 58, .14); color: #FF453A; }
.mic-help-ic svg { width: 26px; height: 26px; }
.mic-help .t-sub { margin: 0; }
.mic-help .t-foot { margin: 0; }
.mic-steps { margin: 0; padding: 12px 14px 12px 34px; border-radius: 14px; background: rgba(255, 255, 255, .05); display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.mic-steps li::marker { color: var(--accent, #E50914); font-weight: 700; }

/* =====================================================================
   ROOM: obrolan suara & chat bergaya Discord
   ===================================================================== */
.party-chat { background: #19191c; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .07); }
.party-chat .head { min-height: 52px; padding: 10px 12px 10px 16px; gap: 8px; }
.pc-hash { font: 500 22px/1 var(--font); color: var(--label-3); margin-top: -2px; }
.pc-title { flex: 1; min-width: 0; font: 600 15px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- kanal suara ---- */
.vc { box-shadow: inset 0 -.5px 0 var(--sep); }
.vc2 { padding: 6px 8px 8px; }
.vc2-cat { width: 100%; display: flex; align-items: center; gap: 4px; padding: 6px 6px 4px; border-radius: 6px; font: 700 11.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); }
.vc2-cat:hover { color: var(--label-2); }
.vc2-cat svg { width: 12px; height: 12px; stroke-width: 2.8; transition: transform .2s var(--ease); }
.vc2.is-fold .vc2-cat svg { transform: rotate(-90deg); }
.vc2-cat em { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.vc2.is-fold .vc2-body { display: none; }
.vc2-list { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 2px; }
.vc2-row { position: relative; width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; text-align: left; color: var(--label-2); }
button.vc2-row:hover { background: rgba(255, 255, 255, .06); color: var(--label); }
.vc2-row.is-me { color: var(--label); }
.vc2-av { position: relative; flex: none; display: block; border-radius: 50%; transition: box-shadow .12s; }
.vc2-av .avatar { width: 28px; height: 28px; font-size: 12.5px; }
.vc2-row.is-speaking .vc2-av { box-shadow: 0 0 0 2px #19191c, 0 0 0 4px var(--green); }
.vc2-row.is-speaking .vc2-name { color: var(--label); }
.vc2-row.is-wait .vc2-av { opacity: .45; }
.vc2-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font: 500 14px/1.25 var(--font); }
.vc2-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc2-name small { flex: none; font-size: 11.5px; color: var(--label-3); }
.vc2-tag { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 5px; border-radius: 4px; font: 700 9.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; }
.vc2-tag i { font-style: normal; font-size: 10px; }
.vc2-tag svg { width: 10px; height: 10px; stroke-width: 2.6; }
.vc2-tag.host { background: rgba(255, 214, 10, .15); color: #ffd60a; }
.vc2-tag.admin { background: rgba(10, 132, 255, .2); color: #64b5ff; }
.vc2-right { flex: none; display: flex; align-items: center; gap: 4px; }
.vc2-ic { width: 18px; height: 18px; display: grid; place-items: center; color: var(--label-3); }
.vc2-ic svg { width: 15px; height: 15px; }
.vc2-ic.off { color: var(--red); }
.vc2-st { display: inline-flex; align-items: center; font-size: 11px; color: var(--label-3); }
.vc2-st.fail { color: var(--red); font-weight: 600; }
.vc-spin.sm { width: 12px; height: 12px; border-width: 1.6px; }

.vc2-invite { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 4px 0 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .045); }
.vc2-invite > .btn { width: 100%; justify-content: center; }
.vc2-invite-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vc2-invite-txt b { font: 600 13.5px/1.25 var(--font); }
.vc2-invite-txt small { font-size: 12px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc2-join { flex: none; background: var(--green); color: #052e12; }
.vc2-join:hover { filter: brightness(1.08); }
.vc2-join svg { width: 16px; height: 16px; }
.vc2-empty { display: flex; align-items: center; gap: 10px; padding: 8px 6px; color: var(--label-3); }
.vc2-empty svg { width: 20px; height: 20px; flex: none; }
.vc2-empty b { display: block; font: 600 13.5px/1.25 var(--font); color: var(--label-2); }
.vc2-empty small { font-size: 12px; }

.vc2-panel { margin-top: 6px; padding: 10px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; background: #111113; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06); }
.vc2-conn { display: flex; align-items: center; gap: 9px; min-width: 0; }
.vc2-sig { width: 22px; flex: none; display: grid; place-items: center; color: var(--green); }
.vc2-sig svg { width: 18px; height: 18px; stroke-width: 2.8; }
.vc2-conn.is-wait .vc2-sig { color: var(--yellow); animation: vc2-blink 1.2s ease-in-out infinite; }
.vc2-conn-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vc2-conn-txt b { font: 600 13.5px/1.2 var(--font); color: var(--green); }
.vc2-conn.is-wait .vc2-conn-txt b { color: var(--yellow); }
.vc2-conn-txt small { font-size: 12px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc2-btns { display: flex; gap: 6px; }
.vc2-b { height: 38px; min-width: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--label); font: 600 13px/1 var(--font); transition: background-color .15s, color .15s, transform .12s; }
.vc2-b:hover { background: rgba(255, 255, 255, .12); }
.vc2-b:active { transform: scale(.96); }
.vc2-b svg { width: 18px; height: 18px; flex: none; }
.vc2-b.is-off { background: rgba(255, 69, 58, .14); color: var(--red); }
.vc2-b.is-off:hover { background: rgba(255, 69, 58, .22); }
.vc2-mic { flex: 1; min-width: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.vc2-mic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc2-mic.is-off span { color: var(--label); }
.vc2-mic.is-live { background: rgba(48, 209, 88, .18); color: var(--green); }
.vc2-mic.is-live:hover { background: rgba(48, 209, 88, .26); }
.vc2-leave { background: #d93a31; color: #fff; }
.vc2-leave:hover { background: var(--red); }
@keyframes vc2-blink { 50% { opacity: .45; } }

/* ---- chat ---- */
.pc-log-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.party-chat .log { flex: 1; gap: 0; padding: 4px 0 12px; overscroll-behavior: contain; }
.pc-welcome { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 10px; }
.pc-welcome-ic { width: 46px; height: 46px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font: 500 26px/1 var(--font); color: var(--label-2); }
.pc-welcome b { font: 700 16px/1.25 var(--font-display); }
.pc-welcome small { font-size: 12.5px; color: var(--label-3); }
.cm { position: relative; display: flex; gap: 10px; margin-top: 10px; padding: 3px 14px 2px; }
.cm.is-cont { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.cm:hover { background: rgba(255, 255, 255, .03); }
.cm-av { flex: none; width: 34px; height: 34px; margin-top: 1px; font-size: 14px; }
.cm-side { flex: none; width: 34px; padding-top: 3px; text-align: right; font-size: 10px; color: var(--label-3); font-variant-numeric: tabular-nums; opacity: 0; }
.cm.is-cont:hover .cm-side { opacity: 1; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.cm-head b { font: 600 14px/1.35 var(--font); }
.cm-head time { font-size: 11px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.cm-tag { align-self: center; height: 16px; display: inline-flex; align-items: center; padding: 0 5px; border-radius: 4px; font: 700 9.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; }
.cm-tag.host { background: rgba(255, 214, 10, .15); color: #ffd60a; }
.cm-tag.admin { background: rgba(10, 132, 255, .2); color: #64b5ff; }
.cm-text { margin: 0; font-size: 14.5px; line-height: 1.42; color: rgba(255, 255, 255, .88); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-sys { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 3px 14px; font-size: 13px; color: var(--label-3); }
.cm-sys-ic { width: 34px; flex: none; display: flex; justify-content: center; }
.cm-sys-ic svg { width: 15px; height: 15px; }
.cm-sys-txt { flex: 1; min-width: 0; }
.cm-sys-txt b { font-weight: 600; color: var(--label-2); }
.cm-sys time { flex: none; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chat-jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--blue); color: #fff; font: 600 12.5px/1 var(--font); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); animation: chat-jump-in .2s var(--ease); }
.chat-jump svg { width: 14px; height: 14px; stroke-width: 2.6; }
.chat-jump[hidden] { display: none; }
@keyframes chat-jump-in { from { opacity: 0; transform: translate(-50%, 6px); } }

.party-chat form.chat-box { display: block; padding: 0 12px 12px; box-shadow: none; }
.chat-field { min-height: 46px; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 12px; background: #2a2a2e; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.chat-field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.chat-field input { flex: 1; min-width: 0; height: 38px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--label); font: 400 15px/1 var(--font); }
.chat-field input::placeholder { color: var(--label-3); }
.chat-send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; transition: background-color .15s, color .15s, transform .12s; }
.chat-send:disabled { background: transparent; color: var(--label-4); cursor: default; }
.chat-send:not(:disabled):active { transform: scale(.94); }
.chat-send svg { width: 18px; height: 18px; }

/* ---- HP: peserta suara jadi ubin, kontrol satu baris ---- */
@media (max-width: 860px) {
  .party-room .party-chat:has(.vc2.is-on) { min-height: 460px; }
  .vc2-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 2px; }
  .vc2-row { flex-direction: column; gap: 5px; min-height: 0; padding: 8px 2px 6px; text-align: center; }
  .vc2-av .avatar { width: 42px; height: 42px; font-size: 16px; }
  .vc2-row.is-speaking .vc2-av { box-shadow: 0 0 0 2.5px #19191c, 0 0 0 5px var(--green); }
  .vc2-name { flex: none; width: 100%; justify-content: center; font-size: 12px; }
  .vc2-name small { display: none; }
  .vc2-tag { position: absolute; top: 3px; left: calc(50% - 27px); height: 16px; padding: 0 4px; font-size: 0; gap: 0; }
  .vc2-tag i { font-size: 10px; }
  .vc2-right { position: absolute; top: 34px; left: calc(50% + 9px); }
  .vc2-ic { width: 19px; height: 19px; border-radius: 50%; background: #2c2c2e; box-shadow: 0 0 0 2px #19191c; }
  .vc2-ic svg { width: 11px; height: 11px; stroke-width: 2.4; }
  .vc2-st { height: 19px; padding: 0 5px; border-radius: 10px; background: #2c2c2e; box-shadow: 0 0 0 2px #19191c; }
  .vc2-panel { flex-direction: row; align-items: center; gap: 8px; padding: 8px; }
  .vc2-conn-txt { display: none; }
  .vc2-btns { flex: 1; min-width: 0; }
  .vc2-b { height: 40px; }
}

/* ---- Pembayaran di halaman sendiri: QRIS (QR Tako di dalam sheet) & DANA/GoPay ---- */
.ps-qris { display: grid; gap: 12px; margin: 14px 0 4px; }
.ps-frame { position: relative; height: min(600px, 66vh); min-height: 440px; border-radius: 16px; overflow: hidden; background: #0f1a1f; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1); }
.ps-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.ps-frame-load { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--label-2); font-size: 14px; background: #0f1a1f; }
.ps-qris .ps-steps { margin: 0; }
.ps-alt { margin: 0; text-align: center; }
.ps-alt a { color: var(--blue); font-weight: 600; }
.ps-wallet { display: grid; gap: 10px; margin: 16px 0 6px; }
.ps-wallet-btn { height: 52px; font-size: 16px; gap: 10px; }
.ps-wallet-btn .pay-mark { flex: none; box-shadow: none; }
.ps-wallet-btn.pay-dana { background: #108ee9; }
.ps-wallet-btn.pay-gopay { background: #00aed6; }
.ps-wallet-note { margin: 0; text-align: center; }
.ps-wallet-prep { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: var(--label-2); font-size: 14px; }
.ps-wallet.is-desk { grid-template-columns: 172px 1fr; align-items: center; gap: 18px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.ps-wallet-qr { width: 172px; height: 172px; padding: 8px; border-radius: 12px; background: #fff; }
.ps-wallet-qr:empty { background: rgba(255, 255, 255, .9); }
.ps-wallet-qr svg { display: block; width: 100%; height: 100%; }
.ps-wallet-side { display: grid; gap: 6px; justify-items: start; }
.ps-wallet-side b { font: 600 16px/1.25 var(--font); }
.ps-wallet-side span { font-size: 13.5px; line-height: 1.45; color: var(--label-2); }
.ps-wallet-side .btn { margin-top: 6px; }
@media (max-width: 480px) {
  .ps-wallet.is-desk { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ps-wallet-side { justify-items: center; }
}

/* =====================================================================
   LANGGANAN: tombol header, kartu menu akun, banner beranda
   ===================================================================== */
.sub-cta-slot { display: contents; }
.sub-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 16px 0 14px;
  border-radius: var(--r-pill);
  color: var(--label); font: 600 14.5px/1 var(--font); white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, transform .25s var(--ease-spring);
}
.sub-cta svg { width: 18px; height: 18px; flex: none; color: #ffd60a; }
.sub-cta:hover { background: rgba(255, 214, 10, .1); }
.sub-cta:active { transform: scale(.96); }
/* Hampir habis: sedikit oranye, tetap tenang. */
.sub-cta.is-renew { border-color: rgba(255, 159, 10, .45); }
.sub-cta.is-renew svg, .sub-cta.is-renew span { color: #ff9f0a; }

/* Kartu di menu akun & halaman Akun */
.sub-card-wrap { padding: 4px 4px 8px; }
.sub-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 106, .2), rgba(245, 166, 35, .08) 55%, rgba(229, 9, 20, .1));
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .25);
  color: var(--label); transition: background-color .2s, transform .2s var(--ease-spring);
}
.sub-card:hover { background: linear-gradient(135deg, rgba(255, 215, 106, .28), rgba(245, 166, 35, .12) 55%, rgba(229, 9, 20, .14)); }
.sub-card:active { transform: scale(.985); }
.sub-card-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #ffd76a, #f5a623); color: #2b1a00; box-shadow: 0 4px 14px rgba(245, 166, 35, .3); }
.sub-card-ic svg { width: 22px; height: 22px; stroke-width: 2.2; }
.sub-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-card-txt b { font: 700 15px/1.25 var(--font); }
.sub-card-txt small { font-size: 12.5px; line-height: 1.35; color: var(--label-2); }
.sub-card-go { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; background: #ffd76a; color: #2b1a00; font: 700 12.5px/1 var(--font); white-space: nowrap; }
.sub-card-go svg { width: 16px; height: 16px; }
.sub-card.is-member { background: rgba(255, 214, 10, .07); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .18); }
.sub-card.is-member .sub-card-go { background: transparent; color: var(--label-3); padding: 0; }
.sub-card.is-member.is-renew { background: linear-gradient(135deg, rgba(255, 179, 64, .22), rgba(255, 122, 26, .1)); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .35); }
.sub-card.is-member.is-renew .sub-card-go { background: #ff9f0a; color: #2b1200; padding: 0 12px; }
.acct-sub { margin: -6px 0 22px; max-width: 560px; }

/* Banner beranda */
.sub-banner {
  position: relative; display: flex; align-items: center; gap: 16px;
  margin: 8px var(--gutter, 56px) 34px; padding: 18px 56px 18px 18px; border-radius: 20px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(255, 215, 106, .22), transparent 55%), linear-gradient(135deg, #2a2112, #1c1710 45%, #22100f);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .2), 0 10px 30px rgba(0, 0, 0, .35);
}
.sub-banner-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #ffd76a, #f5a623); color: #2b1a00; box-shadow: 0 6px 20px rgba(245, 166, 35, .35); }
.sub-banner-ic svg { width: 28px; height: 28px; stroke-width: 2.2; }
.sub-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sub-banner-txt b { font: 700 17px/1.3 var(--font-display, var(--font)); }
.sub-banner-txt small { font-size: 13.5px; line-height: 1.45; color: var(--label-2); }
.sub-banner-btn { flex: none; background: linear-gradient(135deg, #ffd76a, #f5a623); color: #2b1a00; font-weight: 700; }
.sub-banner-btn:hover { filter: brightness(1.06); }
.sub-banner-x { position: absolute; top: 10px; right: 10px; color: var(--label-3); }

@media (max-width: 860px) {
  .sub-cta { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sub-cta span { display: none; }
  .sub-banner { margin: 4px 16px 26px; padding: 16px 44px 16px 14px; gap: 12px; flex-wrap: wrap; }
  .sub-banner-ic { width: 42px; height: 42px; border-radius: 13px; }
  .sub-banner-ic svg { width: 22px; height: 22px; }
  .sub-banner-txt { flex: 1 1 calc(100% - 60px); }
  .sub-banner-txt b { font-size: 15px; }
  .sub-banner-txt small { font-size: 12.5px; }
  .sub-banner-btn { flex: 1 1 100%; justify-content: center; }
}

/* =====================================================================
   ADMIN · AKTIVITAS & ANALITIK
   ===================================================================== */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; height: 30px; padding: 0 12px; border-radius: 9px; font: 600 13px/1 var(--font); color: var(--label-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--label); }
.seg button.is-active { background: var(--grouped-2, #3a3a3c); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.act-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stat.is-bad b { color: var(--red); }
.act-h { display: flex; align-items: center; gap: 8px; margin: 28px 2px 10px; font: 700 17px/1.3 var(--font-display, var(--font)); }
.act-h svg { width: 18px; height: 18px; color: var(--label-2); }
.act-sub { display: flex; align-items: center; gap: 7px; margin: 22px 2px 8px; font: 700 14px/1.3 var(--font); color: var(--label-2); }
.act-sub svg { width: 16px; height: 16px; }
.act-empty { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--label-3); font-size: 14px; }
.act-empty svg { width: 20px; height: 20px; color: var(--green); }

/* grafik batang mini */
.act-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.mini-chart { --bar: var(--red); padding: 14px 14px 10px; border-radius: var(--r-md); background: var(--grouped); }
.mini-chart.blue { --bar: var(--blue); }
.mini-chart.green { --bar: var(--green); }
.mini-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--label-2); }
.mini-chart-head b { font: 700 18px/1 var(--font-display, var(--font)); color: var(--label); }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 12px; }
.mini-bars i { flex: 1; min-width: 2px; height: max(2px, var(--h)); border-radius: 3px 3px 1px 1px; background: var(--bar); opacity: .8; transition: opacity .15s; }
.mini-bars i:hover { opacity: 1; }
.mini-bars i:last-child { opacity: 1; }
.mini-chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--label-3); }

/* daftar yang ditandai */
.act-flag { width: 100%; text-align: left; align-items: flex-start; }
.act-flag > svg:last-child { align-self: center; color: var(--label-3); }
.flag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.flag-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font: 600 12px/1 var(--font); white-space: nowrap; background: rgba(255, 159, 10, .14); color: var(--orange); }
.flag-chip svg { width: 13px; height: 13px; flex: none; }
.flag-chip.high { background: rgba(255, 69, 58, .15); color: #ff6961; }
.rank-n { width: 22px; flex: none; text-align: center; font: 700 15px/1 var(--font-display, var(--font)); color: var(--label-3); }

.act-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 20px; }
.act-brk { padding: 6px 16px 12px; }
.brk h4 { margin: 12px 0 6px; font: 600 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--label-3); }
.brk-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; }
.brk-row b { font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.brk-row i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); border-radius: 2px; background: var(--blue); opacity: .7; }
.brk-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--fill-2); z-index: -1; }
.brk-row { z-index: 0; }

/* umpan aktivitas */
.act-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.act-filter .searchbar { flex: 1 1 240px; margin: 0; }
.act-feed { padding: 2px 0; }
.act-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 16px; }
.act-row + .act-row { box-shadow: inset 0 .5px 0 var(--sep); }
.act-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--fill-2); color: var(--label-2); }
.act-ic svg { width: 16px; height: 16px; }
.act-ic.ok { background: rgba(48, 209, 88, .14); color: var(--green); }
.act-ic.bad { background: rgba(255, 69, 58, .15); color: #ff6961; }
.act-ic.warn { background: rgba(255, 159, 10, .14); color: var(--orange); }
.act-main { flex: 1; min-width: 0; }
.act-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; line-height: 1.35; }
.act-user { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--label); }
.act-user b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.act-user:hover b { text-decoration: underline; }
.act-user.dim { color: var(--label-3); }
.act-user .avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.act-kind { color: var(--label-2); }
.act-kind.bad { color: #ff6961; font-weight: 600; }
.act-kind.warn { color: var(--orange); }
.act-detail { min-width: 0; color: var(--label); overflow-wrap: anywhere; }
.act-detail a:hover { text-decoration: underline; }
.act-detail code { font-size: 12px; color: var(--label-2); }
.act-net { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 3px; font-size: 12px; color: var(--label-3); }
.act-net i { font-style: normal; }
.act-ip { color: var(--label-2); font: inherit; font-variant-numeric: tabular-nums; }
.act-ip:hover { color: var(--label); text-decoration: underline; }
.act-time { flex: none; padding-top: 2px; font-size: 12px; color: var(--label-3); white-space: nowrap; }
.act-more { display: flex; justify-content: center; margin-top: 12px; }

/* detail pengguna */
.ins-head { display: flex; align-items: center; gap: 14px; }
.ins-head .avatar.lg { width: 56px; height: 56px; font-size: 21px; flex: none; }
.ins-head b { font: 700 18px/1.3 var(--font-display, var(--font)); }
.ins-head small { display: block; margin-top: 2px; font-size: 13px; color: var(--label-2); overflow-wrap: anywhere; }
.ins-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ins-tags .tag { height: 22px; font-size: 11.5px; }
.ins-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ins-ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--green); }
.ins-ok svg { width: 17px; height: 17px; }
.ins-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ins-counts div { padding: 10px 12px; border-radius: 12px; background: var(--fill-2); }
.ins-counts b { display: block; font: 700 18px/1.2 var(--font-display, var(--font)); }
.ins-counts span { font-size: 12px; color: var(--label-2); }
.ins-acts { margin-top: 14px; flex-wrap: wrap; }
.ins-dev-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill-2); color: var(--label-2); }
.ins-dev-ic svg { width: 18px; height: 18px; }
.cell .grow small .act-ip { font-size: inherit; }
.ins-pct { position: relative; flex: none; width: 52px; height: 22px; border-radius: 6px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; font: 600 11.5px/1 var(--font); font-variant-numeric: tabular-nums; z-index: 0; }
.ins-pct::before { content: ""; position: absolute; top: 0; right: auto; bottom: 0; left: 0; inset: 0 auto 0 0; width: var(--p); background: rgba(229, 9, 20, .45); z-index: -1; }

@media (max-width: 860px) {
  .act-charts { grid-template-columns: 1fr; }
  .act-cols { grid-template-columns: 1fr; }
  .ins-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-row { padding: 10px 12px; gap: 10px; }
  .act-user b { max-width: 130px; }
}
/* Baris berupa <button> di panel aktivitas: lebar penuh, ikon panah ukuran normal. */
.group > button.cell { width: 100%; text-align: left; font: inherit; color: inherit; }
.group > button.cell:hover { background: var(--fill-3, rgba(255, 255, 255, .04)); }
.group > button.cell > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--label-3); }
.group > button.cell .grow small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--label-2); }
.group > button.cell .grow b { font-weight: 600; }
.brk-row .grow { flex: 1; min-width: 0; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } .admin-grid > * { min-width: 0; } }
@media (max-width: 860px) {
  .admin-nav a { white-space: nowrap; }
  .act-top + .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .act-top + .stat-grid .stat { padding: 12px 14px; }
}

/* =====================================================================
   HALAMAN LEGAL (privasi, ketentuan, hak cipta, pengembalian dana)
   ===================================================================== */
.legal-page .legal-tabs { margin-top: 4px; }
.legal-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; }
.legal-tabs a { flex: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--label-2); font: 600 14px/1 var(--font); white-space: nowrap; transition: background-color .2s, color .2s; }
.legal-tabs a:hover { color: var(--label); }
.legal-tabs a.is-active { background: var(--label); color: var(--black, #000); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h, 80px) + 20px); display: grid; gap: 2px; }
.legal-toc p { margin: 0 0 8px 10px; font: 600 12px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--label-3); }
.legal-toc a { padding: 7px 10px; border-radius: 9px; font-size: 14px; line-height: 1.3; color: var(--label-2); }
.legal-toc a:hover { background: var(--fill-2); color: var(--label); }
.legal-doc h1 { margin: 0; font: 700 clamp(28px, 4vw, 38px)/1.15 var(--font-display, var(--font)); letter-spacing: -.02em; }
.legal-updated { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--label-3); }
.legal-updated svg { width: 14px; height: 14px; }
.legal-intro { margin: 18px 0 8px; font-size: 17px; line-height: 1.6; color: var(--label); }
.legal-doc section { padding-top: 26px; scroll-margin-top: calc(var(--nav-h, 80px) + 16px); }
.legal-doc h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 19px/1.3 var(--font-display, var(--font)); }
.legal-doc h2 span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--fill-2); font: 700 13px/1 var(--font); color: var(--label-2); }
.legal-doc p, .legal-doc li { font-size: 15.5px; line-height: 1.7; color: var(--label-2); }
.legal-doc p { margin: 0 0 10px; }
.legal-doc b { color: var(--label); font-weight: 600; }
.legal-doc ul, .legal-doc ol { margin: 0 0 10px; padding-left: 22px; }
.legal-doc li { margin: 0 0 6px; padding-left: 2px; }
.legal-doc li::marker { color: var(--label-3); }
.legal-doc a { color: var(--label); text-decoration: underline; text-decoration-color: var(--label-3); text-underline-offset: 3px; }
.legal-doc a:hover { text-decoration-color: var(--label); }
.legal-doc code { padding: 1px 6px; border-radius: 6px; background: var(--fill-2); font-size: 13.5px; color: var(--label); }
.legal-contact { display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; padding: 18px; border-radius: var(--r-lg); background: var(--grouped); }
.legal-contact > svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--label-2); }
.legal-contact b { display: block; margin-bottom: 2px; color: var(--label); }
.legal-contact span { font-size: 14.5px; line-height: 1.55; color: var(--label-2); }
.legal-contact a { color: var(--label); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-toc { display: none; }
  .legal-intro { font-size: 16px; }
  .legal-doc p, .legal-doc li { font-size: 15px; }
}

/* Tautan legal di footer */
.footer .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; }
.footer .legal-links a { font-size: 13.5px; color: var(--label-2); }
.footer .legal-links a:hover { color: var(--label); text-decoration: underline; text-underline-offset: 3px; }
.footer .legal-links + .legal { margin-top: 12px; }

/* Persetujuan saat daftar & checkout */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--label-2); cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--accent, #E50914); cursor: pointer; }
.consent a, .co-legal a { color: var(--label); text-decoration: underline; text-underline-offset: 2px; }
.co-legal { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--label-3); }

/* Hapus akun */
.del-list { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--label-2); }
.del-list b { color: var(--red); }
.group > a.cell > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--label-3); }
.group > a.cell .grow small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--label-2); }

/* =====================================================================
   NONTON BARENG · overlay chat & suara di atas video (ala live)
   ===================================================================== */
.pov { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 4; display: none; pointer-events: none; }
.pov.on.away, .mfp.is-fs .pov.on, .mfp.is-pseudo-fs .pov.on { display: block; }
.mfp.is-loading .pov, .mfp.is-error .pov { display: none !important; }
.pov-feed { position: absolute; left: 16px; bottom: 26%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: min(360px, 42%); transition: bottom .25s var(--ease); }
.mfp.show-ui .pov-feed { bottom: max(26%, 104px); }
.pov-b { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; padding: 6px 12px 7px 6px; border-radius: 18px;
  background: rgba(0, 0, 0, .46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25); animation: pov-in .3s var(--ease-spring, ease) both; transition: opacity .6s ease, transform .6s ease; }
.pov-b.out { opacity: 0; transform: translateY(-6px); }
.pov-b.is-me { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 12px rgba(0, 0, 0, .25); }
.pov-b.is-me .avatar.xs { --c: var(--accent, #e50914); }
.pov-b.is-me .pov-b-txt b { color: #fff; }
.pov-st { flex: none; align-self: flex-end; display: grid; place-items: center; width: 16px; height: 16px; margin: 0 -4px 1px 2px; font-style: normal; color: rgba(255, 255, 255, .7); }
.pov-st svg { width: 13px; height: 13px; }
.pov-b.is-pending .pov-st { animation: pov-pulse 1s ease-in-out infinite; }
.pov-b.is-sent .pov-st { color: #30d158; animation: rx-tap .38s cubic-bezier(.34, 1.8, .5, 1); }
.pov-b.is-fail { background: rgba(255, 69, 58, .32); }
.pov-b.is-fail .pov-st { color: #ff453a; }
.pov-err { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: #ffb4ae; }
@keyframes pov-pulse { 50% { opacity: .35; } }
.pov-b .avatar.xs { width: 24px; height: 24px; font-size: 11px; flex: none; margin-top: 1px; }
.pov-b-txt { min-width: 0; font-size: 13.5px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pov-b-txt b { font-weight: 700; margin-right: 6px; }
.pov-b-txt .pov-msg { display: block; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pov-tag { margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 214, 10, .22); color: #ffd60a; font: 700 10px/1.4 var(--font); font-style: normal; vertical-align: 1px; }
.pov-talk { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 60%; transition: top .25s var(--ease); }
.mfp.show-ui .pov-talk { top: 70px; }
.pov-t { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px; border-radius: 15px; background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 12.5px/1 var(--font); animation: pov-in .25s var(--ease-spring, ease) both; }
.pov-t .avatar.xs { width: 22px; height: 22px; font-size: 10px; box-shadow: 0 0 0 2px #30d158; animation: pov-ring 1.2s ease-in-out infinite; }
.pov-t svg { width: 13px; height: 13px; color: #30d158; }
.pov-t b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pov-t.more { padding: 0 10px; }
@keyframes pov-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes pov-ring { 0%, 100% { box-shadow: 0 0 0 2px #30d158; } 50% { box-shadow: 0 0 0 4px rgba(48, 209, 88, .45); } }
@container (max-width: 560px) {
  .pov-feed { left: 10px; bottom: 30%; max-width: 70%; gap: 4px; }
  .mfp.show-ui .pov-feed { bottom: max(30%, 84px); }
  .pov-b { padding: 4px 10px 5px 4px; border-radius: 14px; }
  .pov-b .avatar.xs { width: 20px; height: 20px; font-size: 9.5px; }
  .pov-b-txt { font-size: 12px; }
  .pov-b-txt .pov-msg { -webkit-line-clamp: 2; }
  .pov-talk { left: 10px; top: 10px; }
  .mfp.show-ui .pov-talk { top: 54px; }
  .pov-t { height: 26px; font-size: 11.5px; }
  .pov-feed .pov-b:nth-last-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pov-b, .pov-t { animation: none; } .pov-t .avatar.xs { animation: none; } }

/* Tombol overlay di kepala panel chat */

/* Panel suara: pengatur volume film & teman */
.vc-mix > span { display: flex; align-items: center; gap: 7px; }
.vc-mix > span svg { width: 15px; height: 15px; color: var(--label-2); }
.vc-mix > span b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--label-2); font-weight: 600; }
.vc-mix input[type=range] { width: 100%; accent-color: var(--accent, #E50914); }

/* =====================================================================
   NONTON BARENG · daftar room
   ===================================================================== */
.wp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 26px; }
.wp-hero-txt { flex: 1 1 420px; min-width: 0; }
.wp-hero-txt .t-large { margin: 6px 0 6px; }
.wp-hero-txt .t-sub { max-width: 560px; margin: 0; }
.wp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 10px; border-radius: var(--r-pill); background: rgba(229, 9, 20, .12); color: #ff6961; font: 600 13px/1 var(--font); }
.wp-kicker.idle { background: var(--fill-2); color: var(--label-2); }
.wp-kicker.idle .live-dot { background: var(--label-3); box-shadow: none; animation: none; }
.wp-join { flex: 0 1 380px; padding: 16px; border-radius: var(--r-lg); background: var(--grouped); box-shadow: inset 0 0 0 .5px var(--sep); }
.wp-join label { display: block; margin-bottom: 8px; font: 600 13px/1 var(--font); color: var(--label-2); }
.wp-join-row { display: flex; gap: 8px; }
.wp-join-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.wp-join-row .input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 400; }
.wp-join-row .btn { flex: none; }
.wp-bar { margin-bottom: 18px; }
.wp-bar .seg button { display: inline-flex; align-items: center; gap: 6px; }
.wp-bar .seg svg { width: 14px; height: 14px; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }

.wp-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--grouped); box-shadow: inset 0 0 0 .5px var(--sep);
  transition: transform .35s var(--ease-spring, ease), box-shadow .25s; }
.wp-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 .5px var(--sep), 0 14px 34px rgba(0, 0, 0, .45); }
.wp-card:active { transform: scale(.985); }
.wp-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.wp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.wp-card:hover .wp-media img { transform: scale(1.04); }
.wp-noimg { display: grid; place-items: center; height: 100%; color: var(--label-3); }
.wp-noimg svg { width: 36px; height: 36px; }
.wp-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 34%, transparent 46%, rgba(0, 0, 0, .85) 100%); }
.wp-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.wp-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 8px; border-radius: 7px; background: #e50914; color: #fff; font: 800 11px/1 var(--font); letter-spacing: .06em; }
.wp-live .live-dot { width: 6px; height: 6px; background: #fff; box-shadow: none; }
.wp-state { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 7px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 11.5px/1 var(--font); }
.wp-state svg { width: 12px; height: 12px; }
.wp-flags { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.wp-flags span { display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; padding: 0 7px; justify-content: center; border-radius: 13px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.wp-flags svg { width: 14px; height: 14px; }
.wp-flags span.is-live { background: rgba(48, 209, 88, .9); color: #002b0d; }
.wp-flags b { font: 700 12px/1 var(--font); }
.wp-title { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.wp-title b { font: 700 18px/1.25 var(--font-display, var(--font)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-title small { font-size: 13px; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-meta { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.wp-room { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wp-room b { font: 600 14.5px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-room span { font-size: 12.5px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-people { flex: none; display: flex; align-items: center; gap: 8px; }
.wp-faces { display: flex; }
.wp-faces .avatar.xs { width: 26px; height: 26px; font-size: 11px; box-shadow: 0 0 0 2px var(--grouped); }
.wp-faces .avatar.xs + .avatar.xs { margin-left: -8px; }
.wp-faces .avatar.more { background: var(--fill); color: var(--label-2); font-size: 10px; }
.wp-count { font: 600 12.5px/1 var(--font); color: var(--label-2); font-variant-numeric: tabular-nums; }
.wp-count.full { color: var(--orange); }
.wp-card.is-full .wp-media img { filter: saturate(.6); }
.wp-empty { padding: 10px 0; }
.wp-empty.small { display: flex; align-items: center; gap: 10px; padding: 26px 16px; border-radius: var(--r-lg); background: var(--grouped); color: var(--label-2); }
.wp-empty.small svg { width: 18px; height: 18px; }

.wp-how { margin-top: 48px; }
.wp-how h2 { margin: 0 0 14px; }
.wp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.wp-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: var(--grouped); }
.wp-step .ic { margin-bottom: 6px; }
.wp-step b { font: 600 15px/1.3 var(--font); }
.wp-step small { font-size: 13.5px; line-height: 1.45; color: var(--label-2); }
.wp-step-n { position: absolute; right: 16px; top: 14px; font: 800 26px/1 var(--font-display, var(--font)); color: var(--fill); }
@media (max-width: 860px) {
  .wp-hero { align-items: stretch; margin-bottom: 18px; }
  .wp-join { flex-basis: 100%; }
  .wp-bar .seg { width: 100%; }
  .wp-grid { gap: 14px; }
  .wp-title b { font-size: 16.5px; }
  .wp-steps { grid-template-columns: 1fr; }
}
.wp-step .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--c); color: #fff; }
.wp-step .ic svg { width: 20px; height: 20px; }

/* =====================================================================
   NONTON BARENG · ROOM v2 (room dipakai ulang, reaksi, tata letak HP)
   ===================================================================== */
.party-room { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 48px; }
.party-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.party-chat { height: min(calc(100svh - var(--nav-h) - 60px), 760px); position: sticky; top: calc(var(--nav-h) + 16px); }

/* Bilah info di bawah video */
.room-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; }
.room-now { flex: 1 1 320px; min-width: 0; }
.room-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: 13px; color: var(--label-2); }
.room-kicker .sep { color: var(--label-4); }
.room-live { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 6px; background: #e50914; color: #fff; font: 800 10.5px/1 var(--font); letter-spacing: .06em; }
.room-live .live-dot { width: 6px; height: 6px; background: #fff; box-shadow: none; }
.room-role .tag { height: 20px; font-size: 11px; }
.room-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 0; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--font-display, var(--font)); letter-spacing: -.01em; }
.room-title small { font: 500 15px/1.3 var(--font); color: var(--label-2); }
.room-title small:empty { display: none; }
.room-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.room-acts .btn-sm { --h: 38px; }
.room-more { width: 38px; height: 38px; }
.room-more svg { width: 18px; height: 18px; }

/* Riwayat tontonan room */
.room-hist { margin-top: 16px; padding: 12px 0 4px; box-shadow: inset 0 .5px 0 var(--sep); }
.room-hist[hidden] { display: none; }
.rh-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font: 600 13px/1 var(--font); color: var(--label-2); }
.rh-head span { display: inline-flex; align-items: center; gap: 6px; }
.rh-head svg { width: 15px; height: 15px; }
.rh-head em { font-style: normal; color: var(--label-3); font-variant-numeric: tabular-nums; }
.rh-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.rh-list::-webkit-scrollbar { display: none; }
.rh-item { flex: none; width: 168px; display: flex; flex-direction: column; gap: 7px; text-align: left; color: inherit; scroll-snap-align: start; }
.rh-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--label-3); }
.rh-pic img { width: 100%; height: 100%; object-fit: cover; }
.rh-pic > svg { width: 22px; height: 22px; }
.rh-pic i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.rh-pic i svg { width: 26px; height: 26px; color: #fff; }
button.rh-item:hover .rh-pic i, button.rh-item:focus-visible .rh-pic i { opacity: 1; }
.rh-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rh-txt b { font: 600 13.5px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-txt small { font-size: 12px; color: var(--label-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Panel suara: label, bukan tombol lipat */
.vc2-cat { cursor: default; gap: 6px; }
.vc2-cat:hover { color: var(--label-3); }
.vc2-cat svg { width: 13px; height: 13px; transform: none !important; }

/* Chat: lebih mudah dibaca */
.party-chat .cm-text { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.party-chat .cm-head b { font-size: 14.5px; }
.party-chat .cm-sys { font-size: 13px; color: var(--label-2); }
.party-chat .cm-sys-txt b { color: var(--label); }

/* Baris reaksi di atas kolom chat */
.pc-reacts { display: flex; justify-content: space-between; gap: 4px; padding: 6px 12px 8px; box-shadow: inset 0 .5px 0 var(--sep); }
.pc-reacts button, .pdock-rx button { flex: 1; height: 36px; max-width: 52px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; line-height: 1; transition: transform .15s var(--ease-spring, ease), background-color .15s; }
.pc-reacts button:hover, .pdock-rx button:hover { background: rgba(255, 255, 255, .08); }
.pc-reacts button:active, .pdock-rx button:active { transform: scale(1.25); }

/* Reaksi melayang di atas video */
.prx { position: absolute; right: 22px; bottom: 96px; width: 80px; height: 66%; z-index: 5; pointer-events: none; overflow: visible; }
.mfp.is-loading .prx, .mfp.is-error .prx { display: none; }
/* Reaksi: muncul memantul, naik sambil bergoyang lembut, memudar di atas. */
.prx-e { position: absolute; bottom: 0; left: 50%; font-size: calc(30px * var(--sz, 1)); line-height: 1;
  translate: calc(-50% + var(--x0, 0px)) 0; animation: prx-rise var(--dur, 2.7s) cubic-bezier(.33, .6, .4, 1) forwards; will-change: translate, opacity; }
.prx-e i { display: block; font-style: normal; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35));
  animation: prx-pop .5s cubic-bezier(.34, 1.7, .5, 1) both, prx-sway var(--swd, .9s) ease-in-out .15s infinite alternate; }
.prx-e.is-me i { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)) drop-shadow(0 0 10px rgba(255, 255, 255, .35)); }
/* Cincin lembut di titik awal reaksi sendiri */
.prx-e.is-me::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 44px; height: 44px; margin: 0 0 -6px -22px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); animation: prx-ring .55s ease-out both; }
@keyframes prx-rise {
  0% { opacity: 0; translate: calc(-50% + var(--x0, 0px)) 0; }
  8% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; translate: calc(-50% + var(--x0, 0px)) -320px; }
}
@keyframes prx-pop { 0% { scale: .2; rotate: 0deg; } 60% { scale: 1.3; } 100% { scale: 1; rotate: var(--rot, 0deg); } }
@keyframes prx-sway { from { translate: calc(var(--sw, 14px) * -1) 0; } to { translate: var(--sw, 14px) 0; } }
@keyframes prx-ring { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.5; } }
/* Tombol reaksi: memantul saat ditekan */
.pc-reacts button.tap, .pdock-rx button.tap, .pdock-mb.tap { animation: rx-tap .38s cubic-bezier(.34, 1.8, .5, 1); }
@keyframes rx-tap { 0% { scale: 1; } 35% { scale: 1.38; } 100% { scale: 1; } }

/* Komposer layar penuh ala TikTok: bilah lengkap saat dipakai / kontrol tampil,
   mengecil sendiri jadi dua tombol bulat kecil saat menonton. */
.pdock-rx { display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pdock-rx button { width: 40px; flex: none; }
.pdock-row { display: flex; align-items: center; gap: 6px; width: 100%; }
.pdock-ic { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 22px; background: rgba(0, 0, 0, .55); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pdock-ic svg { width: 19px; height: 19px; }
.pdock-ic s { position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; margin: -1px 0 0 -12px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); rotate: -45deg; scale: 0 1; transition: scale .2s var(--ease); }
.pdock-ic.is-off { color: rgba(255, 255, 255, .6); }
.pdock-ic.is-off s { scale: 1 1; }
.pdock-form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 44px; padding: 3px 3px 3px 14px; border-radius: 22px; background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pdock-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: 400 14.5px/1 var(--font); }
.pdock-form input::placeholder { color: rgba(255, 255, 255, .6); }
.pdock-form button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 19px; background: var(--accent, #e50914); color: #fff; transition: background-color .2s; }
.pdock-form button svg { width: 17px; height: 17px; }
.pdock-form.is-sending button { opacity: .6; }
.pdock-form.is-sent button { background: #30d158; animation: rx-tap .38s cubic-bezier(.34, 1.8, .5, 1); }
/* Komposer terbuka: gelembung chat tidak tertutup */
.mfp.is-fs.show-ui .pov-feed, .mfp.is-pseudo-fs.show-ui .pov-feed { bottom: max(26%, 104px); }

/* Pemilih tontonan */
.pk-search { margin: 0 0 14px; }
.pk-h { margin: 16px 2px 8px; font: 600 13px/1 var(--font); letter-spacing: .02em; color: var(--label-2); }
.pk-list { display: flex; flex-direction: column; gap: 2px; }
.pk-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-align: left; color: var(--label); }
.pk-row:hover { background: var(--fill-2); }
.pk-row > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--label-3); }
.pk-pic { width: 44px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--label-3); }
.pk-pic img { width: 100%; height: 100%; object-fit: cover; }
.pk-pic svg { width: 18px; height: 18px; }
.pk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-txt b { font: 600 14.5px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-txt small { font-size: 12.5px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-epn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--fill-2); font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.pk-seasons { margin: 0 0 10px; }
.pk-back { margin: -4px 0 0 -6px; }
.pk-empty { padding: 18px 4px; }
.pk-nextbtn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(229, 9, 20, .14); color: var(--label); text-align: left; box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .35); }
.pk-nextbtn > svg { width: 22px; height: 22px; flex: none; color: #ff6961; }
.pk-nextbtn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-nextbtn b { font: 600 14.5px/1.3 var(--font); }
.pk-nextbtn small { font-size: 12.5px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-nextbtn:hover { background: rgba(229, 9, 20, .2); }

/* Halaman film: pilih room */
.pick-room { display: flex; flex-direction: column; gap: 8px; }
.pick-room-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--fill-2); color: var(--label); text-align: left; }
.pick-room-opt.is-main { background: rgba(229, 9, 20, .14); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .35); }
.pick-room-opt:hover { filter: brightness(1.12); }
.pick-room-opt .ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--c); color: #fff; }
.pick-room-opt .ic svg { width: 19px; height: 19px; }
.pick-room-opt .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-room-opt b { font: 600 15px/1.3 var(--font); }
.pick-room-opt small { font-size: 12.5px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-room-opt > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--label-3); }

/* ---------------- HP ---------------- */
@media (max-width: 860px) {
  /* Satu layar penuh: video (menempel) → bilah info → riwayat → chat mengisi sisa layar. */
  .party-room { height: 100svh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; }
  .party-room .party-layout { display: contents; }
  .party-room .room-main { order: 1; flex: none; position: relative; top: auto; z-index: 30; padding-top: env(safe-area-inset-top); background: #000; }
  .party-room .room-frame { border-radius: 0; box-shadow: none; }
  .party-room .room-note { display: none; }
  .room-bar { margin: 0; padding: 10px 14px; gap: 10px; flex-wrap: nowrap; background: var(--bg, #000); }
  .room-now { flex: 1 1 auto; }
  .room-kicker { font-size: 12px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .room-kicker [data-room-badges], .room-kicker .room-role, .room-kicker .sep { display: none; }
  .room-kicker [data-room-name] { overflow: hidden; text-overflow: ellipsis; }
  .room-title { margin-top: 3px; font-size: 16.5px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .room-title > span { overflow: hidden; text-overflow: ellipsis; }
  .room-title small { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .room-acts { flex: none; flex-wrap: nowrap; gap: 6px; }
  .room-acts .btn-sm { --h: 36px; padding: 0 11px; }
  .room-acts .btn-sm span, .room-code small { display: none; }
  .room-code { height: 36px; padding: 0 10px; }
  .room-code b { font-size: 13px; letter-spacing: .08em; }
  .room-more { width: 36px; height: 36px; }
  .party-room .room-hist { margin: 0; padding: 6px 14px 8px; box-shadow: none; background: var(--bg, #000); }
  .rh-head { margin-bottom: 6px; font-size: 12px; }
  .rh-item { width: auto; max-width: 220px; flex-direction: row; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--fill-2); }
  .rh-pic { width: 52px; flex: none; border-radius: 8px; }
  .rh-txt b { font-size: 12.5px; }
  .rh-txt small { font-size: 11px; }
  /* Chat mengisi sisa layar */
  .party-room .party-chat { order: 3; position: relative; top: auto; flex: 1 1 auto; min-height: 0; height: auto; margin: 0; border-radius: 18px 18px 0 0; }
  .party-room .party-chat .head { min-height: 46px; padding: 6px 10px 6px 14px; }
  .party-chat .cm { padding: 3px 12px 2px; margin-top: 8px; }
  .party-chat .cm-av { width: 30px; height: 30px; font-size: 13px; }
  .party-chat .cm-side { width: 30px; }
  .pc-reacts { padding: 4px 8px 6px; }
  .pc-reacts button { height: 34px; font-size: 19px; }
  .party-chat form.chat-box { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  /* Panel suara ringkas tapi selalu terlihat */
  .vc2 { padding: 4px 8px 6px; }
  .vc2-invite { flex-direction: row; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; margin-top: 2px; }
  .vc2-invite > .btn { width: auto; flex: none; }
  .vc2-cat { padding: 4px 6px 2px; font-size: 11px; }
  .party-room .party-chat:has(.vc2.is-on) { min-height: 0; }
  .vc2.is-on .vc2-list { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
  .vc2.is-on .vc2-row { flex: none; width: 64px; padding: 6px 2px 4px; }
  .vc2.is-on .vc2-name .mbadge { display: none; } /* chip ringkas: cincin avatar sudah cukup */
  .vc2.is-on .vc2-av .avatar { width: 38px; height: 38px; font-size: 15px; }
  .vc2-panel { margin-top: 4px; padding: 8px; gap: 8px; }
  .vc2-panel .vc2-conn { display: none; }
}
@container (max-width: 860px) {
  .prx { right: 8px; bottom: 70px; width: 64px; }
  .prx-e { font-size: calc(27px * var(--sz, 1)); }
}
@container (max-width: 560px) {
  /* Bilah komentar terbuka selebar layar: gelembung chat naik agar tidak tertutup */
  .pdock-rx { align-self: stretch; justify-content: space-between; }
  .pdock-rx button { width: auto; flex: 1; }
  .prx { bottom: 60px; height: 58%; }
  .prx-e { font-size: calc(24px * var(--sz, 1)); }
}
@media (prefers-reduced-motion: reduce) { .prx-e { animation-duration: 1.4s; } .prx-e i { animation: none; } .prx-e.is-me::before { display: none; } }
/* Penanda bicara milik sendiri: sedikit lebih terang agar mudah dikenali */
.pov-t.is-me { background: rgba(48, 209, 88, .28); box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .55); }

/* =====================================================================
   PENGATURAN ROOM (rf) — bagian berjudul, kartu pilihan, baris grup rapi
   ===================================================================== */
.rf { display: flex; flex-direction: column; gap: 20px; }
.rf-lead { margin: 0 2px -4px; }
.rf-sec { display: flex; flex-direction: column; gap: 8px; }
.rf-h { margin: 0 4px; font: 600 12px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--label-3); }
.rf-name { position: relative; display: block; }
.rf-name .input { width: 100%; padding-right: 64px; }
.rf-count { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 500 12px/1 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; pointer-events: none; }
/* Publik / Privat: dua kartu sama besar */
.rf-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-vis button { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 14px; border-radius: 16px; text-align: left;
  background: var(--fill-2); box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s; }
.rf-vis button:hover { background: var(--fill); }
.rf-vis-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--fill); color: var(--label-2); transition: background-color .2s, color .2s; }
.rf-vis-ic svg { width: 18px; height: 18px; }
.rf-vis-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-vis-t b { font: 600 15px/1.2 var(--font); color: var(--label); }
.rf-vis-t small { font-size: 12.5px; line-height: 1.3; color: var(--label-3); }
.rf-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--label-4, rgba(255,255,255,.25)); transition: box-shadow .2s; }
.rf-vis button[aria-checked="true"] { background: rgba(229, 9, 20, .1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rf-vis button[aria-checked="true"] .rf-vis-ic { background: var(--accent); color: #fff; }
.rf-vis button[aria-checked="true"] .rf-dot { box-shadow: inset 0 0 0 6px var(--accent); }
/* Baris grup: ikon · teks (mengisi) · kontrol — kontrol selalu rata kanan */
.rf-group { border-radius: 16px; background: var(--fill-2); overflow: hidden; }
.rf-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; cursor: pointer; }
.rf-row + .rf-row, .rf-row + .rf-pin { box-shadow: inset 0 .5px 0 var(--sep); }
.rf-row .grow { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; }
.rf-row small { display: block; color: var(--label-3); font-size: 12.5px; margin-top: 3px; line-height: 1.35; }
.rf-row .switch { flex: none; }
.rf-cap { cursor: default; }
/* Kapasitas: stepper ringkas satu kapsul */
.rf-step { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 2px; border-radius: 12px; background: var(--fill); }
.rf-step button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font: 600 18px/1 var(--font); color: var(--label); }
.rf-step button:hover { background: rgba(255, 255, 255, .08); }
.rf-step input { width: 40px; height: 32px; border: 0; outline: 0; background: transparent; text-align: center; color: var(--label); font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.rf-step input::-webkit-inner-spin-button, .rf-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* PIN */
.rf-pin { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px 58px; }
.rf-pin[hidden] { display: none; }
.rf-pin .grow { flex: 1; min-width: 0; font-size: 14px; color: var(--label-2); }
.pin-input { width: 112px; flex: none; height: 42px; text-align: center; font: 700 19px/1 var(--font-round, var(--font)); letter-spacing: .3em; padding: 0 0 0 .3em; }
.rf-pin .btn { flex: none; gap: 6px; }
.rf-pin .btn svg { width: 15px; height: 15px; }
.rf-err { margin: -8px 4px 0; }
@media (max-width: 440px) {
  .rf { gap: 18px; }
  .rf-vis { gap: 8px; }
  .rf-vis button { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .rf-dot { position: absolute; top: 12px; right: 12px; }
  .rf-pin { padding-left: 14px; }
  .rf-row { gap: 10px; }
}

/* =====================================================================
   LENCANA MEMBER — ringkas, berwarna sesuai tingkat, kilau halus
   ===================================================================== */
.mbadge { --mb: #E50914; position: relative; display: inline-flex; align-items: center; gap: 4px; flex: none; height: 19px; padding: 0 8px 0 2.5px; margin-left: 6px;
  border-radius: 999px; overflow: hidden; vertical-align: middle; white-space: nowrap; color: #fff; font: 700 10.5px/1 var(--font); letter-spacing: .02em;
  background: var(--mb);
  background: linear-gradient(135deg, color-mix(in srgb, var(--mb) 78%, #fff) 0%, var(--mb) 45%, color-mix(in srgb, var(--mb) 62%, #000) 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 1px 8px color-mix(in srgb, var(--mb) 40%, transparent); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.mbadge i { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 50%; font-style: normal;
  background: linear-gradient(180deg, #fff6d5, #ffd36b); color: color-mix(in srgb, var(--mb) 70%, #000); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.mbadge i svg { width: 9px; height: 9px; stroke-width: 2.4; }
.mbadge b { font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
/* kilau lewat sesekali — megah tapi tenang */
.mbadge::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); translate: -130% 0; animation: mb-shine 6s ease-in-out 1.2s infinite; }
@keyframes mb-shine { 0%, 78% { translate: -130% 0; } 100% { translate: 130% 0; } }
.mbadge.ico { width: 17px; height: 17px; padding: 0; justify-content: center; margin-left: 5px; }
.mbadge.ico i { width: 13px; height: 13px; background: none; box-shadow: none; color: #fff7d6; }
.mbadge.ico i svg { width: 10.5px; height: 10.5px; }
.mbadge.lg { height: 26px; gap: 6px; padding: 0 12px 0 3.5px; font-size: 12.5px; margin-left: 2px; }
.mbadge.lg i { width: 19px; height: 19px; }
.mbadge.lg i svg { width: 12px; height: 12px; }
/* Cincin avatar member (warna tingkat) */
.avatar.is-mb { outline: 2px solid var(--mb, #E50914); outline-offset: 1.5px; }
.avatar.xs.is-mb { outline-width: 1.5px; outline-offset: 1px; }
.avatar.lg.is-mb { outline-width: 2.5px; outline-offset: 2.5px; }
/* Penempatan */
.who .mbadge { margin-left: 0; }
.cm-head .mbadge { margin-left: 0; align-self: center; }
.pp-tags .mbadge { margin-left: 0; height: 20px; }
.lb-row .grow b + .mbadge { margin-left: 6px; }
.podium .mbadge { margin: 6px auto 2px; }
.vc2-name { display: inline-flex; align-items: center; min-width: 0; }
.vc2-name .mbadge.ico { margin-left: 5px; }
.wp-room span .mbadge.ico { width: 15px; height: 15px; margin: 0 0 0 4px; vertical-align: -3px; }
.wp-faces .avatar.is-mb { outline-offset: 0; outline-width: 1.5px; }
.pov-b-txt .mbadge.ico { margin: 0 6px 0 -2px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { .mbadge::after { animation: none; display: none; } }
html.lite .mbadge::after { display: none; }
/* Tahan untuk bicara: tombol mic bisa ditahan di layar sentuh tanpa seleksi/menu */
.vc2-mic.is-ptt { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vc2-mic.is-ptt.is-live { background: #30d158; color: #fff; }

/* Layar sentuh: kolom ketik minimal 16px — di bawah itu iPhone otomatis memperbesar (zoom)
   halaman saat kolom disentuh, tampilan jadi bergeser dan tidak nyaman. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not(.pin-input):not(.pin-box), textarea, select { font-size: max(16px, 1em) !important; }
}


/* =====================================================================
   KOMPOSER LAYAR PENUH v2 — gelembung kecil di kanan-tengah, panel dibuka saat diketuk
   ===================================================================== */
.pdock { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 7; pointer-events: none; --kb: 0px; }
.mfp.is-fs .pdock, .mfp.is-pseudo-fs .pdock { display: block; }
.mfp.is-loading .pdock, .mfp.is-error .pdock { display: none !important; }
/* Gelembung: kolom kecil di sisi kanan, tengah vertikal — tidak pernah menimpa kontrol atas/bawah */
.pdock-mini { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 12px;
  pointer-events: auto; transition: opacity .2s ease, scale .2s ease; }
.pdock-mb { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 19px; line-height: 1;
  background: rgba(0, 0, 0, .38); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); opacity: .82; transition: opacity .2s, scale .15s; }
.pdock-mb:hover { opacity: 1; }
.pdock-mb:active { scale: .9; }
.pdock-mb svg { width: 19px; height: 19px; }
.pdock.is-open .pdock-mini { opacity: 0; scale: .8; pointer-events: none; }
/* Panel: muncul dari bawah saat dibuka, ikut naik di atas keyboard */
.pdock-full { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--kb));
  width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  opacity: 0; translate: 0 12px; pointer-events: none; visibility: hidden; transition: opacity .2s ease, translate .24s var(--ease), visibility 0s .24s; }
.pdock.is-open .pdock-full { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition: opacity .2s ease, translate .24s var(--ease-spring, ease), visibility 0s; }
.pdock-rx { justify-content: space-between; }
.pdock-rx button { width: auto; flex: 1; max-width: 56px; }
.pdock-row .pdock-ic { width: 42px; height: 42px; }
/* Saat panel terbuka, komentar melayang naik agar tidak tertutup */
.mfp:has(.pdock.is-open) .pov-feed { bottom: calc(132px + var(--kb, 0px)); }
.mfp:has(.pdock.is-open) .prx { opacity: .35; }
@container (max-width: 560px) {
  .pdock-mb { width: 38px; height: 38px; font-size: 17px; }
  .pdock-mb svg { width: 17px; height: 17px; }
  .pdock-mini { gap: 10px; right: 8px; }
  .pdock-full { right: 8px; width: calc(100% - 16px); }
}
/* Reaksi naik di sebelah kiri kolom gelembung (tidak melintas di atas tombol) */
.mfp.is-fs .prx, .mfp.is-pseudo-fs .prx { right: 66px; }
@container (max-width: 560px) { .mfp.is-fs .prx, .mfp.is-pseudo-fs .prx { right: 52px; } }
/* Panel komentar terbuka: kontrol pemutar disembunyikan (juga saat video dijeda) agar tidak bertumpuk */
.mfp:has(.pdock.is-open) .mfp-bar, .mfp:has(.pdock.is-open) .mfp-center, .mfp:has(.pdock.is-open) .mfp-top { opacity: 0 !important; pointer-events: none !important; }
.mfp:has(.pdock.is-open) .mfp-shade { opacity: .35; }

/* Bilah status sambungan room: muncul hanya saat menyambung ulang / gagal */
.room-conn { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.35;
  background: rgba(255, 159, 10, .14); color: var(--label); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .35); animation: rc-in .25s var(--ease) both; }
.room-conn[hidden] { display: none; }
.room-conn.is-err { background: rgba(255, 69, 58, .14); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .4); }
.room-conn svg { width: 18px; height: 18px; flex: none; color: #ff9f0a; }
.room-conn.is-err svg { color: #ff453a; }
.room-conn .grow { flex: 1; min-width: 0; }
.room-conn small { display: block; color: var(--label-3); font-size: 12.5px; margin-top: 2px; }
.room-conn .btn { flex: none; }
.rc-spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 159, 10, .3); border-top-color: #ff9f0a; animation: rc-spin .8s linear infinite; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 860px) { .room-conn { margin: 8px 12px; } }
/* Tombol Keluar room: selalu terlihat (dulu tersembunyi di menu ⋯), label tetap tampil di HP */
.room-acts .room-leave { color: #ff6961; background: rgba(255, 69, 58, .12); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .32); gap: 6px; }
.room-acts .room-leave:hover { background: rgba(255, 69, 58, .2); }
.room-acts .room-leave svg { width: 16px; height: 16px; }
.room-acts .room-leave span { display: inline !important; }
.pick-room-opt small { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.35; }

/* Panel admin → Rate limit */
.rl-head { display: flex; align-items: center; gap: 8px; margin: 26px 4px 8px 16px; flex-wrap: wrap; }
.rl-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 2px; color: var(--label-2); background: rgba(255,255,255,.08); white-space: nowrap; }
.rl-chip.bad { color: #FF6961; background: rgba(255,69,58,.14); }
.rl-cell { flex-wrap: wrap; row-gap: 8px; }
.rl-cell .grow { min-width: 0; }
.rl-cell code { word-break: break-all; font-size: 12px; }
.rl-acts { display: flex; gap: 6px; align-items: center; margin-left: auto; flex: none; }
.rl-group { padding: 14px 16px; border-bottom: .5px solid var(--separator, rgba(255,255,255,.08)); }
.rl-g-head b { display: block; font-size: 15px; }
.rl-g-head small { display: block; margin-top: 2px; color: var(--label-2); font-size: 13px; }
.rl-g-ctrl { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 10px; }
.rl-num { display: inline-flex; align-items: center; gap: 10px; }
.rl-num .input { width: 104px; height: 40px; text-align: center; font-weight: 700; font-size: 16px; }
.rl-num .input:disabled { opacity: .35; }
.rl-num span { color: var(--label-2); font-size: 14px; }
.rl-unl { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--label-2); cursor: pointer; }
.rl-unl input { width: 17px; height: 17px; accent-color: var(--accent, #E50914); }
.rl-also { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--label-3); }
.rl-also b { color: var(--label-1, #fff); font-weight: 600; }
@media (max-width: 560px) { .rl-acts { width: 100%; justify-content: flex-end; } .rl-head { margin-left: 4px; } }

/* Kotak peringatan/info (panel admin) */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface, rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.08); }
.callout-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,132,255,.16); color: #0A84FF; }
.callout-ic svg { width: 17px; height: 17px; }
.callout b { display: block; font-size: 15px; }
.callout p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--label-2); }
.callout p a { color: var(--accent-hi); }
.callout.warn { background: rgba(255,159,10,.08); border-color: rgba(255,159,10,.28); }
.callout.warn .callout-ic { background: rgba(255,159,10,.18); color: #FF9F0A; }
.callout.bad { background: rgba(255,69,58,.08); border-color: rgba(255,69,58,.28); }
.callout.bad .callout-ic { background: rgba(255,69,58,.18); color: #FF453A; }
.callout.ok { background: rgba(48,209,88,.07); border-color: rgba(48,209,88,.24); }
.callout.ok .callout-ic { background: rgba(48,209,88,.16); color: #30D158; }
/* Ikon lepas di dalam teks grup: ukuran sebaris, bukan selebar wadah */
.group > svg, .group > b > svg, .group-note > svg, .group-title > svg { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: 4px; flex: none; }
.ann-preview { margin-top: 16px; padding: 12px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px dashed rgba(255,255,255,.12); }
.ann-preview-label { display: block; margin: 0 2px 8px; font-size: 12px; color: var(--label-3); text-transform: uppercase; letter-spacing: .06em; }
.ann-preview .announce { animation: none; }
.ann-preview .announce::before { animation: ann-shine 7s ease-in-out 1s infinite; }
.ann-preview .announce { flex-wrap: wrap; row-gap: 6px; }
.ann-preview .announce-text { flex: 1 1 150px; }

/* ===== Pemilih tontonan nobar (v62) ===== */
.pk-search { position: relative; margin: 0 0 10px; }
.pk-search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.pk-search input::-webkit-search-cancel-button { display: none; }
.pk-types { margin: 0 0 6px; }
.pk-types .pk-count { margin-left: 4px; font-size: 11.5px; opacity: .6; font-variant-numeric: tabular-nums; }
.pk-sec { margin-top: 18px; }
.pk-sec:first-child { margin-top: 4px; }
.pk-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font: 600 13px/1.2 var(--font); letter-spacing: .02em; color: var(--label-2); }
.pk-h > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-all { margin: -6px -8px -6px 0; color: var(--accent-hi, #ff6961); }
.pk-all svg { width: 14px; height: 14px; }
.pk-row { transition: background .15s; }
.pk-row mark { background: rgba(255, 214, 10, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
.pk-kind { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--fill-2); color: var(--label-2); }
.pk-kind.tv { background: rgba(10, 132, 255, .16); color: #64a8ff; }
.pk-kind.live { background: rgba(229, 9, 20, .18); color: #ff6961; }
.pk-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--label-2); background: var(--fill-2); transition: background .15s, color .15s; }
.pk-go svg { width: 13px; height: 13px; }
.pk-row:hover .pk-go { background: var(--accent, #E50914); color: #fff; }
.pk-ghost { pointer-events: none; }
.pk-ghost .pk-pic, .pk-ghost b, .pk-ghost small { background: var(--fill-2); border-radius: 6px; animation: pk-pulse 1.2s ease-in-out infinite alternate; }
.pk-ghost b { display: block; width: 60%; height: 14px; }
.pk-ghost small { display: block; width: 35%; height: 11px; margin-top: 4px; }
@keyframes pk-pulse { from { opacity: .45; } to { opacity: 1; } }
.pk-skel { height: 190px; border-radius: 16px; background: var(--fill-2); animation: pk-pulse 1.2s ease-in-out infinite alternate; }
.pk-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; color: var(--label-2); }
.pk-empty > svg { width: 26px; height: 26px; color: var(--label-3); }
.pk-empty b { color: var(--label); font-size: 15px; }
.pk-empty small { font-size: 13px; }
.pk-ended { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(229, 9, 20, .12); font-size: 13.5px; }
.pk-ended svg { width: 18px; height: 18px; color: #ff6961; flex: none; }
.pk-done { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--fill-2); font-size: 13.5px; color: var(--label-2); }
.pk-done svg { width: 16px; height: 16px; color: #30d158; }
.pk-recent { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-recent .chip svg { width: 13px; height: 13px; margin-right: 4px; opacity: .7; }
/* Kartu episode */
.pk-ep { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; color: var(--label); border-radius: 14px; }
.pk-ep-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--fill-2); display: grid; place-items: center; color: var(--label-3); }
.pk-ep-art > img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pk-ep-art > svg { width: 26px; height: 26px; }
.pk-ep:hover .pk-ep-art > img { transform: scale(1.04); }
.pk-ep-play { position: absolute; top: auto; right: auto; bottom: 10px; left: 10px; inset: auto auto 10px 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: background .2s, transform .2s; }
.pk-ep-play svg { width: 16px; height: 16px; margin-left: 2px; }
.pk-ep:hover .pk-ep-play { background: var(--accent, #E50914); transform: scale(1.06); }
.pk-ep-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--accent, #E50914); box-shadow: 0 2px 10px rgba(229, 9, 20, .45); }
.pk-ep-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.pk-ep-txt small { font-size: 12px; color: var(--label-2); }
.pk-ep-txt b { font: 600 14px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-ep.is-big .pk-ep-art::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.pk-ep.is-big .pk-ep-play { width: 46px; height: 46px; z-index: 1; }
.pk-ep.is-big .pk-ep-txt b { font-size: 16px; }
.pk-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.pk-strip::-webkit-scrollbar { display: none; }
.pk-strip .pk-ep { scroll-snap-align: start; }
/* Daftar episode serial */
.pk-show { display: flex; align-items: center; gap: 12px; margin: 8px 2px 12px; }
.pk-show img { width: 42px; height: 62px; border-radius: 8px; object-fit: cover; }
.pk-show b { display: block; font: 700 17px/1.25 var(--font); }
.pk-show small { color: var(--label-2); font-size: 12.5px; }
.pk-seasons { margin: 0 0 10px; }
.pk-seasons .chip.is-active { background: var(--label, #fff); color: var(--bg, #000); }
.pk-thumb { position: relative; width: 96px; aspect-ratio: 16 / 9; flex: none; border-radius: 8px; overflow: hidden; background: var(--fill-2); }
.pk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-thumb .pk-epn { position: absolute; left: 4px; bottom: 4px; width: auto; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; background: rgba(0, 0, 0, .7); color: #fff; }
.pk-row.ep.is-now { background: rgba(229, 9, 20, .12); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .35); }
/* Tombol "Berikutnya" di bilah room */
.room-next span { display: inline-flex; align-items: baseline; gap: 6px; }
.room-next small { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .room-next small { display: none; } }
@media (max-width: 480px) { .pk-go { padding: 8px; } .pk-go-t { display: none; } .pk-go svg { width: 15px; height: 15px; } }

/* ===================== MODE TV (remote: tombol arah / OK / Kembali) ===================== */
html.tv, html.tv * { cursor: none !important; }
html.tv { scroll-behavior: auto; }
/* Fokus harus terlihat jelas dari sofa: cincin putih tebal + sedikit membesar. */
html.tv :focus { outline: none; }
html.tv a:focus, html.tv button:focus, html.tv [role="slider"]:focus, html.tv [tabindex]:focus:not(.mfp):not(.card),
html.tv select:focus, html.tv input:focus, html.tv textarea:focus {
  outline: 3px solid #fff !important; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 255, 255, .25);
}
html.tv .btn:focus, html.tv .chip:focus, html.tv .icon-btn:focus { transform: scale(1.06); transition: transform .15s ease; }
html.tv .btn-play:focus, html.tv .btn-accent:focus { background: #fff !important; color: #000 !important; }
html.tv .card:focus { outline: none !important; box-shadow: none; }
html.tv .card .card-art { transition: transform .18s ease, box-shadow .18s ease; }
html.tv .card:focus .card-art { transform: scale(1.08); box-shadow: 0 0 0 3px #fff, 0 22px 44px -14px rgba(0, 0, 0, .9); z-index: 2; }
html.tv .card:focus .card-title { color: #fff; }
/* Ruang untuk kartu yang membesar (baris memotong isi yang keluar batas). */
html.tv .scroller { scroll-snap-type: none; padding-top: 14px; padding-bottom: 22px; margin-top: -10px; }
html.tv .row-arrow, html.tv .hero-pager { display: none !important; }
/* Tidak ada sentuhan/mouse di TV. */
html.tv .tabbar, html.tv .pwa-banner, html.tv [data-install], html.tv .card-x { display: none !important; }
/* Pemutar di TV: kontrol & teks sedikit lebih besar, tombol terfokus jelas di atas video. */
html.tv .mfp:focus { outline: none !important; box-shadow: none !important; }
html.tv .mfp .mfp-btn:focus, html.tv .mfp button:focus { outline: 3px solid #fff !important; outline-offset: 2px; border-radius: 12px; background: rgba(255, 255, 255, .22); box-shadow: none; }
html.tv .mfp-scrub:focus { outline: none !important; box-shadow: none !important; }
html.tv .mfp-scrub:focus .mfp-knob { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
html.tv .mfp-scrub:focus .mfp-track { height: 8px; }
/* Saat tampilan TV diperbesar (zoom), ukuran berbasis tinggi layar ikut dibagi agar tetap pas satu layar. */
html.tv .hero { height: clamp(360px, calc(84svh / var(--tvz, 1)), 880px); }
html.tv .hero.compact { height: clamp(320px, calc(72svh / var(--tvz, 1)), 740px); }
html.tv .detail-hero { height: clamp(360px, calc(82svh / var(--tvz, 1)), 860px); }
html.tv .hero-body { bottom: clamp(70px, calc(15svh / var(--tvz, 1)), 190px); }
html.tv .sheet { max-height: calc(86svh / var(--tvz, 1)); }
html.tv .party-chat { height: min(calc(100svh / var(--tvz, 1) - var(--nav-h) - 60px), 760px); }
html.tv .center-load { min-height: calc(50svh / var(--tvz, 1)); }

/* ===== Halaman Aplikasi (/app) ===== */
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; }
.app-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.app-tabs button svg { width: 17px; height: 17px; flex: none; }
.app-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .app-tabs button { flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 11.5px; } }
.app-panel { padding: 20px; }
.app-dl { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 20px; text-align: center; }
.app-dl small { color: var(--label-3); font-size: 12.5px; }
.app-steps { margin: 0; padding: 0; }
.app-steps li span { padding-top: 3px; line-height: 1.5; color: var(--label-2); }
.app-steps b { color: var(--label); }
.app-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.5; color: var(--label-2); }
.app-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-hi); }
.app-note b { color: var(--label); }
.app-tvcode { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 22px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(229, 9, 20, .16), rgba(229, 9, 20, .04)); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .25); text-align: center; }
.app-tvcode small { display: block; font-size: 12px; color: var(--label-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.app-tvcode i { font-style: normal; color: var(--label-3); font-size: 13px; }
.app-code { font: 800 38px/1 var(--font-round, var(--font)); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.app-url { font: 700 22px/1.2 var(--font); }
.app-alt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: .5px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: var(--label-2); line-height: 1.5; }
.app-alt b { color: var(--label); }
.app-soon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; text-align: center; color: var(--label-2); }
.app-soon svg { width: 26px; height: 26px; color: var(--label-3); }
.app-soon b { color: var(--label); }
.app-inapp { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.app-notes ul { margin: 0; padding: 14px 18px 14px 34px; display: grid; gap: 6px; color: var(--label-2); font-size: 14px; }
.app-faq details { padding: 14px 16px; border-bottom: .5px solid rgba(255, 255, 255, .08); }
.app-faq details:last-child { border-bottom: 0; }
.app-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.app-faq summary::-webkit-details-marker { display: none; }
.app-faq summary::after { content: '+'; color: var(--label-3); font-weight: 400; font-size: 20px; line-height: 1; }
.app-faq details[open] summary::after { content: '−'; }
.app-faq p { margin: 10px 0 0; color: var(--label-2); font-size: 14px; line-height: 1.55; }
.app-sha code { word-break: break-all; font-size: 11px; color: var(--label-3); }
/* Di dalam aplikasi Android: tidak perlu ajakan memasang aplikasi web. */
html.in-app .install-card, html.tv .install-card { display: none !important; }
.app-tabs button span { display: block !important; }
.app-note > span { min-width: 0; }
.app-tabs { border-radius: 18px; }
.app-tabs button { height: auto; min-height: 40px; line-height: 1.2; padding: 8px 10px; border-radius: 15px; }
@media (max-width: 520px) { .app-tabs button { min-height: 52px; padding: 7px 2px; } }
.app-hero2 .app-hero-icon { display: block; margin-left: auto; margin-right: auto; }

/* ===== Masuk di TV dengan kode (TV) & halaman izin (HP) ===== */
.tvl { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; text-align: left; }
.tvl-qr { width: 188px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.tvl-qr svg { display: block; width: 100%; height: auto; }
.tvl-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; color: var(--label-2); }
.tvl-steps b { color: var(--label); }
.tvl-code { font: 800 46px/1 var(--font-round, var(--font)); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: #fff; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); display: inline-block; }
.tvl-status { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--label-3); }
.tvl-status svg { width: 15px; height: 15px; animation: tvl-pulse 1.6s ease-in-out infinite; }
@keyframes tvl-pulse { 50% { opacity: .35; } }
.tvl-wait { display: grid; place-items: center; gap: 12px; min-height: 200px; text-align: center; color: var(--label-2); }
.tvl-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 0; text-align: center; }
.tvl-ok svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; color: #fff; background: #30d158; box-shadow: 0 0 0 8px rgba(48, 209, 88, .18); }
.tvl-ok b { font-size: 20px; margin-top: 6px; }
.tvl-ok span { color: var(--label-2); }
.tvl-lead { margin: 0 0 18px; color: var(--label-2); font-size: 15px; line-height: 1.5; }
.tvl-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tv-auth .tvl-card { max-width: 720px; width: min(720px, 94vw); }
@media (max-width: 560px) { .tvl { grid-template-columns: 1fr; justify-items: center; text-align: center; } .tvl-steps { text-align: left; } .tvl-code { font-size: 36px; } }
.tva { padding-top: calc(var(--nav-h) + 50px); }
.tva-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 24px; border-radius: 26px; text-align: center; }
.tva-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #E50914, #8c0610); box-shadow: 0 14px 34px rgba(229, 9, 20, .35); }
.tva-ic svg { width: 32px; height: 32px; }
.tva-ic.ok { background: linear-gradient(135deg, #30d158, #1f9e43); box-shadow: 0 14px 34px rgba(48, 209, 88, .3); }
.tva-card .t-sub { margin: 0; max-width: 340px; }
.tva-code { max-width: 260px; height: 64px; text-align: center; font: 800 30px/1 var(--font-round, var(--font)); letter-spacing: .16em; text-transform: uppercase; }
.tva-dev { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 380px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.tva-dev b { font-size: 16px; }
.tva-dev span { font-size: 13px; color: var(--label-2); }
.tva-warn { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 159, 10, .1); font-size: 13px; line-height: 1.5; color: var(--label-2); text-align: left; }
.tva-warn svg { width: 18px; height: 18px; flex: none; color: #ff9f0a; margin-top: 1px; }
.tva-warn b { color: var(--label); }
.tva-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.app-tvlogin { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(229, 9, 20, .1); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, .25); color: var(--label); text-decoration: none; }
.app-tvlogin > svg:first-child { width: 22px; height: 22px; color: var(--accent-hi); flex: none; }
.app-tvlogin > svg:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--label-3); flex: none; }
.app-tvlogin span { display: flex; flex-direction: column; gap: 2px; }
.app-tvlogin small { color: var(--label-2); font-size: 12.5px; }
html.tv a[href="/tv-login"] { display: none !important; }

/* =====================================================================
   BERITA (/news) + SPLASH
   ===================================================================== */
.nav-news { position: relative; }
.news-dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 2px rgba(0,0,0,.6); animation: nw-dot 2.4s ease-out infinite; }
.news-dot[hidden] { display: none; }
@keyframes nw-dot { 0% { box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 0 0 color-mix(in srgb, var(--accent-hi) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 0 9px transparent; } }

/* Artwork berita: gradasi warna tema + cahaya lembut + kilau warna aksen di pojok. Logo situs
   selalu di kiri atas. Gambar sampul duduk di atas latar tema (PNG transparan tetap berwarna). */
.nw-art { --g1: #3d0206; --g2: #E50914; --g3: #ff7a45; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; border-radius: 18px; container-type: inline-size;
  background:
    radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--g3) 55%, transparent), transparent 65%),
    radial-gradient(75% 70% at 0% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(150deg, var(--g2) 0%, var(--g1) 82%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nw-art::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 22px);
  -webkit-mask-image: linear-gradient(115deg, #000 10%, transparent 60%); mask-image: linear-gradient(115deg, #000 10%, transparent 60%); }
.nw-red { --g1: #3d0206; --g2: #E50914; --g3: #ff7a45; }
.nw-violet { --g1: #1a0836; --g2: #7c3aed; --g3: #ec4899; }
.nw-blue { --g1: #031634; --g2: #0A84FF; --g3: #22d3ee; }
.nw-green { --g1: #02241a; --g2: #10a064; --g3: #a3e635; }
.nw-gold { --g1: #3f1d00; --g2: #e08a00; --g3: #ffd60a; }
.nw-night { --g1: #06060c; --g2: #272747; --g3: #6366f1; }
.nw-mark { position: absolute; z-index: 0; right: -9%; bottom: -26%; height: 125%; width: auto; color: #fff; opacity: .11; pointer-events: none; }
.nw-art img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.nw-art.has-cover .nw-mark { display: none; }
/* Logo di kiri atas (di atas gambar juga, dengan bayangan halus supaya tetap terbaca). */
.nw-brand { position: absolute; z-index: 2; left: 4.5%; top: 7%; display: inline-flex; align-items: center; gap: .45em; padding: .42em .8em .42em .5em; border-radius: 999px;
  font-size: clamp(10px, 3.4cqi, 17px); background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
.nw-brand .nw-logo { width: 1.45em; height: 1.45em; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.nw-brand b { font: 800 1em/1 var(--font-display, var(--font)); letter-spacing: .02em; color: #fff; }
.nw-art.sm { width: 64px; aspect-ratio: 4 / 3; border-radius: 12px; flex: none; }
.nw-art.sm .nw-mark { height: 150%; right: -20%; bottom: -40%; opacity: .2; }
.nw-art.sm .nw-brand, .nw-art.sm::before { display: none; }

.nw-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font); color: #fff; background: color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.14); }
.nw-chip svg { width: 13px; height: 13px; }
.nw-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-date { font-size: 13px; color: var(--label-2); }
.nw-pin { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--yellow); }
.nw-pin svg { width: 13px; height: 13px; }

/* Kartu */
.nw-card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; border-radius: 22px; padding: 10px 10px 16px; background: var(--fill-3); border: 1px solid rgba(255,255,255,.06);
  transition: transform .35s var(--ease-spring, ease), background .25s, border-color .25s; }
.nw-card:hover, .nw-card:focus-visible { transform: translateY(-3px); background: var(--fill-2); border-color: rgba(255,255,255,.14); }
.nw-card-body { padding: 0 6px; display: grid; gap: 8px; }
.nw-card h3 { margin: 0; font: 700 18px/1.25 var(--font-display, var(--font)); letter-spacing: -.01em; text-wrap: balance; }
.nw-card p { margin: 0; color: var(--label-2); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card.is-big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: 12px; margin-bottom: 26px;
  background: linear-gradient(120deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.nw-card.is-big .nw-art { border-radius: 16px; }
.nw-card.is-big .nw-card-body { padding: 8px 16px 8px 0; gap: 12px; }
.nw-card.is-big h3 { font-size: clamp(22px, 2.6vw, 32px); }
.nw-card.is-big p { -webkit-line-clamp: 4; font-size: 16px; }
.nw-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent-hi); margin-top: 4px; }
.nw-more svg { width: 16px; height: 16px; transition: transform .25s; }
.nw-card:hover .nw-more svg { transform: translateX(3px); }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
@media (max-width: 760px) {
  .nw-card.is-big { grid-template-columns: 1fr; gap: 14px; padding: 10px 10px 18px; }
  .nw-card.is-big .nw-card-body { padding: 0 6px; }
}

/* Detail */
.nw-detail { padding-bottom: 40px; }
.nw-back { display: inline-flex; align-items: center; gap: 4px; color: var(--label-2); text-decoration: none; font-weight: 500; margin-bottom: 16px; }
.nw-back svg { width: 18px; height: 18px; }
.nw-back:hover { color: var(--label); }
.nw-hero { aspect-ratio: 21 / 9; border-radius: 24px; margin-bottom: 22px; }
.nw-title { font: 800 clamp(28px, 4vw, 42px)/1.12 var(--font-display, var(--font)); letter-spacing: -.025em; margin: 14px 0 10px; text-wrap: balance; }
.nw-lead { font-size: 18px; line-height: 1.55; color: var(--label-2); margin: 0 0 22px; }
.nw-body { font-size: 16.5px; line-height: 1.7; color: rgba(235,235,245,.86); }
.nw-body p { margin: 0 0 14px; }
.nw-body h2 { font: 700 21px/1.3 var(--font-display, var(--font)); color: var(--label); margin: 26px 0 10px; }
.nw-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.nw-body li { position: relative; padding-left: 26px; }
.nw-body li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent); }
.nw-body a { color: var(--accent-hi); text-underline-offset: 3px; }
.nw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }
.nw-actions .btn svg { width: 18px; height: 18px; }
.nw-more-head { font: 700 22px/1.2 var(--font-display, var(--font)); margin: 40px 0 16px; }

/* Intip dari lonceng */
.nw-peek { width: min(340px, calc(100vw - 40px)); }
.nw-peek-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
.nw-peek-head b { font-size: 16px; }
.nw-peek-head a { font-size: 13.5px; font-weight: 600; color: var(--accent-hi); text-decoration: none; }
.nw-peek-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: inherit; text-decoration: none; position: relative; }
.nw-peek-item:hover, .nw-peek-item:focus-visible { background: rgba(255,255,255,.08); }
.nw-peek-item .grow { min-width: 0; display: grid; gap: 3px; }
.nw-peek-item b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-peek-item small { color: var(--label-2); font-size: 12.5px; }
.nw-peek-item.is-new::after { content: ''; position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); }
.nw-peek .center-load { padding: 24px 0; }

/* Splash */
.nw-splash-scrim { z-index: 140; background: rgba(0,0,0,.62); align-items: center !important; padding: 20px !important; }
.nw-splash { position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow: hidden auto; scrollbar-width: none; border-radius: 30px; padding: 10px; overscroll-behavior: contain;
  background: rgba(28, 28, 32, .86); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); animation: nw-sp-in .6s cubic-bezier(.2, 1.2, .3, 1) both; }
.nw-splash::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--nw-a, 0deg), transparent 0 70%, rgba(255,255,255,.55) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: nw-ring 5s linear infinite; opacity: .7; }
@property --nw-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes nw-ring { to { --nw-a: 360deg; } }
.nw-splash-scrim.closing .nw-splash { animation: nw-sp-out .26s ease forwards; }
@keyframes nw-sp-in { from { opacity: 0; transform: translateY(26px) scale(.9); } }
@keyframes nw-sp-out { to { opacity: 0; transform: translateY(14px) scale(.96); } }
.nw-sp-art { border-radius: 22px; aspect-ratio: 16 / 10; }
.nw-splash::-webkit-scrollbar { display: none; }
.nw-sp-art .nw-mark { animation: nw-mark-in 1.1s .1s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes nw-mark-in { from { opacity: 0; transform: translate(8%, 8%) scale(.92); } }
.nw-sp-art::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); animation: nw-shine 1.6s .5s ease forwards; }
@keyframes nw-shine { to { transform: translateX(100%); } }
.nw-sp-body { padding: 18px 14px 14px; display: grid; gap: 10px; text-align: left; }
.nw-sp-body > * { animation: nw-up .5s cubic-bezier(.2, 1, .3, 1) both; }
.nw-sp-body > :nth-child(2) { animation-delay: .08s; }
.nw-sp-body > :nth-child(3) { animation-delay: .14s; }
.nw-sp-body > :nth-child(4) { animation-delay: .2s; }
@keyframes nw-up { from { opacity: 0; transform: translateY(10px); } }
.nw-sp-body h2 { margin: 2px 0 0; font: 800 25px/1.18 var(--font-display, var(--font)); letter-spacing: -.02em; text-wrap: balance; }
.nw-sp-body p { margin: 0; color: var(--label-2); font-size: 15.5px; line-height: 1.55; }
.nw-sp-acts { display: flex; gap: 10px; margin-top: 8px; }
.nw-sp-acts .btn { flex: 1; justify-content: center; }
.nw-sp-acts .btn svg { width: 18px; height: 18px; }
.nw-sp-link { justify-self: center; font-size: 14px; font-weight: 600; color: var(--label-2); text-decoration: none; padding: 4px 8px; }
.nw-sp-link:hover { color: var(--label); }
.nw-x { position: absolute; top: 18px; right: 18px; z-index: 5; background: rgba(0,0,0,.38); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 420px) { .nw-sp-acts { flex-direction: column-reverse; } .nw-sp-acts .btn { flex: none; width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .nw-splash, .nw-splash::before, .nw-sp-body > *, .nw-sp-art .nw-mark, .nw-sp-art::after, .news-dot { animation: none !important; }
}
html.lite .nw-splash::before { animation: none; }
html.tv .nw-splash { width: min(560px, 100%); }
html.tv .nw-card:focus-visible, html.tv .nw-card.tv-focus { outline: 3px solid #fff; outline-offset: 3px; }

/* Panel admin: berita */
.an-list { display: grid; gap: 12px; }
.an-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--fill-3); border: 1px solid rgba(255,255,255,.06); }
.an-item .nw-art.sm { width: 92px; }
.an-item .grow { flex: 1; min-width: 0; display: grid; gap: 6px; }
.an-item .grow b { font-size: 15.5px; line-height: 1.3; }
.an-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.an-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--label-2); }
.an-pill svg { width: 12px; height: 12px; }
.an-pill.ok { background: rgba(48,209,88,.16); color: #5be37f; }
.an-pill.live { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-hi); }
.an-pill.pin { background: rgba(255,214,10,.14); color: var(--yellow); }
.an-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.an-acts .btn { height: 36px; font-size: 14px; }
@media (max-width: 760px) { .an-item { flex-wrap: wrap; } .an-acts { width: 100%; justify-content: flex-start; padding-left: 106px; } }
.an-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.an-theme { position: relative; width: 44px; height: 44px; border-radius: 14px; cursor: pointer; border: 2px solid transparent; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.an-theme input { position: absolute; opacity: 0; top: 0; right: 0; bottom: 0; left: 0; inset: 0; cursor: pointer; }
.an-theme:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.an-theme:has(input:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.an-preview { margin-top: 4px; }
.an-preview .nw-card { pointer-events: none; }
.an-hint { font-size: 12.5px; color: var(--label-3); margin: 6px 4px 0; line-height: 1.5; }
.an-hint code { background: var(--fill-2); padding: 1px 5px; border-radius: 6px; font-size: 12px; }
.callout.ok { background: rgba(48,209,88,.07); border-color: rgba(48,209,88,.26); }
.callout.ok .callout-ic { background: rgba(48,209,88,.16); color: #30D158; }
/* Header desktop sempit (861–1360px): ringkas bertahap supaya tombol akun tidak terpotong. */
@media (min-width: 861px) and (max-width: 1360px) {
  .nav-tools { gap: 8px; }
  .account-btn .account-name, .account-btn .chev { display: none; }
  .account-btn { padding: 0; width: 48px; justify-content: center; }
}
@media (min-width: 861px) and (max-width: 1220px) {
  .sub-cta span { display: none; }
  .sub-cta { width: 48px; padding: 0; justify-content: center; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .brand-word { display: none; }
  .brand { padding-inline: 12px; }
  .nav-capsule .nav-link { padding-inline: 11px; }
}

/* =====================================================================
   MODE ANAK
   ===================================================================== */
html.kids .nav-news, html.kids .footer-grid, html.kids .legal { display: none !important; }
html.kids .footer { padding-top: 10px; }
html.kids .card { border-radius: 20px; }
html.kids .card-art { border-radius: 20px; }
html.kids .card-title { font-weight: 700; }
  background: linear-gradient(120deg, rgba(48,209,88,.18), rgba(10,132,255,.18) 55%, rgba(191,90,242,.18)); border: 1px solid rgba(255,255,255,.1); }
.kids-sort { margin-bottom: 18px; }
.kids-more { text-align: center; margin-top: 24px; }
.kids-more[hidden] { display: none; }
.kids-search { position: relative; max-width: 720px; margin: 0 0 22px; }
.kids-search > span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--label-2); display: grid; }
.kids-search > span svg { width: 22px; height: 22px; }
.kids-search .input { height: 58px; padding-left: 52px; border-radius: 20px; font-size: 18px; }

/* Lembar Mode Anak: kepala, PIN, keluar */
.btn-block { width: 100%; justify-content: center; }
.kpin-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin: 0 0 18px; }
.kpin-head-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--accent-hi); margin-bottom: 4px;
  background: rgba(255,255,255,.07); background: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.1); }
.kpin-head-ic svg { width: 30px; height: 30px; }
.kpin-head h3 { margin: 0; font: 800 22px/1.2 var(--font-display, var(--font)); letter-spacing: -.01em; }
.kpin-head p { margin: 0; max-width: 40ch; color: var(--label-2); font-size: 14.5px; line-height: 1.5; }
.kpin-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kpin-points li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--fill-3); font-size: 14.5px; }
.kpin-points svg { width: 18px; height: 18px; flex: none; color: var(--accent-hi); }
.kpin { display: grid; justify-items: center; gap: 12px; }
.kpin-cells { display: flex; gap: 12px; }
.kpin-cell { width: 54px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--fill-3); border: 1.5px solid rgba(255,255,255,.1); transition: border-color .2s, background .2s, box-shadow .2s; }
.kpin-cell i { width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .22s var(--ease-spring, ease); }
.kpin-cell.on { background: rgba(255,255,255,.1); border-color: var(--accent); }
.kpin-cell.on i { transform: scale(1); }
.kpin-cell.cur { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.kpin-msg { min-height: 20px; margin: 0; font-size: 14px; color: var(--label-2); text-align: center; }
.kpin-msg.err { color: #ff6961; font-weight: 600; }
.kpin.bad .kpin-cells { animation: kpin-shake .42s; }
.kpin.bad .kpin-cell { border-color: rgba(255,69,58,.7); background: rgba(255,69,58,.1); }
@keyframes kpin-shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.kpin-keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; margin-top: 4px; }
.kpin-key { width: 72px; height: 72px; border-radius: 50%; border: 0; color: var(--label); font: 500 28px/1 var(--font); cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: background .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.kpin-key:hover, .kpin-key:focus-visible { background: rgba(255,255,255,.16); }
.kpin-key:active { transform: scale(.92); background: rgba(255,255,255,.24); }
.kpin-del { background: transparent; box-shadow: none; }
.kpin-key svg { width: 26px; height: 26px; }
@media (max-height: 920px) { .kpin-key { width: 62px; height: 62px; font-size: 24px; } .kpin-keys { grid-template-columns: repeat(3, 62px); gap: 9px 20px; } .kpin-head-ic { width: 48px; height: 48px; border-radius: 16px; } .kpin-head { margin-bottom: 14px; } .kpin-cell { height: 56px; } .kpin-tabs { margin-bottom: 14px; } }
@media (max-height: 700px) { .kpin-head p { display: none; } .kpin-key { width: 56px; height: 56px; } .kpin-keys { grid-template-columns: repeat(3, 56px); gap: 8px 18px; } }
.kpin-tabs { display: flex; margin: 0 auto 18px; max-width: 340px; }
.kpin-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kpin-tabs svg { width: 16px; height: 16px; }
.kpin-pw { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.kpin-pw[hidden], [data-pane][hidden] { display: none; }
.kpin-pw .input { height: 52px; font-size: 16px; }
.kpin-input { letter-spacing: .5em; font-size: 20px; text-align: center; }

/* Pilih umur tontonan (di beranda Mode Anak) */
  background: rgba(0,0,0,.18); color: var(--label); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease-spring, ease); }

/* Promo Mode Anak di beranda biasa */
  background: radial-gradient(70% 120% at 100% 0%, rgba(139,92,246,.35), transparent 60%), linear-gradient(120deg, #0c5c3f, #0b4a8f 60%, #3b1f7a); border: 1px solid rgba(255,255,255,.12); }

/* /kids — kenalan dengan Mode Anak */
  background: radial-gradient(60% 90% at 0% 0%, rgba(52,211,153,.4), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(139,92,246,.45), transparent 60%), linear-gradient(135deg, #0b3d5c, #102a6b); border: 1px solid rgba(255,255,255,.12); }

/* Admin: Mode Anak */
.ak-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ak-list { display: grid; gap: 8px; }
.ak-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--fill-3); }
.ak-item img, .ak-item .ak-ph { width: 44px; height: 66px; border-radius: 8px; object-fit: cover; flex: none; background: var(--fill-2); }
.ak-item .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ak-item .grow b { font-size: 14.5px; }
.ak-item .grow small { color: var(--label-2); font-size: 12.5px; }
.ak-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ak-acts .btn { height: 34px; font-size: 13.5px; }
.ak-acts .btn.is-on { background: var(--label); color: #000; }
@media (max-width: 700px) { .ak-item { flex-wrap: wrap; } .ak-acts { width: 100%; justify-content: flex-start; padding-left: 56px; } }

/* WebView lama (mis. Android TV dengan Chrome < 88) belum mengenal aspect-ratio → kartu jadi gepeng. */
@supports not (aspect-ratio: 1 / 1) {
  .card-art::before { content: ''; display: block; padding-top: 150%; }
  .card.landscape .card-art::before { padding-top: 56.25%; }
  .card-art > img { position: absolute; top: 0; left: 0; }
  .skel-card { height: 0; padding-top: 150%; }
  .nw-art { height: 0; padding-top: 56.25%; }
  .nw-art.sm { padding-top: 48px; }
  .nw-hero { padding-top: 42.86%; }
  .nw-sp-art { padding-top: 62.5%; }
  .collection-card, .search-hit-art, .room-frame, .wp-media, .rh-pic, .pk-ep-art { height: 0; padding-top: 56.25%; }
}

/* Mode Anak — mengikuti warna tema situs (--accent), tanpa emoji. */
.menu-new { margin-left: auto; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; color: var(--accent-ink, #fff); background: var(--accent); }
.avatar.kids-av { background: var(--accent); color: var(--accent-ink, #fff); display: grid; place-items: center; }
.avatar.kids-av svg { width: 55%; height: 55%; }
.kpin-link { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--accent-hi); font: 600 14.5px/1.3 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.kpin-link:hover, .kpin-link:focus-visible { background: rgba(255,255,255,.06); }
html.tv .kpin-key:focus-visible, html.tv .kpin-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-height: 680px) { .kpin-head-ic { display: none; } .kpin-head { margin: 0 0 10px; } .kpin-head h3 { font-size: 19px; } .kpin-cell { height: 50px; width: 48px; } .kpin { gap: 8px; } }

/* Mode Anak: "Siapa yang nonton?" + tombol umur di header */
.kage-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 7px; border-radius: 999px; color: var(--label); font: inherit; cursor: pointer; }
.kage-btn-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-hi); background: rgba(255,255,255,.1); background: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,.06)); }
.kage-btn-av svg { width: 20px; height: 20px; }
.kage-btn-txt { display: grid; text-align: left; line-height: 1.15; }
.kage-btn-txt b { font-size: 13.5px; }
.kage-btn-txt small { font-size: 11.5px; color: var(--label-2); }
.kage-btn .chev { width: 14px; height: 14px; color: var(--label-2); }
.kage-btn:hover { background: rgba(255,255,255,.12); }
.kage-head { text-align: center; margin: 0 0 18px; }
.kage-head h3 { margin: 0 0 6px; font: 800 24px/1.2 var(--font-display, var(--font)); letter-spacing: -.01em; }
.kage-head p { margin: 0 auto; max-width: 42ch; color: var(--label-2); font-size: 14.5px; line-height: 1.5; }
.kage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kage { position: relative; display: grid; justify-items: center; gap: 12px; padding: 22px 12px 18px; border-radius: 22px; border: 2px solid transparent; background: var(--fill-3);
  color: var(--label); font: inherit; text-align: center; cursor: pointer; transition: transform .25s var(--ease-spring, ease), background .2s, border-color .2s; }
.kage:hover, .kage:focus-visible { background: var(--fill-2); transform: translateY(-3px); }
.kage-av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-hi);
  background: rgba(255,255,255,.08); background: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.05)); transition: transform .3s var(--ease-spring, ease); }
.kage-av svg { width: 38px; height: 38px; }
.kage:hover .kage-av { transform: scale(1.06) rotate(-4deg); }
.kage-txt { display: grid; gap: 2px; }
.kage-txt b { font-size: 17px; }
.kage-txt small { font-size: 13px; font-weight: 600; color: var(--label-2); }
.kage-txt em { font-style: normal; font-size: 13px; line-height: 1.4; color: var(--label-3); margin-top: 4px; }
.kage-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-ink, #fff); background: var(--accent); transform: scale(0); transition: transform .25s var(--ease-spring, ease); }
.kage-check svg { width: 14px; height: 14px; }
.kage[aria-checked="true"] { border-color: var(--accent); background: rgba(255,255,255,.06); }
.kage[aria-checked="true"] .kage-check { transform: scale(1); }
.kage[aria-checked="true"] .kage-av { background: var(--accent); color: var(--accent-ink, #fff); }
.kage:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 3px; }
html.tv .kage:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .kage-list { grid-template-columns: 1fr; gap: 10px; }
  .kage { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; }
  .kage-av { width: 56px; height: 56px; }
  .kage-av svg { width: 28px; height: 28px; }
  .kage-check { top: 50%; right: 14px; margin-top: -12px; }
  .kage-head h3 { font-size: 21px; }
}
@media (max-width: 860px) { .kage-btn-txt small { display: none; } .kage-btn { height: 44px; } }

/* Promo di beranda biasa */
.kids-promo { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 22px; background: var(--fill-3); border: 1px solid rgba(255,255,255,.08);
  background-image: radial-gradient(60% 140% at 0% 50%, rgba(255,255,255,.05), transparent 70%); }
.kids-promo-ic { flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: var(--accent-hi);
  background: rgba(255,255,255,.07); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.kids-promo-ic svg { width: 28px; height: 28px; }
.kids-promo-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.kids-promo-tag { justify-self: start; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; color: var(--accent-ink, #fff); background: var(--accent); }
.kids-promo-text b { font: 700 clamp(17px, 2vw, 20px)/1.3 var(--font-display, var(--font)); }
.kids-promo-text p { margin: 0; color: var(--label-2); font-size: 14px; line-height: 1.5; }
.kids-promo-acts { display: flex; gap: 8px; flex: none; }
@media (max-width: 760px) {
  .kids-promo { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .kids-promo-ic { width: 44px; height: 44px; border-radius: 14px; }
  .kids-promo-text { flex: 1 1 calc(100% - 60px); }
  .kids-promo-acts { width: 100%; }
  .kids-promo-acts .btn { flex: 1; justify-content: center; }
}

/* /kids — kenalan dengan Mode Anak */
.kids-land { padding-bottom: 40px; max-width: 980px; }
.kids-land-hero { text-align: center; padding: clamp(32px, 6vw, 56px) 22px; border-radius: 28px; margin-bottom: 18px; background: var(--fill-3); border: 1px solid rgba(255,255,255,.08);
  background-image: radial-gradient(70% 80% at 50% 0%, rgba(255,255,255,.06), transparent 70%); }
.kids-land-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--accent-hi);
  background: rgba(255,255,255,.07); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.kids-land-ic svg { width: 32px; height: 32px; }
.kids-land-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink, #fff); background: var(--accent); }
.kids-land-hero h1 { margin: 10px 0 10px; font: 800 clamp(30px, 5vw, 46px)/1.08 var(--font-display, var(--font)); letter-spacing: -.025em; }
.kids-land-hero p { margin: 0 auto; max-width: 50ch; color: var(--label-2); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.55; }
.kids-land-acts { margin-top: 22px; }
.kids-land-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.kids-land-card { padding: 16px; border-radius: 18px; background: var(--fill-3); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 6px; align-content: start; }
.kids-land-card span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-hi); background: rgba(255,255,255,.06); }
.kids-land-card span svg { width: 19px; height: 19px; }
.kids-land-card b { font-size: 15.5px; }
.kids-land-card p { margin: 0; color: var(--label-2); font-size: 14px; line-height: 1.5; }

/* Avatar: foto profil + bingkai (Admin / Member / khusus). Bingkai keluar dari lingkaran avatar. */
.avatar { position: relative; }
.avatar .av-txt { position: relative; }
.avatar img.av-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; z-index: 1; background: var(--c); }
.avatar.has-fr { overflow: visible; box-shadow: none; outline: 0; }
.avatar img.av-fr { position: absolute; z-index: 2; left: 50%; top: 50%; width: calc(100% / var(--fk, .66)); height: calc(100% / var(--fk, .66)); max-width: none;
  border-radius: 0; object-fit: contain; transform: translate(-50%, calc(-50% - var(--fy, 0) * 100%)); pointer-events: none; }
.avatar.xl { width: 96px; height: 96px; font-size: 36px; }

/* Akun: foto profil */
.acc-photo { display: flex; align-items: center; gap: 22px; padding: 6px 4px 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.acc-photo-av { flex: none; width: 120px; height: 120px; display: grid; place-items: center; }
.acc-photo-txt { min-width: 0; display: grid; gap: 3px; }
.acc-photo-txt b { font-size: 16px; }
.acc-photo-txt small { color: var(--label-2); font-size: 13.5px; line-height: 1.45; }
.acc-photo-txt .btn svg { width: 17px; height: 17px; }
@media (max-width: 480px) { .acc-photo { gap: 16px; } .acc-photo-av { width: 104px; height: 104px; } .acc-photo-av .avatar.xl { width: 80px; height: 80px; } }

/* Editor foto profil */
.ave { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.ave-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #111; touch-action: none; cursor: grab; outline: none; justify-self: center; }
.ave-stage:active { cursor: grabbing; }
.ave-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.ave-stage canvas { display: block; width: 100%; height: 100%; }
.ave-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background: radial-gradient(circle closest-side at 50% 50%, transparent 98.6%, rgba(255,255,255,.85) 99%, rgba(255,255,255,.85) 100%, rgba(0,0,0,.6) 100%); }
.ave-side { display: grid; gap: 16px; }
.ave-prev { display: grid; justify-items: center; gap: 12px; padding: 16px 12px; border-radius: 18px; background: var(--fill-3); }
.ave-prev-big { width: 140px; height: 140px; display: grid; place-items: center; }
.ave-prev-row { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.ave-prev small { color: var(--label-2); font-size: 12.5px; text-align: center; }
.ave-zoom { display: flex; align-items: center; gap: 10px; }
.ave-zoom span { color: var(--label-2); display: grid; }
.ave-zoom span svg { width: 18px; height: 18px; }
.ave-zoom input { flex: 1; accent-color: var(--accent); }
.ave-tools { display: flex; gap: 8px; }
.ave-tools .btn svg { width: 16px; height: 16px; }
.ave-hint { margin: 0; }
@media (max-width: 720px) {
  .ave { grid-template-columns: 1fr; gap: 14px; }
  .ave-stage { max-width: min(100%, 360px); }
  .ave-prev { grid-template-columns: auto 1fr; justify-items: start; align-items: center; padding: 10px 14px; }
  .ave-prev-big { width: 96px; height: 96px; }
  .ave-prev-big .avatar.xl { width: 64px; height: 64px; font-size: 24px; }
  .ave-prev-row { gap: 14px; }
  .ave-prev small { grid-column: 1 / -1; text-align: left; }
  .ave-hint { display: none; }
}

/* Admin: bingkai */
.fa-assign { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.fa-role { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; background: var(--fill-3); }
.fa-role .field { flex: 1; margin: 0; }
.fa-prev { flex: none; width: 120px; height: 120px; display: grid; place-items: center; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fa-card { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--fill-3); }
.fa-card-prev { width: 130px; height: 130px; display: grid; place-items: center; }
.fa-card-body { display: grid; gap: 8px; min-width: 0; }
.fa-name { height: 36px; }
.fa-range { display: grid; gap: 2px; font-size: 12.5px; color: var(--label-2); }
.fa-range input { accent-color: var(--accent); width: 100%; }
.fa-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fa-pick { display: grid; justify-items: center; gap: 12px; padding: 22px 8px 12px; border-radius: 16px; border: 2px solid transparent; background: var(--fill-3); color: var(--label); font: 600 13.5px/1.2 var(--font); cursor: pointer; }
.fa-pick[aria-checked="true"] { border-color: var(--accent); }
.fa-pick:hover { background: var(--fill-2); }

/* ---------- Efek masuk Admin (Nonton Bareng) ----------
 * Garis cahaya → bar meluncur dari kiri → avatar+bingkai muncul dengan gelombang & percikan →
 * teks naik → kilau → keluar ke kanan. Total 4,6 dtk (samakan dengan DURATION di entrance.js).
 * Hanya transform/opacity supaya mulus; tidak menangkap klik. */
.ae-layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 6; display: none; overflow: hidden; pointer-events: none; }
.ae-layer.on { display: block; }
.ae { position: absolute; left: 0; right: 0; top: 18%; height: 80px; }
.ae-streak { position: absolute; left: 0; top: 39px; width: 62%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0), #ff2a36 55%, #fff);
  box-shadow: 0 0 12px 1px rgba(255, 42, 54, .9), 0 0 28px 4px rgba(229, 9, 20, .45);
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
  animation: ae-streak .8s cubic-bezier(.16, 1, .3, 1) forwards; }
.ae-bar { position: absolute; left: 18px; top: 0; display: flex; align-items: center; gap: 14px; height: 80px; padding: 0 72px 0 9px;
  transform: translateX(-115%); opacity: 0; will-change: transform, opacity;
  animation: ae-in .8s cubic-bezier(.16, 1, .3, 1) .14s forwards, ae-out .65s cubic-bezier(.7, 0, .84, 0) 3.95s forwards; }
.ae-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; border-radius: 999px;
  background: linear-gradient(90deg, rgba(229, 9, 20, .97) 0, rgba(170, 7, 18, .95) 56px, rgba(28, 9, 12, .93) 128px, rgba(20, 8, 10, .9) calc(100% - 80px), rgba(20, 8, 10, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 90, 100, .28); }
.ae-bg::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.ae-bg::before { content: ''; position: absolute; left: 40px; right: 12%; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(255, 42, 54, 0), #ff2a36 30%, rgba(255, 42, 54, 0)); box-shadow: 0 0 10px rgba(255, 42, 54, .8); }
.ae-shine { position: absolute; top: -20%; bottom: -20%; left: -45%; width: 38%; transform: translateX(0) skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
  animation: ae-shine 1.1s cubic-bezier(.45, 0, .2, 1) 1.15s forwards; }
.ae-glow { position: absolute; left: -26px; top: 50%; width: 124px; height: 124px; margin-top: -62px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 54, .55), rgba(229, 9, 20, 0) 68%); opacity: 0;
  animation: ae-glow 2.4s ease-in-out .45s forwards; }
.ae-av { position: relative; flex: none; width: 62px; height: 62px; }
.ae-av .avatar.ae-avatar { width: 62px; height: 62px; font-size: 24px; transform: scale(.3); opacity: 0;
  animation: ae-pop .75s cubic-bezier(.34, 1.56, .64, 1) .32s forwards; }
.ae-ring { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  border: 3px solid rgba(255, 92, 102, .95); box-shadow: 0 0 18px rgba(255, 42, 54, .85), inset 0 0 12px rgba(255, 42, 54, .5); opacity: 0; transform: scale(.6);
  animation: ae-ring 1s cubic-bezier(.16, 1, .3, 1) .5s forwards; }
.ae-ring.r2 { border-color: rgba(255, 255, 255, .75); animation-delay: .72s; }
.ae-spark { position: absolute; z-index: 2; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 3px rgba(255, 60, 70, .95); opacity: 0;
  transform: rotate(var(--a)) translateX(0);
  animation: ae-spark 1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(.55s + var(--d)); }
.ae-txt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ae-txt > * { opacity: 0; transform: translateY(10px); animation: ae-rise .6s cubic-bezier(.16, 1, .3, 1) forwards; }
.ae-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: #fff; color: #e50914;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 16px; animation-delay: .55s; }
.ae-tag svg { width: 12px; height: 12px; stroke-width: 2.4; }
.ae-name { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 21px; font-weight: 800; line-height: 1.15;
  letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); animation-delay: .64s; }
.ae-sub { color: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 600; line-height: 1.2; animation-delay: .74s; }

@keyframes ae-streak { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1) translateX(18%); opacity: 0; } }
@keyframes ae-in { 0% { transform: translateX(-115%); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes ae-out { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(28%); opacity: 0; } }
@keyframes ae-shine { 0% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(480%) skewX(-18deg); } }
@keyframes ae-glow { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.05); } 60% { opacity: .55; transform: scale(.95); } 100% { opacity: .8; transform: scale(1); } }
@keyframes ae-pop { 0% { transform: scale(.3); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ae-ring { 0% { opacity: .95; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes ae-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateX(24px) scale(1.2); } 10% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(78px) scale(.3); } }
@keyframes ae-rise { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .ae { top: 22%; height: 56px; }
  .ae-streak { top: 27px; }
  .ae-bar { left: 16px; height: 56px; gap: 10px; padding: 0 44px 0 6px; }
  .ae-av, .ae-av .avatar.ae-avatar { width: 44px; height: 44px; }
  .ae-av .avatar.ae-avatar { font-size: 17px; }
  .ae-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ae-glow { width: 96px; height: 96px; margin-top: -48px; left: -20px; }
  .ae-name { font-size: 15px; max-width: 52vw; }
  .ae-sub { font-size: 11px; }
  .ae-tag { font-size: 9px; line-height: 14px; }
}
.mfp.is-fs .ae { top: 16%; }

/* Gerak dikurangi: cukup muncul & hilang perlahan. */
.ae.is-reduced .ae-streak, .ae.is-reduced .ae-ring, .ae.is-reduced .ae-spark, .ae.is-reduced .ae-shine { display: none; }
.ae.is-reduced .ae-bar, .ae.is-reduced .ae-av .avatar.ae-avatar, .ae.is-reduced .ae-txt > *, .ae.is-reduced .ae-glow {
  transform: none; opacity: 1; animation: none; }
.ae.is-reduced .ae-bar { animation: ae-fade 2.6s ease both; }
@keyframes ae-fade { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------- Admin → Iklan ---------------- */
.cmp-settings { padding: 4px 0 0; margin-bottom: 16px; }
.cmp-settings .cell { padding: 12px 16px; }
.cmp-settings .cell small { display: block; color: var(--label-2); font-size: 12.5px; margin-top: 2px; }
/* Setelan per kelompok penonton (Tamu / Member gratis) */
.cmp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cmp-groups.is-master-off { opacity: .55; }
.cmp-group { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--fill-3); transition: opacity .2s ease; }
.cmp-group.is-off .cmp-group-body, .cmp-group.is-off .cmp-group-foot { opacity: .45; }
.cmp-group-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cmp-group-head small { display: block; color: var(--label-2); font-size: 12.5px; margin-top: 2px; }
.cmp-group-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-hi, #fff); }
.cmp-group-ic svg { width: 20px; height: 20px; }
.cmp-group-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-group-body .field { margin: 0; min-width: 0; }
.cmp-group-body .cmp-span { grid-column: 1 / -1; }
.cmp-group-body .select:disabled { opacity: .45; }
.cmp-group-foot { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--label-2); }
.cmp-group-foot svg { width: 15px; height: 15px; flex: none; }
.cmp-group-foot.warn { color: #FFD60A; }
@media (max-width: 420px) { .cmp-group-body { grid-template-columns: 1fr; } }
.cmp-lib-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.cmp-lib-head .cmp-tabs { margin-right: auto; }
.cmp-tabs button .t-foot { margin-left: 4px; }
.cmp-up-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-up-ctl .select { height: 40px; width: auto; }
.cmp-aud { display: grid; gap: 4px; font-size: 12.5px; color: var(--label-2); }
.cmp-aud .select { height: 36px; }
.cmp-for { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 3px 7px; border-radius: 6px; font: 700 10.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; background: rgba(0, 0, 0, .7); color: #fff; }
.cmp-for.guest { background: #0A84FF; }
.cmp-for.member { background: #30D158; color: #04210d; }
.cmp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.cmp-summary > div { padding: 14px; border-radius: 16px; background: var(--fill-3); display: grid; gap: 4px; }
.cmp-summary b { font: 700 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.cmp-summary span { font-size: 12.5px; color: var(--label-2); }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cmp-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 18px; background: var(--fill-3); min-width: 0; align-content: start; }
.cmp-card.is-off { opacity: .62; }
.cmp-card.is-off .cmp-prev { filter: grayscale(.8); }
.cmp-prev { position: relative; align-self: start; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
@supports not (aspect-ratio: 1) { .cmp-prev { height: 113px; } }
.cmp-prev video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.cmp-dur { position: absolute; top: 6px; left: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; pointer-events: none; }
.cmp-body { display: grid; gap: 8px; min-width: 0; align-content: start; }
.cmp-head { display: flex; align-items: center; gap: 10px; }
.cmp-head .input { flex: 1; min-width: 0; height: 38px; }
.cmp-body > .input { height: 38px; }
.cmp-on { flex: none; display: inline-flex; }
.cmp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cmp-weight { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--label-2); }
.cmp-weight .select { height: 34px; width: auto; min-width: 72px; }
.cmp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cmp-stats span { display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: var(--fill-2, rgba(255, 255, 255, .06)); font-size: 11.5px; color: var(--label-2); min-width: 0; }
.cmp-stats b { font: 700 15px/1.1 var(--font); color: var(--label, #fff); }
.cmp-up { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--fill-3); overflow: hidden; font-size: 13.5px; }
.cmp-up i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: var(--accent); transition: width .2s ease; }
.cmp-up small { color: var(--label-2); font-variant-numeric: tabular-nums; }
.cmp-up.is-err { box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .5); }
.cmp-up.is-err small { color: #ff6961; }
.cmp-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border-radius: 18px; background: var(--fill-3); text-align: center; color: var(--label-2); }
.cmp-empty svg { width: 34px; height: 34px; opacity: .6; }
.cmp-empty b { color: var(--label, #fff); }
@media (max-width: 560px) {
  .cmp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cmp-actions { display: flex; align-items: center; gap: 8px; }
.cmp-actions .btn { margin-right: auto; }

/* =====================================================================
   Panel Admin — kerangka baru: menu berkelompok, judul halaman seragam,
   toolbar/saringan, dan halaman Aktivitas untuk memantau.
   ===================================================================== */
.admin-page { padding-top: calc(var(--nav-h) + 24px); }
@media (max-width: 860px) { .admin-page { padding-top: 76px; } }
.admin-page .admin-grid { grid-template-columns: 232px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: none; padding-bottom: 12px; }
.admin-side::-webkit-scrollbar { display: none; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 14px; font: 700 17px/1.2 var(--font-display, var(--font)); }
.admin-brand svg { width: 20px; height: 20px; color: var(--accent); }
.admin-page .admin-nav { position: static; display: grid; gap: 14px; overflow: visible; grid-auto-flow: row; }
.admin-nav-group { display: grid; gap: 1px; }
.admin-nav-title { padding: 0 12px 4px; font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--label-3); }
.admin-page .admin-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--label-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.admin-page .admin-nav a svg { width: 17px; height: 17px; flex: none; }
.admin-page .admin-nav a:hover { background: var(--fill-3); color: var(--label); }
.admin-page .admin-nav a.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; font-weight: 600; }
.admin-page .admin-nav a.is-active svg { color: var(--accent); }
.admin-menu-m { display: none; }
.admin-main { min-width: 0; }
.adm-head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding-bottom: 18px; box-shadow: inset 0 -.5px 0 var(--sep); }
.adm-head-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.adm-head-ic svg { width: 22px; height: 22px; }
.adm-head h1 { margin: 0; font: 700 26px/1.15 var(--font-display, var(--font)); letter-spacing: -.02em; }
.adm-head p { margin: 4px 0 0; color: var(--label-2); font-size: 14px; max-width: 70ch; }
.adm-intro { margin: 0 0 16px; color: var(--label-2); font-size: 14px; line-height: 1.5; max-width: 72ch; }
.adm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-toolbar .searchbar { flex: 1 1 260px; margin: 0; }
.adm-seg { max-width: 100%; }
.adm-seg button { display: inline-flex; align-items: center; gap: 6px; }
.adm-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--fill-2); font: 600 11px/1 var(--font); color: var(--label-2); }
.adm-seg button.is-active .adm-count { background: color-mix(in srgb, var(--accent) 30%, transparent); color: #fff; }
.adm-meta { margin: 6px 4px 10px; font-size: 12.5px; color: var(--label-3); }
.adm-more { display: flex; justify-content: center; margin: 14px 0 4px; }
.adm-req-votes { flex: none; width: 52px; display: grid; justify-items: center; line-height: 1.1; }
.adm-req-votes b { font: 700 18px/1 var(--font-display, var(--font)); }
.adm-req-votes small { font-size: 10.5px; color: var(--label-3); }
.adm-req .select { width: auto; height: 34px; }
.adm-req-st.st-pending { color: var(--orange); }
.adm-req-st.st-approved { color: #64d2ff; }
.adm-req-st.st-available { color: var(--green); }
.adm-req-st.st-rejected { color: var(--label-3); }
@media (max-width: 860px) {
  .admin-page .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .admin-side { display: none; }
  .admin-menu-m { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 20; border-radius: 16px; background: color-mix(in srgb, var(--grouped) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 .5px var(--sep), 0 10px 30px rgba(0, 0, 0, .35); }
  .admin-menu-m > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; }
  .admin-menu-m > summary::-webkit-details-marker { display: none; }
  .admin-menu-cur { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .admin-menu-cur > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
  .admin-menu-cur small { display: block; font-size: 11px; color: var(--label-3); }
  .admin-menu-cur b { display: block; font-size: 15px; }
  .admin-menu-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--fill-2); font: 600 13px/1 var(--font); color: var(--label); }
  .admin-menu-btn svg { width: 15px; height: 15px; transition: transform .2s; }
  .admin-menu-m[open] .admin-menu-btn svg { transform: rotate(180deg); }
  .admin-menu-m .admin-nav { padding: 4px 8px 12px; max-height: 62vh; overflow-y: auto; }
  .adm-head { margin-bottom: 16px; padding-bottom: 14px; }
  .adm-head-ic { width: 38px; height: 38px; border-radius: 11px; }
  .adm-head h1 { font-size: 22px; }
  .adm-head p { font-size: 13px; }
  .adm-toolbar .seg, .act-filter .seg { width: 100%; }
}

/* ---------- Aktivitas ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--grouped); text-align: left; color: inherit; font: inherit; box-shadow: inset 0 0 0 .5px transparent; transition: box-shadow .15s, transform .15s; min-width: 0; }
.kpi:hover { box-shadow: inset 0 0 0 1px var(--sep); }
.kpi > span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi > span svg { width: 14px; height: 14px; flex: none; }
.kpi b { font: 700 24px/1.1 var(--font-display, var(--font)); letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.is-bad b, .kpi.is-bad > span { color: #ff6961; }
.kpi.is-warn { background: color-mix(in srgb, var(--orange) 12%, var(--grouped)); }
.kpi.is-warn b, .kpi.is-warn > span { color: var(--orange); }
.kpi.is-ok > span svg { color: var(--green); }
.act-tabs { display: flex; gap: 6px; margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.act-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; font: 600 14px/1 var(--font); color: var(--label-2); background: var(--fill-3); }
.act-tabs button svg { width: 16px; height: 16px; }
.act-tabs button.is-active { background: #fff; color: #111; }
.act-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--orange); color: #111; font: 700 11px/1 var(--font); }
.live-toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--fill-3); font: 600 13px/1 var(--font); color: var(--label-2); }
.live-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); }
.live-toggle.is-on { color: var(--label); }
.live-toggle.is-on i { background: var(--green); box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 100% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } }
.act-day { position: sticky; top: 0; z-index: 1; padding: 8px 16px; font: 700 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--label-3); background: var(--grouped); box-shadow: inset 0 -.5px 0 var(--sep); }
.act-day:first-child { border-radius: inherit; }
.act-feed .act-row { display: grid; grid-template-columns: 46px 30px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px 16px; }
.act-feed .act-row + .act-row { box-shadow: inset 0 .5px 0 var(--sep); }
.act-clock { padding-top: 7px; font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--label-3); }
.act-feed .act-detail { margin-top: 2px; font-size: 13.5px; color: var(--label); overflow-wrap: anywhere; }
.act-row.is-bad { background: rgba(255, 69, 58, .05); }
.act-row.is-new { animation: act-new 2.4s ease-out; }
@keyframes act-new { 0% { background: color-mix(in srgb, var(--accent) 24%, transparent); } 100% { background: transparent; } }
.act-user svg { width: 14px; height: 14px; }
.flag-group { margin-bottom: 14px; }
.flag-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 8px; }
.flag-group-head b { font-size: 13px; color: var(--label-2); white-space: nowrap; }
.flag-group-head .flag-chip { white-space: normal; height: auto; min-height: 24px; padding: 4px 9px; line-height: 1.3; }
.flag-more { color: var(--label-2) !important; }
@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-row .kpi:last-child { grid-column: 1 / -1; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 21px; }
  .act-feed .act-row { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .act-feed .act-row .act-ic { display: none; }
  .act-filter { gap: 8px; }
  .act-filter .searchbar { flex-basis: 100%; }
  .act-charts { grid-template-columns: minmax(0, 1fr); }
  .act-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .live-toggle.is-on i, .act-row.is-new { animation: none; } }
@media (max-width: 860px) {
  .admin-menu-m .admin-nav-group { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .admin-menu-m .admin-nav-title { grid-column: 1 / -1; }
  .admin-menu-m .admin-nav a { padding: 9px 10px; overflow: hidden; text-overflow: ellipsis; }
  .admin-menu-m .admin-nav { max-height: 70vh; }
}

/* ---------------- Bingkai avatar: muat di dalam kotak avatar ----------------
 * Avatar kecil/sedang (daftar, chat, nobar, header, tumpukan wajah) tidak lagi
 * dibiarkan "meluber": bingkai digambar di dalam kotak avatar dan wajah sedikit
 * diperkecil. Hasilnya bingkai tidak terpotong wadah (overflow: hidden) dan tidak
 * menimpa nama, lencana, tombol, atau avatar di sebelahnya.
 * Avatar besar (lg/xl, efek masuk) tetap memakai bingkai yang keluar lingkaran.
 * --fi (dari avatar.js) = besar wajah terhadap kotak; bingkai = kotak × --fi / --fk. */
.avatar.has-fr { background: none; box-shadow: none; isolation: isolate; }
.avatar.has-fr::before {
  content: ''; position: absolute; z-index: 0; border-radius: 50%;
  top: calc((1 - var(--fi)) * 50%); left: calc((1 - var(--fi)) * 50%); width: calc(var(--fi) * 100%); height: calc(var(--fi) * 100%);
  background: var(--c);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
}
.avatar.has-fr img.av-img { top: calc((1 - var(--fi)) * 50%); left: calc((1 - var(--fi)) * 50%); width: calc(var(--fi) * 100%); height: calc(var(--fi) * 100%); }
.avatar.has-fr .av-txt { z-index: 0; transform: scale(var(--fi)); }
.avatar.has-fr img.av-fr { width: calc(100% * var(--fi) / var(--fk, .66)); height: calc(100% * var(--fi) / var(--fk, .66)); }
/* Avatar besar: ruangnya cukup → bingkai penuh di luar lingkaran seperti sebelumnya. */
.avatar.has-fr.lg, .avatar.has-fr.xl, .avatar.has-fr.fr-out { --fi: 1 !important; }
.avatar.has-fr.lg::before, .avatar.has-fr.xl::before, .avatar.has-fr.fr-out::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
/* Tumpukan wajah: wajah berbingkai tidak diberi cincin pemisah (bingkainya sudah jadi batas). */
.people .avatar.has-fr, .vc-stack .avatar.has-fr, .ar-people .avatar.has-fr { box-shadow: none; }
/* Avatar besar berbingkai di samping teks: beri ruang agar bingkai tidak menempel/menimpa nama. */
.profile-head .avatar.has-fr, .ins-head .avatar.has-fr { margin: 10px 12px 10px 8px; }
.podium .p .avatar.has-fr { margin-top: 10px; margin-bottom: 18px; }
