/* =====================================================================
   MamsFlix Player — kontrol kaca ala Apple TV
   ===================================================================== */
.mfp {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  color: #fff;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  container-type: inline-size;
  --ui-fade: .35s;
}
.mfp-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mfp.is-fs .mfp-video { object-fit: contain; }
.mfp-shade {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--ui-fade);
  background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,.72) 100%);
}
.mfp.show-ui .mfp-shade, .mfp.is-paused .mfp-shade { opacity: 1; }

.mfp-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; transition: transform .25s var(--ease-spring), background-color .2s; --glass-bg: rgba(40, 40, 44, .38); }
.mfp-btn:hover { --glass-bg: rgba(70, 70, 76, .5); }
.mfp-btn:active { transform: scale(.9); }
.mfp-btn svg { width: 22px; height: 22px; }
.mfp-btn.md { width: 58px; height: 58px; }
.mfp-btn.md svg { width: 28px; height: 28px; }
.mfp-btn.lg { width: 84px; height: 84px; }
.mfp-btn.lg svg { width: 36px; height: 36px; }
.mfp-btn.lg svg path[fill] { transform: translateX(1.5px); }

/* lapisan UI muncul/hilang */
.mfp-top, .mfp-center, .mfp-bar { opacity: 0; pointer-events: none; transition: opacity var(--ui-fade), transform var(--ui-fade) var(--ease); }
.mfp.show-ui .mfp-top, .mfp.show-ui .mfp-center, .mfp.show-ui .mfp-bar,
.mfp.is-paused:not(.is-loading) .mfp-top, .mfp.is-paused:not(.is-loading) .mfp-center, .mfp.is-paused:not(.is-loading) .mfp-bar { opacity: 1; pointer-events: auto; }
.mfp:not(.show-ui):not(.is-paused) { cursor: none; }
.mfp.is-loading .mfp-center, .mfp.is-gate .mfp-center { opacity: 0 !important; pointer-events: none !important; }

.mfp-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px; transform: translateY(-6px); }
.mfp.show-ui .mfp-top { transform: none; }
.mfp-title { min-width: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.mfp-title small { display: block; font: 600 11.5px/1.2 var(--font); color: rgba(255, 255, 255, .7); letter-spacing: .02em; }
.mfp-title b { display: block; font: 700 17px/1.2 var(--font-display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfp-title span { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mfp-center { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: auto; height: 90px; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 8cqi, 72px); pointer-events: none; }
.mfp-center > * { pointer-events: auto; }
/* Kontrol tengah tersembunyi TIDAK boleh bisa diketuk: dulu tombol play yang tak terlihat ikut
   tertekan saat mengetuk tengah layar untuk memunculkan kontrol → video terjeda/berputar sendiri. */
.mfp:not(.show-ui):not(.is-paused) .mfp-center > *,
.mfp.is-loading .mfp-center > *, .mfp.is-gate .mfp-center > * { pointer-events: none; }
@container (min-width: 900px) { .mfp-center .md { display: none; } }

.mfp-bar {
  position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 14px;
  padding: 10px 14px 8px; border-radius: 22px; transform: translateY(8px);
  --glass-bg: rgba(30, 30, 34, .42);
}
.mfp.show-ui .mfp-bar, .mfp.is-paused .mfp-bar { transform: none; }
.mfp-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.mfp-row .spacer { flex: 1; }
.mfp-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; transition: background-color .2s, transform .2s var(--ease-spring); flex: none; }
.mfp-ic:hover { background: rgba(255, 255, 255, .12); }
.mfp-ic:active { transform: scale(.9); }
.mfp-ic svg { width: 22px; height: 22px; }
.mfp-ic.on { color: var(--accent-hi); }
.mfp-time { font: 500 13.5px/1 var(--font); color: rgba(255, 255, 255, .92); margin-left: 6px; white-space: nowrap; }
.mfp-time .dim { color: rgba(255, 255, 255, .45); }
.mfp-vol { display: flex; align-items: center; }
.mfp-vol input { width: 0; opacity: 0; transition: width .3s var(--ease), opacity .3s; }
.mfp-vol:hover input, .mfp-vol:focus-within input { width: 86px; opacity: 1; margin-right: 6px; }
.mfp input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--v, 50%), rgba(255, 255, 255, .28) var(--v, 50%));
}
.mfp input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.mfp input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
@container (max-width: 560px) { .mfp .hide-sm { display: none; } .mfp-vol input { display: none; } .mfp-bar { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px 6px; border-radius: 18px; } .mfp-ic { width: 36px; height: 36px; } }

/* scrubber */
.mfp-scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.mfp-track { position: relative; width: 100%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .2s var(--ease); }
.mfp-scrub:hover .mfp-track, .mfp.scrubbing .mfp-track { height: 8px; }
.mfp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.mfp-track .buf { background: rgba(255, 255, 255, .32); }
.mfp-track .cur { background: #fff; }
.mfp-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .2s var(--ease-spring); }
.mfp-scrub:hover .mfp-knob, .mfp.scrubbing .mfp-knob { transform: scale(1); }
.mfp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 5px 9px; border-radius: 9px; background: rgba(20, 20, 22, .85); font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.mfp-scrub:hover .mfp-tip, .mfp.scrubbing .mfp-tip { opacity: 1; }
.mfp.is-controlled .mfp-scrub { cursor: not-allowed; }

/* subtitle */
.mfp-subs {
  position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 8%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none; text-align: center; transition: bottom .35s var(--ease);
  --sub-scale: 1; --sub-color: #fff; --sub-bg: rgba(0, 0, 0, .55); --sub-blur: 0px; --sub-font: var(--font);
}
.mfp.show-ui .mfp-subs[data-pos="default"], .mfp.is-paused .mfp-subs[data-pos="default"], .mfp.show-ui .mfp-subs[data-pos^="bottom"] { bottom: 128px; }
.mfp-subs .cue {
  display: inline-block; max-width: 100%;
  padding: .16em .5em; border-radius: .3em;
  font: 600 calc(clamp(15px, 2.6cqi, 34px) * var(--sub-scale))/1.3 var(--sub-font);
  color: var(--sub-color); background: var(--sub-bg);
  -webkit-backdrop-filter: blur(var(--sub-blur)); backdrop-filter: blur(var(--sub-blur));
  text-shadow: var(--sub-shadow);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mfp-subs[data-pos="top"], .mfp-subs[data-pos="top-left"], .mfp-subs[data-pos="top-right"] { top: 12%; bottom: auto; }
.mfp-subs[data-pos="center"], .mfp-subs[data-pos="left"], .mfp-subs[data-pos="right"] { top: 50%; bottom: auto; transform: translateY(-50%); }
.mfp-subs[data-pos$="left"], .mfp-subs[data-pos="left"] { align-items: flex-start; text-align: left; }
.mfp-subs[data-pos$="right"], .mfp-subs[data-pos="right"] { align-items: flex-end; text-align: right; }
/* Subtitle terpilih tetapi berkasnya gagal dimuat / judul tidak punya subtitle:
   pesan singkat di atas bar kontrol supaya tidak tampak "subtitle padam". */
.mfp-sub-missing {
  position: absolute; z-index: 4; left: 50%; bottom: 150px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: min(92%, 520px);
  padding: 8px 12px; border-radius: 10px; pointer-events: none;
  font: 500 12.5px/1.35 var(--font); color: rgba(255, 255, 255, .92);
}
.mfp-sub-missing[hidden] { display: none; }
.mfp-sub-missing svg { width: 16px; height: 16px; flex: none; }

/* gate / loading */
.mfp-gate { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle, rgba(0,0,0,.35), rgba(0,0,0,.75)); }
.mfp.is-loading .mfp-gate, .mfp.is-gate .mfp-gate { display: flex; }
.mfp-gate-text { margin: 0; font: 500 14px/1.3 var(--font); color: rgba(255, 255, 255, .85); }
.mfp-ring { position: relative; width: 56px; height: 56px; }
.mfp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mfp-ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3.5; }
.mfp-ring .arc { stroke: #fff; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .25s linear; }
.mfp-ring .n { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; font: 700 17px/1 var(--font-round); font-variant-numeric: tabular-nums; }
.mfp.is-loading:not(.is-gate) .mfp-ring .arc { stroke-dasharray: 40 132; animation: spin .9s linear infinite; transform-origin: center; }
.mfp.is-loading:not(.is-gate) .mfp-ring svg { animation: spin .9s linear infinite; }
.mfp.is-loading:not(.is-gate) .mfp-ring .n { display: none; }
.mfp.is-buffering:not(.is-loading)::after { content: ""; position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; pointer-events: none; }
.mfp.is-buffering.show-ui::after { display: none; }

.mfp-error { position: absolute; z-index: 8; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.mfp-error-card { max-width: 420px; padding: 22px; border-radius: 24px; text-align: center; }
.mfp-error-card > svg { width: 34px; height: 34px; color: var(--yellow); }
.mfp-error-card p { margin: 10px 0 16px; font-size: 15px; line-height: 1.45; }

/* feedback kilat (±10, volume) */
.mfp-flash { position: absolute; z-index: 7; top: 18%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 600 14px/1 var(--font); opacity: 0; pointer-events: none; }
.mfp-flash svg { width: 20px; height: 20px; }
.mfp-flash.on { animation: mfp-flash 1.1s var(--ease) forwards; }
@keyframes mfp-flash { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.94); } 15%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.mfp-resume { position: absolute; z-index: 7; left: 18px; bottom: 120px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 14px; animation: pop-in .4s var(--ease-spring); }

/* menu setelan (gaya context menu iOS) */
.mfp-menu {
  position: absolute; z-index: 9; right: 16px; bottom: 112px;
  width: min(330px, calc(100% - 32px)); max-height: calc(100% - 140px);
  overflow: auto; padding: 8px; border-radius: 22px;
  animation: pop-in .3s var(--ease-spring); transform-origin: bottom right;
  --glass-bg: rgba(30, 30, 34, .7);
}
.mfp-menu .menu-item { min-height: 42px; font-size: 15px; }
.mfp-menu .menu-item > svg:last-child { width: 15px; height: 15px; color: var(--label-3); }
.mfp-menu .mfp-back { color: var(--label-2); font-weight: 600; }
.mfp-menu .menu-item svg:empty { width: 20px; height: 20px; }
.mfp-posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 8px 10px; }
.mfp-posgrid button { aspect-ratio: 16/9; border-radius: 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); position: relative; }
.mfp-posgrid button i { position: absolute; width: 40%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.mfp-posgrid button:nth-child(3n+1) i { left: 12%; }
.mfp-posgrid button:nth-child(3n+2) i { left: 30%; }
.mfp-posgrid button:nth-child(3n) i { right: 12%; }
.mfp-posgrid button:nth-child(-n+3) i { top: 18%; }
.mfp-posgrid button:nth-child(n+4):nth-child(-n+6) i { top: calc(50% - 2px); }
.mfp-posgrid button:nth-child(n+7) i { bottom: 18%; }
.mfp-posgrid button.is-active { background: rgba(229, 9, 20, .3); box-shadow: inset 0 0 0 1.5px var(--accent-hi); }
.mfp-posgrid button.is-active i { background: #fff; }
.mfp-style { padding: 4px 10px 10px; display: grid; gap: 6px; }
.mfp-style label { font: 600 12.5px/1 var(--font); color: var(--label-2); margin-top: 8px; display: flex; justify-content: space-between; }
.mfp-style .segmented { display: flex; }
.mfp-style .segmented button { flex: 1; }
.mfp-style input[type="range"] { width: 100%; --v: 50%; }
.mfp-preview { height: 64px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3a2a1c, #1d3b4a 60%, #4a1d2b); }
.mfp-preview span { padding: 3px 10px; border-radius: 6px; font-weight: 600; font-size: 16px; }
.mfp-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.mfp-swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); display: grid; place-items: center; }
.mfp-swatches button svg { width: 14px; height: 14px; color: var(--label-2); }
.mfp-swatches button.is-active { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
.mfp-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px; border-radius: 14px; background: rgba(118, 118, 128, .2); }
.mfp-stepper button { width: 44px; height: 34px; border-radius: 10px; font: 600 20px/1 var(--font); }
.mfp-stepper button:hover { background: rgba(255, 255, 255, .1); }
.mfp-stepper span { font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.mfp-stepper.big { margin: 6px 6px 10px; }
.mfp-stepper.big span { font-size: 20px; }
.mfp-speedchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 6px 6px; }
.mfp-speedchips button { height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .07); font: 600 14px/1 var(--font); }
.mfp-speedchips button.is-active { background: #fff; color: #000; }
@container (max-width: 560px) { .mfp-menu { right: 8px; left: 8px; width: auto; bottom: 92px; } }

/* episode berikutnya */

/* =====================================================================
   Pemutar di hero halaman detail (inline, seperti sumber)
   ===================================================================== */
.hero-player { position: relative; background: #000; padding-top: calc(var(--nav-h) + 24px); }
.hero-player-titlebar { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter) 12px; }
.hero-player-titlebar .grow { min-width: 0; }
.hero-player-titlebar small { display: block; font: 600 12px/1.2 var(--font); color: var(--label-2); }
.hero-player-titlebar b { display: block; font: 700 18px/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-player-frame { position: relative; margin: 0 auto; width: min(100%, calc((100svh - var(--nav-h) - 90px) * 16 / 9)); aspect-ratio: 16 / 9; max-height: calc(100svh - var(--nav-h) - 90px); }
.hero-player-frame .mfp { border-radius: 0; }
@media (min-width: 861px) { .hero-player-frame { width: min(calc(100% - 2 * var(--gutter)), calc((100svh - var(--nav-h) - 90px) * 16 / 9)); } .hero-player-frame .mfp { border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(229, 9, 20, .35), 0 0 0 .5px rgba(255, 255, 255, .12); } }
@media (max-width: 860px) { .hero-player { padding-top: 76px; } .hero-player-titlebar { padding: 0 12px 10px; } }
.guest-strip { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; width: min(calc(100% - 2 * var(--gutter)), 980px); padding: 10px 10px 10px 18px; border-radius: 999px; font-size: 14px; }
.guest-strip .grow { flex: 1; min-width: 0; }
.guest-strip > svg { width: 20px; height: 20px; flex: none; color: var(--accent-hi); }
@media (max-width: 560px) { .guest-strip { border-radius: 18px; } }

@container (max-width: 560px) {
  .mfp-btn.lg { width: 60px; height: 60px; }
  .mfp-btn.lg svg { width: 26px; height: 26px; }
  .mfp-btn.md { width: 44px; height: 44px; }
  .mfp-btn.md svg { width: 22px; height: 22px; }
  .mfp-btn { width: 38px; height: 38px; }
  .mfp-btn svg { width: 18px; height: 18px; }
  .mfp-top { padding: 10px; gap: 8px; }
  .mfp-title b { font-size: 14px; }
  .mfp-title span, .mfp-title small { font-size: 11px; }
  .mfp.show-ui .mfp-subs[data-pos="default"], .mfp.is-paused .mfp-subs[data-pos="default"], .mfp.show-ui .mfp-subs[data-pos^="bottom"] { bottom: 74px; }
  .mfp-resume { left: 8px; bottom: 80px; font-size: 13px; }
  .mfp-time { font-size: 12px; }
}
@container (max-width: 420px) { .mfp-center { gap: 22px; } .mfp-top .mfp-title span { display: none; } }

/* ---------- kenyamanan sentuh & layar kecil ---------- */
.mfp { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mfp-video { -webkit-touch-callout: none; }
@container (max-width: 560px) {
  .mfp-btn.lg { width: 66px; height: 66px; }
  .mfp-btn.lg svg { width: 30px; height: 30px; }
  .mfp-btn.md { width: 50px; height: 50px; }
  .mfp-btn.md svg { width: 24px; height: 24px; }
  .mfp-bar { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px 6px; border-radius: 18px; }
  .mfp-top { padding: 10px 12px; }
  .mfp-title b { font-size: 15px; }
}
@media (hover: none), (pointer: coarse) {
  .mfp-scrub { height: 28px; }
  .mfp-vol input { display: none; }
  .mfp.show-ui .mfp-knob, .mfp.is-paused .mfp-knob { transform: scale(1); }
}
.mfp.is-fast .mfp-video { filter: none; }

/* ---------- tombol Nonton Bareng (atas) & episode berikutnya (bar) ---------- */
.mfp-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; font: 600 14px/1 var(--font); color: #fff; --glass-bg: rgba(40, 40, 44, .38); transition: transform .25s var(--ease-spring); }
.mfp-pill:hover { --glass-bg: rgba(70, 70, 76, .5); }
.mfp-pill:active { transform: scale(.95); }
.mfp-pill svg { width: 20px; height: 20px; }
.mfp-next-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; margin: 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 600 13.5px/1 var(--font); flex: none; transition: background-color .2s, transform .2s var(--ease-spring); }
.mfp-next-btn:hover { background: rgba(255, 255, 255, .24); }
.mfp-next-btn:active { transform: scale(.95); }
.mfp-next-btn svg { width: 17px; height: 17px; }
@container (max-width: 560px) {
  .mfp-pill { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .mfp-pill span { display: none; }
  .mfp-next-btn { width: 36px; padding: 0; justify-content: center; margin: 0; background: none; }
  .mfp-next-btn span { display: none; }
}

/* ---------- kartu "Episode Berikutnya" ---------- */
.mfp-next { position: absolute; z-index: 8; right: 18px; bottom: 112px; left: auto; display: flex; align-items: stretch; gap: 14px; padding: 12px; border-radius: 22px; width: min(460px, calc(100% - 36px)); max-width: none; animation: pop-in .45s var(--ease-spring); --glass-bg: rgba(24, 24, 28, .82); }
.mfp-next-thumb { position: relative; width: 150px; flex: none; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c1c1f; display: grid; place-items: center; }
.mfp-next-thumb img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mfp-next-thumb > svg { width: 30px; height: 30px; color: var(--label-3); }
.mfp-next-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); }
.mfp-next-info { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mfp-next-info small { font: 500 12.5px/1.2 var(--font); color: var(--label-2); }
.mfp-next-info small b { color: #fff; font-variant-numeric: tabular-nums; }
.mfp-next-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 4px 0 10px; font: 700 15px/1.25 var(--font-display); }
.mfp-next-acts { display: flex; gap: 8px; }
.mfp-next-acts .btn { --h: 34px; padding: 0 13px; font-size: 13.5px; }
.mfp.is-ended .mfp-next.is-auto { right: 50%; bottom: 50%; transform: translate(50%, 50%); }
@container (max-width: 560px) {
  .mfp-next { left: 8px; right: 8px; bottom: 76px; width: auto; padding: 10px; gap: 10px; border-radius: 18px; }
  .mfp-next-thumb { width: 108px; }
  .mfp-next-info strong { font-size: 14px; margin-bottom: 8px; }
  .mfp.is-ended .mfp-next.is-auto { right: 8px; bottom: 50%; transform: translateY(50%); }
}

.mfp-next-info small .mfp-count { display: inline; font: 700 12.5px/1.2 var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.mfp-next-thumb img { border-radius: 0; }
@container (max-width: 560px) {
  .mfp-next, .mfp.is-ended .mfp-next.is-auto { left: 8px; right: 8px; top: auto; bottom: 64px; transform: none; padding: 8px 10px; gap: 10px; }
  .mfp-next-thumb { display: none; }
  .mfp-next-info strong { -webkit-line-clamp: 1; margin: 2px 0 8px; }
  .mfp-next.is-auto::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 2px; background: var(--accent); transform-origin: left; animation: mfp-next-fill var(--next-secs, 10s) linear forwards; }
}
@keyframes mfp-next-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =====================================================================
   LAYAR MEMUAT (pengganti cincin + "Memilih server terbaik…")
   ===================================================================== */
.mfp-gate { display: flex !important; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .82) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .7));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.mfp.is-loading .mfp-gate, .mfp.is-gate .mfp-gate { opacity: 1; visibility: visible; pointer-events: auto; }
.mfp-gate-card { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(360px, 82%); text-align: center; transform: translateY(6px); transition: transform .6s var(--ease); }
.mfp.is-loading .mfp-gate-card { transform: none; }
.mfp-loader { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.mfp-loader-glow { position: absolute; top: -14px; right: -14px; bottom: -14px; left: -14px; inset: -14px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); filter: blur(6px); animation: mfp-pulse 2.2s ease-in-out infinite; }
.mfp-loader-ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--accent) 40%, transparent) 70%, var(--accent-hi) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: spin 1.1s linear infinite; }
.mfp-loader-ic { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .15); }
.mfp-loader-ic svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.mfp-gate-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
.mfp-gate-title { font: 700 17px/1.25 var(--font-display); letter-spacing: -.015em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfp-gate-sub { font: 500 13px/1.3 var(--font); color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfp-gate-bar { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mfp-gate-bar i { position: absolute; top: 0; right: auto; bottom: 0; left: 0; inset: 0 auto 0 0; width: var(--load, 8%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); transition: width .8s var(--ease); }
.mfp-gate-bar i::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: mfp-sheen 1.4s ease-in-out infinite; }
.mfp-gate-text { margin: 0; min-height: 1.3em; font: 500 13.5px/1.3 var(--font); color: rgba(255, 255, 255, .78); }
.mfp-gate-text.swap { animation: mfp-swap .45s var(--ease); }
@keyframes mfp-pulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes mfp-sheen { to { transform: translateX(100%); } }
@keyframes mfp-swap { from { opacity: 0; transform: translateY(5px); } }
.mfp.is-loading .mfp-top { opacity: 1; pointer-events: auto; }
.mfp.is-loading .mfp-title { visibility: hidden; }
@container (max-width: 560px) {
  .mfp-gate-card { gap: 10px; width: 78%; }
  .mfp-loader { width: 56px; height: 56px; }
  .mfp-loader-ic { width: 38px; height: 38px; }
  .mfp-loader-ic svg { width: 17px; height: 17px; }
  .mfp-gate-title { font-size: 14.5px; }
  .mfp-gate-sub { font-size: 12px; }
  .mfp-gate-text { font-size: 12px; }
  .mfp-gate-bar { height: 3px; }
}
/* Buffering di tengah tontonan: cincin aksen tipis, senada dengan layar memuat */
.mfp.is-buffering:not(.is-loading)::after { width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--accent-hi) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: spin .9s linear infinite; filter: drop-shadow(0 0 8px rgba(229, 9, 20, .5)); }
html.lite .mfp-gate { -webkit-backdrop-filter: none; backdrop-filter: none; background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .9) 70%); }
html.lite .mfp-loader-glow { animation: none; opacity: .7; filter: none; }
html.lite .mfp-gate-bar i::after { animation: none; display: none; }
.mfp.is-loading .mfp-top { z-index: 7; }

/* =====================================================================
   HP: layar penuh semu (iPhone), tombol rotasi, kontrol ringkas
   ===================================================================== */
.mfp.is-pseudo-fs { position: fixed !important; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0 !important; box-shadow: none !important; }
html.mfp-lock, html.mfp-lock body { overflow: hidden !important; overscroll-behavior: none; touch-action: none; }
html.mfp-lock .topbar, html.mfp-lock .tabbar { visibility: hidden; }
.mfp.is-fs .mfp-top { padding-top: max(14px, env(safe-area-inset-top)); padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.mfp.is-fs .mfp-bar { bottom: max(14px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); }

/* Layar penuh asli (Fullscreen API): sudut harus rata & tanpa cincin. Pemutar
   di hero mewarisi radius 22px + garis tipis dari bingkainya, dan panggung
   mewarisi radius itu lagi — keduanya direset di sini supaya tidak ada border
   di ujung sudut layar penuh. */
/* Layar penuh: sudut lurus. Tiap selector diberi aturan SENDIRI — browser membuang seluruh
 * aturan bila satu selector tak dikenal (Firefox tidak mengenal :-webkit-full-screen),
 * dulu membuat pemutar tetap membulat saat layar penuh di Firefox. */
.mfp.is-fs, .mfp.is-pseudo-fs { border-radius: 0 !important; box-shadow: none !important; }
.mfp.is-fs .mfp-stage, .mfp.is-pseudo-fs .mfp-stage, .mfp.is-fs .mfp-video { border-radius: 0 !important; }
.mfp:fullscreen { border-radius: 0 !important; box-shadow: none !important; }
.mfp:fullscreen .mfp-stage { border-radius: 0 !important; }
.mfp:-moz-full-screen { border-radius: 0 !important; box-shadow: none !important; }
.mfp:-moz-full-screen .mfp-stage { border-radius: 0 !important; }
.mfp:-webkit-full-screen { border-radius: 0 !important; box-shadow: none !important; }
.mfp:-webkit-full-screen .mfp-stage { border-radius: 0 !important; }
.mfp:fullscreen::backdrop { background: #000; }
.mfp::backdrop, .mfp::-webkit-backdrop { background: #000; }

/* ---------- Kontrol ringkas untuk layar sentuh kecil (pemutar di dalam halaman HP) ----------
   Tidak ada kartu kaca yang menumpuk: bar kontrol menempel di bawah dengan gradien,
   garis progres selebar video, tombol 40px yang mudah disentuh. */
@media (hover: none), (pointer: coarse) {
  @container (max-width: 700px) {
    .mfp-top { padding: 8px 8px 0 10px; gap: 8px; }
    .mfp-top .mfp-btn { width: 36px; height: 36px; --glass-bg: rgba(0, 0, 0, .38); }
    .mfp-top .mfp-btn svg { width: 19px; height: 19px; }
    .mfp-title small { display: none; }
    .mfp-title b { font-size: 13.5px; }
    .mfp-title span { font-size: 11.5px; }
    .mfp-pill { width: 36px; height: 36px; padding: 0; justify-content: center; --glass-bg: rgba(0, 0, 0, .38); }
    .mfp-pill span { display: none; }
    .mfp-pill svg { width: 19px; height: 19px; }

    .mfp-center { height: 64px; gap: clamp(28px, 12cqi, 64px); }
    .mfp-btn.lg { width: 60px; height: 60px; --glass-bg: rgba(0, 0, 0, .42); }
    .mfp-btn.lg svg { width: 28px; height: 28px; }
    .mfp-btn.md { width: 46px; height: 46px; --glass-bg: rgba(0, 0, 0, .32); }
    .mfp-btn.md svg { width: 24px; height: 24px; }

    .mfp-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; padding: 0 6px 2px; border-radius: 0; transform: none;
      background: none !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; display: flex; flex-direction: column-reverse; }
    .mfp-bar::before { display: none; }
    .mfp-row { margin: 0; gap: 0; height: 40px; }
    .mfp-row [data-a="play"], .mfp-vol input { display: none; }
    .mfp-time { margin-left: 6px; font-size: 12px; }
    .mfp-ic { width: 40px; height: 40px; border-radius: 50%; }
    .mfp-ic svg { width: 21px; height: 21px; }
    .mfp-next-btn { width: 40px; height: 40px; padding: 0; margin: 0; background: none; justify-content: center; }
    .mfp-next-btn span { display: none; }
    .mfp-next-btn svg { width: 20px; height: 20px; }
    .mfp-scrub { height: 22px; margin: 0 6px; }
    .mfp-track { height: 3px; }
    .mfp.scrubbing .mfp-track { height: 6px; }
    .mfp-knob { transform: scale(1); width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
    .mfp-tip { bottom: 26px; }
    .mfp-shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.78) 100%); }
    .mfp-subs { bottom: 14%; }
    .mfp-resume { left: 8px; bottom: 54px; padding: 6px 6px 6px 12px; font-size: 12.5px; }
    .mfp-flash { font-size: 13px; }
  }
  /* Saat layar penuh di HP (mendatar): bar tetap ringkas tapi sedikit lebih lega */
  .mfp.is-fs .mfp-row { height: 46px; }
  .mfp.is-fs .mfp-scrub { margin: 0 12px; }
}
/* HP mendatar (layar penuh): kontrol menempel di bawah dengan gradien, tidak menutupi video */
@media (hover: none) and (max-height: 520px), (pointer: coarse) and (max-height: 520px) {
  .mfp.is-fs .mfp-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; padding: 0 max(14px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); border-radius: 0; transform: none;
    background: none !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .mfp.is-fs .mfp-bar::before { display: none; }
  .mfp.is-fs .mfp-row { height: 44px; margin-top: 0; }
  .mfp.is-fs .mfp-row [data-a="play"], .mfp.is-fs .mfp-row [data-a="back"], .mfp.is-fs .mfp-row [data-a="fwd"] { display: none; }
  .mfp.is-fs .mfp-scrub { height: 22px; }
  .mfp.is-fs .mfp-track { height: 3px; }
  .mfp.is-fs .mfp-knob { transform: scale(1); }
  .mfp.is-fs .mfp-center { height: 70px; }
  .mfp.is-fs .mfp-btn.lg { width: 64px; height: 64px; --glass-bg: rgba(0, 0, 0, .4); }
  .mfp.is-fs .mfp-btn.lg svg { width: 30px; height: 30px; }
  .mfp.is-fs .mfp-btn.md { width: 50px; height: 50px; --glass-bg: rgba(0, 0, 0, .3); }
  .mfp.is-fs .mfp-top { padding-top: max(10px, env(safe-area-inset-top)); }
  .mfp.is-fs .mfp-top .mfp-btn, .mfp.is-fs .mfp-pill { --glass-bg: rgba(0, 0, 0, .38); }
  .mfp.is-fs .mfp-title small { display: none; }
  .mfp.is-fs .mfp-shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,.8) 100%); }
  .mfp.is-fs .mfp-next-btn { background: rgba(255, 255, 255, .14); }
}

/* ---------- Menu setelan/subtitle: tombol tutup + bisa ditutup dengan ketuk di luar ---------- */
.mfp-menu { padding-top: 6px; }
.mfp-menu-x { position: sticky; top: 0; float: right; z-index: 2; width: 34px; height: 34px; margin: 0 0 -34px 0; border-radius: 50%; display: grid; place-items: center; color: var(--label-2); background: rgba(255, 255, 255, .08); }
.mfp-menu-x:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.mfp-menu-x svg { width: 17px; height: 17px; }
.mfp-menu-x + .menu-item, .mfp-menu-x + .mfp-back, .mfp-menu-x + * { margin-right: 42px; width: calc(100% - 42px); }
/* lapisan gelap di belakang menu; ketukannya menutup menu */
.mfp::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 8; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mfp.menu-open::before { opacity: 1; pointer-events: auto; }
/* HP tegak (pemutar kecil): menu jadi lembar dari bawah, sisa video tetap terlihat & bisa diketuk untuk menutup */
@container (max-width: 700px) {
  .mfp-menu { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-height: 82% !important; border-radius: 18px 18px 0 0; padding: 6px 6px max(8px, env(safe-area-inset-bottom)); animation: mfp-sheet-up .28s var(--ease); transform-origin: bottom center; }
  .mfp-menu .menu-item { min-height: 40px; font-size: 14.5px; }
}
/* Layar penuh di desktop (mouse): menu tetap kotak ringkas di atas tombol, setinggi isinya —
   tidak memanjang dari atas sampai bawah layar & tidak menutupi tombol kontrol. */
.mfp.is-fs:not(.is-touch) .mfp-menu { top: auto !important; left: auto !important; right: max(22px, env(safe-area-inset-right)) !important; bottom: 88px !important; width: 340px !important; max-height: min(560px, calc(100% - 150px)) !important; border-radius: 18px; padding: 8px; animation: pop-in .25s var(--ease-spring); transform-origin: bottom right; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 .5px 0 rgba(255, 255, 255, .12); }
.mfp.is-fs:not(.is-touch).menu-open::before { background: rgba(0, 0, 0, .18); }
/* Layar penuh di HP/tablet (sentuh): menu jadi panel samping kanan */
.mfp.is-fs.is-touch .mfp-menu { top: 0 !important; bottom: 0 !important; right: 0 !important; left: auto !important; width: min(360px, 46%) !important; max-height: none !important; border-radius: 20px 0 0 20px; padding-top: max(10px, env(safe-area-inset-top)); padding-right: max(8px, env(safe-area-inset-right)); animation: mfp-panel-in .28s var(--ease); }
@keyframes mfp-sheet-up { from { transform: translateY(100%); } }
@keyframes mfp-panel-in { from { transform: translateX(100%); } }
/* HP tegak: pemutar terlalu pendek untuk menu, jadi menu muncul sebagai lembar bawah di layar
   (bukan di dalam video) — semua pilihan muat tanpa menggulir di kotak sempit. */
@container (max-width: 700px) {
  .mfp:not(.is-fs) .mfp-menu { position: fixed; z-index: 2147483001; max-height: 72vh !important; max-height: 72dvh !important; border-radius: 22px 22px 0 0; padding: 8px 10px max(12px, env(safe-area-inset-bottom)); --glass-bg: rgba(28, 28, 32, .97); }
  .mfp:not(.is-fs).menu-open::before { position: fixed; z-index: 2147483000; background: rgba(0, 0, 0, .55); }
  .mfp:not(.is-fs) .mfp-menu .menu-item { min-height: 48px; font-size: 15.5px; }
  .mfp:not(.is-fs) .mfp-menu-x { width: 36px; height: 36px; margin-bottom: -36px; }
}
@container (max-width: 700px) {
  .mfp:not(.is-fs) .mfp-menu { background: rgba(24, 24, 28, .985) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), inset 0 .5px 0 rgba(255, 255, 255, .12) !important; padding-top: 22px; }
  .mfp:not(.is-fs) .mfp-menu::after { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
}
.mfp.is-fs .mfp-menu { background: rgba(22, 22, 26, .97) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mfp-menu-title { margin: 6px 12px 2px; font: 600 12px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--label-3); }
.mfp-menu-x + .mfp-menu-title { margin-right: 46px; }
@container (min-width: 561px) { .mfp-menu .mfp-only-sm { display: none; } }

/* =====================================================================
   PLAYER SKIN v3 — bersih & tidak menutupi video
   - Tidak ada kartu kaca besar: kontrol menempel di bawah dengan gradien tipis.
   - Desktop: tombol tengah hanya muncul saat dijeda (saat diputar video bersih).
   - Tombol tanpa blur (lebih ringan, latar video tetap terlihat jelas).
   ===================================================================== */
.mfp .glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.mfp .glass::before { display: none; }
.mfp-shade { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 62%, rgba(0,0,0,.72) 100%) !important; }

/* Bar atas */
.mfp-top { padding: 14px 18px 0; gap: 10px; }
.mfp-top .mfp-btn { width: 40px; height: 40px; --glass-bg: rgba(0, 0, 0, .32); box-shadow: none; border: 0; }
.mfp-top .mfp-btn svg { width: 20px; height: 20px; }
.mfp-title small { display: none; }
.mfp-title b { font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.mfp-title span { font-size: 12.5px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.mfp-pill { height: 38px; padding: 0 14px 0 11px; font-size: 13.5px; --glass-bg: rgba(0, 0, 0, .32); box-shadow: none; border: 0; }
.mfp-pill svg { width: 18px; height: 18px; }

/* Tombol tengah */
.mfp-center .mfp-btn { box-shadow: none; border: 0; }
.mfp-btn.lg { width: 72px; height: 72px; --glass-bg: rgba(0, 0, 0, .38); }
.mfp-btn.lg svg { width: 32px; height: 32px; }
.mfp-btn.md { width: 52px; height: 52px; --glass-bg: rgba(0, 0, 0, .26); }
.mfp-btn.md svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) {
  .mfp:not(.is-touch):not(.is-paused) .mfp-center { opacity: 0 !important; pointer-events: none !important; }
  .mfp-center .md { display: none; }
}

/* Bar bawah: tanpa kartu, menempel di tepi bawah */
.mfp-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; padding: 0 16px 8px; border-radius: 0; transform: translateY(6px);
  background: none !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mfp-bar::before { display: none; }
.mfp-row { margin-top: 2px; gap: 2px; }
.mfp-ic { border-radius: 50%; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.mfp-ic:hover { background: rgba(255, 255, 255, .12); }
.mfp-time { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.mfp-scrub { margin: 0 4px; }
.mfp-track { height: 4px; background: rgba(255, 255, 255, .28); }
.mfp-track .cur { background: var(--accent); }
.mfp-knob { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 1px 6px rgba(0, 0, 0, .5); width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.mfp-next-btn { background: rgba(255, 255, 255, .12); }
.mfp.is-fs .mfp-bar { padding: 0 max(22px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.mfp.is-fs .mfp-top { padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }

/* Kartu kecil di atas video: lebih ringkas & solid (tanpa blur) */
.mfp-resume { --glass-bg: rgba(20, 20, 24, .86); bottom: 78px; }
.mfp-next { --glass-bg: rgba(20, 20, 24, .92); bottom: 84px; }
.mfp-flash { --glass-bg: rgba(0, 0, 0, .55); }
.mfp-error-card { --glass-bg: rgba(20, 20, 24, .92); }
@container (max-width: 700px) {
  .mfp-bar { padding: 0 6px 2px; }
  .mfp-top { padding: 8px 8px 0 12px; }
  .mfp-resume { bottom: 54px; }
}
@container (max-width: 700px) {
  .mfp-btn.lg { width: 56px; height: 56px; }
  .mfp-btn.lg svg { width: 26px; height: 26px; }
  .mfp-btn.md { width: 42px; height: 42px; }
  .mfp-btn.md svg { width: 22px; height: 22px; }
  .mfp-top .mfp-btn, .mfp-pill { width: 34px; height: 34px; }
  .mfp-title b { font-size: 13.5px; }
  .mfp-next-btn { background: none; }
}
@media (hover: none) and (max-height: 520px), (pointer: coarse) and (max-height: 520px) {
  .mfp.is-fs .mfp-btn.lg { width: 60px; height: 60px; }
}
/* Menu terbuka (pemutar lebar): bilah kontrol tetap di atas lapisan gelap, jadi tombol
   setelan/subtitle/resolusi bisa diketuk lagi untuk MENUTUP atau berpindah menu (tidak dobel). */
.mfp.menu-open .mfp-bar { z-index: 9; }
@container (max-width: 700px) { .mfp:not(.is-fs).menu-open .mfp-bar { z-index: auto; } }

/* ---- Jendela mengambang (PiP) ---- */
.mfp.no-pip .mfp-pipbtn { display: none; }
.mfp-pipcard { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: rgba(255, 255, 255, .85); background: radial-gradient(80% 80% at 50% 40%, rgba(40, 40, 46, .92), rgba(0, 0, 0, .96)); }
.mfp-pipcard[hidden] { display: none; }
.mfp-pipcard > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.mfp-pipcard > span svg { width: 26px; height: 26px; }
.mfp-pipcard b { font: 600 15px/1.3 var(--font); }
.mfp.is-pip .mfp-subs, .mfp.is-pip .mfp-center, .mfp.is-pip .mfp-gate { display: none !important; }
/* HP: bilah lebih ringkas supaya tombol PiP tetap muat tanpa berdesakan */
@container (max-width: 420px) {
  .mfp-bar .mfp-ic { width: 34px; height: 34px; }
  .mfp-bar .mfp-ic svg { width: 20px; height: 20px; }
  .mfp-time { font-size: 11.5px; margin-left: 2px; }
}

/* ---- Layar memuat v4: tenang & ringkas — garis berjalan + angka kecil ---- */
.mfp-gate-card { position: relative; gap: 0; width: min(320px, 74%); }
.mfp-gate-glow { position: absolute; left: 50%; top: 50%; width: 300px; height: 120px; margin: -60px 0 0 -150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px); animation: mfp-breathe 3.6s ease-in-out infinite; }
.mfp-gate-title { position: relative; max-width: 100%; margin-bottom: 16px; font: 600 15px/1.3 var(--font-display, var(--font)); letter-spacing: -.01em; color: #fff; }
.mfp-gate-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; }
.mfp-gate-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: visible; }
.mfp-gate-bar i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: auto; border-radius: inherit; transform-origin: left center; transform: scaleX(var(--load, 0)); transition: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent-hi, #ff3b45)); box-shadow: none; overflow: hidden; }
.mfp-gate-bar i::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-120%); animation: mfp-run 1.7s cubic-bezier(.45, 0, .2, 1) infinite; }
.mfp-gate-bar s { position: absolute; top: 50%; left: calc(var(--load, 0) * 100%); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; text-decoration: none;
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent-hi, #ff3b45) 85%, transparent); animation: mfp-head 1.3s ease-in-out infinite; }
.mfp-gate-pct { flex: none; min-width: 3.2ch; text-align: right; font: 600 12px/1 var(--font); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.mfp-gate-text { position: relative; margin: 12px 0 0; min-height: 1.3em; font: 500 12.5px/1.3 var(--font); color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.mfp-gate-text.swap { animation: mfp-swap .45s var(--ease); }
.mfp.is-done .mfp-gate-bar s { animation: none; }
.mfp.is-done .mfp-gate-pct { color: #fff; }
@keyframes mfp-run { to { transform: translateX(260%); } }
@keyframes mfp-head { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .8; } }
@keyframes mfp-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@container (max-width: 560px) {
  .mfp-gate-card { width: 72%; }
  .mfp-gate-title { margin-bottom: 12px; font-size: 13.5px; }
  .mfp-gate-bar { height: 3px; }
  .mfp-gate-text { margin-top: 10px; font-size: 11.5px; }
}
html.lite .mfp-gate-glow { animation: none; filter: none; opacity: .4; }
@media (prefers-reduced-motion: reduce) {
  .mfp-gate-bar i::after, .mfp-gate-bar s, .mfp-gate-glow { animation: none; }
}

/* ---- Resolusi terkunci (tamu → masuk, member gratis → berlangganan) ---- */
/* Baris terkunci memakai kolom ikon kiri yang sama dengan baris lain → sejajar. */
.mfp-menu .mfp-q-locked { color: rgba(255, 255, 255, .45); }
.mfp-menu .mfp-q-locked > svg:first-child { width: 20px; height: 20px; padding: 2px; flex: none; color: rgba(255, 255, 255, .45); stroke-width: 2.2; }
.mfp-menu .mfp-q-locked:hover { color: rgba(255, 255, 255, .75); }
.mfp-q-hd { display: inline-flex; align-items: center; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 4px; vertical-align: 2px;
  background: rgba(255, 255, 255, .14); color: inherit; font: 700 9.5px/1 var(--font); letter-spacing: .02em; }
.mfp-q-badge { flex: none; margin-left: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 214, 10, .14); color: #ffd60a;
  font: 600 11.5px/1 var(--font); white-space: nowrap; }
.mfp-menu .mfp-q-locked:hover .mfp-q-badge { background: rgba(255, 214, 10, .24); }
.mfp-menu .mfp-q-locked .grow, .mfp-menu .menu-item .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfp-q-note { margin: 6px 4px 2px; padding: 9px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .08); font: 500 12px/1.45 var(--font); color: rgba(255, 255, 255, .55); overflow-wrap: anywhere; }
.mfp-menu { overflow-x: hidden; }

/* ---- Auto-bisu karena aturan autoplay browser: tombol jelas, hilang saat suara aktif ---- */
.mfp-unmute { position: absolute; left: 50%; bottom: 96px; z-index: 6; display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  transform: translateX(-50%); border-radius: var(--r-pill, 999px); color: #fff; font: 600 14.5px/1 var(--font); white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); cursor: pointer; animation: mfp-unmute-in .35s var(--ease-spring, ease) both; }
.mfp-unmute svg { width: 20px; height: 20px; flex: none; }
.mfp-unmute:hover { background: rgba(255, 255, 255, .22); }
.mfp.is-automuted:not(.is-loading):not(.is-error) .mfp-unmute { display: inline-flex; }
@keyframes mfp-unmute-in-r { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes mfp-unmute-in { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.96); } }
@container (max-width: 560px) {
  .mfp-unmute { bottom: 64px; height: 38px; font-size: 13px; padding: 0 14px 0 11px; }
  .mfp-unmute svg { width: 17px; height: 17px; }
}
@container (max-width: 560px) {
  /* Layar kecil: jangan menutupi tombol putar di tengah → pojok kanan atas. */
  .mfp-unmute { left: auto; right: 10px; bottom: auto; top: 10px; transform: none; animation-name: mfp-unmute-in-r; height: 36px; padding: 0 13px 0 10px; font-size: 13px; gap: 6px; }
  .mfp-unmute svg { width: 17px; height: 17px; }
}

/* Panggung: seluruh isi pemutar (lihat player.js). Normalnya menutup pemutar persis. */
.mfp-stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; container-type: inline-size; overflow: hidden; border-radius: inherit; }
/* Layar penuh di HP yang dipegang tegak (iPhone / orientasi tidak bisa dikunci):
   isi diputar 90° searah jarum jam sehingga video mendatar memenuhi layar. */
.mfp.is-rot .mfp-stage {
  top: auto; right: auto; bottom: auto; left: auto; inset: auto; top: 0; left: var(--rw, 100vw);
  width: var(--rh, 100vh); height: var(--rw, 100vw);
  transform-origin: top left; transform: rotate(90deg);
  border-radius: 0;
}
/* Sisi kiri panggung = atas layar fisik (notch), sisi kanan = bawah layar (garis home). */
.mfp.is-rot .mfp-top { padding-left: max(18px, env(safe-area-inset-top)); padding-right: max(18px, env(safe-area-inset-bottom)); }
.mfp.is-rot .mfp-bar { padding-left: max(0px, calc(env(safe-area-inset-top) - 14px)); padding-right: max(0px, calc(env(safe-area-inset-bottom) - 14px)); }
/* iPhone (browser): tombol ikon kecil untuk layar penuh sistem (sama seperti tombol lain di bilah atas) */
.mfp-btn.mfp-iosfs[hidden] { display: none !important; }

/* Jendela mengambang berisi dokumen (Document PiP): video + subtitle kita */
.mfp-docpip-body { margin: 0; background: #000; overflow: hidden; }
.mfp.is-docpip { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 0; background: #000; cursor: pointer; }
.mfp.is-docpip .mfp-video { width: 100%; height: 100%; object-fit: contain; }
.mfp.is-docpip .mfp-subs { bottom: 8%; }
.mfp-docpip-play { position: absolute; left: 50%; top: 50%; z-index: 5; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; pointer-events: none; }
.mfp-docpip-play svg { width: 24px; height: 24px; }
.mfp.is-docpip:hover .mfp-docpip-play { opacity: 1; }

/* Tampilan jeda iklan dibuat oleh intro.js (nama kelas acak per kunjungan). */

/* ---------------- Kunci layar ----------------
 * Catatan: kelas `html.mfp-lock` sudah dipakai untuk mengunci gulir saat layar
 * penuh semu — UI kunci memakai `.mfp-lockui` agar tidak bentrok. */
.mfp.is-locked .mfp-top, .mfp.is-locked .mfp-center, .mfp.is-locked .mfp-bar,
.mfp.is-locked .mfp-menu, .mfp.is-locked .mfp-unmute, .mfp.is-locked .mfp-resume, .mfp.is-locked .mfp-next { opacity: 0 !important; pointer-events: none !important; visibility: hidden; }
.mfp.is-locked .mfp-shade { opacity: 0 !important; }
/* Kursor: tampil saat panel buka kunci terlihat (mouse digerakkan), sembunyi saat diam. */
.mfp.is-locked.lock-hint, .mfp.is-locked.lock-hint .mfp-stage, .mfp.is-locked.lock-hint video { cursor: default !important; }
.mfp.is-locked.lock-hint .mfp-unlock { cursor: pointer !important; }
.mfp-lockui { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.mfp-lockui[hidden] { display: none; }
/* Penanda kecil di pojok: tetap terlihat samar selama terkunci. */
.mfp-lockbadge { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18); opacity: .7; transition: opacity .3s; }
.mfp-lockbadge svg { width: 15px; height: 15px; }
.mfp-lockui.on .mfp-lockbadge { opacity: 0; }
/* Panel buka kunci: pil kaca di bawah tengah (mudah dijangkau jempol, tidak menutupi wajah). */
.mfp-lockpill {
  position: absolute; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  color: #fff; background: rgba(18, 18, 20, .62); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 12px) scale(.96); pointer-events: none;
  transition: opacity .28s var(--ease), transform .32s var(--ease);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.mfp-lockui.on .mfp-lockpill { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mfp-unlock { position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), background .2s; }
.mfp-unlock:hover { background: rgba(255, 255, 255, .16); }
.mfp-unlock:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mfp-unlock-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mfp-unlock-ring circle { fill: none; stroke-width: 3; }
.mfp-unlock-ring .bg { stroke: rgba(255, 255, 255, .14); }
.mfp-unlock-ring .fg { stroke: var(--accent, #E50914); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .25s ease-out; }
.mfp-unlock-ic { position: absolute; display: grid; place-items: center; transition: opacity .2s, transform .25s var(--ease); }
.mfp-unlock-ic svg { width: 22px; height: 22px; }
.mfp-unlock-ic.ic-open { opacity: 0; transform: scale(.6); }
.mfp-lockui.is-holding .mfp-unlock { transform: scale(.92); background: rgba(255, 255, 255, .18); }
.mfp-lockui.is-holding .mfp-unlock-ring .fg { stroke-dashoffset: 0; transition: stroke-dashoffset .8s linear; }
.mfp-lockui.is-done .mfp-unlock-ring .fg { stroke-dashoffset: 0; stroke: #30D158; transition: none; }
.mfp-lockui.is-done .ic-lock { opacity: 0; transform: scale(.6); }
.mfp-lockui.is-done .ic-open { opacity: 1; transform: none; color: #30D158; }
.mfp-lock-txt { display: grid; gap: 2px; min-width: 0; }
.mfp-lock-txt b { font: 650 14px/1.2 var(--font); letter-spacing: -.005em; }
.mfp-lock-txt small { font: 500 12px/1.25 var(--font); color: rgba(255, 255, 255, .7); white-space: nowrap; }
.mfp-ic[data-a="lock"] svg { width: 20px; height: 20px; }
/* Pemutar kecil (di halaman, HP tegak): pil lebih ringkas. */
@container (max-width: 520px) {
  .mfp-lockpill { bottom: 14px; padding: 6px 14px 6px 6px; gap: 10px; }
  .mfp-unlock { width: 42px; height: 42px; }
  .mfp-lock-txt b { font-size: 13px; }
  .mfp-lock-txt small { font-size: 11px; }
}
@media (max-height: 420px) and (orientation: landscape) { .mfp-lockpill { bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .mfp-lockpill, .mfp-unlock, .mfp-unlock-ic { transition: none; } }
