/* King Drama: cinema-dark ground, one signal red for actions, gold only in the crown. */

/* Metric-matched fallbacks, so text does not jump when the web fonts (loaded without blocking) swap in.
   size-adjust equalises average width against the local font; Bebas Neue is 0.9 / 0.3 em above/below the baseline. */
@font-face {
  font-family: "Bebas Neue Fallback";
  src: local("Impact"), local("Haettenschweiler");
  size-adjust: 77%;
  ascent-override: 117%;
  descent-override: 39%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plus Jakarta Sans Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 106%;
}

:root {
  --bg: #0e0e11;
  --bg-2: #16161a;
  --bg-3: #1f1f24;
  --bg-4: #2a2a30;
  --line: #2c2c33;
  --line-2: #3d3d45;
  --text: #f5f5f1;
  --text-2: #b3b3b8;
  --text-3: #9a9aa2;
  --red: #e50914;
  --red-press: #c20812;
  --red-text: #ff4d55;
  --warn: #fb923c;
  --gold: #d9ae55;

  --top-h: 64px;
  --tab-h: 0px;
  --gutter: clamp(16px, 4vw, 60px);
  --card-w: clamp(132px, 12.6vw, 216px);
  --card-gap: clamp(8px, 0.7vw, 12px);
  --r: 6px;

  --f-display: "Bebas Neue", "Bebas Neue Fallback", "Plus Jakarta Sans", Impact, sans-serif;
  --f-ui: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 768px) {
  :root {
    --top-h: 56px;
    --tab-h: 58px;
    --card-w: clamp(104px, 29vw, 150px);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 12px);
  scroll-padding-bottom: calc(var(--tab-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--f-ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}
#app:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  inset-inline-start: 12px; top: -64px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--r);
  transition: top 0.15s;
}
.skip:focus { top: 12px; }

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--fill { fill: currentColor; stroke: none; }

.dot { margin-inline: 0.5em; color: var(--text-3); }

#app { flex: 1; display: block; }
.view { min-height: 60vh; }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top-h);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.topbar.is-scrolled,
body:not([data-route="home"]):not([data-route="drama"]) .topbar {
  background-color: var(--bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
}
/* Logo KD + KINGDRAMA (icons/logo-header-horizontal.png, 653x160, transparan, teks putih untuk latar gelap). */
.brand picture { display: block; }
.brand__logo { display: block; width: auto; height: 36px; }

.nav { display: flex; gap: 4px; margin-inline-start: 28px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #e3e3e6;
  transition: color 0.15s;
}
.nav__link:hover { color: var(--text-2); }
.nav__link[aria-current="page"] { color: #fff; font-weight: 700; }
/* Menu Koin: ikon koin emas, titik merah bila ada misi siap diklaim. */
.nav__link--coin { gap: 6px; }
.nav__ico { position: relative; display: inline-grid; place-items: center; color: #f1c96b; }
.nav__ico.has-dot::after {
  content: "";
  position: absolute;
  inset-block-start: -2px;
  inset-inline-end: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--red);
}

.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  border-radius: var(--r);
}

.search {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}
.search .iconbtn { height: 38px; width: 42px; }
.search input {
  width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  outline: none;
  transition: width 0.25s var(--ease), padding 0.25s var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search.is-open {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
}
.search.is-open input { width: 220px; padding-inline-end: 12px; }
.search.is-open:focus-within { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
body[data-route="search"] .search { display: none; }

/* source dropdown */
.src { position: relative; }
.src__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-block: 0; padding-inline: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s;
}
.src__btn:hover { border-color: #fff; }
.src__label { color: var(--text-2); }
.src__current { font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.src__chev { transition: transform 0.2s var(--ease); }
.src__btn[aria-expanded="true"] .src__chev { transform: rotate(180deg); }
.src__btn.is-down .src__current::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: 2px;
}

.src__pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 264px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  /* elevation: the only floating surface in the header, it must read above the hero */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.src__title { padding: 6px 10px 8px; font-size: 13px; color: var(--text-3); }
.src__opt {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: start;
  font-size: 15px;
}
.src__opt:hover { background: var(--bg-3); }
.src__check { width: 18px; color: var(--text); visibility: hidden; }
.src__opt[aria-current="true"] .src__check { visibility: visible; }
.src__opt[aria-current="true"] .src__name { font-weight: 700; }
.src__name { flex: 1; }
/* "Semua sumber" is a different kind of choice from one provider: set it apart with a rule */
.src__sep { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
/* sources without content in the UI language: listed after a label, each with its content language */
.src__group { margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.src__lang { margin-inline-start: 8px; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
/* the first visible label sits right under "Semua sumber", whose rule already separates it */
.src__group--lead { margin-top: 0; border-top: 0; padding-top: 6px; }
/* name filter: above the list, which scrolls on its own below it */
.src__filter { padding: 4px 16px 10px; }
.src__q {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text);
  /* 16px keeps iOS from zooming the page when the field gets focus */
  font-size: 16px;
}
.src__q::placeholder { color: var(--text-3); }
.src__q:focus { border-color: #fff; }
.src__q::-webkit-search-cancel-button { filter: invert(1); }
.src__empty { padding: 12px 10px; color: var(--text-3); font-size: 14px; }

/* Source picker: a panel of logo tiles grouped by kind (a bottom sheet on phones, see below 640px) */
.src__pop.srcpick {
  display: flex;
  flex-direction: column;
  width: min(608px, calc(100vw - 32px));
  max-height: min(70vh, 680px);
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
}
.srcpick .src__title { padding: 14px 16px 6px; }
.srcpick .src__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  align-content: start;
  gap: 4px;
  padding: 2px 12px 12px;
}
.srcpick .src__sep,
.srcpick .src__group,
.srcpick .src__empty { grid-column: 1 / -1; }
.srcpick .src__sep { margin-bottom: 2px; padding-bottom: 6px; }
.srcpick .src__group { margin-top: 8px; padding: 14px 4px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.srcpick .src__group--lead { margin-top: 0; padding-top: 4px; }
.srcpick .src__opt {
  position: relative;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px 4px 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text-2);
}
.srcpick .src__opt:hover { background: var(--bg-3); color: var(--text); }
.srcpick .src__opt:focus-visible { outline-offset: -2px; border-radius: 10px; }
.srcpick .src__opt[aria-current="true"] { background: var(--bg-3); color: var(--text); }
.srcpick .src__opt[aria-current="true"] .src__name { font-weight: 700; }
.srcpick .src__name {
  flex: none;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.srcpick .src__lang { margin: -4px 0 0; font-size: 11.5px; line-height: 1.2; }
.src__art { position: relative; flex: none; display: block; }
/* selected: a white ring around the logo and a red check badge on its corner */
.srcpick .src__opt[aria-current="true"] .slogo { box-shadow: 0 0 0 2px var(--bg-3), 0 0 0 4px #fff; }
.srcpick .src__check {
  position: absolute;
  inset-block-start: -7px;
  inset-inline-end: -7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-3);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.srcpick .src__check .ico { stroke-width: 3; }
/* "Gangguan": a red dot on the logo (the button's accessible name says it in words) */
.srcpick .src__status {
  position: absolute;
  inset-block-end: -3px;
  inset-inline-end: -3px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg-2);
  border-radius: 50%;
  background: var(--red-text);
}
.srcpick .src__opt:hover .src__status,
.srcpick .src__opt[aria-current="true"] .src__status { border-color: var(--bg-3); }
/* "Semua sumber" is a different kind of choice from one provider: a full-width row above the tiles */
.srcpick .src__sep .src__opt { flex-direction: row; gap: 12px; padding: 8px 10px; text-align: start; font-size: 15px; }
.srcpick .src__sep .slogo { width: 40px; height: 40px; border-radius: 10px; }
.srcpick .src__empty { padding: 16px 4px; }
.srcpick__back { display: none; }

/* Logo of one source (icons/sources/<id>.png), or its initials while it has none */
.slogo {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-4);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.slogo img { width: 100%; height: 100%; object-fit: cover; }
.slogo--all { background: var(--bg-4); color: var(--text); }

/* language menu: globe button beside the source picker, list reuses the source menu styles */
.lng { position: relative; }
.lng__pop { width: 232px; }
.foot__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.foot__lang:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-block: 0; padding-inline: 20px 24px;
  border: 0;
  border-radius: 4px;
  font: 700 16px/1 var(--f-ui);
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--white { background: #fff; color: #0e0e11; }
.btn--white:hover { background: #dcdcdf; }
.btn--grey { background: rgba(91, 91, 96, 0.82); color: #fff; }
.btn--grey:hover { background: rgba(110, 110, 116, 0.9); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-press); }
/* Facebook: Meta's #166FE5 shade keeps white text at 4.7:1 (#1877F2 is only 4.2:1). */
.btn--fb { background: #166fe5; color: #fff; }
.btn--fb:hover { background: #1259bd; }
.fbmark { flex: none; }
/* Google: gaya tombol resmi (tema terang) — putih, garis #747775, teks #1F1F1F, logo G empat warna. */
.btn--google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.btn--google:hover { background: #f2f2f2; }
.btn--google:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gmark { flex: none; }
.btn--sm { min-height: 44px; padding-block: 0; padding-inline: 14px 16px; font-size: 15px; gap: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
/* full-width buttons may carry long labels ("Berlangganan lewat lynk.id"): let them wrap, never overflow */
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }

.textbtn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(179, 179, 184, 0.5);
}
.textbtn:hover { color: #fff; text-decoration-color: #fff; }
.textbtn:disabled { opacity: 0.55; cursor: not-allowed; }
.textbtn--danger { color: var(--red-text); text-decoration-color: rgba(255, 77, 85, 0.5); }
.textbtn--danger:hover { color: #ff7a80; text-decoration-color: #ff7a80; }

/* ---------- Poster art ---------- */

.art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-3);
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.art.is-loaded img { opacity: 1; }
.art__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #4a4a52;
}

/* ---------- Hero billboard ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(540px, 82vh, 900px);
  display: flex;
  align-items: flex-end;
}
.hero__backdrop { position: absolute; inset: -48px; z-index: -2; background: var(--bg-2); }
.hero__backdrop img,
.detail__backdrop img,
.stage__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(34px) saturate(1.15) brightness(0.5);
  transform: scale(1.12);
}
/* fades the backdrop into the page; also keeps the left copy column dark enough for text */
.hero__shade,
.detail__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 14, 17, 0.94) 0%, rgba(14, 14, 17, 0.72) 36%, rgba(14, 14, 17, 0.1) 72%),
    linear-gradient(0deg, var(--bg) 2%, rgba(14, 14, 17, 0) 42%);
}

.hero__inner {
  width: 100%;
  padding: calc(var(--top-h) + 40px) var(--gutter) 128px;
}
.hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
}
.hero__copy { grid-row: 1; grid-column: 1; max-width: 660px; }
.hero__poster { grid-row: 1; grid-column: 2; width: clamp(200px, 21vw, 330px); }
.hero__poster .art {
  border-radius: 8px;
  /* elevation: the poster is the focal object of the billboard */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero__kicker { font-size: 15px; font-weight: 600; color: var(--text-2); }
.hero__title {
  margin-top: 6px;
  font: 400 clamp(52px, 6.6vw, 112px)/0.9 var(--f-display);
  letter-spacing: 0.01em;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-top: 0.06em;
}
.hero__meta { margin-top: 14px; font-size: 15px; font-weight: 600; color: #e3e3e6; }
.hero__syn {
  margin-top: 12px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.55;
  color: #e3e3e6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__syn.is-loading {
  height: 3.1em;
  max-width: 440px;
  border-radius: 4px;
  background: linear-gradient(rgba(255, 255, 255, 0.08) 0 1.2em, transparent 1.2em 1.7em, rgba(255, 255, 255, 0.08) 1.7em 2.9em, transparent 2.9em);
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent);
  mask: linear-gradient(90deg, #000 70%, transparent);
}
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { min-height: 52px; font-size: 17px; padding-inline: 22px 28px; }

.hero__dots {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: 84px;
  display: flex;
}
.hero__dot {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
}
.hero__dot i {
  position: relative;
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
}
.hero__dot b {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-on b { animation: kd-fill 8s linear forwards; }
.hero.is-paused .hero__dot.is-on b,
.hero.is-user-paused .hero__dot.is-on b { animation-play-state: paused; }
.hero__pause {
  width: 36px;
  height: 44px;
  margin-inline-end: 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text-2, #b3b3b8);
  padding: 0;
  cursor: pointer;
}
.hero__pause:hover, .hero__pause[aria-pressed="true"] { color: #fff; }
.hero__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  .hero:hover .hero__dot.is-on b { animation-play-state: paused; }
}
.hero:has(:focus-visible) .hero__dot.is-on b { animation-play-state: paused; }

.hero.is-swap .hero__copy,
.hero.is-swap .hero__poster { animation: kd-in 0.45s var(--ease); }
.hero.is-swap .hero__backdrop img { animation: kd-fade 0.6s ease; }

.hero--sk .hero__inner { padding-bottom: 96px; }

/* ---------- Rows ---------- */

.home__rows { position: relative; z-index: 1; margin-top: -64px; padding-bottom: 40px; }
.row { margin-top: 26px; }
.row:first-child { margin-top: 0; }
.row__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-inline: var(--gutter);
}
.row__title { font-size: clamp(18px, 1.5vw, 23px); font-weight: 700; letter-spacing: -0.01em; }
.row__body { position: relative; }
.row__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card-w);
  gap: var(--card-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  /* vertical padding reserves room for the hover scale so nothing gets clipped */
  padding: 14px var(--gutter) 18px;
  scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__item { scroll-snap-align: start; min-width: 0; }

.row__arrow {
  position: absolute;
  top: 14px;
  z-index: 4;
  width: max(44px, var(--gutter));
  height: calc(var(--card-w) * 1.5);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(14, 14, 17, 0.72);
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s;
}
.row__arrow--prev { inset-inline-start: 0; border-radius: 0 4px 4px 0; }
.row__arrow--next { inset-inline-end: 0; border-radius: 4px 0 0 4px; }
.row__arrow:hover { background: rgba(14, 14, 17, 0.88); }
.row__arrow:hover .ico { transform: scale(1.15); }
.row__arrow .ico { transition: transform 0.15s; }
.row__arrow:disabled { visibility: hidden; }
.row__arrow:focus-visible { opacity: 1; outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .row__body:hover .row__arrow { opacity: 1; }
}
@media (hover: none) {
  .row__arrow { display: none; }
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  transition: transform 0.22s var(--ease);
  transform-origin: 50% 35%;
}
.row__item:first-child .card { transform-origin: 0 35%; }
.row__item:last-child .card { transform-origin: 100% 35%; }
.card__link { display: block; border-radius: var(--r); }
.card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  min-height: 2.6em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.card__meta {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__over {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:focus-within .card__over { opacity: 1; }
.card__play {
  pointer-events: auto;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bg);
  transition: background-color 0.15s;
}
.card__play .ico { margin-inline-start: 2px; }
.card__play:hover { background: #dcdcdf; }
.card__play--static { pointer-events: none; }
.card__tag {
  min-width: 0;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: scale(1.08); z-index: 3; }
  .card:hover .card__over { opacity: 1; }
}

.card__badge {
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.card__progress {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}
.card__progress span { display: block; height: 100%; background: var(--red); }

/* Top 10: outlined rank numerals beside the poster */
.row--top .row__track { grid-auto-columns: calc(var(--card-w) * 1.52); }
.top { position: relative; padding-inline-start: calc(var(--card-w) * 0.52); }
.top__num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  height: calc(var(--card-w) * 1.5);
  display: flex;
  align-items: flex-end;
  font: 400 calc(var(--card-w) * 1.18)/0.74 var(--f-display);
  letter-spacing: -0.07em;
  color: var(--bg);
  -webkit-text-stroke: 3px #6d6d74;
  paint-order: stroke fill;
  user-select: none;
}
.top .card { z-index: 1; }
.row--top .row__item:first-child .card { transform-origin: 50% 35%; }

/* Mixed-source rows: the provider name leads the meta line, a step brighter than the count */
.card__src { color: var(--text-2); font-weight: 700; }

/* "Lihat semua" on per-source rows: switches the whole home to that source */
.row__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.row__more .ico { transition: transform 0.15s var(--ease); }
.row__more:hover .ico { transform: translateX(2px); }

/* Aggregated home: chips that jump to each source's row */
.srcjump__count { color: var(--text-3); font-size: 14px; }
.row--srcjump .row__track {
  grid-auto-columns: max-content;
  scroll-snap-type: x proximity;
  padding-block: 12px 4px;
}
.row--srcjump .row__arrow { top: 12px; height: 56px; }
.srcjump__chip {
  /* containing block for the .sr-only hint, so it stays inside the scroller instead of widening the page */
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding-block: 5px; padding-inline: 5px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.srcjump__chip:hover { background: var(--bg-3); border-color: var(--line-2); }
.srcjump__chip .slogo { width: 44px; height: 44px; border-radius: 10px; font-size: 15px; }
.row__title[tabindex="-1"]:focus { outline: none; }

/* lazy rows: the sentinel shows a skeleton row while more rows are queued */
.home__sentinel { margin-top: 26px; }

/* aggregated home while the server is still probing sources */
.hero__wait { font-size: 15px; font-weight: 600; color: var(--text-2); }

/* Aggregated home: kind tabs over the top of the hero, right under the top bar */
.view--home { position: relative; }
.kindtabs { position: absolute; top: var(--top-h); inset-inline: 0; z-index: 2; }
.kindtabs .catnav__list { margin-inline: 0; padding: 10px var(--gutter); }
.kindtabs .catchip:not([aria-current]) { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.4); }
.kindtabs .catchip:not([aria-current]):hover { border-color: #fff; }
/* room for the tabs above the hero copy and poster, and above a message box in place of the hero */
.kindtabs + .home .hero__inner { padding-top: calc(var(--top-h) + 104px); }
.kindtabs + .home .page--flush { padding-top: calc(var(--top-h) + 72px); }

/* ---------- Generic page ---------- */

.page {
  padding: calc(var(--top-h) + 32px) var(--gutter) 64px;
  max-width: 1680px;
  margin-inline: auto;
  width: 100%;
}
.page--flush { padding-top: calc(var(--top-h) + 56px); padding-bottom: 24px; }
.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page__title {
  font: 400 clamp(38px, 4.2vw, 60px)/0.95 var(--f-display);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  padding-top: 0.06em;
}
.page__title q { quotes: "“" "”"; color: var(--text-2); }
.page__sub { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.sec-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(128px, 13vw, 196px), 1fr));
  gap: 28px var(--card-gap);
}

/* ---------- Categories: home chips, browse switcher, paged grid ---------- */

.row--cats .row__track {
  grid-auto-columns: max-content;
  scroll-snap-type: x proximity;
  padding-block: 10px 4px;
}
.row--cats .row__arrow { top: 10px; height: 44px; }
.catchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.catchip:hover { background: var(--bg-3); border-color: #5a5a63; }
.catchip:focus-visible { outline-offset: 2px; border-radius: 999px; }
.catchip[aria-current="page"] { background: #fff; border-color: #fff; color: var(--bg); }
.catchip--dub { border-color: rgba(217, 174, 85, 0.6); }
.catchip--dub::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.catchip--dub[aria-current="page"] { background: var(--gold); border-color: var(--gold); }
.catchip--dub[aria-current="page"]::before { background: var(--bg); }

.catnav { margin: 0 0 26px; }
.catnav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  /* bleed to the screen edges so chips scroll under the gutter, with room for focus rings */
  margin-inline: calc(var(--gutter) * -1);
  padding: 6px var(--gutter);
}
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__list li { flex: none; scroll-snap-align: start; }
@media (min-width: 769px) {
  .catnav__list { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.sk-title--page { width: min(320px, 70%); height: 44px; margin-bottom: 12px; }
.paged__sentinel { height: 1px; }
.paged__foot { display: grid; justify-items: center; gap: 12px; margin-top: 28px; padding-bottom: 8px; }
.paged__more { min-width: min(280px, 100%); }
.paged__end { color: var(--text-3); font-size: 14px; text-align: center; }
.paged__err {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}
.paged__err .ico { color: var(--red-text); }

/* ---------- State boxes ---------- */

.state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 16px;
  max-width: 560px;
  margin-inline: auto;
}
.state__mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-2);
  margin-bottom: 6px;
}
.state--error .state__mark { color: var(--red-text); }
.state__title { font-size: 22px; font-weight: 700; }
.state__msg { color: var(--text-2); max-width: 48ch; }
.state__actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Skeletons ---------- */

.sk {
  border-radius: 4px;
  background: linear-gradient(90deg, #1b1b20 0%, #26262d 50%, #1b1b20 100%) 0 0 / 200% 100%;
  animation: kd-shimmer 1.4s linear infinite;
}
.sk-line { height: 12px; margin-top: 10px; }
.sk-line--short { width: 55%; }
.sk-title { width: 200px; height: 22px; }
.sk-kicker { width: 150px; height: 14px; }
.sk-htitle { width: min(520px, 90%); height: 72px; margin-top: 14px; }
.sk-btns { width: min(280px, 100%); height: 50px; margin-top: 22px; }
.sk-ep { height: 64px; border-radius: var(--r); }
.hero--sk { min-height: clamp(540px, 82vh, 900px); }

/* ---------- Search ---------- */

.bigsearch {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 760px;
  padding-block: 4px; padding-inline: 16px 4px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color 0.15s;
}
.bigsearch:focus-within { border-color: #fff; }
.bigsearch__ico { color: var(--text-2); }
.bigsearch__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 18px;
  outline: none;
}
.bigsearch__input::placeholder { color: var(--text-3); }
.bigsearch__input::-webkit-search-cancel-button { filter: invert(1); }
.bigsearch__go { min-height: 48px; padding-inline: 22px; }

.searchbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  max-width: 760px;
  margin: 10px 0 30px;
}
.searchbar .page__sub { margin: 0; }

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}
.toggle__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #5b5b62;
  transition: background-color 0.2s;
}
.toggle__track::after {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}
.toggle input:checked + .toggle__track { background: var(--red); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid #fff; outline-offset: 3px; }
.toggle input:disabled, .toggle:has(input:disabled) { cursor: progress; }
.toggle input:disabled + .toggle__track { opacity: 0.55; }

.results__count { margin-bottom: 16px; color: var(--text-2); font-size: 15px; }

.recent { max-width: 760px; }
.recent__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.recent__list { border-top: 1px solid var(--line); }
.recent__item { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.recent__link {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
  font-size: 16px;
}
.recent__link .ico { color: var(--text-3); }
.recent__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__link:hover { color: var(--text-2); }
.recent__x {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--text-2);
}
.recent__x:hover { color: #fff; background: var(--bg-3); }

.group + .group { margin-top: 36px; }
.group__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.group__count { color: var(--text-3); font-size: 14px; }

/* search in all sources: one poster row per source with results, bleeding to the page edges like the home rows */
.results__count:focus { outline: none; }
.sgroups { margin-inline: calc(var(--gutter) * -1); }
.group:not([hidden]) + .sgroups { margin-top: 30px; }
.sgroups .row__head { flex-wrap: wrap; gap: 2px 14px; }
/* sources with no results and sources that failed: one collapsed line each */
.snote { margin-top: 24px; color: var(--text-2); font-size: 15px; }
.snote + .snote { margin-top: 4px; }
.snote summary { width: fit-content; min-height: 44px; padding-block: 11px; font-weight: 600; cursor: pointer; }
.snote summary:hover { color: #fff; }
.snote--error summary .ico { margin-inline: 6px; color: var(--red-text); vertical-align: -3px; }
.snote__names { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 2px 0 8px; color: var(--text-3); font-size: 14px; }
.snote__list { display: grid; gap: 2px; padding-bottom: 8px; }
.snote__fail { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.snote__name { font-weight: 600; color: var(--text); }
.snote__msg { min-width: 0; color: var(--text-3); font-size: 14px; overflow-wrap: anywhere; }
.group__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--text-2);
  font-size: 15px;
}
.group__note--error .ico { color: var(--red-text); }

/* ---------- Detail ---------- */

.detail__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(76vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--top-h) + 48px) var(--gutter) 40px;
}
.detail__backdrop { position: absolute; inset: -48px; z-index: -2; background: var(--bg-2); }
.detail__head {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: clamp(190px, 21vw, 290px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.detail__poster .art { border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.detail__info { min-width: 0; max-width: 780px; }
.detail__info > .sk + .sk { margin-top: 14px; }
.detail__title {
  font: 400 clamp(46px, 5.6vw, 92px)/0.92 var(--f-display);
  letter-spacing: 0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  padding-top: 0.06em;
}
.detail__meta { margin-top: 12px; font-size: 15px; font-weight: 600; color: #e3e3e6; }
.detail__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.detail__actions .btn { min-height: 52px; font-size: 17px; }
.synopsis { margin-top: 20px; }
.synopsis__text { max-width: 64ch; font-size: 16px; line-height: 1.6; color: #e3e3e6; white-space: pre-line; }
.synopsis__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.synopsis .textbtn { margin-inline-start: -4px; }
.synopsis__none { margin-top: 20px; color: var(--text-3); font-size: 15px; }
/* Link to the dubbed or subtitled version of the same drama (detail page and watch panel). */
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__info > .variants { margin-top: 16px; }
.panel > .variants { padding: 10px 16px 0; }
.variant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}
.variant:hover { background: var(--bg-3); border-color: #5a5a63; }
.variant:focus-visible { outline-offset: 2px; }
.variant--dub { border-color: rgba(217, 174, 85, 0.6); }
.variant--dub .ico { color: var(--gold); }
.variant__eps { color: var(--text-3); font-weight: 500; }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}

.detail__eps { padding: 28px var(--gutter) 64px; max-width: 1400px; box-sizing: content-box; }
.eps__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.eps__count { color: var(--text-3); font-size: 14px; }

/* ---------- Episode list ---------- */

.eplist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.epi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-block: 7px; padding-inline: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--bg-2);
  transition: background-color 0.15s, border-color 0.15s;
}
.epi:hover { background: var(--bg-3); }
.epi__thumb { position: relative; flex: none; width: 34px; }
.epi__thumb .art { border-radius: 3px; }
.epi__thumb .art__fallback .ico { width: 16px; height: 16px; }
.epi__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.epi__num {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font: 400 21px/1 var(--f-display);
  padding-top: 2px;
}
.epi__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.epi__name { font-size: 15px; font-weight: 600; }
.epi__sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epi__flag { font-size: 12px; font-weight: 700; color: var(--red-text); }
.epi__flag--now { display: none; color: #fff; }
.epi__lock { flex: none; color: var(--text-3); display: inline-flex; }
.epi.is-last { border-color: rgba(229, 9, 20, 0.7); }
.epi[aria-current="true"] { background: var(--bg-4); border-color: #fff; }
.epi[aria-current="true"] .epi__flag--now { display: block; }
.epi[aria-current="true"] .epi__flag:not(.epi__flag--now) { display: none; }

/* ---------- Watch ---------- */

body[data-route="watch"] #app { padding-top: var(--top-h); }
body[data-route="watch"] .foot { display: none; }

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 400px);
  height: calc(100vh - var(--top-h));
  height: calc(100dvh - var(--top-h));
  background: #000;
}
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* clip: latar kabur (.stage__bg, inset -60px) melebar keluar; dengan hidden saja, focus() pada tombol/menu HUD bisa
     menggulir panggung ke samping sehingga judul dan "Detail drama" terpotong di kiri. clip tidak bisa digulir sama sekali. */
  overflow: clip;
  min-height: 0;
  background: #000;
}
.stage:fullscreen { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.stage:-webkit-full-screen { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; background: #000; }
.stage__bg { position: absolute; inset: -60px; z-index: -1; }
.stage__bg img { filter: blur(44px) saturate(1.2) brightness(0.36); }
.stage__frame { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage__video {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}
.stage__video::cue { font-family: var(--f-ui); font-size: 1.05em; background: rgba(0, 0, 0, 0.62); }

.stage__hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4; /* di atas overlay error/selesai supaya tautan kembali tetap bisa diklik */
  padding: 14px 24px 72px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.stage__hud > * { pointer-events: auto; width: fit-content; }
.stage.is-idle .stage__hud { opacity: 0; }
.stage.is-idle .stage__hud > * { pointer-events: none; }
.hud__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-inline-start: -4px;
  padding-inline: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #e3e3e6;
}
.hud__back:hover { color: #fff; }
.hud__title {
  margin-top: 4px;
  max-width: min(32ch, 100%);
  font: 400 clamp(28px, 2.6vw, 42px)/0.95 var(--f-display);
  letter-spacing: 0.01em;
  padding-top: 0.06em;
}
.hud__ep { margin-top: 6px; font-size: 15px; font-weight: 600; color: #e3e3e6; }

/* Subtitle, audio and quality menus: corner buttons in the HUD (fade with it); each list opens below its button, never moving the video. */
.hud__menus { position: absolute; inset-block-start: 14px; inset-inline-end: 24px; display: flex; align-items: flex-start; gap: 8px; }
.hud__menu { position: relative; }
.qbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(14, 14, 17, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s;
}
.qbtn:hover, .qbtn[aria-expanded="true"] { background: rgba(14, 14, 17, 0.9); }
.qbtn--lang .qbtn__text { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.qbtn.is-off { color: #c4c4ca; }
.qbtn.is-off .ico { opacity: 0.6; }
.qpop {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 2;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 32px));
  max-height: min(60vh, 340px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(22, 22, 26, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.qopt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding-inline: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: start;
}
.qopt:hover, .qopt:focus-visible { background: var(--bg-4); }
.qopt:focus-visible { outline-offset: -2px; }
.qopt__check { flex: none; visibility: hidden; color: var(--gold); }
.qopt[aria-checked="true"] .qopt__check { visibility: visible; }

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}
.stage__overlay[data-kind="loading"] { background: rgba(0, 0, 0, 0.35); pointer-events: none; }
.ov {
  width: min(380px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}
.stage__overlay[data-kind="loading"] .ov { background: none; border: 0; }
.ov .ico--alert { color: var(--red-text); }
.ov .ico--crown { color: var(--gold); }
.ov__title { font-size: 20px; font-weight: 700; }
.ov__msg { color: var(--text-2); font-size: 15px; }
.ov__actions { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: kd-spin 0.8s linear infinite;
}
.spinner--sm { flex: none; width: 18px; height: 18px; border-width: 2px; }
.stage.is-buffering::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: kd-spin 0.8s linear infinite;
  pointer-events: none;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 16px;
  background: var(--bg);
  border-inline-start: 1px solid var(--line);
}
.panel__ctrls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-inline: 16px; }
.ctrl {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-3);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s;
}
.ctrl:hover:not(:disabled) { background: var(--bg-4); }
.ctrl:disabled { opacity: 0.45; cursor: not-allowed; }
.panel > .toggle { padding: 6px 16px 0; font-size: 14px; }
.panel__share { grid-column: 1 / -1; }
/* Unduhan khusus admin: tombol membagi lebar sama rata, berapa pun yang tampil. */
.panel__admin { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel__kicker { margin: 0 16px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.panel__admin .panel__ctrls { display: flex; }
.panel__admin .ctrl { flex: 1 1 0; min-width: 0; text-align: center; }
.panel__admin .ctrl[aria-busy="true"] { opacity: 1; cursor: progress; font-variant-numeric: tabular-nums; }
.panel__head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 10px; border-top: 1px solid var(--line); margin-top: 10px; }
.panel__toggle { display: none; }
.panel__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 12px 24px; }
.eplist--panel { grid-template-columns: 1fr; gap: 6px; }

/* ---------- Account: header menu ----------
   Gold stays the crown's colour: here it marks Premium (badge, avatar ring, status), nothing else. */

.acct { position: relative; display: flex; }
.acct:empty { display: none; }
.acct__login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.acct__login:hover { background: var(--red-press); }
.acct__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 0; padding-inline: 4px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s;
}
.acct__btn:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.35); }
.acct__name { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__chev { transition: transform 0.2s var(--ease); }
.acct__btn[aria-expanded="true"] .acct__chev { transform: rotate(180deg); }

.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-4);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.avatar.is-premium { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.avatar--lg { width: 56px; height: 56px; font-size: 22px; }
.avatar--tab { width: 24px; height: 24px; font-size: 11.5px; }
.avatar--tab.is-premium { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--gold); }

/* real status label, not decoration; slight tracking keeps 11px caps legible */
.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 4px; padding-inline: 6px 7px;
  border-radius: 3px;
  background: rgba(217, 174, 85, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.acct__pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 272px;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  /* elevation: floats above the hero like the source menu */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.acct__who { padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct__whoName { font-weight: 700; overflow-wrap: anywhere; }
.acct__whoMail { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.acct__whoPlan { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.acct__whoPlan.is-free { color: var(--text-3); }
.acct__opt {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: start;
  font-size: 15px;
}
.acct__opt .ico { color: var(--text-2); }
.acct__opt:hover { background: var(--bg-3); }
.acct__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }

.tabbar__ico { display: grid; place-items: center; height: 24px; }

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 60;
  width: min(460px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px; padding-inline: 14px 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-3);
  /* elevation: must read above any page content, including the player */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  animation: kd-in 0.22s var(--ease);
}
.toast--error { border-color: rgba(255, 77, 85, 0.55); }
.toast--error .toast__ico { color: var(--red-text); }
.toast__msg { flex: 1; min-width: 0; padding-block: 8px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.toast__x {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text-2);
}
.toast__x:hover { color: #fff; background: var(--bg-4); }

/* Tawaran pasang aplikasi (PWA): menumpang di tumpukan toast supaya tidak saling tutup. */
.installbar { gap: 12px; padding-inline-start: 10px; }
.installbar__ico { flex: none; width: 40px; height: 40px; border-radius: 9px; }
.installbar__txt { flex: 1; min-width: 0; padding-block: 6px; }
.installbar__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.installbar__sub { margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.35; }
.installbar .btn { flex: none; }
@media (max-width: 380px) {
  .installbar__sub { display: none; }
}

/* Tawaran aplikasi Android (APK): lembar bawah di ponsel, kotak di tengah pada layar lebar. */
.apkdlg {
  position: fixed;
  width: min(440px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  margin: auto auto 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: kd-in 0.22s var(--ease);
}
.apkdlg::backdrop { background: rgba(0, 0, 0, 0.62); }
.apkdlg:focus { outline: none; }
.apkdlg__x { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; }
.apkdlg__head { display: flex; align-items: center; gap: 14px; padding-inline-end: 44px; }
.apkdlg__ico { flex: none; width: 56px; height: 56px; border-radius: 13px; }
.apkdlg__title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.apkdlg__sub { margin-top: 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.apkdlg__actions { display: grid; gap: 8px; margin-top: 20px; }
.apkdlg__steps:not(:empty) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.apkdlg__stepsTitle { font-size: 14.5px; font-weight: 700; }
.apkdlg__list { display: grid; gap: 6px; margin-top: 8px; padding-inline-start: 22px; list-style: decimal; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
@media (min-width: 600px) {
  .apkdlg { margin: auto; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); border-radius: 12px; }
}
body.has-modal { overflow: hidden; }
.apkbox .btn { margin-top: 14px; }

/* Ajakan di toast (mis. "Masuk" untuk tamu). */
.toast__act { flex: none; min-height: 40px; padding-inline: 14px; }

/* Lembar bagikan: memakai bentuk .apkdlg (lembar bawah di ponsel, kotak di tengah pada layar lebar). */
.sharedlg__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-4); color: var(--text); }
.sharedlg__name { margin-top: 10px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sharedlg__native { margin-top: 18px; }
.sharedlg__nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sharedlg__net {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding-inline: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-3);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}
.sharedlg__net:hover { background: var(--bg-4); border-color: rgba(255, 255, 255, 0.3); }
.sharedlg__mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 800; line-height: 1; }
/* warna merek dengan teks putih ≥ 4.5:1 */
.sharedlg__net--wa .sharedlg__mark { background: #128c4b; }
.sharedlg__net--tg .sharedlg__mark { background: #0c6aa6; }
.sharedlg__net--fb .sharedlg__mark { background: #166fe5; }
.sharedlg__net--x .sharedlg__mark { background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.sharedlg__link { margin-top: 18px; }
.sharedlg__row { display: flex; gap: 8px; }
.sharedlg__url { flex: 1; min-width: 0; font-size: 14px; text-overflow: ellipsis; }
.sharedlg__row .btn { flex: none; }
@media (max-width: 360px) {
  .sharedlg__nets { grid-template-columns: minmax(0, 1fr); }
  .sharedlg__row { flex-wrap: wrap; }
  .sharedlg__row .btn { width: 100%; }
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 16px; }
.form--tight { gap: 12px; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 16px; }
.form--inline > .form__alert { flex-basis: 100%; }
.form--inline > .field { flex: 1 1 240px; min-width: 0; }
/* lines the button up with the input under its label (label line 21px + 6px gap) */
.form--inline > .btn { margin-top: 27px; }
.form--row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-top: 14px; }
.form--row > .form__alert { grid-column: 1 / -1; }
.form--row > .btn { margin-top: 27px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; }
.field__hint { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.field__err { font-size: 13.5px; font-weight: 600; color: var(--red-text); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-3);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
/* focus: the outline is replaced by a white border + ring, brighter than the idle border */
.input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.input[aria-invalid="true"] { border-color: var(--red-text); }
.input:disabled { opacity: 0.6; }
textarea.input { min-height: 96px; padding-block: 12px; line-height: 1.5; resize: vertical; }
.select {
  appearance: none;
  padding-inline-end: 40px;
  background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  cursor: pointer;
}
.input::-webkit-search-cancel-button { filter: invert(1); }
.mono, .input.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.input.mono { font-size: 15px; }

.field__pw { position: relative; }
.field__pw .input { padding-inline-end: 124px; }
.field__reveal {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  bottom: 2px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
}
.field__reveal:hover { color: #fff; }

.form__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 77, 85, 0.5);
  border-radius: var(--r);
  background: rgba(229, 9, 20, 0.1);
  font-size: 14.5px;
  line-height: 1.45;
}
.form__alert .ico { margin-top: 1px; color: var(--red-text); }
.form__alert--info { border-color: var(--line-2); background: var(--bg-3); }
.form__alert--info .ico { color: var(--text-2); }
.form__note { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btnrow--text { gap: 4px 14px; flex-wrap: nowrap; }

.loading { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--text-2); font-size: 15px; }
.empty-note {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}

/* ---------- Auth pages ---------- */

.auth { display: grid; justify-items: center; }
.auth__card {
  width: min(440px, 100%);
  padding: 30px 28px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.auth__mark { display: block; color: var(--gold); }
.auth__title { margin-top: 12px; font: 400 52px/0.95 var(--f-display); letter-spacing: 0.01em; padding-top: 0.06em; }
.auth__sub { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.auth__body { margin-top: 24px; display: grid; gap: 16px; }
.auth__alt { text-align: center; color: var(--text-2); font-size: 14.5px; }
.auth__alt a, .steps a, .stat__link, .tlink {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.auth__alt a { display: inline-flex; align-items: center; min-height: 44px; }
.auth__alt a:hover, .steps a:hover, .stat__link:hover, .tlink:hover { text-decoration-color: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; gap: 12px; }

/* ---------- Account page ---------- */

.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px 40px;
  align-items: start;
}
.acct-main, .acct-side { display: grid; gap: 20px; min-width: 0; }

.box {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.box__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.box__title--gap { margin-bottom: 14px; }
.box__title + .form, .box__sub + .form:not(.form--inline) { margin-top: 16px; }
.box__title[tabindex="-1"]:focus, .apanel__title:focus { outline: none; }
.box__sub { margin-top: 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 70ch; }
.box__kicker { font-size: 14px; font-weight: 700; color: var(--text-2); }

/* the status card is the page's focal point: the one big line on the page */
.status { padding-block: 22px 26px; }
.status.is-premium { border-color: rgba(217, 174, 85, 0.5); }
.status__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.status__top .textbtn { margin-inline-end: -4px; }
.status__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status__line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font: 400 clamp(36px, 3.6vw, 54px)/0.95 var(--f-display);
  letter-spacing: 0.01em;
  padding-top: 0.06em;
  text-wrap: balance;
}
.status__crown { color: var(--gold); margin-top: -0.1em; }
.status__note { margin-top: 10px; color: var(--text-2); font-size: 15px; max-width: 62ch; }

.paynote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-block: 10px; padding-inline: 14px 10px;
  border-radius: var(--r);
  background: var(--bg-3);
}
.paynote__text { font-size: 14.5px; line-height: 1.45; min-width: 0; }
.paynote__text strong { overflow-wrap: anywhere; }

.plans-slot { margin-top: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 18px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}
.plan__name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font: 400 42px/1 var(--f-display); letter-spacing: 0.01em; padding-top: 0.06em; }
.plan__cur { font: 700 17px/1 var(--f-ui); letter-spacing: 0; color: var(--text-2); }
.plan__days { color: var(--text-2); font-size: 14px; font-weight: 600; }
.plan__desc { margin-top: 6px; color: var(--text-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.plan__buy { margin-top: auto; }
.plan__desc + .plan__buy, .plan__days + .plan__buy { margin-top: 14px; }
.plan__na { margin-top: 14px; color: var(--text-3); font-size: 13.5px; }

.profile__id { display: flex; align-items: center; gap: 14px; }
.profile__text { min-width: 0; }
.profile__name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.profile__mail { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.facts { margin: 18px 0 0; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 600; text-align: end; }
.profile .btn { margin-top: 16px; }

/* ---------- Tables ---------- */

.tbl-wrap {
  /* containing block for .sr-only hints in cells, so they scroll with the table instead of widening the page */
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overscroll-behavior-x: contain;
}
.tbl-wrap:focus-visible { outline-offset: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  padding: 10px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  text-align: start;
  white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tbl .textbtn { min-height: 32px; font-size: 13.5px; }
.tbl .toggle { min-height: 32px; }
.cell-strong { font-weight: 600; overflow-wrap: anywhere; }
.cell-plan { min-width: 180px; }
.cell-sub { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
.cell-ref { max-width: 160px; overflow-wrap: anywhere; font-size: 12.5px; }
.cell-wide { min-width: 220px; }
.tbl__edit > td { padding: 16px 12px 20px; background: var(--bg); }
/* editor rows sit inside a scrolling table: pin their content to the visible width */
.sticky-cell { position: sticky; inset-inline-start: 12px; width: min(100%, calc(100vw - 2 * var(--gutter) - 26px)); }
.t-gold { color: var(--gold); font-weight: 700; }
.t-muted { color: var(--text-3); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-4);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.chip--gold { background: rgba(217, 174, 85, 0.15); color: var(--gold); }
.chip--warn { background: rgba(251, 146, 60, 0.14); color: var(--warn); }
.chip--bad { background: rgba(229, 9, 20, 0.16); color: var(--red-text); }
.chip--muted { background: none; border: 1px solid var(--line-2); color: var(--text-2); padding-block: 2px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; }
.pager__at { color: var(--text-2); font-size: 14px; }
.acount { margin-bottom: 10px; color: var(--text-2); font-size: 14px; }

/* ---------- Admin ---------- */

.atabs {
  margin: -8px 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.atabs::-webkit-scrollbar { display: none; }
.atabs ul { display: flex; gap: 2px; min-width: max-content; }
.atabs__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}
.atabs__link:hover { color: #fff; }
.atabs__link[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.atabs__link:focus-visible { outline-offset: -4px; }

.apanel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.apanel__text { min-width: 0; max-width: 78ch; }
.apanel__title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.apanel__sub { margin-top: 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.asub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 28px 0 12px; }
h3.asub { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.stat { padding: 18px 20px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.stat__num { font: 400 58px/1 var(--f-display); letter-spacing: 0.01em; padding-top: 0.06em; }
.stat__label { margin-top: 2px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.stat__link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; font-size: 14px; }
.stat.is-warn { border-color: rgba(251, 146, 60, 0.55); }
.stat.is-warn .stat__num { color: var(--warn); }

/* admin › Ringkasan › Pengunjung */
.vsum { display: grid; gap: 12px; margin-block-end: 28px; }
.vsum .rfchart { margin-block-start: 4px; }

.atool { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; max-width: 560px; margin-bottom: 16px; }
.atool > .input { flex: 1 1 220px; min-width: 0; }
.atool > .field { flex: 0 1 300px; }

.split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.split__list { min-width: 0; }

.manage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px 28px; }
.manage__group { display: grid; gap: 10px; align-content: start; min-width: 0; }
.manage__title { font-size: 14px; font-weight: 700; }
.manage__now { color: var(--text-2); font-size: 14px; }

.result { margin-top: 16px; }
.result .apanel__head { margin-bottom: 12px; align-items: center; }
.codes {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre;
}
.codebox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding-block: 10px; padding-inline: 14px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}
.codebox code { flex: 1 1 260px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.steps { list-style: decimal; margin: 16px 0 12px; padding-inline-start: 1.4em; display: grid; gap: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.steps strong { color: var(--text); }
.raw {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
}
.pick { margin-top: 4px; }
.pick__list { display: grid; gap: 6px; max-width: 640px; }
.pick__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px; padding-inline: 12px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.pick__who { display: grid; min-width: 0; font-size: 14px; }
.pick__who strong { overflow-wrap: anywhere; }
.pick__who span { color: var(--text-2); font-size: 13px; }
.settings { max-width: 760px; }
.settings .box { display: grid; gap: 14px; }

/* admin > Iklan: satu baris per unit, teks di sisi awal, sakelar di sisi akhir */
.adpanel { display: grid; gap: 16px; max-width: 760px; }
.adpanel .box { display: grid; gap: 4px; }
.adunits__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 44px; }
.adunits__status { font-size: 15px; font-weight: 600; }
.adunit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.adunit:first-child { border-top: 0; padding-top: 10px; }
.adunit:last-child { padding-bottom: 0; }
.adunit__text { flex: 1 1 auto; min-width: 0; }
.adunit__name { font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.adunit__desc { margin-top: 3px; max-width: 62ch; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.adunit .toggle { flex: none; }

/* ---------- Koin ---------- */

/* pemutar: tanda "+n koin" di pojok atas sisi akhir panggung, tidak menangkap klik */
.coinpill {
  position: absolute;
  z-index: 5; /* di atas HUD dan overlay, di bawah iklan pre-roll (.vastad) */
  inset-block-start: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(217, 174, 85, 0.6);
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.85);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.coinpill.is-on { animation: kd-coin 2.8s var(--ease) forwards; }
.panel__coins {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 10px 16px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.panel__coins .ico { color: var(--gold); }
.panel__coins:hover { color: #fff; border-color: var(--line-2); }

/* halaman koin */

.meters { display: grid; gap: 16px; }
.meter { display: grid; gap: 8px; }
.meter__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: 14.5px; }
.meter__label { color: var(--text-2); font-weight: 600; }
.meter__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter__bar { display: block; height: 8px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

.coin-hint { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.coin-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
/* label tombol bisa panjang ("Tonton 5 menit lagi untuk check-in"): boleh turun baris, tidak melebar */
.coin-cta .btn { max-width: 100%; white-space: normal; line-height: 1.25; padding-block: 10px; }
.coin-cta .coin-hint { margin-top: 0; flex: 1 1 220px; }
.coin-cta .tlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; }
.coin-rate { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.coin-rate + .coin-hint { margin-top: 4px; }
.coin-hint--gold { color: var(--gold); font-weight: 600; }
.coin-status { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 260px; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.coin-status .ico { margin-top: 1px; }
.coin-status.is-done .ico { color: var(--gold); }

/* kalender check-in: 7 kolom, jadi 4 + 3 di layar sempit */

.coin-rules { display: grid; gap: 6px; margin-top: 12px; padding-inline-start: 1.2em; list-style: disc; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.coin-rules li::marker { color: var(--gold); }

.chist { display: grid; }
.chist__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.chist__item:first-child { border-top: 0; padding-top: 0; }
.chist__text { display: grid; min-width: 0; }
.chist__kind { font-size: 14.5px; font-weight: 600; }
.chist__meta { color: var(--text-3); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.chist__amt { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.chist__amt.is-plus { color: var(--gold); }
.chist__amt.is-minus { color: var(--text-2); }

/* kartu di halaman Akun */
.coinlink { display: flex; align-items: center; gap: 14px; padding-block: 16px; transition: border-color 0.15s, background-color 0.15s; }
.coinlink:hover { border-color: var(--line-2); background: var(--bg-3); }
.coinlink__ico { flex: none; color: var(--gold); }
.coinlink__text { flex: 1; display: grid; min-width: 0; }
.coinlink__title { font-size: 16px; font-weight: 700; }
.coinlink__amt { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.coinlink__chev { color: var(--text-3); }

/* admin > Koin */
.coinadmin { display: grid; gap: 20px; }
.coinadmin .settings { max-width: 860px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px 16px; align-items: start; }
.cfg-days { min-width: 0; margin: 0; padding: 0; border: 0; }
.cfg-days legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.cfg-days__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cfg-days .field__label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.cfg-days .input { padding-inline: 6px; text-align: center; }
.coin-est { padding: 14px 16px; border-radius: var(--r); background: var(--bg-3); font-size: 14.5px; line-height: 1.5; }

/* saldo naik setelah klaim misi: denyut emas singkat */
@keyframes kd-bump {
  0% { color: var(--gold); transform: scale(1.12); }
  100% { color: inherit; transform: none; }
}

/* misi */
.missions .box__sub { margin-bottom: 4px; }
.tgroup { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tgroup__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tgroup__title { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.tgroup__reset { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.tgroup__note { margin-top: 12px; }
.tgroup .coin-status { margin-top: 12px; }

/* pelindung streak di kartu check-in */
.freeze__state { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.freeze__state li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.freeze__state li.is-on { border-color: rgba(217, 174, 85, 0.5); color: var(--gold); }

/* kartu sambutan akun baru */
.welcome { margin-bottom: 20px; border-color: rgba(217, 174, 85, 0.4); background: linear-gradient(180deg, rgba(217, 174, 85, 0.08), var(--bg-2) 70%); }
.welcome__goal { margin-block: 6px 12px; font: 400 clamp(30px, 4vw, 42px)/1 var(--f-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.welcome__goal--sm { margin-top: 0; font-size: 26px; }
.welcome .meter__bar { height: 10px; }
.welcome .box__sub { margin-top: 12px; }
.welcome--mini { margin-bottom: 0; padding-block: 16px 18px; }
.wlist { display: grid; gap: 4px; margin-top: 14px; }
.wlist li { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14.5px; }
.wlist__ico { flex: none; color: var(--gold); }
.wlist__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wlist__amt { flex: none; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.wlist li.is-done .wlist__name { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.welcome__more { margin-top: 10px; }

/* lencana misi siap: angka di menu akun, titik di avatar */
.nbadge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: auto; padding-inline: 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.avatar.has-dot { position: relative; }
.avatar.has-dot::after {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--red);
}

/* admin > Koin: tabel misi */
.input--num { width: 96px; min-height: 40px; padding-inline: 10px; text-align: end; font-variant-numeric: tabular-nums; }
.tbl td.num .field__err { margin-top: 4px; white-space: normal; text-align: start; }
.form__alert--warn { border-color: rgba(251, 146, 60, 0.5); background: rgba(251, 146, 60, 0.08); }
.form__alert--warn .ico { color: var(--warn); }

/* ---------- Koin gelombang B: level, event, iklan berhadiah, ajak teman, pengingat ---------- */

/* lencana level */
.lvbadge { display: inline-flex; align-items: center; gap: 4px; padding-block: 2px; padding-inline: 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.lvbadge .ico { flex: none; }
.lvbadge--silver { border-color: #8d929c; color: #d4d7dd; }
.lvbadge--gold { border-color: rgba(217, 174, 85, 0.7); color: var(--gold); }
.lvbadge--diamond { border-color: #6fb8d6; color: #a9dcf0; }
.lvbadge--bronze { border-color: #9a6b45; color: #d6a47b; }
.acct__whoLevel { margin-top: 8px; }
.lvlink { display: inline-flex; align-items: center; min-height: 32px; border-radius: 999px; }
.lvlink:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lvcard .status__top { gap: 8px 12px; flex-wrap: wrap; }
.lvcard__meter { margin-top: 16px; }
.lvcard__sub { margin-top: 18px; font-size: 14.5px; font-weight: 700; }
.lvcard .coin-rules { margin-top: 8px; }
.lvcard .coin-status { margin-top: 14px; }

/* event pengali koin: halaman Koin dan panel pemutar */
.panel__event { display: flex; align-items: flex-start; gap: 8px; margin: 8px 16px 0; padding: 10px 12px; border: 1px solid rgba(217, 174, 85, 0.5); border-radius: var(--r); background: rgba(217, 174, 85, 0.08); color: var(--gold); font-size: 13.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.panel__event .ico { flex: none; margin-top: 1px; }

/* iklan berhadiah: kartu dan modal */
.addlg { width: min(560px, 100%); }
.addlg__stage { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 8px; background: #000; overflow: hidden; display: grid; place-items: center; }
.addlg__stage > .loading { color: var(--text-2); }
.vastad--coins .vastad__foot { bottom: 12px; }
.vastad--coins .vastad__bar { top: 8px; inset-inline: 8px; }

/* halaman daftar: kamu diajak teman */
.refnote { margin-bottom: 4px; }
.refnote .ico { color: var(--gold); }
.refnote__body { display: grid; gap: 4px; min-width: 0; }
.refnote__title { font-weight: 700; }
.refnote__pdp { color: var(--text-2); font-size: 13.5px; }
.refnote .textbtn { justify-self: start; margin-inline-start: -4px; }
.refnote__gone:focus { outline: none; }

/* halaman Ajak teman */
.refshare { border-color: rgba(217, 174, 85, 0.4); }
.refshare__code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.refshare__num { font: 400 clamp(40px, 6vw, 56px)/1 var(--f-display); letter-spacing: 0.08em; padding-top: 0.06em; overflow-wrap: anywhere; }
.refshare .sharedlg__nets { margin-top: 14px; }
.refshare .sharedlg__native { margin-top: 14px; }
.rf__sub { margin-bottom: 12px; }
.rfstage { display: inline-flex; gap: 3px; vertical-align: middle; }
.rfstage > span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-4); }
.rfstage > span.is-on { background: var(--gold); }

/* akun: pengingat */
.notify__head { display: flex; align-items: center; gap: 8px; }
.notify__ico { flex: none; color: var(--gold); }
.notify { display: grid; gap: 16px; margin-top: 14px; }
.notify__row { display: grid; gap: 10px; justify-items: start; padding-top: 14px; border-top: 1px solid var(--line); }
.notify__row:first-child { padding-top: 0; border-top: 0; }
.notify__title { font-size: 15px; font-weight: 700; }
.notify__title:focus { outline: none; }
.notify__row .coin-hint, .notify__row .coin-status { margin-top: 0; }

/* admin › Koin: event dan pengingat */
.cfg-sub { margin-top: 6px; font-size: 15px; font-weight: 700; }
.evlist { display: grid; gap: 12px; }
.evlist:empty { display: none; }
.evrow { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.evdays { min-width: 0; margin: 0; padding: 0; border: 0; }
.evdays legend { margin-bottom: 8px; padding: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.evdays__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.evdays__day { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; cursor: pointer; }
.evdays__day:has(input:checked) { border-color: rgba(217, 174, 85, 0.7); color: var(--gold); }
.evdays__day input { accent-color: var(--gold); width: 16px; height: 16px; }

/* admin › Referral */
.rfstats { display: grid; gap: 16px; margin-bottom: 24px; }
.rfstats:empty { display: none; }
.rfchart { margin: 0; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.rfchart__cap { color: var(--text-2); font-size: 14px; font-weight: 600; }
.rfchart__bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; margin-top: 12px; }
.rfchart__col { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.rfchart__n { color: var(--text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.rfchart__track { display: flex; align-items: flex-end; width: 100%; height: 72px; }
.rfchart__bar { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--gold); }
.rfchart__day { color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.rfflags, .rfrewards { display: grid; gap: 4px; }
.rfflags li { display: flex; }
.rfrewards li { font-size: 13px; line-height: 1.4; }
.rfset { margin-top: 24px; }
.rfset .form { margin-top: 14px; }

@media (max-width: 520px) {
  .cfg-days__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rfchart__bars { gap: 2px; }
  .rfchart__n { font-size: 10px; }
  .vsum .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vsum .stat { padding: 14px 14px 12px; }
  .vsum .stat__num { font-size: 40px; overflow-wrap: anywhere; }
  .vsum .stat__label { font-size: 13.5px; }
  .refshare__code .btn { flex: 1 1 auto; }
  .coin-cta .btn { width: 100%; }
}

/* ---------- Halaman Koin (#/koin): hero saldo, check-in beruntun, bonus menonton, daftar "Dapatkan koin" ---------- */
/* Tanah gelap situs; merah→pink untuk ajakan, emas hanya untuk koin dan Premium. */

.kc-page {
  --kc-gold: #f1c96b;
  --kc-pink: #ff6b9a;
  --kc-cta: linear-gradient(100deg, #db2d18 0%, #d4145a 100%);
  --kc-card: linear-gradient(180deg, #17171c 0%, #131317 100%);
  --kc-tile: #222229;
  --kc-line: rgba(255, 255, 255, 0.07);
  --kc-r: 16px;
  max-width: 1180px;
}
.kc-head { align-items: flex-end; margin-bottom: 20px; }
.kc-head__terms {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.kc-head__terms:hover { color: #fff; border-color: #6a6a74; }

.kc { display: grid; gap: 16px; }
.kc-grid { display: grid; gap: 16px; }
.kc-main, .kc-side { display: grid; gap: 16px; min-width: 0; align-content: start; }

.kc-page .kc-card {
  padding: 18px 16px 20px;
  border-color: var(--kc-line);
  border-radius: var(--kc-r);
  background: var(--kc-card);
}
.kc-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kc-card__head .box__title { flex: 1 1 auto; min-width: 0; }
.kc-badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
.kc-badge--crown { background: linear-gradient(135deg, #ffe08a, #d9a03a); color: #3a2503; }
.kc-badge--star { background: rgba(241, 201, 107, 0.16); color: var(--kc-gold); }
.kc-badge--play { background: rgba(255, 107, 154, 0.16); color: var(--kc-pink); }
.kc-badge--gift { background: linear-gradient(135deg, #ff4d6d, #c2104c); color: #fff; }

/* koin emas SVG: dipakai ulang di seluruh halaman */
.kcoin { flex: none; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.kpile { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.kc-plus { display: inline-flex; align-items: center; gap: 5px; color: var(--kc-gold); font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kc-tick {
  position: absolute;
  inset-block-end: -2px;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3ecf8e;
  color: #06210f;
  box-shadow: 0 0 0 2px #1d1b17;
}
.kc-tick .ico { stroke-width: 3; }

/* hero saldo */
.kc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head art" "num num" "go go" "notes notes";
  gap: 0 4px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(110% 95% at 100% 0%, rgba(229, 9, 20, 0.42), transparent 58%),
    radial-gradient(90% 90% at 0% 100%, rgba(123, 44, 191, 0.34), transparent 62%),
    linear-gradient(160deg, #22121f 0%, #140d17 55%, #0f0f13 100%);
  box-shadow: 0 24px 60px -30px rgba(229, 9, 20, 0.55);
}
[dir="rtl"] .kc-hero {
  background:
    radial-gradient(110% 95% at 0% 0%, rgba(229, 9, 20, 0.42), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(123, 44, 191, 0.34), transparent 62%),
    linear-gradient(200deg, #22121f 0%, #140d17 55%, #0f0f13 100%);
}
.kc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.kc-hero__head { grid-area: head; position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; align-self: center; min-width: 0; }
.kc-hero__label { color: #f3d895; font-size: 15px; font-weight: 700; }
.kc-hero__num {
  grid-area: num;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-top: 6px;
  font: 400 clamp(54px, 15vw, 88px)/0.9 var(--f-display);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.kc-hero__coin { width: 0.66em; height: 0.66em; }
.kc-hero__val { display: inline-block; min-width: 0; padding-top: 0.06em; overflow-wrap: anywhere; transform-origin: center; }
.kc-hero__unit { align-self: flex-end; padding-bottom: 0.32em; color: var(--text-2); font: 700 15px/1 var(--f-ui); letter-spacing: 0; }
.kc-hero__goes { grid-area: go; position: relative; z-index: 1; }
.kc-hero__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 14px;
  padding-inline: 14px 12px;
  white-space: nowrap;
  border: 1px solid rgba(241, 201, 107, 0.5);
  border-radius: 999px;
  background: rgba(241, 201, 107, 0.12);
  color: var(--kc-gold);
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.15s, border-color 0.15s;
}
.kc-hero__go:hover { background: rgba(241, 201, 107, 0.2); border-color: var(--kc-gold); }
.kc-hero__art { grid-area: art; align-self: start; width: clamp(124px, 36vw, 260px); margin-block: -10px -34px; margin-inline-end: -14px; pointer-events: none; }
.kc-hero__svg { width: 100%; height: auto; overflow: visible; }
.kc-hero__notes { grid-area: notes; display: grid; gap: 8px; margin-top: 16px; }
.kc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  backdrop-filter: blur(4px);
}
.kc-note .ico { margin-top: 1px; color: var(--text-2); }
.kc-note--warn { background: rgba(251, 146, 60, 0.14); color: #fdba74; }
.kc-note--warn .ico { color: #fdba74; }
.kc-note--ok .ico { color: var(--kc-gold); }

/* event: pita cerah */
.kc-event {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(100deg, #ffd66b 0%, #ff9a3d 55%, #ff6a5a 100%);
  color: #1d1006;
  box-shadow: 0 12px 30px -16px rgba(255, 138, 61, 0.9);
}
[dir="rtl"] .kc-event { background: linear-gradient(260deg, #ffd66b 0%, #ff9a3d 55%, #ff6a5a 100%); }
.kc-event__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(29, 16, 6, 0.14); }
.kc-event__ico .ico { fill: currentColor; }
.kc-event__text { font-size: 14.5px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }

/* check-in beruntun */
.kc-page .kc-streak { background: radial-gradient(120% 70% at 50% 0%, rgba(255, 61, 127, 0.14), transparent 62%), var(--kc-card); }
.kc-streak__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kc-streak__titles { min-width: 0; }
.kc-streak__kicker { color: var(--text-2); font-size: 14px; font-weight: 700; }
.kc-streak__kicker:focus { outline: none; }
.kc-streak__line { margin-top: 2px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.kc-flame { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-inline: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-3); font: 400 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kc-flame.is-on { background: linear-gradient(135deg, rgba(255, 122, 26, 0.24), rgba(255, 61, 127, 0.24)); color: #ffb38a; box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.35); }
.kc-flame.is-on .ico { color: #ff8a3d; }

.kc-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 16px; }
.kc-day {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding-bottom: 8px;
  border-radius: 12px;
  background: var(--kc-tile);
  text-align: center;
  overflow: hidden;
}
.kc-day__label { width: 100%; padding: 4px 2px; background: rgba(255, 255, 255, 0.05); color: var(--text-2); font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-day__art { position: relative; display: block; width: 100%; max-width: 46px; margin-top: 6px; padding-inline: 2px; }
.kc-day__amt { max-width: 100%; color: var(--kc-gold); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-day.is-future .kc-day__label { color: var(--text-3); }
.kc-day.is-done { background: #1d1b17; }
.kc-day.is-done .kpile { opacity: 0.5; filter: saturate(0.6); }
.kc-day.is-done .kc-day__amt { color: #c9b27a; }
.kc-day.is-today { background: linear-gradient(180deg, #e0245e 0%, #c2104c 100%); box-shadow: 0 10px 22px -10px rgba(255, 61, 127, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.kc-day.is-today .kc-day__label { background: rgba(0, 0, 0, 0.16); color: #fff; }
.kc-day.is-today .kc-day__amt { color: #fff; }
.kc-day.is-today.is-done .kpile { opacity: 0.75; }
.kc-day.is-today .kc-tick { box-shadow: 0 0 0 2px #c2104c; }

/* tombol ajakan besar */
.kc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--kc-cta);
  color: #fff;
  font: 800 16.5px/1.25 var(--f-ui);
  text-align: center;
  box-shadow: 0 14px 30px -14px rgba(229, 20, 90, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: filter 0.15s, transform 0.15s;
}
.kc-cta:hover { filter: brightness(1.08); }
.kc-cta:active { transform: scale(0.98); }
.kc-cta .ico { flex: none; }
.kc-cta[aria-busy="true"] { filter: saturate(0.6); }
.kc-cta.is-done { background: #25252b; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--kc-line); cursor: default; filter: none; transform: none; }
.kc-cta.is-done .ico { color: #3ecf8e; }
.kc-cta--soft { background: rgba(241, 201, 107, 0.12); color: var(--kc-gold); box-shadow: inset 0 0 0 1px rgba(241, 201, 107, 0.4); }
.kc-cta--gold { background: linear-gradient(100deg, #ffe08a 0%, #f1c96b 45%, #d9a03a 100%); color: #2a1a04; box-shadow: 0 14px 30px -16px rgba(241, 201, 107, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.kc-cta--gold.is-off { background: #2a2a30; color: var(--text-2); box-shadow: none; cursor: not-allowed; filter: none; transform: none; }

.kc-streak__next { margin-top: 8px; color: var(--text-2); font-size: 13.5px; text-align: center; }
.kc-streak__total { margin-top: 14px; color: var(--text-2); font-size: 14.5px; text-align: center; overflow-wrap: anywhere; }
.kc-streak__total strong { color: var(--kc-pink); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kc-streak__how { margin-top: 6px; color: var(--text-3); font-size: 13px; text-align: center; }
.kc-streak > .coin-hint:not(.kc-streak__how) { text-align: center; }

.kc-freeze { margin-top: 16px; padding: 12px 14px 14px; border: 1px solid var(--kc-line); border-radius: 14px; background: rgba(255, 255, 255, 0.035); }
.kc-freeze__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kc-freeze__ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(120, 180, 255, 0.14); color: #a9d0ff; }
.kc-freeze__title { font-size: 15px; font-weight: 700; }
.kc-freeze__title:focus { outline: none; }
.kc-freeze .freeze__state { margin: 0; margin-inline-start: auto; gap: 6px; }
.kc-freeze .freeze__state li { padding: 3px 10px; font-size: 12.5px; }
.kc-freeze .coin-hint { margin-top: 8px; font-size: 13px; }
.kc-freeze .coin-status { margin-top: 8px; font-size: 13.5px; }
.kc-freeze .coin-cta { margin-top: 10px; }

/* bonus menonton harian */
.kc-watch__sum { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 400 40px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kc-watch__nums { padding-top: 0.06em; }
.kc-watch__got { color: var(--kc-gold); }
.kc-watch__cap { color: var(--text-3); font-size: 28px; }
.kc-marks { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
.kc-mark { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 10px 2px 8px; border-radius: 12px; background: var(--kc-tile); text-align: center; }
.kc-mark__art { position: relative; display: block; }
.kc-mark__amt { max-width: 100%; color: var(--kc-gold); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kc-mark__min { max-width: 100%; color: var(--text-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-mark.is-done { background: linear-gradient(180deg, rgba(241, 201, 107, 0.24), rgba(241, 201, 107, 0.08)); box-shadow: inset 0 0 0 1px rgba(241, 201, 107, 0.5); }
.kc-mark.is-done .kc-mark__min { color: #f3d895; }
.kc-mark.is-done .kc-tick { box-shadow: 0 0 0 2px #2b261a; }
.kc-mark.is-next { box-shadow: inset 0 0 0 1.5px var(--kc-pink); }
.kc-mark.is-future .kcoin { opacity: 0.6; }
.kc-watch__meters { margin-top: 18px; gap: 14px; }
.kc-watch__ck { display: flex; align-items: center; gap: 6px; }
.kc-watch__ck .ico { flex: none; color: var(--kc-gold); }

.kc-page .meter__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.kc-page .meter__fill { background: linear-gradient(90deg, #f1c96b, #ff9a3d); box-shadow: 0 0 10px rgba(255, 170, 70, 0.45); }
[dir="rtl"] .kc-page .meter__fill { background: linear-gradient(270deg, #f1c96b, #ff9a3d); }

/* sambutan akun baru */
.kc-page .kc-welcome {
  margin: 0;
  border-color: rgba(241, 201, 107, 0.45);
  border-radius: var(--kc-r);
  background: radial-gradient(100% 90% at 0% 0%, rgba(241, 201, 107, 0.18), transparent 60%), var(--kc-card);
}
.kc-welcome__top { display: flex; align-items: center; gap: 10px; }
.kc-welcome .welcome__goal { margin-top: 12px; color: #fff3cf; }
.kc-page .kc-welcome .meter__bar { height: 12px; }
.kc-welcome .wlist { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }

/* dapatkan koin */
.kc-earn .box__sub { margin-top: 8px; font-size: 13.5px; }
.kc-tasks { display: grid; margin-top: 6px; }
.kc-task {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding-block: 14px;
  border-top: 1px solid var(--kc-line);
}
.kc-tasks > .kc-task:first-child { border-top: 0; }
.kc-task:focus { outline: none; }
.kc-task:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px; }
.kc-task__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: #fff; }
.kc-task__ico--starter { background: rgba(241, 201, 107, 0.16); color: var(--kc-gold); }
.kc-task__ico--daily { background: rgba(255, 107, 154, 0.15); color: #ff8fb3; }
.kc-task__ico--weekly { background: rgba(155, 108, 255, 0.18); color: #c4a8ff; }
.kc-task__ico--ad { background: linear-gradient(135deg, #ff7a1a, #ffb020); color: #241002; }
.kc-task__ico--ref { background: rgba(62, 207, 142, 0.15); color: #6ee7b7; }
.kc-task__ico--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; }
.kc-task__ico--tiktok { background: #050505; color: #fff; box-shadow: -2px 0 0 rgba(37, 244, 238, 0.7), 2px 0 0 rgba(254, 44, 85, 0.7); }
.kc-task__ico--telegram { background: #229ed9; color: #fff; }
.kc-task__body { min-width: 0; }
.kc-task__title { font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.kc-task__count { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.kc-task__coins { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 4px; }
.kc-task__note { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.kc-task__more { grid-column: 2 / -1; min-width: 0; }
.kc-task .meter__bar { max-width: 260px; height: 5px; margin-top: 4px; }
.kc-task__hint { margin-top: 4px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.kc-task__tools { flex-wrap: wrap; margin-top: 4px; }
.kc-task__act { justify-self: end; }
.kc-task.is-done:not(.is-claimed) .kc-task__ico { box-shadow: 0 0 0 2px rgba(241, 201, 107, 0.7); }
.kc-task.is-claimed .kc-task__ico { opacity: 0.5; }
.kc-task.is-claimed .kc-task__title { color: var(--text-2); }
.kc-task.is-claimed .kc-plus { color: var(--text-3); }
.kc-task.is-claimed .kcoin { filter: grayscale(0.7); opacity: 0.7; }

.kc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
  min-height: 44px;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  font: 800 14.5px/1.1 var(--f-ui);
  white-space: nowrap;
  text-align: center;
  transition: filter 0.15s, transform 0.15s;
}
.kc-pill:not(.kc-pill--lock, .kc-pill--done):active { transform: scale(0.97); }
.kc-pill:not(.kc-pill--lock, .kc-pill--done):hover { filter: brightness(1.1); }
.kc-pill--go { background: #e0245e; color: #fff; }
.kc-pill--claim { background: var(--kc-cta); color: #fff; box-shadow: 0 8px 18px -8px rgba(229, 20, 90, 0.85); }
.kc-pill--ad { background: linear-gradient(100deg, #ff7a1a, #ffb020); color: #241002; }
.kc-pill--done { background: none; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: default; filter: none; transform: none; }
.kc-pill--done .ico { color: #3ecf8e; }
.kc-pill--lock { background: #2a2a30; color: var(--text-2); cursor: not-allowed; filter: none; transform: none; }
.kc-pill[aria-busy="true"] { filter: saturate(0.6); }
/* :focus-visible global memberi radius 2px; tombol bulat tetap bulat saat difokus */
.kc-pill:focus-visible, .kc-cta:focus-visible, .kc-hero__go:focus-visible, .kc-head__terms:focus-visible { border-radius: 999px; outline-offset: 3px; }

.kc-page .kc-group { margin-top: 12px; padding-top: 0; border-top: 0; }
.kc-group .tgroup__head { align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.045); }
.kc-group .tgroup__title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 0; }
.kc-group .tgroup__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kc-gold); }
.kc-group--daily .tgroup__title::before { background: var(--kc-pink); }
.kc-group--weekly .tgroup__title::before { background: #b18cff; }
.kc-group .tgroup__reset { font-size: 12.5px; }
.kc-group .kc-tasks { margin-top: 2px; }
.kc-earn__err { margin-top: 12px; }

/* tukar Premium */
.kc-page .kc-redeem {
  border-color: rgba(241, 201, 107, 0.55);
  background: radial-gradient(100% 80% at 100% 0%, rgba(241, 201, 107, 0.18), transparent 60%), linear-gradient(180deg, #1c1810 0%, #131317 100%);
  box-shadow: 0 20px 44px -28px rgba(241, 201, 107, 0.7);
}
[dir="rtl"] .kc-page .kc-redeem { background: radial-gradient(100% 80% at 0% 0%, rgba(241, 201, 107, 0.18), transparent 60%), linear-gradient(180deg, #1c1810 0%, #131317 100%); }
.kc-redeem__rate { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 19px; }
.kc-redeem__deal { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(241, 201, 107, 0.13); color: var(--kc-gold); font-size: 14px; font-weight: 700; line-height: 1.4; }
.kc-redeem__deal .ico { flex: none; margin-top: 1px; fill: currentColor; }
.kc-redeem .coin-hint { margin-top: 10px; }
.kc-redeem__cta .coin-hint { margin-top: 8px; }

/* level, aturan, riwayat */
.kc-card__head .lvbadge { flex: none; }
.kc-page .coin-rules { gap: 8px; }
.kc-hist .chist__item { justify-content: flex-start; gap: 12px; }
.kc-hist .chist__text { flex: 1; }
.kc-hist__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(62, 207, 142, 0.12); color: #4ade80; }
.kc-hist__ico.is-minus { background: rgba(255, 107, 107, 0.12); color: #ff8080; }
.kc-page .chist__amt.is-plus { color: #4ade80; }
.kc-page .chist__amt.is-minus { color: #ff6b6b; }

@media (max-width: 559px) {
  .kc-days.is-wide { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kc-marks.is-wide { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 560px) {
  .kc-page .kc-card { padding: 22px 22px 24px; }
  .kc-hero { grid-template-areas: "head art" "num art" "go art" "notes notes"; padding: 26px 28px 24px; }
  .kc-hero__art { align-self: center; margin-block: -12px; }
  .kc-hero__notes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .kc-days, .kc-marks { gap: 8px; }
  .kc-day__label { font-size: 12px; }
  .kc-day__amt, .kc-mark__amt { font-size: 14px; }
  .kc-day__art { max-width: 52px; }
}
@media (min-width: 980px) {
  .kc-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 20px; align-items: start; }
  .kc-main, .kc-side { gap: 20px; }
  .kc-hero { padding: 30px 36px 28px; }
  .kc-hero__art { margin-inline-end: 0; }
}
@media (max-width: 359px) {
  .kc-page .kc-card { padding-inline: 12px; }
  .kc-hero { padding-inline: 14px; }
  .kc-days, .kc-marks { gap: 4px; }
  .kc-day__label { font-size: 10px; }
  .kc-day__amt, .kc-mark__amt { font-size: 12px; }
  .kc-task { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 10px; }
  .kc-task__ico { width: 40px; height: 40px; }
  .kc-pill { min-width: 72px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .kfloat { transform-box: fill-box; transform-origin: center; animation: kc-float 4.6s ease-in-out infinite; }
  .kfloat--b { animation-duration: 5.4s; animation-delay: -1.6s; }
  .kfloat--c { animation-duration: 4s; animation-delay: -2.8s; }
  .kc-hero.is-bump .kc-hero__val { animation: kd-bump 0.9s var(--ease); }
  .kc-hero.is-bump .kc-hero__coin { animation: kc-pop 0.9s var(--ease); }
  .kc-pill--claim { animation: kc-glow 2.4s ease-in-out infinite; }
  .kc-just.kc-task { animation: kc-flash 1.4s var(--ease); }
  .kc-just .kc-task__coins .kcoin, .kc-just .kc-streak__top + .kc-days .is-today .kpile { animation: kc-pop 0.9s var(--ease); }
  .kc-day.is-today:not(.is-done) .kpile { animation: kc-bob 2.2s ease-in-out infinite; }
  .kc-event::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: kc-shine 4.5s ease-in-out infinite;
  }
}
@keyframes kc-flash { 0% { background-color: rgba(241, 201, 107, 0.2); } 100% { background-color: transparent; } }
@keyframes kc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes kc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes kc-pop {
  0% { transform: scale(0.55) rotate(-35deg); }
  55% { transform: scale(1.25) rotate(10deg); }
  100% { transform: none; }
}
@keyframes kc-glow {
  0%, 100% { box-shadow: 0 6px 16px -8px rgba(229, 20, 90, 0.75); }
  50% { box-shadow: 0 6px 24px -4px rgba(255, 61, 127, 0.95); }
}
@keyframes kc-shine { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(560%); } }
[dir="rtl"] .kc-event::after { animation-name: kc-shine-rtl; }
@keyframes kc-shine-rtl { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(-560%); } }

/* ---------- Footer & tab bar ---------- */

.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot__inner { padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.foot__brand { font: 400 22px/1 var(--f-display); letter-spacing: 0.03em; }
.foot__note { color: var(--text-3); font-size: 13.5px; max-width: 70ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; width: 100%; font-size: 13.5px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot__links a:hover { color: #fff; text-decoration-color: #fff; }

.tabbar { display: none; }

.noscript { padding: calc(var(--top-h) + 40px) var(--gutter); color: var(--text-2); }

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .brand__logo { height: 30px; }
  .nav { display: none; }
  .tools { gap: 2px; }
  .search { border: 0; height: 44px; }
  .search .iconbtn { width: 44px; height: 44px; }
  .search input { display: none; }
  .src__label { display: none; }
  .src__btn { min-height: 40px; padding-block: 0; padding-inline: 10px 6px; font-size: 13.5px; }
  /* fits "Semua sumber" (about 97px at this size) without an ellipsis */
  .src__current { max-width: 104px; }
  .src__pop { position: fixed; inset-inline-start: 12px; inset-inline-end: 12px; top: calc(var(--top-h) + 4px); width: auto; }
  .src__pop.srcpick { width: auto; }

  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .tabbar__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
  }
  .tabbar__link[aria-current="page"] { color: #fff; }
  .tabbar__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 30%;
    inset-inline-end: 30%;
    height: 2px;
    background: var(--red);
  }
  .tabbar__link:focus-visible { outline-offset: -4px; }
  /* 5 tab di layar 320px: label terjemahan yang panjang dipotong rapi. */
  .tabbar__link { min-width: 0; }
  .tabbar__link > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  body[data-route="watch"] { --tab-h: 0px; }
  body[data-route="watch"] .tabbar { display: none; }

  /* hero becomes a tall poster card */
  .hero { min-height: 0; display: block; padding: calc(var(--top-h) + 10px) var(--gutter) 0; }
  .kindtabs .catnav__list { padding-block: 6px; }
  .kindtabs + .home .hero { padding-top: calc(var(--top-h) + 62px); }
  .kindtabs + .home .hero__inner { padding-top: 0; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(14, 14, 17, 0.35) 60%, rgba(14, 14, 17, 0.6) 100%); }
  .hero__inner { padding: 0; }
  .hero__card {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 440px;
    margin-inline: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
  .hero__poster, .hero__copy { grid-area: 1 / 1; }
  .hero__poster { width: 100%; }
  .hero__poster .art { aspect-ratio: 4 / 5; border-radius: 0; box-shadow: none; }
  .hero__poster .art img { object-position: 50% 12%; }
  .hero__copy {
    align-self: end;
    z-index: 1;
    max-width: none;
    padding: 140px 16px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 28%, rgba(0, 0, 0, 0.9) 55%, rgba(0, 0, 0, 0.97) 100%);
  }
  .hero__kicker { font-size: 13px; color: #d4d4d8; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); -webkit-line-clamp: 2; }
  .hero__meta { margin-top: 8px; font-size: 13.5px; }
  .hero__syn { display: none; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .hero__actions .btn { min-height: 46px; font-size: 16px; padding-inline: 10px; }
  .hero__dots { position: static; justify-content: center; margin-top: 4px; }
  .hero--sk .hero__copy { background: none; }
  .hero--sk { min-height: 0; }
  .hero--sk .hero__card { box-shadow: none; }

  .home__rows { margin-top: 8px; padding-bottom: 24px; }
  .row { margin-top: 18px; }
  .row__title { font-size: 18px; }
  .row__track { padding: 10px var(--gutter) 12px; }
  .card__title { font-size: 13px; }
  .card__meta { font-size: 12px; }
  /* narrow mixed-row cards: the source name matters more than the episode count */
  .card__src ~ .dot, .card__src ~ .card__eps { display: none; }
  .home__sentinel { margin-top: 18px; }
  .srcjump__chip { min-height: 52px; font-size: 13.5px; padding-inline-end: 14px; }
  .srcjump__chip .slogo { width: 40px; height: 40px; }
  .row--srcjump .row__track { padding-block: 10px 2px; }

  .page { padding-top: calc(var(--top-h) + 20px); padding-bottom: 32px; }
  .page__head { flex-wrap: wrap; align-items: flex-start; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .bigsearch { padding-inline-start: 12px; }
  .bigsearch__input { font-size: 16px; }
  .bigsearch__go { padding-inline: 16px; }

  .detail__hero { min-height: 0; display: block; padding: calc(var(--top-h) + 16px) var(--gutter) 20px; }
  .detail__hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14, 14, 17, 0.55) 55%, rgba(14, 14, 17, 0.75) 100%); }
  .detail__head { grid-template-columns: 1fr; gap: 20px; }
  .detail__poster { width: min(52vw, 230px); }
  .detail__title { font-size: clamp(40px, 11vw, 56px); }
  .detail__actions { display: grid; grid-template-columns: 1fr; }
  .detail__eps { padding: 16px var(--gutter) 32px; }
  .eplist { grid-template-columns: 1fr; }

  .watch { display: block; height: auto; background: var(--bg); }
  .stage { height: min(calc(100vw * 16 / 9), calc(100vh - var(--top-h) - 64px)); }
  .stage { height: min(calc(100vw * 16 / 9), calc(100svh - var(--top-h) - 64px)); }
  .stage__hud { padding: 8px 16px 48px; }
  .hud__back span { font-size: 14px; }
  .hud__title { font-size: 26px; max-width: 100%; }
  .hud__ep { font-size: 14px; margin-top: 2px; }
  .hud__menus { inset-block-start: 8px; inset-inline-end: 16px; gap: 6px; }
  /* Phones: subtitle and audio buttons show only their icon (the name stays in aria-label and the menu). */
  .qbtn--lang { min-width: 44px; justify-content: center; padding-inline: 12px; }
  .qbtn--lang .qbtn__text { display: none; }
  /* All three menus: the quality button goes icon-only too, and the back link shortens instead of running under them. */
  .hud__menus:has(> .hud__menu:not([hidden]) ~ .hud__menu:not([hidden]) ~ .hud__menu:not([hidden])) .qbtn { min-width: 44px; justify-content: center; padding-inline: 12px; }
  .hud__menus:has(> .hud__menu:not([hidden]) ~ .hud__menu:not([hidden]) ~ .hud__menu:not([hidden])) .qbtn__text { display: none; }
  .hud__back span { max-width: calc(100vw - 250px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ov { padding: 20px 16px 16px; }
  .panel { border-inline-start: 0; padding-top: 12px; }
  .panel__head { display: none; }
  .panel__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 12px 16px 0;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--bg-2);
    font-size: 15px;
    font-weight: 600;
    text-align: start;
  }
  .panel__toggle span { flex: 1; }
  .panel__chev { transition: transform 0.2s var(--ease); }
  .panel__toggle[aria-expanded="true"] .panel__chev { transform: rotate(180deg); }
  .panel:not(.is-open) .panel__list { display: none; }
  .panel__list { max-height: 62svh; padding: 10px 16px 24px; }

  /* account lives in the bottom tab bar on phones; the header keeps brand, search and source */
  .acct { display: none; }
  .auth { padding-top: calc(var(--top-h) + 16px); }
  .auth__card { padding: 24px 18px 22px; }
  .auth__title { font-size: 44px; }
  .box { padding: 18px 16px 20px; }
  .status__line { font-size: clamp(32px, 9vw, 40px); gap: 10px; }
  .form__pair { grid-template-columns: 1fr; }
  .form--row { grid-template-columns: 1fr; }
  .form--row > .btn, .form--inline > .btn { margin-top: 0; width: 100%; }
  .apanel__title { font-size: 21px; }
  .stat__num { font-size: 48px; }
  .atool { max-width: none; }
  .atool > .field { flex: 1 1 100%; }
  .atabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tbl { font-size: 13.5px; }
  .tbl__edit > td { padding-inline: 8px; }
  .sticky-cell { inset-inline-start: 8px; width: min(100%, calc(100vw - 2 * var(--gutter) - 18px)); }
  .paynote { padding: 12px; }
  .paynote .btn { width: 100%; }
}

/* account and admin columns stack before they get cramped */
@media (max-width: 1000px) {
  .acct-grid, .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
  .src__current { max-width: 80px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* tablet band: tighter nav, shorter source label, narrower hero copy */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav { margin-inline-start: 16px; }
  .src__label { display: none; }
  .acct__name { display: none; }
  .hero__copy { max-width: 520px; }
}
/* narrowest desktop header: long labels (fr "Toutes les sources", "Se connecter") plus the language button */
@media (min-width: 769px) and (max-width: 860px) {
  .nav { margin-inline-start: 8px; }
  .nav__link { padding-inline: 6px; }
  .tools { gap: 4px; }
  .src__current { max-width: 104px; }
  .acct__login { padding-inline: 12px; }
}

/* Phones: the source picker is a bottom sheet over a dimmed page, four tiles per row */
@media (max-width: 639px) {
  .src__pop.srcpick {
    inset: auto 0 0;
    z-index: 2;
    width: auto;
    max-height: 80vh;
    max-height: 80dvh;
    border-width: 1px 0 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* drag-handle look; the sheet closes with a tap on the page behind it, Escape, or a choice */
  .srcpick::before { content: ""; flex: none; align-self: center; width: 40px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line-2); }
  .srcpick .src__title { padding-top: 8px; }
  .srcpick .src__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 8px; }
  .srcpick .src__opt { padding-inline: 2px; }
  .srcpick__back { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); }
  html.is-sheet-open,
  html.is-sheet-open body { overflow: hidden; }
}
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  .src__pop.srcpick { animation: srcpick-up 0.24s var(--ease); }
}
@keyframes srcpick-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Motion ---------- */

@keyframes kd-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kd-spin { to { transform: rotate(360deg); } }
@keyframes kd-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes kd-coin {
  0% { opacity: 0; transform: translateY(6px); }
  12% { opacity: 1; transform: none; }
  75% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__dot.is-on b { animation: none; transform: scaleX(1); }
  .hero.is-swap .hero__copy,
  .hero.is-swap .hero__poster,
  .hero.is-swap .hero__backdrop img { animation: none; }
  .sk { animation: none; }
  .toast, .apkdlg { animation: none; }
  /* tanpa gerak: tanda koin cukup muncul lalu disembunyikan oleh skrip */
  .coinpill.is-on { animation: none; }
  .spinner, .stage.is-buffering::after { animation-duration: 2.4s; }
  .card:hover { transform: none; }
}

/* ---- iklan ---- */
.adslot { margin: 8px var(--gutter, 16px) 24px; padding: 10px 12px 12px; border: 1px solid var(--line, #2a2a30); border-radius: 8px; background: var(--bg-2, #16161a); max-width: 100%; overflow: hidden; }
.adslot__label { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2, #b3b3b8); }
.adslot iframe, .adslot img { max-width: 100%; }
.adlink { padding-inline: 16px; margin-top: 4px; }
.adlink__btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--line, #2a2a30); border-radius: 6px; color: var(--text, #f5f5f1); text-decoration: none; font-size: 14px; }
.adlink__btn:hover { background: var(--bg-3, #1f1f24); }
.adlink__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.adlink__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2, #b3b3b8); border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; }

/* iklan video pre-roll */
.vastad { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: #000; }
.vastad__video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.vastad__bar { position: absolute; top: 12px; inset-inline-start: 12px; inset-inline-end: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vastad__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 3px; padding: 2px 6px; }
.vastad__sound, .vastad__visit { min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font: 600 13px/1.2 var(--f-ui, inherit); text-decoration: none; cursor: pointer; }
.vastad__foot { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.vastad__status { margin: 0; padding: 8px 12px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font: 700 14px/1.2 var(--f-ui, inherit); }
.vastad__skip { min-height: 44px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #fff; font: 700 14px/1.2 var(--f-ui, inherit); cursor: pointer; }
.vastad__premium { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 4px; background: rgba(0, 0, 0, 0.8); color: #f1c96b; font: 600 13px/1.2 var(--f-ui, inherit); text-decoration: underline; text-underline-offset: 3px; }
.vastad__premium:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vastad__skip:focus-visible, .vastad__sound:focus-visible, .vastad__visit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- right-to-left (Arabic): logical properties above cover spacing and anchoring; these mirror the rest ---- */
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
[dir="rtl"] .row__more:hover .ico { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .row__arrow:hover .ico--dir { transform: scaleX(-1) scale(1.15); }
/* side shade only where the copy sits beside the art; phones keep their bottom fade */
@media (min-width: 769px) {
  [dir="rtl"] .hero__shade,
  [dir="rtl"] .detail__hero::after {
    background:
      linear-gradient(270deg, rgba(14, 14, 17, 0.94) 0%, rgba(14, 14, 17, 0.72) 36%, rgba(14, 14, 17, 0.1) 72%),
      linear-gradient(0deg, var(--bg) 2%, rgba(14, 14, 17, 0) 42%);
  }
}
[dir="rtl"] .hero__syn.is-loading {
  -webkit-mask: linear-gradient(270deg, #000 70%, transparent);
  mask: linear-gradient(270deg, #000 70%, transparent);
}
[dir="rtl"] .hero__dot b,
[dir="rtl"] .row__arrow--prev { border-radius: 4px 0 0 4px; }
[dir="rtl"] .row__arrow--next { border-radius: 0 4px 4px 0; }
[dir="rtl"] .row__item:first-child .card { transform-origin: 100% 35%; }
[dir="rtl"] .row__item:last-child .card { transform-origin: 0 35%; }
[dir="rtl"] .row--top .row__item:first-child .card { transform-origin: 50% 35%; }
[dir="rtl"] .toggle input:checked + .toggle__track::after { transform: translateX(-18px); }
[dir="rtl"] .select { background-position: left 12px center; }
/* the video timeline and native controls stay left-to-right */
[dir="rtl"] .stage__video { direction: ltr; }
/* addresses are typed left-to-right; keep them aligned with the Arabic labels */
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }
