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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050810;
  color: #f5f5f5;
  overflow-x: hidden;
  --mf-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2.5l2.85 5.78 6.37.93-4.61 4.49 1.09 6.35L12 17.77l-5.7 2.98 1.09-6.35-4.61-4.49 6.37-.93z'/%3E%3C/svg%3E");
  --mf-icon-votes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12.25c2.07 0 3.75-1.68 3.75-3.75S14.07 4.75 12 4.75 8.25 6.43 8.25 8.5 9.93 12.25 12 12.25zm0 1.5c-2.82 0-5.25 1.42-5.25 3.25V19h10.5v-2c0-1.83-2.43-3.25-5.25-3.25z'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

/* Splash buka app ? animasi Meteorflix */
html.mf-splash-active,
html.mf-splash-active body {
  overflow: hidden;
}

.mf-app-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: max(20px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  background: #050810;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  pointer-events: all;
}

.mf-app-splash.is-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mf-app-splash__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(229, 9, 20, 0.18), transparent 68%),
    radial-gradient(circle at 18% 88%, rgba(255, 71, 87, 0.08), transparent 42%),
    linear-gradient(165deg, #050810 0%, #0a101c 48%, #050810 100%);
}

.mf-app-splash__glow {
  position: absolute;
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.35) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.6);
  filter: blur(2px);
}

.mf-app-splash.is-animate .mf-app-splash__glow {
  animation: mf-splash-glow 2.8s ease-out 0.5s forwards;
}

.mf-app-splash__meteor {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-app-splash__meteor-tail {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 10px;
  margin-top: -5px;
  margin-left: -72px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.35) 42%, #ff6b7a 100%);
  transform: rotate(-38deg);
  transform-origin: left center;
  opacity: 0;
  filter: blur(0.4px);
  pointer-events: none;
}

.mf-app-splash__meteor-icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0;
  transform: translate(-42px, 44px) scale(0.35);
  filter:
    drop-shadow(0 0 18px rgba(229, 9, 20, 0.55))
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.mf-app-splash.is-animate .mf-app-splash__meteor-icon {
  animation: mf-splash-meteor-icon 1.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.mf-app-splash.is-animate .mf-app-splash__meteor-tail {
  animation: mf-splash-meteor-tail 1.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.mf-app-splash__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 2.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.mf-app-splash__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
}

.mf-app-splash__word--meteor {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.mf-app-splash__word--flix {
  color: #e50914;
  text-shadow: 0 0 28px rgba(229, 9, 20, 0.45);
}

.mf-app-splash.is-animate .mf-app-splash__word--meteor {
  animation: mf-splash-word 1s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

.mf-app-splash.is-animate .mf-app-splash__word--flix {
  animation: mf-splash-word 1s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

.mf-app-splash__tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  opacity: 0;
  transform: translateY(8px);
}

.mf-app-splash.is-animate .mf-app-splash__tagline {
  animation: mf-splash-word 0.85s ease 1.85s forwards;
}

.mf-app-splash__loader {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-top: 8px;
  opacity: 0;
}

.mf-app-splash__loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.85);
  animation: mf-splash-dot 0.9s ease-in-out infinite;
}

.mf-app-splash__loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.mf-app-splash__loader span:nth-child(3) {
  animation-delay: 0.3s;
}

.mf-app-splash.is-animate .mf-app-splash__loader {
  animation: mf-splash-word 0.7s ease 2.15s forwards;
}

@keyframes mf-splash-meteor-icon {
  0% {
    opacity: 0;
    transform: translate(-42px, 44px) scale(0.35);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes mf-splash-meteor-tail {
  0% {
    opacity: 0;
    transform: rotate(-38deg) scaleX(0.15);
  }
  100% {
    opacity: 1;
    transform: rotate(-38deg) scaleX(1);
  }
}

@keyframes mf-splash-word {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mf-splash-glow {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mf-splash-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-app-splash,
  .mf-app-splash.is-animate .mf-app-splash__glow,
  .mf-app-splash.is-animate .mf-app-splash__meteor-icon,
  .mf-app-splash.is-animate .mf-app-splash__meteor-tail,
  .mf-app-splash.is-animate .mf-app-splash__word,
  .mf-app-splash.is-animate .mf-app-splash__tagline,
  .mf-app-splash.is-animate .mf-app-splash__loader,
  .mf-app-splash__loader span {
    animation: none !important;
    transition: none !important;
  }

  .mf-app-splash__glow,
  .mf-app-splash__meteor-icon,
  .mf-app-splash__meteor-tail,
  .mf-app-splash__word,
  .mf-app-splash__tagline,
  .mf-app-splash__loader {
    opacity: 1;
    transform: none;
  }
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, #402469 0, #050810 55%),
    radial-gradient(circle at bottom right, #1c2745 0, #050810 55%);
  opacity: 0.95;
}

/* Header lama (sticky + search bar) ? nonaktif; pakai blok IDLIX di bawah */
.mf-header.mf-header--legacy {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  padding: 16px 4vw;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff3859;
}

/* Default header layout order (desktop):
   Logo | Nav | Search */
.logo {
  order: 0;
}

.nav-toggle {
  order: 1;
}

.mf-nav {
  order: 2;
}

.search-box {
  order: 3;
  margin-left: auto;
}

/* Nav berkelompok: Utama, Jelajahi, Lainnya (legacy) */
.mf-nav:not(.mf-nav--idlix) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.mf-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mf-nav-group-label {
  display: none; /* hanya tampil di mobile */
}

.mf-nav-links {
  display: flex;
  gap: 1rem;
}

.mf-nav a {
  opacity: 0.95;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 2px 4px;
}

/* Sembunyikan entri Admin di header publik; tetap tampil di halaman admin (.admin-page). */
body:not(.admin-page) .mf-nav a[href="/admin"],
body:not(.admin-page) .mf-nav a[href="admin"],
body:not(.admin-page) .mf-nav a[href="admin.html"],
body:not(.admin-page) .mf-nav a[href="/admin.html"] {
  display: none !important;
}

.mf-nav a:hover,
.mf-nav a.active {
  opacity: 1;
}

/* Posisi: Logo | Search | Menu ? search di tengah, rapi di desktop & mobile */
.search-box {
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.mf-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mf-search-form input {
  flex: 1;
  min-width: 0;
}

.search-box input,
.mf-search-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.search-box input {
  padding-right: 12px;
  min-width: 120px;
}

.mf-search-autocomplete-layer {
  position: fixed;
  z-index: 120;
  display: block;
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  max-height: min(280px, 52vh);
  overflow-y: auto;
  background: rgba(8, 12, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.mf-search-autocomplete-layer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* Autocomplete di atas overlay IDLIX (z-index overlay = 200) */
body.mf-search-open .mf-search-autocomplete-layer,
.mf-search-autocomplete-layer.mf-search-autocomplete-layer--overlay {
  z-index: 220;
  max-height: min(360px, 58vh);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.mf-search-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #eef2ff;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 10px 12px;
  cursor: pointer;
}

.mf-search-item-sub {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 1px;
}

.mf-search-item-main {
  display: block;
}

.mf-search-item + .mf-search-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-search-item:hover,
.mf-search-item.is-active {
  background: rgba(255, 56, 89, 0.14);
  color: #fff;
}

.mf-search-hit {
  color: #ff7b90;
  font-weight: 700;
}

.mf-search-see-all {
  display: block;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: #ff7b90;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mf-search-see-all:hover {
  background: rgba(255, 56, 89, 0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .mf-search-autocomplete-layer {
    max-height: min(220px, 45vh);
  }
  .mf-search-item {
    font-size: 0.88rem;
    padding: 9px 11px;
  }
}

.nav-toggle {
  display: none;
  border-radius: 999px;
  border: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

/* Promo popup ? cyber modal (GIF pool dari homepage settings / Meteorbet88) */
body.mf-promo-open {
  overflow: hidden;
  touch-action: none;
}

.mf-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.78);
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mf-promo-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mf-promo-overlay__stage {
  width: 100%;
  max-width: min(420px, 92vw);
  margin: auto;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.75rem;
}

.mf-cyber-modal {
  --mf-cyber-accent: #ff3859;
  --mf-cyber-accent-2: #6524ff;
  --mf-cyber-shadow: #ff6b84;
  --mf-cyber-corner: 12px;
  --mf-cyber-border: 2px;
  --mf-cyber-clip: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--mf-cyber-corner)),
    calc(100% - var(--mf-cyber-corner)) 100%,
    0% 100%
  );
  --mf-cyber-flicker: linear(
    0 0%,
    0.1864 6.17%,
    0.0001 14.41%,
    0.5244 20.97%,
    0.3927 37.91%,
    0.8115 60.62%,
    0.9416 61.92%,
    0.9928 67.98%,
    0.5032 70.42%,
    0.9077 96.96%,
    0.6736 98.74%,
    1 100%
  );
  position: relative;
  width: 100%;
  max-height: min(88dvh, 88vh, 760px);
  border: 0;
  padding: 0;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  color: var(--mf-cyber-accent);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.mf-cyber-modal.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mf-cyber-modal::before,
.mf-cyber-modal::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 100%;
  width: 0.85rem;
  border: var(--mf-cyber-border) solid var(--mf-cyber-accent);
  translate: var(--mf-cyber-border) 0;
  opacity: 0;
  transition: opacity 0.22s ease, translate 0.22s ease;
}

.mf-cyber-modal::before {
  background: var(--mf-cyber-accent);
  mask: linear-gradient(#fff, hsl(0 0% 100% / 0.55) 15% 95%, #fff);
}

.mf-cyber-modal.is-open::before,
.mf-cyber-modal.is-open::after {
  opacity: 1;
  translate: var(--mf-cyber-border) 0;
}

.mf-cyber-modal.is-open::before {
  animation: mf-cyber-flicker 0.625s var(--mf-cyber-flicker) none;
}

.mf-cyber-modal__body {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(88dvh, 88vh, 760px);
  clip-path: inset(0 -100% 0 0);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  transition: clip-path 0.28s ease;
}

.mf-cyber-modal:not(.is-open) .mf-cyber-modal__body {
  clip-path: inset(0 calc(100% + (2 * var(--mf-cyber-border))) 0 0);
}

.mf-cyber-modal__side {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: translate 0.28s ease;
}

.mf-cyber-modal:not(.is-open) .mf-cyber-modal__side {
  translate: calc(-100% - (2 * var(--mf-cyber-border))) 0;
}

.mf-cyber-modal__side-inner {
  position: absolute;
  inset: 0;
  clip-path: var(--mf-cyber-clip);
  background: hsl(0 0% 0% / 0.42);
  pointer-events: none;
}

.mf-cyber-modal__side-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mf-cyber-accent);
  clip-path: var(--mf-cyber-clip);
  mask: linear-gradient(#0000 0% 100%), linear-gradient(#fff 0% 100%);
  mask-clip: padding-box, border-box;
  mask-repeat: no-repeat;
  mask-composite: intersect;
  z-index: 2;
}

.mf-cyber-modal__side-inner::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 2rem;
  width: calc(2 * var(--mf-cyber-border));
  height: 40%;
  background: var(--mf-cyber-accent);
  opacity: 0.7;
  clip-path: polygon(0 0, 0 100%, 100% calc(100% - 6px), 100% 6px);
}

.mf-cyber-modal__tag {
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-transform: uppercase;
}

.mf-cyber-modal__corner {
  position: absolute;
  bottom: 0;
  right: 0;
  height: var(--mf-cyber-corner);
  width: var(--mf-cyber-corner);
}

.mf-cyber-modal__corner::after {
  content: "";
  height: calc(var(--mf-cyber-border) * 2);
  width: 200%;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: rotate(135deg);
  background: var(--mf-cyber-accent);
}

.mf-cyber-modal__content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  clip-path: inset(0 calc(var(--mf-cyber-border) * -1) 0 0);
  transition: clip-path 0.28s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.mf-cyber-modal:not(.is-open) .mf-cyber-modal__content {
  clip-path: inset(0 calc(100% + (2 * var(--mf-cyber-border))) 0 0);
}

.mf-cyber-modal__content h2 {
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.mf-cyber-modal__content h2 span {
  opacity: 0;
  transition: opacity 0.26s ease;
}

.mf-cyber-modal.is-open .mf-cyber-modal__content h2 span {
  opacity: 1;
  transition-delay: 0.28s;
}

.mf-cyber-modal__content h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--mf-cyber-border);
  background: linear-gradient(90deg, var(--mf-cyber-accent), var(--mf-cyber-accent-2));
  transform-origin: 0 50%;
  scale: 0 1;
  transition: scale 0.26s ease-in;
}

.mf-cyber-modal.is-open .mf-cyber-modal__content h2::after {
  scale: 1 1;
  transition-delay: 0.32s;
  transition-timing-function: ease-out;
}

.mf-cyber-modal__gif-box {
  margin: 0.5rem 0 0.75rem;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(0 0% 0% / 0.35);
  clip-path: var(--mf-cyber-clip);
  overflow: hidden;
  opacity: 0;
  translate: 0 -0.5rem;
  transition: opacity 0.26s ease, translate 0.26s ease;
}

.mf-cyber-modal.is-open .mf-cyber-modal__gif-box {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.34s;
}

.mf-promo-gif {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42dvh, 42vh, 320px);
  object-fit: contain;
  cursor: pointer;
  background: #050810;
}

/* Mode GIF saja ? model cyber referensi, konten cuma banner */
.mf-cyber-modal--gif-only {
  width: 100%;
  max-width: 100%;
}

.mf-cyber-modal--gif-only .mf-cyber-modal__body {
  max-height: none;
}

.mf-cyber-modal__content--gif-only {
  padding: 0.85rem 1rem 0.5rem;
}

.mf-cyber-modal--gif-only .mf-cyber-modal__gif-box {
  margin: 0;
}

.mf-cyber-modal--gif-only .mf-promo-gif {
  max-height: min(42dvh, 42vh, 300px);
}

.mf-cyber-modal--gif-only .mf-cyber-modal__actions {
  padding: 0.65rem 1rem 1rem;
  justify-content: flex-end;
}

.mf-cyber-modal--gif-only .mf-cyber-btn {
  min-width: 0;
  flex: 1 1 calc(50% - 0.25rem);
  justify-content: center;
  font-size: 0.68rem;
}

.mf-cyber-modal__text {
  opacity: 0;
  translate: 0 -0.65rem;
  transition: opacity 0.26s ease, translate 0.26s ease;
}

.mf-cyber-modal.is-open .mf-cyber-modal__text {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.38s;
}

.mf-cyber-modal__text p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: hsl(0 0% 100% / 0.78);
}

.mf-cyber-modal__text p:last-child {
  margin-bottom: 0;
}

.mf-cyber-modal__glitch {
  --mf-cyber-shimmy: 2;
  position: absolute;
  inset: 0;
  padding: 1rem;
  z-index: -1;
  color: var(--mf-cyber-shadow);
  pointer-events: none;
  opacity: 0.35;
}

.mf-cyber-modal__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1rem 1rem;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.2s ease, translate 0.2s ease;
  flex-shrink: 0;
}

.mf-cyber-modal.is-open .mf-cyber-modal__actions {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.48s;
}

.mf-cyber-btn {
  --mf-cyber-btn-corner: 10px;
  --mf-cyber-btn-border: 1px;
  --mf-cyber-btn-clip: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--mf-cyber-btn-corner)),
    calc(100% - var(--mf-cyber-btn-corner)) 100%,
    0% 100%
  );
  position: relative;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--mf-cyber-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mf-cyber-btn * {
  pointer-events: none;
}

.mf-cyber-btn__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: var(--mf-cyber-btn-clip);
  background: hsl(0 0% 0% / 0.4);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  transition: background 0.15s ease;
}

.mf-cyber-btn__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mf-cyber-accent);
  clip-path: var(--mf-cyber-btn-clip);
  mask: linear-gradient(#0000 0% 100%), linear-gradient(#fff 0% 100%);
  mask-clip: padding-box, border-box;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.mf-cyber-btn__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--mf-cyber-btn-corner);
  height: var(--mf-cyber-btn-corner);
}

.mf-cyber-btn__corner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: calc(var(--mf-cyber-btn-border) * 2);
  translate: -50% -50%;
  transform: rotate(135deg);
  background: var(--mf-cyber-accent);
}

.mf-cyber-btn kbd {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mf-cyber-accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.mf-cyber-btn kbd svg {
  width: 62%;
  height: 62%;
}

.mf-cyber-btn:hover,
.mf-cyber-btn:focus-visible {
  color: #fff;
}

.mf-cyber-btn:hover .mf-cyber-btn__backdrop,
.mf-cyber-btn:focus-visible .mf-cyber-btn__backdrop {
  background: var(--mf-cyber-accent);
}

.mf-cyber-btn--proceed kbd {
  background: linear-gradient(145deg, var(--mf-cyber-accent-2), var(--mf-cyber-accent));
}

.mf-cyber-modal[data-action="Cancel"] [data-action="Cancel"] .mf-cyber-btn__backdrop,
.mf-cyber-modal[data-action="Proceed"] [data-action="Proceed"] .mf-cyber-btn__backdrop {
  animation: mf-cyber-bg-flicker 0.25s var(--mf-cyber-flicker) backwards;
}

.mf-cyber-modal[data-action="Cancel"] [data-action="Cancel"] kbd,
.mf-cyber-modal[data-action="Proceed"] [data-action="Proceed"] kbd {
  opacity: 0;
}

@keyframes mf-cyber-flicker {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes mf-cyber-bg-flicker {
  0% {
    background: hsl(0 0% 100% / 0.35);
  }
  100% {
    background: var(--mf-cyber-accent);
  }
}

@keyframes mf-cyber-glitch {
  0% {
    clip-path: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  }
  2%,
  8% {
    clip-path: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
    transform: translate(calc(var(--mf-cyber-shimmy) * -1%), 0);
  }
  6% {
    clip-path: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
    transform: translate(calc(var(--mf-cyber-shimmy) * 1%), 0);
  }
  9% {
    clip-path: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
    transform: translate(0, 0);
  }
  31%,
  61%,
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  }
}

body.theme-light .mf-promo-overlay {
  background: rgba(15, 23, 42, 0.45);
}

body.theme-light .mf-cyber-modal__side-inner {
  background: hsl(0 0% 100% / 0.55);
}

body.theme-light .mf-cyber-modal__text p {
  color: hsl(220 20% 18% / 0.82);
}

body.theme-light .mf-cyber-btn__backdrop {
  background: hsl(0 0% 100% / 0.55);
}

@media (max-width: 520px) {
  .mf-promo-overlay__stage {
    max-width: min(360px, 94vw);
  }

  .mf-cyber-modal__content {
    padding: 0.85rem;
  }

  .mf-cyber-modal--gif-only .mf-promo-gif {
    max-height: min(36dvh, 36vh, 240px);
  }

  .mf-cyber-modal--gif-only .mf-cyber-btn {
    min-width: 0;
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.64rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .mf-promo-overlay {
    align-items: flex-start;
  }

  .mf-promo-overlay__stage {
    padding-top: 0.25rem;
  }

  .mf-cyber-modal--gif-only .mf-promo-gif {
    max-height: min(28dvh, 28vh, 180px);
  }

  .mf-cyber-modal__text p:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-cyber-modal,
  .mf-cyber-modal::before,
  .mf-cyber-modal::after,
  .mf-cyber-modal__body,
  .mf-cyber-modal__side,
  .mf-cyber-modal__content,
  .mf-cyber-modal__gif-box,
  .mf-cyber-modal__text,
  .mf-cyber-modal__actions,
  .mf-cyber-modal__content h2 span,
  .mf-cyber-modal__content h2::after {
    transition: none !important;
    animation: none !important;
  }

  .mf-cyber-modal:not(.is-open) {
    opacity: 0;
    transform: none;
  }
}

/* Meteorflix modal ? selaras halaman login luxury */
:root {
  --mf-modal-gold: #d4af6a;
  --mf-modal-card-bg: rgba(12, 14, 22, 0.88);
  --mf-modal-accent: #e50914;
}

body.mf-modal-open,
body.mf-promo-open {
  overflow: hidden;
  touch-action: none;
}

.mf-modal-overlay,
.mf-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.mf-modal-overlay.is-open,
.mf-promo-overlay:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
}

.mf-modal-overlay.is-closing,
.mf-promo-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mf-modal-stage,
.mf-promo-overlay__stage {
  width: 100%;
  max-width: min(420px, 94vw);
  margin: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

.mf-modal-overlay.is-open .mf-modal-stage,
.mf-promo-overlay:not(.is-hidden) .mf-promo-overlay__stage {
  transform: none;
}

.mf-modal-card-wrap {
  position: relative;
}

.mf-modal-card-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(212, 175, 106, 0.45) 0%,
    rgba(229, 9, 20, 0.28) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.mf-modal-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 28px);
  background: var(--mf-modal-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mf-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e50914 0%, #ff3859 42%, var(--mf-modal-gold) 100%);
}

.mf-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mf-modal-title {
  margin: 0 0 8px;
  padding-right: 28px;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  color: #fff;
}

.mf-modal-message,
.mf-modal-detail {
  margin: 0 0 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.mf-modal-media {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050810;
}

.mf-modal-card--promo .mf-modal-close {
  z-index: 12;
  pointer-events: auto;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mf-modal-card--promo .mf-modal-media {
  position: relative;
  z-index: 1;
}

.mf-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mf-modal-btn {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
}

.mf-modal-btn--primary {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #e50914 0%, #b10610 48%, #8b0a12 100%);
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.35);
}

.mf-modal-btn--ghost {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.mf-modal-media .mf-promo-gif,
.mf-promo-gif {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42dvh, 42vh, 280px);
  object-fit: contain;
  cursor: pointer;
}

.mf-modal-overlay--promo .mf-modal-stage {
  width: calc(100vw - 32px);
  max-width: min(520px, calc(100vw - 32px));
  margin: auto;
}

.mf-modal-overlay--promo {
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.mf-modal-overlay--promo .mf-modal-card {
  padding: clamp(16px, 3.5vw, 24px);
}

.mf-modal-overlay--promo .mf-modal-media {
  margin: 0 0 14px;
  border-radius: 12px;
}

.mf-modal-overlay--promo .mf-modal-media .mf-promo-gif,
.mf-modal-overlay--promo .mf-promo-gif {
  width: 100%;
  max-height: min(42dvh, 42vh, 300px);
  object-fit: contain;
}

.mf-modal-overlay--promo .mf-modal-close {
  top: 12px;
  right: 12px;
}

.mf-modal-overlay--promo .mf-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
}

.mf-modal-overlay--promo .mf-modal-btn {
  flex: initial;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .mf-modal-overlay--promo .mf-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mf-modal-stage {
    max-width: min(520px, calc(100vw - 32px));
  }

  .mf-modal-media .mf-promo-gif,
  .mf-promo-gif {
    max-height: min(36dvh, 36vh, 240px);
  }
}

/* Cookie consent banner */
.mf-cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  padding: 16px 18px;
  background: var(--mf-modal-card-bg, rgba(12, 14, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.82rem;
  transition: opacity 0.16s ease;
}

.mf-cookie-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mf-cookie-text {
  flex: 1;
  min-width: 0;
  color: #e5e7eb;
}

.mf-cookie-text b {
  color: #fff;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.mf-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.mf-cookie-btn {
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.mf-cookie-btn:hover {
  transform: translateY(-1px);
}

.mf-cookie-btn:focus-visible {
  outline: 2px solid rgba(212, 175, 106, 0.55);
  outline-offset: 2px;
}

.mf-cookie-accept {
  background: linear-gradient(135deg, #e50914 0%, #b10610 48%, #8b0a12 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.mf-cookie-manage {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mf-cookie-reject {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mf-cookie-save {
  background: linear-gradient(135deg, #e50914 0%, #b10610 100%);
  color: #fff;
}

.mf-cookie-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  display: none;
}

.mf-cookie-panel.is-open {
  display: block;
}

.mf-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #e2e8f0;
}

.mf-cookie-row small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 2px;
}

.mf-cookie-row a {
  color: #93c5fd;
  text-decoration: underline;
}

.mf-cookie-row a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 4px;
}

.mf-cookie-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.mf-cookie-panel-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.mf-cookie-open-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 79;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}

@media (max-width: 640px) {
  .mf-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 10px;
  }

  .mf-cookie-top {
    flex-direction: column;
  }

  .mf-cookie-actions,
  .mf-cookie-panel-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mf-cookie-open-settings {
    right: 10px;
    bottom: 10px;
    font-size: 0.74rem;
  }
}

.hero {
  padding: 80px 4vw 40px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 32px;
}

.hero-main-title {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-meta {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.95rem;
  opacity: 0.84;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tagline {
  font-size: 0.8rem;
  opacity: 0.75;
}

.hero-right {
  justify-self: end;
}

.hero-poster {
  max-width: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  background: linear-gradient(145deg, #6524ff, #ff3859);
  aspect-ratio: 2 / 3;
  position: relative;
}

.hero-poster-inner {
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.9));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-poster-chip {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.hero-poster-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-poster-meta {
  font-size: 0.75rem;
  opacity: 0.8;
}

main {
  padding: 0 4vw 60px;
}

.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.section-sub {
  font-size: 0.8rem;
  opacity: 0.9;
  color: #d7deee;
}

.page-breadcrumb {
  font-size: 0.78rem;
  opacity: 0.9;
  color: #d4dbea;
  margin-bottom: 8px;
}

.page-breadcrumb a {
  color: #e50914;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.movie-card {
  background: rgba(5, 8, 16, 0.92);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
  background: rgba(12, 18, 32, 0.98);
}

.movie-card.favorite {
  border-color: #ffb74d;
}

.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  cursor: pointer;
  opacity: 0.9;
}

.fav-btn.active {
  background: #ffb74d;
  color: #1b1206;
}

.movie-poster {
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(145deg, #2c2f4f, #6b1fa7);
  position: relative;
  overflow: hidden;
}

.movie-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.movie-poster::after {
  content: "Meteorflix";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e50914;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 4px 18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.movie-card:hover .movie-poster::before,
.movie-card:hover .movie-poster::after {
  opacity: 1;
}

.movie-body {
  padding: 8px 9px 10px;
}

.movie-title {
  font-size: 0.82rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  font-size: 0.72rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #ff3859;
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mf-footer {
  padding: 20px 4vw 30px;
  font-size: 0.75rem;
}

.mf-footer > p,
.mf-footer .fmenu {
  opacity: 0.65;
}

/* DMCA + Histats share one centered row (DMCA ~150x30; Histats native style-1036 150x25) */
.mf-footer-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
}

.mf-dmca-badge-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  line-height: 0;
}

.mf-dmca-badge-wrap--hero {
  margin: 20px 0 8px;
  justify-content: flex-start;
}

.mf-dmca-badge-wrap .dmca-badge {
  display: inline-block;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.mf-dmca-badge-wrap .dmca-badge:hover {
  opacity: 1;
}

.mf-dmca-badge-wrap .dmca-badge img {
  display: block;
  width: 150px;
  height: 30px;
  object-fit: contain;
  max-width: 100%;
}

footer.main .mf-dmca-badge-wrap {
  margin: 0;
}

footer.main .mf-footer-badges {
  margin-top: 14px;
}

/* Histats visitor counter - beside DMCA; native style-1036 150x25 (no scale ? scale clips widget) */
.mf-histats-wrap {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 150px;
  min-width: 150px;
  height: 25px;
  min-height: 25px;
  max-height: none;
  overflow: visible !important;
  margin: 0;
  vertical-align: middle;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.mf-histats-wrap[hidden] {
  display: inline-flex !important;
  visibility: visible !important;
}

.mf-histats-wrap .mf-histats-link,
.mf-histats-wrap a:not(.mf-histats-fallback) {
  display: inline-block;
  line-height: 0;
  width: auto;
  height: auto;
  max-width: none;
}

.mf-histats-wrap #histats_counter {
  display: inline-block !important;
  width: 150px !important;
  height: 25px !important;
  max-width: none;
  max-height: none;
  min-width: 150px;
  min-height: 25px;
  transform: none !important;
  line-height: normal;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
}

/* When only fallback is present, keep badge size tidy beside DMCA */
.mf-histats-wrap #histats_counter:has(> .mf-histats-fallback:only-child) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.mf-histats-wrap #histats_counter > div,
.mf-histats-wrap #histats_counter > table,
.mf-histats-wrap #histats_counter > a {
  max-width: none !important;
  transform: none !important;
}

.mf-histats-wrap img:not(.mf-histats-pixel),
.mf-histats-wrap embed,
.mf-histats-wrap object,
.mf-histats-wrap iframe,
.mf-histats-wrap canvas,
.mf-histats-wrap .mf-histats-counter {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
  vertical-align: middle;
  border: 0;
}

/* Visible fallback only when Histats widget never mounts (CSP/network). Never beside live widget. */
.mf-histats-fallback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 150px;
  height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, #2a2f3a 0%, #1a1e27 100%);
  color: #f3f4f6 !important;
  text-decoration: none !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transform: none !important;
}

.mf-histats-fallback:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.mf-histats-fallback-label {
  text-transform: uppercase;
}

.mf-histats-fallback-sid {
  opacity: 0.7;
  font-weight: 600;
  font-size: 10px;
}

.mf-histats-pixel {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: 0;
  top: 0;
}

.mf-footer .mf-footer-badges {
  margin: 10px 0 8px;
}

.mf-footer .mf-histats-wrap {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Light theme overrides */

body.theme-light {
  background: #f4f4f7;
  color: #111827;
}

body.theme-light .hero-bg {
  background:
    radial-gradient(circle at top left, #dbeafe 0, #f4f4f7 55%),
    radial-gradient(circle at bottom right, #e5e7eb 0, #f4f4f7 55%);
}

body.theme-light .mf-header {
  background: linear-gradient(to bottom, rgba(249, 250, 251, 0.94), rgba(249, 250, 251, 0.6));
}

body.theme-light .logo {
  color: #dc2626;
}

body.theme-light .search-box input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
  color: #111827;
}

body.theme-light .nav-toggle {
  background: rgba(15, 23, 42, 0.04);
  color: #111827;
}

body.theme-light .movie-card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.25);
}

body.theme-light .movie-card:hover {
  background: #f9fafb;
  box-shadow: 0 18px 35px rgba(148, 163, 184, 0.35);
}

body.theme-light .movie-poster {
  background-image: linear-gradient(145deg, #e5e7eb, #c4b5fd);
}

body.theme-light .mf-footer > p,
body.theme-light .mf-footer .fmenu {
  opacity: 0.8;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.chip-filter {
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.25;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  opacity: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.chip-filter:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.chip-filter.active {
  background: #ff3859;
  border-color: #ff3859;
  color: #fff;
}

body.theme-light .chip-filter {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

body.theme-light .chip-filter:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.32);
  color: #0f172a;
}

body.theme-light .chip-filter.active {
  background: #ff3859;
  border-color: #ff3859;
  color: #fff;
}

/* Detail: header sama seperti halaman publik lain (IDLIX global di bawah).
   Hanya backdrop/kontainer yang dibedakan agar gambar latar film tetap terlihat. */

body.mf-has-idlix-header .mf-header .mf-nav-group,
body.mf-has-idlix-header .mf-header .logo:not(.logo--idlix),
body.mf-has-idlix-header .mf-header .mf-nav:not(.mf-nav--idlix) {
  display: none !important;
}

/*
 * Detail = clean:
 * - Header transparan di ATAS hero (bukan bar hitam)
 * - Shell/footer hitam solid (bukan poster blur full-page)
 * - Full-page ::before dimatikan (itu sumber tampilan kotor intermittent)
 */
body.mf-page.detail-page #dt_contenedor,
body.detail-page #dt_contenedor {
  background: #0a0909 !important;
}

/* Offset header tetap ada supaya konten non-hero tidak ketiban;
   hero ditarik ke atas (negative margin) supaya nempel di bawah header. */
body.mf-page.detail-page:not(.mf-page-has-hero) #dt_contenedor,
body.detail-page.mf-no-page-hero #dt_contenedor {
  padding-top: var(--mf-header-offset, 72px);
}

body.mf-page.detail-page .mf-detail-backdrop:not([hidden]) {
  margin-top: calc(-1 * var(--mf-header-offset, 72px));
  width: 100%;
}

body.mf-page.detail-page .detail-main {
  position: relative;
  z-index: 1;
}

body.mf-page.detail-page .mf-footer {
  position: relative;
  z-index: 2;
  background: #0a0909;
  isolation: isolate;
}

.detail-page .hero-bg {
  display: none;
}

.detail-page::before,
.detail-page::after {
  content: none !important;
  display: none !important;
}

.detail-main {
  padding: 0 clamp(16px, 4vw, 48px) 48px;
}

.detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 2fr);
  gap: 40px;
  margin-bottom: 30px;
  align-items: stretch;
}

.detail-poster-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.detail-poster {
  width: clamp(240px, 24vw, 360px);
  height: auto;
  min-height: 360px;
  max-height: min(85vh, 560px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: linear-gradient(145deg, #6524ff, #ff3859);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.detail-poster-inner {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.72)
  );
  padding: 14px 12px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px 26px 26px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.detail-title {
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.detail-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-meta {
  font-size: 0.88rem;
  opacity: 0.82;
  color: rgba(255, 255, 255, 0.9);
}

/* Bar metadata detail ? dua baris: genre inline + badge halus */
.detail-meta-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-meta-primary,
.detail-meta-badges {
  margin: 0;
  padding: 0;
}

.detail-meta-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.35em;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.78);
}

.meta-year {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.meta-year:empty {
  display: none;
}

.detail-meta-primary > *:not(:first-child):not([hidden])::before {
  content: "?";
  margin-right: 0.45em;
  opacity: 0.42;
  font-weight: 400;
}

.meta-release {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.meta-release:empty,
.meta-release[hidden] {
  display: none;
}

.meta-genres {
  display: inline;
  color: rgba(255, 255, 255, 0.78);
}

.meta-genres--empty {
  opacity: 0.55;
  font-style: normal;
}

.meta-genre-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.meta-genre-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.meta-genre-sep {
  opacity: 0.38;
  margin: 0 0.4em;
  user-select: none;
}

.detail-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.25;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meta-badge:empty,
.meta-badge[hidden] {
  display: none !important;
}

.meta-badge--type:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.meta-badge--soft {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.meta-badge--quality {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.22);
  color: rgba(255, 200, 200, 0.95);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.meta-badge--rating {
  background: rgba(255, 193, 7, 0.09);
  border-color: rgba(255, 193, 7, 0.2);
  color: rgba(255, 224, 130, 0.98);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meta-badge--rating::before {
  content: "?";
  font-size: 0.72em;
  opacity: 0.85;
  margin-right: 1px;
}

.meta-badge--upcoming {
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.42);
  color: #ffd866;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.meta-badge--link {
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meta-badge--link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Legacy .tag ? dipakai halaman lain */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

.detail-genre-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.detail-genre-sep {
  opacity: 0.55;
  font-size: 0.78rem;
  user-select: none;
}

a.tag-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

a.tag-link:hover {
  background: rgba(229, 9, 20, 0.22);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
}

.tag--quality {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.35);
  color: #ffb4b4;
}

.detail-extra-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.82rem;
  opacity: 0.92;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta-label {
  opacity: 0.65;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-meta-value {
  font-weight: 600;
}

a.detail-meta-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.detail-meta-link:hover {
  color: #ff6b6b;
  border-color: rgba(229, 9, 20, 0.55);
}

.detail-upcoming-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #ffd866;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-play-main.btn-play-disabled,
.btn-play-main.btn-play-disabled:hover {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(10, 10, 10, 0.65);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding-top: 2px;
}

.detail-actions-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.detail-actions-primary .btn-play-main,
.detail-actions-primary .btn-play-trailer {
  flex: 0 1 auto;
  min-width: 0;
}

.detail-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Detail CTA ? premium (selaras hero/sorotan) */
body.detail-page .detail-actions-primary .mf-cta-premium:not(.mf-cta-premium--trailer) {
  background: linear-gradient(180deg, #f40612 0%, #d40812 52%, #b20710 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  min-height: 44px;
  padding: 0 22px 0 10px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  transform: none;
}

body.detail-page .detail-actions-primary .mf-cta-premium:not(.mf-cta-premium--trailer):hover,
body.detail-page .detail-actions-primary .mf-cta-premium:not(.mf-cta-premium--trailer):focus-visible {
  background: linear-gradient(180deg, #ff1a24 0%, #e50914 55%, #c40812 100%);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: none;
}

body.detail-page .detail-actions-primary .mf-cta-premium:not(.mf-cta-premium--trailer):active {
  opacity: 0.94;
  transform: none;
}

/* Trailer ? glass putih (beda dari tombol merah utama) */
body.detail-page .detail-actions-primary .mf-cta-premium--trailer {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.09) 52%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  min-height: 44px;
  padding: 0 20px 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  transform: none;
}

body.detail-page .detail-actions-primary .mf-cta-premium--trailer:hover,
body.detail-page .detail-actions-primary .mf-cta-premium--trailer:focus-visible {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.13) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: none;
}

body.detail-page .detail-actions-primary .mf-cta-premium--trailer:active {
  opacity: 0.94;
  transform: none;
}

body.detail-page .detail-actions-primary .btn-play-main.mf-cta-premium,
body.detail-page .detail-actions-primary .btn-play-trailer.mf-cta-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.detail-page .detail-actions-primary .btn-play-label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

body.detail-page .detail-actions-secondary .btn-detail-secondary {
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(20, 22, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Tombol expand ? Watchlist / Favorit / Bagikan / Beranda */
body.detail-page .detail-actions-secondary .btn-detail-expand {
  --mf-detail-expand-h: 42px;
  --mf-detail-expand-icon: 42px;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--mf-detail-expand-h);
  padding: 0 18px;
  padding-right: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 20, 26, 0.94);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: padding-right 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

body.detail-page .detail-actions-secondary .btn-detail-expand-label {
  display: inline-block;
  white-space: nowrap;
}

body.detail-page .detail-actions-secondary .btn-detail-expand-icon {
  --mf-detail-expand-glyph: 10px;
  position: absolute;
  top: 0;
  right: 0;
  width: var(--mf-detail-expand-icon);
  height: var(--mf-detail-expand-h);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(calc(var(--mf-detail-expand-icon) + 1px));
  transition: transform 0.3s ease;
}

body.detail-page .detail-actions-secondary .btn-detail-expand-arrow,
body.detail-page .detail-actions-secondary .btn-detail-expand-check {
  width: var(--mf-detail-expand-glyph);
  height: var(--mf-detail-expand-glyph);
  transform: scale(1.45);
  transition: transform 0.3s ease;
}

body.detail-page .detail-actions-secondary .btn-detail-expand-check.second {
  display: none;
  position: absolute;
  transform: scale(0) translateY(50px);
}

body.detail-page .detail-actions-secondary .btn-detail-expand-loader {
  --mf-detail-expand-loader: 22px;
  width: var(--mf-detail-expand-loader);
  height: var(--mf-detail-expand-loader);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  animation: mf-detail-expand-spin 1.2s linear infinite;
  transition: opacity 0.35s ease 0.15s;
}

@keyframes mf-detail-expand-spin {
  0% {
    transform: scale(0.55) rotate(0deg);
  }
  100% {
    transform: scale(0.55) rotate(360deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.detail-page .detail-actions-secondary .btn-detail-expand:hover {
    padding-right: calc(18px + var(--mf-detail-expand-icon));
    background: rgba(28, 30, 38, 0.96);
    border-color: rgba(255, 255, 255, 0.2);
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand:hover > .btn-detail-expand-icon {
    transform: translateX(0);
    transition: transform 0.3s ease 0.05s;
  }
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loading,
body.detail-page .detail-actions-secondary .btn-detail-expand.loading:hover {
  padding-right: calc(18px + var(--mf-detail-expand-icon));
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loading > .btn-detail-expand-icon,
body.detail-page .detail-actions-secondary .btn-detail-expand.loading:hover > .btn-detail-expand-icon {
  transform: translateX(0);
  transition: transform 0.3s ease 0.05s;
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loading .btn-detail-expand-arrow {
  transform: scale(0);
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loading .btn-detail-expand-loader {
  opacity: 1;
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loaded .btn-detail-expand-loader {
  opacity: 0 !important;
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loaded .btn-detail-expand-arrow.first {
  display: none;
}

body.detail-page .detail-actions-secondary .btn-detail-expand.loaded .btn-detail-expand-check.second {
  display: block;
}

body.detail-page .detail-actions-secondary .btn-detail-expand.finished .btn-detail-expand-check.second {
  transform: scale(1.45) translateY(0);
}

body.detail-page .detail-actions-secondary .btn-detail-expand.is-active {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.14);
}

body.detail-page .detail-actions-secondary .btn-detail-expand:disabled,
body.detail-page .detail-actions-secondary .btn-detail-expand[aria-disabled="true"] {
  opacity: 0.88;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  body.detail-page .detail-actions-secondary .btn-detail-expand,
  body.detail-page .detail-actions-secondary .btn-detail-expand-icon,
  body.detail-page .detail-actions-secondary .btn-detail-expand-arrow,
  body.detail-page .detail-actions-secondary .btn-detail-expand-check {
    transition: none !important;
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand-loader {
    animation: none !important;
  }
}
body.detail-page .detail-actions-secondary .btn-detail-icon-glyph .mf-ui-icon {
  color: rgba(255, 255, 255, 0.94);
}
body.detail-page .detail-actions-secondary .btn-detail-secondary.is-active {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.14);
}
body.detail-page .detail-actions-secondary .btn-detail-secondary.is-active .btn-detail-icon-glyph .mf-ui-icon,
body.detail-page .detail-actions-secondary .btn-detail-secondary.is-active .btn-detail-icon-glyph .mf-ui-icon--fill {
  color: var(--accent, #e50914);
}

body.detail-page .detail-actions-secondary .btn-detail-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.detail-rating-block {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.detail-rating-block .audience-rating-panel {
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 14px 16px;
}

.detail-rating-block .your-rating-control {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 16px 12px;
  margin: 0;
  background: rgba(0, 0, 0, 0.15);
}

.btn-detail-icon {
  gap: 6px;
}

.btn-detail-icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.btn-detail-icon-glyph svg {
  display: block;
  width: 20px;
  height: 20px;
}

.detail-overview {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-overview-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
}

.detail-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

@media (max-width: 768px) {
  .detail-info {
    padding: 18px 16px 20px;
    gap: 16px;
  }

  .detail-actions {
    gap: 8px;
  }

  .detail-actions-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .detail-actions-primary .btn-play-main:only-child,
  .detail-actions-primary .btn-play-trailer.btn-play-main:only-child {
    grid-column: 1 / -1;
  }

  .detail-actions-primary .btn-play-main,
  .detail-actions-primary .btn-play-trailer,
  body.detail-page .detail-actions-primary .btn-play-main.mf-cta-premium,
  body.detail-page .detail-actions-primary .btn-play-trailer.mf-cta-premium {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 12px 0 8px;
    font-size: 0.82rem;
    border-radius: 4px;
  }

  body.detail-page .detail-actions-primary .mf-cta-play-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  body.detail-page .detail-actions-primary .mf-cta-play-icon .mf-play-svg {
    width: 26px;
    height: 26px;
  }

  .detail-actions-primary .btn-play-icon {
    font-size: 0.92rem;
  }

  .detail-actions-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .detail-actions-secondary .btn-detail-icon,
  body.detail-page .detail-actions-secondary .btn-detail-secondary.btn-detail-icon {
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 7px 4px;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand {
    --mf-detail-expand-h: 52px;
    --mf-detail-expand-icon: 28px;
    width: 100%;
    min-height: var(--mf-detail-expand-h);
    padding: 6px 4px 4px;
    padding-right: 4px;
    font-size: 0.68rem;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
    line-height: 1.1;
    text-align: center;
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand-icon {
    position: relative;
    transform: none;
    border-left: none;
    width: var(--mf-detail-expand-icon);
    height: var(--mf-detail-expand-icon);
    flex-shrink: 0;
  }

  body.detail-page .detail-actions-secondary .btn-detail-expand.loading,
  body.detail-page .detail-actions-secondary .btn-detail-expand.loading:hover {
    padding-right: 4px;
  }

  .detail-actions-secondary .btn-detail-icon-glyph {
    width: 1.15rem;
    height: 1.15rem;
  }

  .detail-actions-secondary .btn-detail-icon-glyph svg,
  .detail-actions-secondary .btn-detail-icon-glyph .mf-ui-icon {
    width: 17px;
    height: 17px;
  }

  .detail-actions-secondary .btn-detail-icon-label {
    display: none;
  }

  .detail-rating-block .audience-rating-panel {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "score main"
      "score badge";
    padding: 12px 14px;
  }

  .detail-rating-block .audience-score-box {
    grid-area: score;
  }

  .detail-rating-block .audience-rating-main {
    grid-area: main;
  }

  .detail-rating-block .your-rating-badge {
    grid-area: badge;
    justify-self: start;
  }

  .detail-rating-block .your-rating-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.btn-play-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-play-main:hover {
  background: #fff;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-play-main:active {
  transform: scale(0.98);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.btn-play-main:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-play-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Tombol Favorit & Kembali: bentuk memanjang, gelap, teks + ikon (sesuai gambar) */
.btn-detail-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(40, 44, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

a.btn-detail-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button.btn-detail-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-detail-secondary:hover {
  background: rgba(55, 60, 70, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-detail-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-detail-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-overview {
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body.mf-page.detail-page .page-breadcrumb {
  font-size: 0.8125rem;
  opacity: 0.65;
  letter-spacing: 0.01em;
}

body.mf-page.detail-page .page-breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

body.mf-page.detail-page .page-breadcrumb a:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.mf-page.detail-page #detailBreadcrumbCurrent {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.audience-rating-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
}

.audience-score-box {
  min-width: 64px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
}

.audience-rating-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.audience-stars {
  display: flex;
  gap: 2px;
}

.audience-stars .star {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
}

.audience-stars .star.filled {
  color: #ff2d2d;
}

.audience-votes {
  font-size: 0.78rem;
  opacity: 0.85;
}

.your-rating-badge {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.your-rating-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.your-rating-label {
  font-size: 0.82rem;
  opacity: 0.88;
}

.your-stars {
  display: inline-flex;
  gap: 2px;
}

.your-star {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.15s ease, background 0.15s ease;
}

.your-star:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.your-star.active {
  color: #ff2d2d;
}

.your-star.active:hover {
  color: #ff4d4d;
  transform: scale(1.2);
}

.detail-player-section {
  margin: 20px 0 28px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.detail-episode-nav {
  display: none;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 18, 0.82);
  box-shadow: none;
}

.detail-episode-nav.is-active-series-nav {
  display: flex;
}

.detail-episode-nav[hidden] {
  display: none !important;
}

.detail-episode-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px !important;
  font-size: 0.74rem !important;
  font-weight: 600;
  line-height: 1.15;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(248, 250, 252, 0.92) !important;
}

.detail-episode-nav-btn:hover:not(:disabled) {
  border-color: rgba(229, 9, 20, 0.45) !important;
  background: rgba(229, 9, 20, 0.14) !important;
}

.detail-episode-nav-btn--next {
  margin-left: 0;
}

.detail-episode-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 180, 192, 0.95);
  font-size: 0.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.detail-episode-nav .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.detail-episode-nav .btn-detail-secondary {
  min-height: 30px;
  box-shadow: none;
}

.detail-episode-now {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
  padding: 0 4px;
}

.detail-episodes-toolbar,
.detail-episode-search,
.detail-episode-sort-btn,
.detail-episode-search-empty {
  display: none !important;
}

.mf-player-shell.mf-player-switching {
  animation: mfPlayerEpisodeSwitch 0.46s ease;
}

@keyframes mfPlayerEpisodeSwitch {
  0% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.detail-sticky-player {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 140;
  border-radius: 14px;
  border: 1px solid rgba(255, 56, 89, 0.35);
  background: rgba(8, 10, 18, 0.94);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  animation: mfStickyPlayerIn 0.28s ease;
}

@keyframes mfStickyPlayerIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-sticky-player-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-sticky-player-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2d1b4e, #1a0a2e);
  background-size: cover;
  background-position: center;
}

.detail-sticky-player-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-sticky-player-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-sticky-player-sub {
  font-size: 0.74rem;
  color: rgba(203, 213, 225, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-sticky-player-action {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff6b81;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 56, 89, 0.14);
}

@media (min-width: 641px) and (max-width: 1024px) {
  .episodes-grid,
  .detail-episodes .episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 10px;
  }
}

@media (min-width: 1025px) {
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 12px;
  }
}

.detail-player-section .quality-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 10px;
  width: 100%;
}

.detail-player-mode {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 4;
  margin: 0;
  padding: 4px 9px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 235, 190, 0.95);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
  max-width: min(46%, 168px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

/* Player mobile: badge tidak menutupi area kontrol Bunny */
@media (max-width: 640px) {
  .detail-player-mode {
    top: max(5px, env(safe-area-inset-top, 0px));
    left: max(5px, env(safe-area-inset-left, 0px));
    font-size: 0.55rem;
    padding: 3px 7px;
    max-width: 40%;
  }
}

/* Frame elegan ? ukuran player 100% lebar konten, 16:9 (Bunny iframe isi penuh) */
.mf-player-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 10px 36px rgba(0, 0, 0, 0.42);
}

/* Menu Plyr terbuka: izinkan dropdown keluar frame sebentar */
.mf-player-shell:has(.plyr.plyr--menu-open) {
  overflow: visible;
  z-index: 24;
}

.player-wrapper.mf-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.mf-player-shell:has(.mf-player-stage--bunny),
.mf-player-shell:has(iframe.mf-detail-embed:not([style*="display: none"])) {
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.22),
    0 10px 36px rgba(0, 0, 0, 0.42);
}

.detail-player-section .quality-selector label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.detail-player-section select {
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.detail-player-section select:hover {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.detail-player-section select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
}

/* Pemutar: kotak 16:9 tetap (kayak situs streaming), isi video object-fit contain; portrait/landscape stabil */
/* Isi penuh area 16:9 ? ukuran video tidak ?loncat? lagi saat metadata / Plyr init */
.player-wrapper.mf-player-stage > .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.player-wrapper.mf-player-stage .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: #000;
}

.player-wrapper.mf-player-stage .plyr video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-wrapper.mf-player-stage > video.mf-detail-video,
.player-wrapper.mf-player-stage > video#detailVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
  background: #000;
}

.player-wrapper.mf-player-stage > iframe.mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: none;
  display: block;
  z-index: 3;
  background: #000;
  transition: opacity 0.22s ease;
}

/* Bunny iframe: jangan flash Plyr/native video di belakangnya */
.mf-player-stage--bunny > .plyr,
.mf-player-stage--bunny > video.mf-detail-video,
.mf-player-stage--bunny > video#detailVideo {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mf-player-shell--bunny-loading .mf-player-stage {
  background: #000;
}

.mf-player-shell--bunny-loading .mf-player-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #000;
  opacity: 0.35;
}

@keyframes mfBunnyPlayerPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

.mf-player-fallback {
  margin: 8px 0 0 !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f2f2 !important;
  font-size: 0.88rem;
}

.mf-player-stage--preroll {
  position: relative;
  background: #000;
}

.mf-player-stage--preroll > video.mf-detail-video,
.mf-player-stage--preroll > video#detailVideo,
.mf-player-stage--preroll.mf-player-stage--bunny > video.mf-detail-video,
.mf-player-stage--preroll.mf-player-stage--bunny > video#detailVideo {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  background: #000;
}

.mf-preroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.mf-preroll-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #f5c518;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mf-preroll-skip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  pointer-events: auto;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mf-preroll-skip.mf-preroll-skip--waiting,
.mf-preroll-skip:disabled {
  opacity: 0.72;
  cursor: default;
}

.mf-preroll-skip:not(:disabled):not(.mf-preroll-skip--waiting):hover {
  background: rgba(229, 9, 20, 0.92);
}

.mf-player-fallback a {
  color: #ff6b81;
  text-decoration: underline;
}

#resumeInfo,
.mf-player-help {
  display: none !important;
}

/* Plyr ? tema Meteorflix, kontrol di halaman kita (bukan iframe Bunny) */
.player-wrapper.mf-player-stage .plyr,
.detail-player-section > .player-wrapper > .plyr {
  --plyr-color-main: #e50914;
  --plyr-video-background: #000;
  --plyr-badge-background: rgba(0, 0, 0, 0.78);
  --plyr-badge-text-color: #fff;
  --plyr-font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --plyr-font-size-base: 13px;
  --plyr-font-size-small: 12px;
  --plyr-control-icon-size: 18px;
  --plyr-control-spacing: 8px;
  --plyr-control-radius: 8px;
  --plyr-control-padding: 7px;
  --plyr-range-thumb-height: 12px;
  --plyr-range-thumb-width: 12px;
  --plyr-range-thumb-background: #fff;
  --plyr-range-thumb-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  --plyr-range-track-height: 4px;
  --plyr-range-fill-background: #e50914;
  --plyr-range-track-background: rgba(255, 255, 255, 0.22);
  --plyr-menu-background: rgba(14, 14, 18, 0.97);
  --plyr-menu-color: #f2f2f2;
}

.player-wrapper.mf-player-stage .plyr__controls,
.detail-player-section > .player-wrapper .plyr__controls {
  padding: 8px max(10px, env(safe-area-inset-left, 0px), 2.5%)
    max(10px, env(safe-area-inset-bottom, 0px), 2.5%)
    max(10px, env(safe-area-inset-right, 0px), 2.5%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.player-wrapper.mf-player-stage .plyr__control {
  border-radius: 4px;
}

.player-wrapper.mf-player-stage .plyr__control:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-wrapper.mf-player-stage .plyr__control--overlaid,
.detail-player-section > .player-wrapper .plyr__control--overlaid {
  background: rgba(229, 9, 20, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.35);
}

.player-wrapper.mf-player-stage .plyr__control--overlaid:hover,
.detail-player-section > .player-wrapper .plyr__control--overlaid:hover {
  background: #ff1a2a;
}

.player-wrapper.mf-player-stage .plyr__progress__container {
  flex: 1;
  min-width: 48px;
}

.player-wrapper.mf-player-stage .plyr__time {
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

.player-wrapper.mf-player-stage .plyr__volume {
  max-width: 72px;
  min-width: 48px;
}

.player-wrapper.mf-player-stage .plyr.plyr--menu-open {
  z-index: 12;
}

.player-wrapper.mf-player-stage .plyr__control[data-plyr="settings"] {
  flex-shrink: 0;
}

.player-wrapper.mf-player-stage .plyr__menu__container {
  z-index: 30;
}

.player-wrapper.mf-player-stage .plyr__menu {
  max-height: min(280px, 52vh);
  overflow-y: auto;
}

/* Mobile: 2 baris ? progress penuh di atas, tombol rapi di bawah */
@media (max-width: 640px) {
  .player-wrapper.mf-player-stage .plyr {
    --plyr-control-icon-size: 16px;
    --plyr-control-spacing: 4px;
    --plyr-control-padding: 5px;
    --plyr-font-size-base: 11px;
    --plyr-font-size-small: 10px;
  }

  .player-wrapper.mf-player-stage .plyr__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px 4px;
    padding: 5px max(8px, env(safe-area-inset-left, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-right, 0px));
  }

  .player-wrapper.mf-player-stage .plyr__progress__container {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    padding: 0 1px;
  }

  .player-wrapper.mf-player-stage .plyr__control[data-plyr="play"] {
    order: 1;
  }

  .player-wrapper.mf-player-stage .plyr__time--current {
    order: 2;
    margin-right: 2px;
  }

  .player-wrapper.mf-player-stage .plyr__control[data-plyr="mute"] {
    order: 3;
  }

  .player-wrapper.mf-player-stage .plyr__control[data-plyr="pip"] {
    order: 4;
  }

  .player-wrapper.mf-player-stage .plyr__control[data-plyr="settings"] {
    order: 5;
    margin-left: auto;
  }

  .player-wrapper.mf-player-stage .plyr__control[data-plyr="fullscreen"] {
    order: 6;
  }

  .player-wrapper.mf-player-stage .plyr__control--overlaid {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
  }
}

/* Tombol play tengah ? bulat di semua mobile (bukan hanya body.mf-ios-player) */
@media (max-width: 768px) {
  .player-wrapper.mf-player-stage .plyr__control--overlaid,
  .detail-player-section > .player-wrapper .plyr__control--overlaid {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
  }

  .player-wrapper.mf-player-stage .plyr__control--overlaid svg,
  .detail-player-section > .player-wrapper .plyr__control--overlaid svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* iOS / touch ? pemutar native HLS (PWA & Safari) */
body.mf-ios-player .mf-player-shell {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.5);
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr,
body.mf-ios-player .detail-player-section > .player-wrapper > .plyr {
  --plyr-control-icon-size: 20px;
  --plyr-control-spacing: 6px;
  --plyr-control-padding: 10px;
  --plyr-font-size-base: 13px;
  --plyr-range-track-height: 5px;
  --plyr-range-thumb-height: 14px;
  --plyr-range-thumb-width: 14px;
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__controls,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__controls {
  padding: 10px max(12px, env(safe-area-inset-left, 0px))
    max(14px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-right, 0px));
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control:not(.plyr__control--overlaid),
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__control:not(.plyr__control--overlaid) {
  min-width: 44px;
  min-height: 44px;
}

/* Tombol play tengah ? wajib bulat, jangan ikut min-width bar kontrol */
body.mf-ios-player .plyr__control--overlaid,
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control--overlaid,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__control--overlaid {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 4 !important;
  transform: translate(-50%, -50%) !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  background: rgba(229, 9, 20, 0.94) !important;
  border: 2px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 28px rgba(229, 9, 20, 0.4) !important;
}

body.mf-ios-player .plyr__control--overlaid svg,
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control--overlaid svg,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__control--overlaid svg {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  margin: 0 !important;
  flex: none !important;
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__progress__container,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__progress__container {
  margin-bottom: 6px;
}

/* Sembunyikan kontrol video bawaan WebKit saat Plyr aktif */
body.mf-ios-player .plyr video::-webkit-media-controls,
body.mf-ios-player .plyr video::-webkit-media-controls-enclosure,
body.mf-ios-player .plyr video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.mf-ios-player .plyr.plyr--fullscreen-active {
  background: #000;
}

body.mf-ios-player .plyr.plyr--fullscreen-active .plyr__controls {
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

body.mf-ios-pwa-player .plyr__menu__container {
  max-height: min(240px, 42vh);
  border-radius: 12px;
}

/* iOS: cegah menu settings bocor ke tengah video (toggle radio) */
body.mf-ios-player .plyr__menu__container {
  position: absolute !important;
  right: max(8px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(100% + 6px) !important;
  left: auto !important;
  top: auto !important;
  z-index: 50;
  min-width: 168px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

body.mf-ios-player .plyr:not(.plyr--menu-open) .plyr__menu__container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.mf-ios-player .plyr__menu input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
}

body.mf-ios-player .plyr__menu label {
  -webkit-tap-highlight-color: transparent;
}

/* iOS: jangan pakai flex-wrap 2-baris ? rusak layout Plyr */
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__controls,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__controls {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__progress__container,
body.mf-ios-player .detail-player-section > .player-wrapper .plyr__progress__container {
  order: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 4px !important;
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control[data-plyr="play"],
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__time--current,
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control[data-plyr="mute"],
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control[data-plyr="pip"],
body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control[data-plyr="fullscreen"] {
  order: 0 !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}

body.mf-ios-player .player-wrapper.mf-player-stage .plyr__control {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.mf-ios-player .mf-player-shell:has(.plyr--menu-open),
body.mf-ios-player .player-wrapper.mf-player-stage:has(.plyr--menu-open) {
  overflow: visible !important;
  z-index: 30;
}

body.mf-ios-player .plyr__control svg {
  fill: currentColor;
  display: block;
  width: var(--plyr-control-icon-size, 18px);
  height: var(--plyr-control-icon-size, 18px);
}

.mf-pip-hint {
  position: absolute;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(100% + 8px);
  z-index: 40;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.mf-ios-player .mf-player-shell,
body.mf-ios-player .player-wrapper.mf-player-stage,
.detail-player-section > .player-wrapper {
  position: relative;
}

/* Sticky mini player tidak menutupi kontrol Plyr saat menu terbuka */
body:has(.plyr.plyr--menu-open) .detail-sticky-player {
  opacity: 0.35;
  pointer-events: none;
}

/* Halaman detail statis: .player-wrapper langsung di section */
.detail-player-section > .player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.detail-player-section > .player-wrapper > .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.detail-player-section > .player-wrapper .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  background: #000;
}

.detail-player-section > .player-wrapper .plyr video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-player-section > .player-wrapper > video#detailVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
  background: #000;
}

.detail-player-section > .player-wrapper iframe#detailEmbed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: none;
  display: block;
}

.detail-episodes {
  margin: 0 0 20px;
}

.detail-recommend {
  margin: 0 0 24px;
}

/* Card box ? admin preview only; public detail pages stay flat */
.admin-preview-frame--detail .detail-episodes,
.admin-preview-frame--detail .detail-recommend {
  background: rgba(10, 12, 18, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px;
  padding: 16px 18px 20px;
  box-sizing: border-box;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.detail-recommend .section-header {
  margin-bottom: 12px;
  padding: 0;
}

.detail-recommend .movie-grid,
.detail-episodes .episodes-list {
  margin: 0;
}

.episodes-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.episodes-list li:not(.episode-card):not(.admin-preview-ep-more) {
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.episodes-list li:not(.episode-card):not(.admin-preview-ep-more):hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.6);
}

.episode-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 16, 0.96);
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-btn:hover:not(:disabled) {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.18);
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.2);
}

.episode-btn:active:not(:disabled) {
  transform: translateX(2px);
}

.episode-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.episode-btn.is-active {
  border-color: rgba(229, 9, 20, 0.85);
  background: rgba(229, 9, 20, 0.28);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.35);
}

.episodes-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.episode-card {
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  display: flex;
  min-width: 0;
}

.episodes-list li.episode-card:hover {
  transform: none;
  border-color: transparent;
}

.episode-card-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: visible;
  position: relative;
  transition: outline-color 0.18s ease, transform 0.18s ease;
  outline: 1px solid transparent;
  outline-offset: 2px;
}

.episode-card-btn:hover:not(:disabled) {
  outline-color: rgba(229, 9, 20, 0.55);
  transform: translateY(-1px);
  box-shadow: none;
}

.episode-card-btn.is-active {
  outline-color: #e50914;
  box-shadow: none;
}

.episode-card-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.episode-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #2d1b4e, #1a0a2e);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.episode-card-watched-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(34, 197, 94, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.episode-card-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.episode-card-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff3859, #ff6b81);
  border-radius: 0 2px 2px 0;
  transition: width 0.25s ease;
}

.episode-card-btn.is-resume:not(.is-active) {
  outline-color: rgba(255, 107, 129, 0.75);
}

.episode-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 0;
  padding: 8px 2px 0;
  overflow: hidden;
  min-width: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.episode-card-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e50914;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card-title {
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 500;
  opacity: 0.9;
  display: block;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-play-trailer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(40, 44, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-play-trailer:hover {
  background: rgba(55, 60, 70, 0.98);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-play-trailer.btn-play-main {
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-play-trailer.btn-play-main:hover {
  background: #fff;
  transform: scale(1.03);
}

.detail-share-panel {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-share-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 8px;
}

.detail-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-share-telegram {
  text-decoration: none;
}

.detail-share-hint {
  margin: 10px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0.72;
}

.detail-share-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
}

.detail-share-status {
  margin: 8px 0 0;
  font-size: 0.78rem;
  opacity: 0.85;
}

.detail-credits {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-credits-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-credits-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.detail-credits-row dt {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.detail-credits-row dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.92;
}

.admin-trailer-hint {
  margin: 0 0 12px;
  opacity: 0.82;
}

.admin-box,
.admin-content {
  background: rgba(5, 8, 16, 0.9);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-form label {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 6px 8px;
  color: #f9fafb;
  font-size: 0.85rem;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.admin-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.admin-flags input {
  margin-right: 4px;
}

.admin-genre-quick {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-genre-quick-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.45;
}

.admin-genre-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-genre-quick-row select {
  flex: 1;
  min-width: 160px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

body.theme-light .admin-genre-quick {
  background: rgba(249, 250, 251, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
}

body.theme-light .admin-genre-quick-row select {
  background: #fff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.55);
}

.admin-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.server-videos-pick {
  margin-top: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.server-videos-pick label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.server-videos-pick code {
  font-size: 0.9em;
  padding: 0 0.25em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.server-videos-pick .server-videos-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  color: #f9fafb;
  font-size: 0.9rem;
}

.server-videos-pick .server-videos-search::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.server-videos-pick .server-videos-meta {
  margin: 0 0 8px;
  font-size: 0.8rem;
  opacity: 0.9;
}

.server-videos-pick select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  color: #f9fafb;
}

.server-videos-pick .btn {
  margin-right: 8px;
  margin-top: 4px;
}

body.theme-light .server-videos-pick {
  background: rgba(249, 250, 251, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

body.theme-light .server-videos-pick select {
  background: #fff;
  color: #111827;
}

body.theme-light .server-videos-pick .server-videos-search {
  background: #fff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.55);
}

body.theme-light .server-videos-pick code {
  background: rgba(0, 0, 0, 0.06);
}

.series-episodes-group {
  margin-top: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.series-episodes-group label {
  display: block;
  margin-bottom: 4px;
}

.episodes-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.episode-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.episode-row .ep-num {
  width: 100%;
  max-width: 60px;
}

.episode-row .ep-title {
  min-width: 0;
}

.episode-row .ep-url {
  min-width: 0;
}

.episode-row .ep-file {
  font-size: 0.75rem;
}

.episode-row .ep-remove {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .episode-row {
    grid-template-columns: 1fr 1fr auto;
  }
  .episode-row .ep-num { grid-column: 1; }
  .episode-row .ep-title { grid-column: 2; }
  .episode-row .ep-url { grid-column: 1 / -1; }
  .episode-row .ep-pick-server { grid-column: 1; }
  .episode-row .ep-file { grid-column: 2; }
  .episode-row .ep-remove { grid-column: 3; }
}

.admin-edit-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-content .movie-card {
  cursor: pointer;
}

.library-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-controls select,
.library-controls .library-search {
  background: rgba(5, 8, 16, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f9fafb;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.library-controls .library-search {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 320px;
}

.library-controls .library-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.library-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.78;
}

.privacy-settings-card {
  background: rgba(5, 8, 16, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}

.privacy-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.privacy-profile-grid {
  grid-template-columns: 1fr;
}

.privacy-profile-grid input {
  width: min(460px, 100%);
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.privacy-log-view {
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.85);
  padding: 10px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.continue-watching-grid.items.normal.carousel-row,
.continue-watching-grid.items.carousel-row,
body.home #contenedor #continueWatchingGrid.items.normal.carousel-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  grid-template-columns: none;
  gap: 14px;
  padding: 4px var(--mf-home-gutter, clamp(16px, 4vw, 48px)) 22px;
  box-sizing: border-box;
}

.continue-watching-grid.items.normal.carousel-row > .item,
.continue-watching-grid.items.carousel-row > .item,
body.home #contenedor #continueWatchingGrid.items.normal.carousel-row > .item {
  flex: 0 0 clamp(160px, 15vw, 215px);
  margin: 0;
}

.continue-watching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.continue-item {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 12, 24, 0.9);
}

.continue-item h3 {
  font-size: 0.86rem;
  margin: 0 0 8px;
}

.continue-item a {
  color: #93c5fd;
}

.continue-progress {
  height: 6px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.continue-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
}

body.theme-light .admin-box,
body.theme-light .admin-content {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
}

body.theme-light .admin-form input,
body.theme-light .admin-form select,
body.theme-light .admin-form textarea {
  background: #f9fafb;
  color: #111827;
}

body.theme-light .library-controls select {
  background: #ffffff;
  color: #111827;
}

/* Admin page polish */
.admin-page .admin-main {
  width: min(1360px, 94vw);
  margin: 0 auto;
  padding-top: var(--mf-header-offset, 72px);
  padding-bottom: 64px;
}

.admin-page .admin-hero-section {
  margin-top: 10px;
}

.admin-page .admin-page-header {
  padding: 4px 2px;
  margin-bottom: 16px;
}

.admin-page .admin-page-header .section-title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-page .admin-page-header .section-sub {
  font-size: 0.9rem;
  opacity: 0.78;
}

.admin-page .admin-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-page .admin-kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(7, 12, 24, 0.78);
  border-radius: 12px;
  padding: 10px 12px;
}

.admin-page .admin-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.admin-page .admin-kpi-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

.admin-page .admin-box,
.admin-page .admin-content {
  background: linear-gradient(165deg, rgba(9, 14, 28, 0.94), rgba(7, 11, 20, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  padding: 20px;
}

.admin-page .admin-panel-section {
  margin-top: 6px;
}

.admin-page .admin-login-row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page .admin-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(3px);
}

.admin-page .admin-otp-dialog {
  width: min(480px, 100%);
  background: linear-gradient(165deg, rgba(9, 14, 28, 0.96), rgba(7, 11, 20, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  padding: 20px;
  display: grid;
  gap: 10px;
}

.admin-page .admin-otp-dialog .section-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.admin-page .admin-otp-dialog .section-sub {
  margin: 0;
  opacity: 0.9;
  line-height: 1.45;
}

.admin-page #adminOtpCodeInput {
  width: 100%;
  min-height: 46px;
  height: 46px;
  border-radius: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-align: center;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 1rem;
}

.admin-page .admin-otp-actions {
  margin-top: 4px;
  gap: 8px;
  align-items: stretch;
}

.admin-page .admin-otp-actions .btn {
  min-height: 42px;
  line-height: 1;
}

.admin-page .admin-login-row input {
  min-width: min(100%, 280px);
  min-height: 46px;
  height: 46px;
  border-radius: 12px;
  padding: 0 14px;
  line-height: 1.2;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.admin-page #adminEmail {
  flex: 1 1 300px;
}

.admin-page .admin-login-row input::placeholder {
  opacity: 0.82;
}

.admin-page .admin-password-wrap {
  position: relative;
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}

.admin-page .admin-password-wrap #adminPassword {
  width: 100%;
  padding-right: 42px;
}

.admin-page .admin-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  cursor: pointer;
}

.admin-page .admin-password-toggle:hover {
  border-color: rgba(56, 189, 248, 0.6);
  color: #e2e8f0;
}

.admin-page .admin-password-toggle svg {
  display: block;
}

.admin-page #adminLoginBtn {
  min-height: 46px;
  height: 46px;
  padding-inline: 22px;
  font-weight: 700;
  border-radius: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

.admin-page .admin-login-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-page .admin-login-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 116, 144, 0.18);
  color: #7dd3fc;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-page .admin-login-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.4);
  color: #bfdbfe;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 36px;
}

.admin-page .admin-login-hint::before {
  content: "i";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.admin-page .admin-login-hint.is-loading {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(120, 53, 15, 0.28);
}

.admin-page .admin-login-hint.is-loading::before {
  content: "?";
}

.admin-page .admin-login-hint.is-success {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(20, 83, 45, 0.3);
}

.admin-page .admin-login-hint.is-success::before {
  content: "?";
}

.admin-page .admin-login-hint.is-error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.26);
}

.admin-page .admin-login-hint.is-error::before {
  content: "!";
}

.admin-page .admin-login-hint.is-shake {
  animation: adminHintShake 0.32s ease;
}

.admin-page .admin-login-hint.is-pop {
  animation: adminHintPop 0.32s ease;
}

@keyframes adminHintShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

@keyframes adminHintPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.admin-page .admin-caps-hint {
  margin-top: 10px;
  color: #fecaca;
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-login-hint.is-shake,
  .admin-page .admin-login-hint.is-pop {
    animation: none;
  }
}

.admin-page .admin-form {
  gap: 14px;
}

.admin-page .admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-page .admin-tab {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-align: center;
}

.admin-page .admin-tab:hover {
  border-color: rgba(255, 56, 89, 0.45);
  color: #fff;
}

.admin-page .admin-tab.is-active {
  background: linear-gradient(120deg, rgba(255, 56, 89, 0.95), rgba(224, 22, 58, 0.95));
  border-color: rgba(255, 56, 89, 0.8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.24);
}

.admin-page .admin-tab-help {
  font-size: 0.78rem;
  opacity: 0.85;
  margin: 4px 2px 10px;
  line-height: 1.5;
}

.admin-page .admin-tab-panel {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(2, 6, 14, 0.45), rgba(2, 6, 14, 0.25));
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.admin-page .admin-tab-panel + .admin-tab-panel {
  margin-top: 4px;
}

.admin-page .admin-tab-panel > .admin-grid + label,
.admin-page .admin-tab-panel > label + .admin-grid {
  margin-top: 14px;
}

.admin-page .admin-tab-panel > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.admin-page .admin-tab-panel.is-active {
  display: block;
}

.admin-page .admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-page .admin-form label {
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.96);
  min-width: 0;
}

.admin-page .admin-form label > .section-sub {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.45;
  opacity: 0.82;
}

.admin-page .admin-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.admin-page .admin-label-text {
  line-height: 1.3;
}

.admin-page .admin-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: help;
}

.admin-page .admin-help-trigger {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.admin-page .admin-help:hover .admin-help-trigger {
  border-color: rgba(255, 56, 89, 0.9);
  color: #fff;
}

.admin-page .admin-help-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 3000;
  min-width: 220px;
  max-width: min(340px, calc(100vw - 24px));
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 14, 0.98);
  color: #e2e8f0;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.admin-page .admin-help-tooltip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
}

.admin-page .admin-help:hover .admin-help-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-page .admin-form input,
.admin-page .admin-form select,
.admin-page .admin-form textarea {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.admin-page .admin-form textarea {
  min-height: 96px;
}

.admin-page .admin-form input:focus,
.admin-page .admin-form select:focus,
.admin-page .admin-form textarea:focus,
.admin-page .server-videos-pick select:focus,
.admin-page .server-videos-pick .server-videos-search:focus {
  outline: none;
  border-color: rgba(255, 56, 89, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 56, 89, 0.2);
}

.admin-page .video-sources-group,
.admin-page .series-episodes-group {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.admin-page .video-sources-group > label,
.admin-page .series-episodes-group > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-page .video-sources-group .section-sub,
.admin-page .series-episodes-group .section-sub {
  margin: 0 0 10px;
  line-height: 1.55;
  font-size: 0.78rem;
  opacity: 0.85;
}

.admin-page .admin-form-row .btn {
  min-height: 40px;
  font-weight: 600;
}

.admin-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-page .admin-panel-section + .admin-panel-section {
  margin-top: 18px;
}

.admin-page .section-title {
  line-height: 1.2;
}

.admin-page .admin-form .section-sub {
  line-height: 1.5;
}

.admin-page .admin-form .section-sub strong {
  color: #f8fafc;
}

.admin-page .admin-form input:hover,
.admin-page .admin-form select:hover,
.admin-page .admin-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.admin-page .admin-form .btn {
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.admin-page .admin-form .btn:hover {
  filter: brightness(1.04);
}

.admin-page .admin-form .btn:active {
  transform: translateY(1px);
}

.admin-page .admin-form .btn.btn-primary {
  background: linear-gradient(120deg, #ff3859, #e11d48);
  box-shadow: 0 10px 18px rgba(225, 29, 72, 0.28);
}

.admin-page .admin-form .btn.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.72);
}

.admin-page .video-sources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}

.admin-page .video-source-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) auto;
  grid-template-areas:
    "quality url remove"
    "file file file";
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 14, 0.3);
  min-width: 0;
  overflow: hidden;
}

.admin-page .video-source-row .vs-quality {
  grid-area: quality;
  min-width: 0;
  width: 100%;
}

.admin-page .video-source-row .vs-url {
  grid-area: url;
  min-width: 0;
  width: 100%;
}

.admin-page .video-source-row .vs-file {
  grid-area: file;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.78rem;
}

.admin-page .video-source-row .vs-remove {
  grid-area: remove;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.admin-page .admin-network-logos-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-page .admin-inline-subtitle {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}

.admin-page .network-logos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}

.admin-page .network-logo-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr) auto auto auto;
  grid-template-areas:
    "name url pick save remove"
    "preview preview preview preview preview";
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 14, 0.3);
  min-width: 0;
}

.admin-page .network-logo-row .nl-name {
  grid-area: name;
  min-width: 0;
  width: 100%;
}

.admin-page .network-logo-row .nl-url {
  grid-area: url;
  min-width: 0;
  width: 100%;
}

.admin-page .network-logo-row .nl-pick-catalog {
  grid-area: pick;
}

.admin-page .network-logo-row .nl-save-catalog {
  grid-area: save;
}

.admin-page .network-logo-row .nl-remove {
  grid-area: remove;
}

.admin-page .network-logo-row .nl-preview {
  grid-area: preview;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
}

.admin-page .network-logo-row .nl-preview img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.admin-page .network-logo-row .nl-preview-label {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

.admin-page .network-logo-row .nl-remove {
  min-width: auto;
  min-height: 38px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.admin-page .admin-network-logo-actions {
  margin-top: 10px;
}

body.theme-light.admin-page .network-logo-row {
  background: rgba(248, 250, 252, 0.72);
  border-color: rgba(148, 163, 184, 0.35);
}

.admin-page .episodes-rows-list {
  margin-top: 12px;
}

.admin-page .episode-row {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 14, 0.28);
  padding: 12px;
}

.admin-page .episode-row input:not([type="file"]) {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.admin-page .episode-row .ep-title {
  font-size: 1rem;
}

.admin-page .episode-row .ep-remove {
  min-width: 36px;
  min-height: 36px;
}

.admin-page .admin-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
  margin-bottom: 0;
}

.admin-page .admin-flags label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(2, 6, 14, 0.35);
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.96);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-page .admin-flags label:hover {
  border-color: rgba(255, 56, 89, 0.45);
  background: rgba(15, 23, 42, 0.6);
}

.admin-page .admin-flags input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #ff3859;
  cursor: pointer;
}

.admin-page .admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.admin-page .admin-form-row .btn {
  flex: 0 1 auto;
}

.admin-page .admin-form-row .btn[type="submit"],
.admin-page .admin-form-row .btn.btn-primary {
  flex: 1 1 200px;
  justify-content: center;
}

.admin-page #adminList.movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.admin-page #adminList .movie-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-page #adminList .movie-card:hover {
  border-color: rgba(255, 56, 89, 0.48);
}

.admin-page .admin-view-detail {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff7a92;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-page .admin-view-detail:hover {
  color: #ffffff;
}

body.theme-light.admin-page .admin-box,
body.theme-light.admin-page .admin-content {
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

body.theme-light.admin-page .admin-form label {
  color: #1e293b;
}

body.theme-light.admin-page .admin-form input,
body.theme-light.admin-page .admin-form select,
body.theme-light.admin-page .admin-form textarea {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  color: #0f172a;
}

body.theme-light.admin-page .admin-help-trigger {
  background: #fff;
  color: #0f172a;
}

body.theme-light.admin-page .admin-help-tooltip {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
}

body.theme-light.admin-page .video-sources-group,
body.theme-light.admin-page .series-episodes-group {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light.admin-page .admin-tab {
  background: #ffffff;
  color: #0f172a;
}

body.theme-light.admin-page .admin-inline-help {
  opacity: 0.95;
}

body.theme-light.admin-page .admin-form .section-sub strong {
  color: #0f172a;
}

body.theme-light.admin-page .admin-form input:hover,
body.theme-light.admin-page .admin-form select:hover,
body.theme-light.admin-page .admin-form textarea:hover {
  border-color: rgba(71, 85, 105, 0.55);
}

body.theme-light.admin-page .admin-form .btn.btn-secondary {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
}

body.theme-light.admin-page .video-source-row {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light.admin-page .episode-row {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light.admin-page .admin-flags {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
}

body.theme-light.admin-page .admin-flags label {
  color: #0f172a;
}

@media (max-width: 900px) {
  .admin-page .admin-flags {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

body.theme-light.admin-page .admin-login-badge {
  border-color: rgba(14, 116, 144, 0.35);
  background: rgba(186, 230, 253, 0.55);
  color: #0e7490;
}

body.theme-light.admin-page .admin-login-hint {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(239, 246, 255, 0.9);
  color: #1e3a8a;
}

body.theme-light.admin-page .admin-login-hint.is-loading {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
  background: rgba(254, 243, 199, 0.95);
}

body.theme-light.admin-page .admin-login-hint.is-success {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(220, 252, 231, 0.95);
}

body.theme-light.admin-page .admin-login-hint.is-error {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(254, 226, 226, 0.95);
}

body.theme-light.admin-page .admin-password-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  border-color: rgba(148, 163, 184, 0.55);
}

body.theme-light.admin-page .admin-otp-modal {
  background: rgba(15, 23, 42, 0.45);
}

body.theme-light.admin-page .admin-otp-dialog {
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

body.theme-light.admin-page .admin-caps-hint {
  color: #b91c1c;
}

body.theme-light.admin-page .admin-tab-panel {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
}

.admin-toast-wrap {
  position: fixed;
  top: 82px;
  right: 14px;
  width: min(420px, calc(100vw - 20px));
  z-index: 1600;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-toast {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  padding: 12px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  transform: translateX(10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.is-show {
  transform: translateX(0);
  opacity: 1;
}

.admin-toast.is-hide {
  opacity: 0;
  transform: translateX(8px);
}

.admin-toast-title {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 3px;
}

.admin-toast-message {
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-toast.success {
  border-color: rgba(34, 197, 94, 0.75);
}

.admin-toast.error {
  border-color: rgba(248, 113, 113, 0.75);
}

.admin-toast.info {
  border-color: rgba(96, 165, 250, 0.75);
}

.admin-page .episode-row {
  display: grid;
  grid-template-columns: 28px 56px minmax(0, 1fr) auto;
  grid-template-areas:
    "drag num title remove"
    "drag poster poster poster"
    "drag url url url"
    "drag pick pick pick"
    "drag file file file";
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.admin-page .episode-row .ep-drag-handle {
  grid-area: drag;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(148, 163, 184, 0.85);
  font-size: 1rem;
  cursor: grab;
  user-select: none;
  border-radius: 8px;
  align-self: start;
  margin-top: 4px;
}

.admin-page .episode-row .ep-drag-handle:active {
  cursor: grabbing;
}

.admin-page .episode-row.is-dragging {
  opacity: 0.58;
}

.admin-page .episode-row.is-drop-target {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.admin-page .episode-row .ep-num {
  grid-area: num;
  width: 100%;
  max-width: 56px;
}

.admin-page .episode-row .ep-title {
  grid-area: title;
  min-width: 0;
  width: 100%;
}

.admin-page .episode-row .ep-poster {
  grid-area: poster;
  min-width: 0;
  width: 100%;
}

.admin-page .episode-row .ep-url {
  grid-area: url;
  min-width: 0;
  width: 100%;
}

.admin-page .episode-row .ep-pick-server {
  grid-area: pick;
  white-space: nowrap;
  font-size: 0.78rem;
  padding-inline: 10px;
}

.admin-page .episode-row .ep-file {
  grid-area: file;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.78rem;
}

.admin-page .episode-row .ep-remove {
  grid-area: remove;
}

/* Admin panel tweaks untuk tablet & mobile agar tidak tabrakan */
@media (max-width: 1024px) {
  .admin-page .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 700px) {
  .admin-page .admin-tab-panel {
    padding: 14px;
  }

  .admin-page .admin-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-page .admin-form label {
    width: 100%;
  }

  .admin-page .admin-genre-quick {
    margin-top: 4px;
  }

  .admin-page .admin-genre-quick-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-genre-quick-row .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-page .video-sources-group,
  .admin-page .series-episodes-group {
    padding: 12px;
  }

  .admin-page .admin-video-actions .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .admin-page .admin-flags {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-form-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive */

.mf-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.nav-open .mf-nav-backdrop {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .mf-header.mf-header--legacy {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 12px;
  }

  .mf-header.mf-header--legacy .nav-toggle {
    margin-left: auto;
  }

  .search-box {
    order: 10;
    width: 100%;
    max-width: none;
  }

  .search-box input,
  .mf-search-form input {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mf-nav:not(.mf-nav--idlix) {
    position: fixed;
    inset: 56px 0 auto 0;
    left: 0;
    right: 0;
    padding: 16px 5vw 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-120%);
    transition: transform 0.22s ease;
    z-index: 19;
  }

  body.nav-open .mf-nav:not(.mf-nav--idlix) {
    transform: translateY(0);
  }

  .mf-nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mf-nav-group:last-child {
    border-bottom: none;
  }

  .mf-nav-group-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
  }

  .mf-nav-links {
    flex-direction: column;
    gap: 2px;
  }

  .mf-nav-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    opacity: 1;
  }

  .mf-nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mf-nav-links a.active {
    background: rgba(255, 56, 89, 0.2);
    color: #ff3859;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 70px;
  }

  .hero-right {
    justify-self: start;
  }

  .hero-poster {
    max-width: 220px;
  }

  .detail-main {
    padding-top: 70px;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-poster-col {
    align-items: center;
    min-height: 0;
  }

  .detail-poster {
    height: auto;
    width: min(86vw, 340px);
    max-width: 340px;
    min-height: 0;
    max-height: none;
  }

  .btn-play-main {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .btn-detail-secondary {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  .audience-rating-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-page .admin-main {
    width: min(1360px, 96vw);
    padding-top: 78px;
  }

  .admin-page .admin-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-box,
  .admin-page .admin-content {
    padding: 14px;
  }

  .admin-page .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-page .admin-tab {
    width: auto;
    flex: 0 0 auto;
    min-width: 136px;
  }

  .admin-page .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .admin-page .video-source-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "quality remove"
      "url url"
      "file file";
  }

  .admin-page .video-source-row .vs-quality,
  .admin-page .video-source-row .vs-url,
  .admin-page .video-source-row .vs-file {
    grid-column: auto;
  }

  .admin-page .video-source-row .vs-remove {
    justify-self: end;
  }

  .admin-page .network-logo-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name remove"
      "url url"
      "pick pick"
      "save save"
      "preview preview";
  }

  .admin-page .network-logo-row .nl-name {
    grid-area: name;
  }

  .admin-page .network-logo-row .nl-url {
    grid-area: url;
  }

  .admin-page .network-logo-row .nl-preview {
    grid-area: preview;
  }

  .admin-page .network-logo-row .nl-remove {
    grid-area: remove;
    justify-self: end;
  }

  .admin-page .episode-row {
    grid-template-columns: 28px 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "drag num title remove"
      "drag poster poster poster"
      "drag url url url"
      "drag pick pick pick"
      "drag file file file";
  }

  .admin-toast-wrap {
    top: 72px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .admin-page .admin-kpi {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-login-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-login-row input {
    min-width: 100%;
  }

  .admin-page .admin-password-wrap {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .admin-page #adminLoginBtn {
    width: 100%;
  }

  .admin-page .admin-otp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-otp-dialog {
    padding: 14px;
    gap: 8px;
  }

  .admin-page #adminOtpCodeInput {
    letter-spacing: 0.1em;
    font-size: 0.96rem;
  }

  .admin-page .admin-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-form-row .btn {
    justify-content: center;
  }

  .admin-page .episode-row {
    grid-template-columns: 28px 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "drag num title remove"
      "drag poster poster poster"
      "drag url url url"
      "drag pick pick pick"
      "drag file file file";
  }
  .admin-page .episode-row .ep-num,
  .admin-page .episode-row .ep-title,
  .admin-page .episode-row .ep-poster,
  .admin-page .episode-row .ep-url,
  .admin-page .episode-row .ep-pick-server,
  .admin-page .episode-row .ep-file,
  .admin-page .episode-row .ep-remove {
    grid-column: auto;
  }

  .admin-page .episode-row .ep-poster {
    grid-area: poster;
  }

  .admin-page .episode-row .ep-pick-server {
    width: 100%;
    justify-content: center;
  }
}

/* Meteorflix portal homepage (IDLIX-inspired, sanitized) */

body.home {
  font-family: "Quicksand", system-ui, sans-serif;
  background: #0a0909;
  color: #f2f2f2;
}

body.home .hero-bg {
  display: none;
}

#dt_contenedor {
  background: #0a0909;
}

header.main:not(.mf-header) {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

header.main .hbox,
#contenedor,
footer.main .fbox {
  width: min(1500px, 95vw);
  margin: 0 auto;
}

.fix-hidden {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.head-main-nav {
  flex: 1;
}

.head-main-nav ul.main-header {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
}

.head-main-nav ul.main-header li a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  color: #f2f2f2;
  font-size: 0.9rem;
}

.head-main-nav ul.main-header li a:hover {
  background: rgba(229, 9, 20, 0.2);
  color: #e50914;
}

.headitems .search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.headitems .search input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
}

.search-button {
  border: none;
  border-radius: 999px;
  background: #e50914;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

#contenedor {
  padding: 16px 0 26px;
}

.module .content.full_width_layout.full {
  width: 100%;
}

.module_home_ads .alert-box {
  margin: 0 0 16px;
  background: #1c1c1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  line-height: 1.6;
  padding: 12px 14px;
  font-size: 0.88rem;
}

/* Area banner: slot penuh kolom, GIF leaderboard di-cap 728px (ala Idlix) di dalamnya */
.module_home_ads {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.kalongrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.kalongcolumn {
  min-width: 0;
}

.kalongcolumn img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 0;
  border: 0;
}

.mf-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  border: 0;
  width: 100%;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 728 / 90;
  background: rgba(12, 12, 14, 0.95);
}

.mf-banner-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.mf-banner-module {
  margin-bottom: 16px;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.mf-banner-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-banner-row .kalongcolumn {
  min-width: 0;
}

.mf-banner-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex-shrink: 0;
  image-rendering: auto;
}

.module_home_ads .badge {
  display: inline-block;
  background: #e50914;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
}

.module .content > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0 12px;
  padding-bottom: 8px;
}

.module .content > header h2 {
  font-size: 1.1rem;
  border-left: 4px solid #e50914;
  padding-left: 9px;
}

.module .content > header .see-all {
  color: #ffe3ea;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 6px;
}

.nav_items_module {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav_items_module .nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
}

.nav_items_module .nav-btn:hover {
  border-color: #e50914;
  color: #e50914;
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.carousel-row {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.carousel-row .item {
  flex: 0 0 min(180px, 42vw);
}

.admin-page .items .item {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.admin-page .movie-grid .item {
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.admin-page .items .item:hover,
.admin-page .movie-grid .item:hover {
  transform: translateY(-6px);
  border-color: #e50914;
  background: #141414;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.9);
}

.item .poster {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.item .poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.item .poster .rating,
.item .poster .quality,
.item .poster .featu {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.72rem;
}

.item .poster .quality,
.item .poster .featu {
  top: auto;
  bottom: 8px;
}

.item .poster .featu.featu--soon,
.item.is-upcoming .poster .featu {
  top: 12px;
  bottom: auto;
}

.item .poster .quality {
  background: #8b1018;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.item .poster .see.play4 {
  position: absolute;
  inset: 0;
}
.item .poster .see.play4 {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    background-color 0.18s ease;
}

.items .item:hover .poster .see.play4,
.movie-grid .item:hover .poster .see.play4 {
  opacity: 1;
}

.item .poster .see.play4::before {
  content: "Meteorflix";
  font-family: "Quicksand", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e50914;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 4px 18px rgba(0, 0, 0, 0.9);
}

.items .item:hover .poster img,
.movie-grid .item:hover .poster img {
  transform: scale(1.03);
  filter: blur(1px) brightness(0.6);
}

.item .data {
  padding: 10px;
}

.item .data h3 {
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 6px;
  min-height: 2.2em;
}

.item .data h3 a:hover {
  color: #e50914;
}

.item .data span {
  font-size: 0.76rem;
  opacity: 0.78;
}

.movie-grid .item .data h3 {
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 6px;
  min-height: 2.2em;
}

.movie-grid .item .data span {
  font-size: 0.76rem;
  opacity: 0.78;
}

footer.main {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 20px;
  padding-top: 18px;
}

.fcmpbox .primary {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.columenu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.columenu .item h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.25;
  padding-bottom: 0.12em;
  overflow: visible;
}

.columenu .menu,
.fmenu .menu {
  list-style: none;
  display: grid;
  gap: 6px;
}

.columenu .menu li,
.fmenu .menu li {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.columenu .menu a,
.fmenu .menu a {
  font-size: 0.82rem;
  color: #ddd;
  display: inline-block;
  line-height: 1.3;
  padding: 2px 0;
}

.columenu .menu a:hover,
.fmenu .menu a:hover {
  color: #e50914;
}

.fotlogo .logo {
  color: #e50914;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.fotlogo .text p {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.55;
}

footer.main .copy {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.fmenu .menu {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

@media (max-width: 980px) {
  .fix-hidden {
    flex-wrap: wrap;
  }

  .head-main-nav {
    order: 3;
    width: 100%;
  }

  .head-main-nav ul.main-header {
    flex-wrap: wrap;
  }

  .headitems .search input {
    width: 170px;
  }

  .items {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .kalongrow {
    grid-template-columns: 1fr;
  }

  .fcmpbox .primary {
    grid-template-columns: 1fr;
  }

  .columenu {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   METEORFLIX IDLIX-MAKEOVER (Phase 1 + 2)
   Hanya berlaku untuk halaman publik (.admin-page tidak terdampak).
   ===================================================================== */

body:not(.admin-page) {
  background: #000000 !important;
  color: #f0f0f0;
  font-family: "Inter", "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body:not(.admin-page) .hero-bg {
  display: none !important;
}

body:not(.admin-page) #dt_contenedor,
body:not(.admin-page) #contenedor,
body.home #dt_contenedor,
body.home #contenedor {
  background: #000000;
}

/* --- Skala dasar: tidak terlalu kecil di PC / HP --- */
html {
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  min-width: 0;
}

body {
  width: 100%;
  max-width: 100%;
}

body.mf-has-idlix-header #dt_contenedor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }
}

/* Teks catatan teknis / admin ? jangan tampil ke pengunjung */
body:not(.admin-page) .mf-dev-note,
body:not(.admin-page) .section-sub.mf-dev-note {
  display: none !important;
}

/* --- Header IDLIX: toggle is-scrolled + transition 500ms (pola asli Idlix/Tailwind) --- */
body.mf-has-idlix-header {
  --mf-header-bar-h: 56px;
  --mf-header-pill-inset-x: clamp(18px, 4vw, 44px);
  --mf-header-pill-top: 12px;
  --mf-header-ease: cubic-bezier(0, 0, 0.2, 1);
  /* Fallback sebelum JS ukur; nilai live di-set site-header.js pada body */
  --mf-header-offset: 72px;
}

body.mf-has-idlix-header {
  overflow-x: clip;
}

html:has(body.mf-has-idlix-header) {
  overflow-x: clip;
}

/* IDLIX: site-header transition-all duration-500 ease-out */
body.mf-has-idlix-header .mf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 120;
  margin: 0;
  padding: 0;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  transition: top 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1));
}

body.mf-has-idlix-header.is-scrolled .mf-header {
  top: var(--mf-header-pill-top, 12px);
}

body.mf-has-idlix-header .mf-header-inner {
  --mf-pill-inset-l: max(var(--mf-header-pill-inset-x, 16px), env(safe-area-inset-left, 0px));
  --mf-pill-inset-r: max(var(--mf-header-pill-inset-x, 16px), env(safe-area-inset-right, 0px));
  --mf-header-inset-total: calc(var(--mf-pill-inset-l) + var(--mf-pill-inset-r));
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%;
  max-width: min(1400px, 100%);
  margin-left: auto;
  margin-right: auto;
  min-height: var(--mf-header-bar-h, 56px);
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    clamp(14px, 3vw, 40px)
    10px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
  overflow: visible;
  transition:
    width 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    max-width 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    margin 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    padding 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    border-radius 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    background 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    border-color 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1)),
    box-shadow 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1));
}

body.mf-has-idlix-header.is-scrolled .mf-header-inner {
  width: calc(100% - var(--mf-header-inset-total));
  max-width: min(1400px, calc(100% - var(--mf-header-inset-total)));
  padding: 8px clamp(14px, 2.5vw, 22px);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  body.mf-has-idlix-header .mf-header,
  body.mf-has-idlix-header .mf-header-inner {
    transition: none;
  }
}

/* Mobile: keep top + inner 500ms (IDLIX) ? jangan snap saat restore/same-page */
@media (max-width: 1024px) {
  body.mf-has-idlix-header .mf-header {
    transition: top 0.5s var(--mf-header-ease, cubic-bezier(0, 0, 0.2, 1));
  }
}

body.mf-has-idlix-header .mf-header,
body.mf-has-idlix-header header.mf-header {
  border-bottom: none !important;
  background: transparent !important;
}

body.mf-has-idlix-header .mf-header .logo.logo--idlix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  line-height: 1;
}

body.mf-has-idlix-header .mf-header .logo-mark {
  font-weight: 900;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e50914;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

body.mf-has-idlix-header .mf-header .logo-mark--accent {
  color: #ff1a2a;
}

body.mf-has-idlix-header .mf-header .logo:not(.logo--idlix) {
  flex-shrink: 0;
  font-weight: 900;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e50914;
  text-decoration: none;
}

body.mf-has-idlix-header .mf-header .mf-nav.mf-nav--idlix {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.mf-nav-more {
  position: relative;
  flex-shrink: 0;
}

.mf-nav-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

.mf-nav-more-trigger .mf-nav-icon--chevron {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.mf-nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 12, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 210;
}

.mf-nav-more-menu[hidden] {
  display: none !important;
}

.mf-nav-more-menu .mf-nav-link {
  display: flex;
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
}

.mf-nav-mobile-more {
  display: none;
}

@media (min-width: 1025px) {
  .mf-nav-mobile-more {
    display: none !important;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  body.mf-has-idlix-header .mf-header .mf-nav-link {
    padding: 5px 9px;
    font-size: 0.84rem;
    gap: 4px;
  }

  body.mf-has-idlix-header .mf-header .mf-nav-link .mf-nav-icon {
    width: 14px;
    height: 14px;
  }

  body.mf-has-idlix-header .mf-account-trigger .mf-account-trigger-label {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body.mf-has-idlix-header .mf-header .mf-nav.mf-nav--idlix::-webkit-scrollbar {
  display: none;
}

body.mf-has-idlix-header .mf-header .mf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.875rem, 1vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

body.mf-has-idlix-header .mf-header .mf-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
  stroke: currentColor;
  shape-rendering: geometricPrecision;
}

body.mf-has-idlix-header .mf-header .mf-nav-icon--lg {
  width: clamp(20px, 1.6vw, 22px);
  height: clamp(20px, 1.6vw, 22px);
}

body.mf-has-idlix-header .mf-header .mf-nav-link .mf-nav-icon {
  width: 16px;
  height: 16px;
}

body.mf-has-idlix-header .mf-header .mf-nav-link.active .mf-nav-icon {
  color: #ffffff;
}

body.mf-has-idlix-header .mf-header .mf-nav-link:hover,
body.mf-has-idlix-header .mf-header .mf-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.mf-has-idlix-header .mf-search-trigger .mf-nav-icon,
body.mf-has-idlix-header .mf-nav-toggle .mf-nav-icon {
  color: #fff;
}

/* Urutan header IDLIX: logo kiri | nav tengah | akun + search kanan */
body.mf-has-idlix-header .mf-header-inner > .logo,
body.mf-has-idlix-header .mf-header-inner > .logo.logo--idlix {
  flex-shrink: 0;
  order: 0;
}

body.mf-has-idlix-header .mf-header-inner > .mf-nav.mf-nav--idlix {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  order: 1;
  pointer-events: none;
}

body.mf-has-idlix-header .mf-header-inner > .mf-nav.mf-nav--idlix .mf-nav-link,
body.mf-has-idlix-header .mf-header-inner > .mf-nav.mf-nav--idlix .mf-nav-more,
body.mf-has-idlix-header .mf-header-inner > .mf-nav.mf-nav--idlix .mf-nav-more-trigger {
  pointer-events: auto;
}

body.mf-has-idlix-header .mf-header-inner > .mf-header-actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
  order: 2;
  position: relative;
  z-index: 150;
}

/* Tombol search icon saja (IDLIX) */
body.mf-has-idlix-header .mf-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 125;
  pointer-events: auto;
}

body.mf-has-idlix-header .mf-search-trigger {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

body.mf-has-idlix-header .mf-search-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.mf-has-idlix-header.is-scrolled .mf-search-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Overlay pencarian IDLIX */
.mf-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 12vh, 120px) clamp(16px, 4vw, 48px) 24px;
}

.mf-search-overlay[hidden] {
  display: none !important;
}

.mf-search-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.mf-search-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.mf-search-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mf-search-overlay-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.mf-search-overlay-close {
  position: static;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-search-overlay-body {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mf-search-overlay-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: rgba(22, 22, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.mf-search-overlay-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.55);
}

.mf-search-overlay-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  padding: clamp(16px, 2vh, 20px) 12px clamp(16px, 2vh, 20px) 0;
  outline: none;
}

.mf-search-overlay-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mf-search-overlay-submit {
  flex: 0 0 auto;
  border: 0;
  background: #e50914;
  color: #fff;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: clamp(16px, 2vh, 20px) clamp(22px, 3vw, 32px);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mf-search-overlay-submit:hover {
  background: #ff1a2a;
}

body.mf-search-open {
  overflow: hidden;
}

body.mf-has-idlix-header .mf-header .nav-toggle,
body.mf-has-idlix-header .mf-nav-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.mf-has-idlix-header .mf-header .nav-toggle:hover,
body.mf-has-idlix-header .mf-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.nav-open .mf-nav-toggle svg {
  opacity: 0.85;
}

body.mf-has-idlix-header .mf-header .mf-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  min-height: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

body.mf-has-idlix-header .mf-header .mf-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.mf-has-idlix-header .mf-header .mf-nav a.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.18);
}

body.mf-has-idlix-header .mf-header .search-box {
  order: 9;
  margin-left: auto;
  max-width: 360px;
  flex: 1 1 200px;
  min-width: 0;
}

body.mf-has-idlix-header .mf-header .mf-search-form {
  position: relative;
  width: 100%;
}

body.mf-has-idlix-header .mf-header .mf-search-form input,
body.mf-has-idlix-header .mf-header .search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px 9px 38px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.mf-has-idlix-header .mf-header .mf-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.mf-has-idlix-header .mf-header .mf-search-form input:focus {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

body.mf-has-idlix-header .mf-header .mf-search-form::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

body.mf-has-idlix-header .mf-header .search-button {
  display: none;
}

/* --- Offset konten di bawah header fixed (jangan pakai `padding: 0` singkat di #dt_contenedor ? menimpa ini) --- */
body.mf-has-idlix-header:not(.home) #contenedor {
  padding-top: var(--mf-header-offset, clamp(72px, 10vh, 96px));
}

body.admin-page.mf-has-idlix-header #dt_contenedor {
  padding-top: 0;
}

body.mf-page:not(.mf-page-has-hero) #dt_contenedor,
body.mf-page.mf-no-page-hero #dt_contenedor,
body.mf-has-idlix-header #dt_contenedor:has(.mf-hero--genre-hub-hidden) {
  padding-top: var(--mf-header-offset, clamp(72px, 10vh, 96px));
}

/* IDLIX: hero overlay header ? tidak dorong hero/konten (portrait & landscape, termasuk beranda) */
body.home #dt_contenedor,
body.mf-page-has-hero:not(.mf-no-page-hero) #dt_contenedor {
  padding-top: 0;
}

/* Mobile/tablet: halaman tanpa hero ? ruang aman (portrait & landscape, + ukuran live JS) */
@media (max-width: 1024px) {
  body.mf-page:not(.mf-page-has-hero) #dt_contenedor,
  body.mf-page.mf-no-page-hero #dt_contenedor,
  body.mf-has-idlix-header #dt_contenedor:has(.mf-hero--genre-hub-hidden) {
    padding-top: max(
      calc(
        var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) +
          var(--mf-header-pill-top, 10px) + 12px
      ),
      var(--mf-header-offset, 72px)
    );
  }

  /* Detail: hero tetap tarik ke atas mengikuti offset mobile */
  body.mf-page.detail-page .mf-detail-backdrop:not([hidden]) {
    margin-top: calc(
      -1 * max(
        calc(
          var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) +
            var(--mf-header-pill-top, 10px) + 12px
        ),
        var(--mf-header-offset, 72px)
      )
    );
  }
}

body.mf-page .detail-main,
body.mf-page main.detail-main {
  padding-top: 0;
}

body.mf-page .mf-hero-slider + main.detail-main {
  padding-top: 0;
  margin-top: 0;
}

/* Breadcrumb lama (HTML server belum terbaru) */
body.mf-genre-page .page-breadcrumb {
  display: none !important;
}

/* --- Layout seragam semua halaman dalam (bukan beranda/admin) --- */
body.mf-page {
  --mf-page-gutter: clamp(16px, 4vw, 48px);
  background: #0a0909;
}

body.mf-page #dt_contenedor {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  /* padding-top: dari rule offset (--mf-header-offset), jangan set ke 0 di sini */
  background: #0a0909;
  min-height: calc(var(--mf-vh, 1vh) * 100);
  min-height: 100dvh;
  box-sizing: border-box;
}

body.mf-page .detail-main,
body.mf-page main.detail-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 48px;
  box-sizing: border-box;
}

/* Hero tetap tinggi alaminya; main yang mengisi sisa ruang vertikal */
body.mf-page .mf-hero-slider:not(.mf-hero--genre-hub-hidden) {
  flex-shrink: 0;
}

/* Admin: tanpa #dt_contenedor ? layout flex di body */
body.admin-page {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--mf-vh, 1vh) * 100);
  min-height: 100dvh;
}

body.admin-page main.admin-main,
body.admin-page .detail-main.admin-main {
  flex: 1 0 auto;
}

body.admin-page .mf-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Legacy module_home_ads di sub-halaman (HTML lama) disembunyikan ? duo Idlix tetap tampil */
body.mf-page .module_home_ads,
body.mf-page .mf-banner-module:not(.mf-page-ad-inject) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Duo banner Idlix di halaman ber-baris (bukan home) */
body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject,
body.mf-page .detail-main > .mf-banner-duo-wrap.mf-page-ad-inject,
body.mf-page main .mf-banner-duo-wrap.mf-page-ad-inject,
body.mf-page #browseGrouped > .mf-banner-duo-wrap.mf-page-ad-inject {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 12px var(--mf-page-gutter, 16px) 8px;
  margin: 0 0 8px;
  box-sizing: border-box;
  width: 100%;
}

body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .mf-banner-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mf-banner-duo-gap, 10px);
  width: 100%;
  align-items: stretch;
}

body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .kalongcolumn.is-banner-empty {
  visibility: hidden;
  pointer-events: none;
}

body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .mf-banner-link {
  display: block;
  width: 100%;
  aspect-ratio: 728 / 90;
  overflow: hidden;
  background: #0c0c0e;
  border-radius: var(--mf-banner-leader-radius, 2px);
}

body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .mf-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .mf-banner-duo {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.mf-page .mf-banner-duo-wrap.mf-page-ad-inject .kalongcolumn.is-banner-empty {
    display: none;
  }
}

body.mf-page .mf-banner-module {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  padding: 12px var(--mf-page-gutter) 0;
  box-sizing: border-box;
}

body.mf-page:not(.detail-page) .detail-main > .section,
body.mf-page:not(.detail-page) .detail-main > section.section {
  padding: 8px var(--mf-page-gutter) 16px;
  max-width: none;
  box-sizing: border-box;
}

body.mf-page:not(.detail-page) .detail-main > section.section.detail-recommend {
  padding: 16px 18px 20px;
  margin-left: var(--mf-page-gutter);
  margin-right: var(--mf-page-gutter);
  margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: auto;
}

body.mf-page #browseGrouped {
  padding: 0 var(--mf-page-gutter) 32px;
  max-width: none;
}

body.mf-page #browseGrouped .section {
  padding: 0;
  margin: 0 0 32px;
}

body.mf-page #browseGrouped .section-header {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 12px;
}

body.mf-page #libraryGrid.movie-grid,
body.mf-page #browseGrouped .movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px 12px;
}

body.mf-page .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

body.mf-page .library-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.mf-page .library-controls select,
body.mf-page .library-controls .library-search {
  min-width: 140px;
  color: #f9fafb;
  background: rgba(5, 8, 16, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

body.mf-page .library-controls select option {
  background: #0b1020;
  color: #f9fafb;
}

body.mf-page .library-controls .library-search {
  flex: 1 1 200px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
}

body.mf-page .library-controls .library-search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Hilangkan glyph rusak pada tombol clear search bawaan browser */
input[type="search"]::-webkit-search-cancel-button,
.mf-search-overlay-form input[type="search"]::-webkit-search-cancel-button,
#s::-webkit-search-cancel-button,
#searchInput::-webkit-search-cancel-button,
#mfSearchOverlayInput::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.4 5 5 6.4l5.6 5.6-5.6 5.6 1.4 1.4 5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6 5.6-5.6-1.4-1.4-5.6 5.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.4 5 5 6.4l5.6 5.6-5.6 5.6 1.4 1.4 5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6 5.6-5.6-1.4-1.4-5.6 5.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

input[type="search"]::-ms-clear,
.mf-search-overlay-form input[type="search"]::-ms-clear,
.admin-catalog-search::-ms-clear,
.server-videos-search::-ms-clear {
  display: none;
}

body.mf-page .library-meta,
body.mf-page .page-breadcrumb,
body.mf-page .section-sub,
body.mf-page .library-genre-chips .chip-filter {
  color: rgba(255, 255, 255, 0.88);
}

body.mf-page .library-genre-chips {
  padding: 2px 0 12px;
}

body.mf-page .page-breadcrumb a {
  color: #ff6b81;
}

body.mf-page .mf-footer,
body.mf-page .mf-footer p,
body.mf-page .mf-footer a {
  color: rgba(255, 255, 255, 0.82);
}

body.mf-page .mf-footer a:hover {
  color: #fff;
}

body.mf-page .mf-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 24px var(--mf-page-gutter) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: none;
}

body.mf-page.detail-page .detail-main {
  padding-left: 0;
  padding-right: 0;
}

body.mf-page.detail-page .detail-hero,
body.mf-page.detail-page .mf-detail-backdrop {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  max-width: none;
}

body.mf-page.detail-page .detail-episodes,
body.mf-page.detail-page .detail-recommend {
  margin-left: var(--mf-page-gutter);
  margin-right: var(--mf-page-gutter);
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

body.mf-has-idlix-header .mf-header {
  display: block !important;
  padding: 0 !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

body.home #contenedor {
  padding-top: 0;
  --mf-home-gutter: clamp(16px, 4vw, 48px);
}

body.home .mf-hero-slider {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* --- Section headers (H2 row title) --- */
body:not(.admin-page) #contenedor header h2,
body.home #contenedor header h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  padding-left: 0;
}

body:not(.admin-page) #contenedor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: clamp(16px, 4vw, 48px);
}

body:not(.admin-page) .nav_items_module {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body:not(.admin-page) .nav_items_module .btn.nav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body:not(.admin-page) .nav_items_module .btn.nav-btn:hover {
  background: rgba(55, 55, 55, 0.98);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

body:not(.admin-page) .nav_items_module .see-all {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  padding: 0 4px;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}

body:not(.admin-page) .nav_items_module .see-all:hover {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
}

/* --- Row scrollable container (.items.normal & .list_genres) --- */
body:not(.admin-page) #contenedor .items.normal,
body:not(.admin-page) #contenedor .list_genres,
body:not(.admin-page) #contenedor .items.full,
body.home .items.normal,
body.home .list_genres,
body.home .items.full {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px clamp(16px, 4vw, 48px) 22px;
  grid-template-columns: none;
}

body:not(.admin-page) #contenedor .items.normal::-webkit-scrollbar,
body:not(.admin-page) #contenedor .list_genres::-webkit-scrollbar,
body:not(.admin-page) #contenedor .items.full::-webkit-scrollbar {
  display: none;
}

body:not(.admin-page) #contenedor .items.normal > .item,
body:not(.admin-page) #contenedor .list_genres > .item,
body.home .items.normal > .item,
body.home .list_genres > .item {
  flex: 0 0 clamp(160px, 15vw, 215px);
  margin: 0;
}

body:not(.admin-page) #contenedor .items.full > .item {
  flex: 0 0 clamp(220px, 22vw, 300px);
}

/* --- Featured (homepage grid utama) ? hanya grid jika BUKAN carousel --- */
body:not(.admin-page) #contenedor .items.featured:not(.carousel-row),
body.home .items.featured:not(.carousel-row) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px;
  padding: 4px clamp(16px, 4vw, 48px) 28px;
}

/* --- Card item baru (IDLIX style) --- */
body:not(.admin-page) .item {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease;
}

body:not(.admin-page) .item:hover {
  transform: translateY(-3px) scale(1.02);
  border: none;
  box-shadow: none;
  background: transparent;
  z-index: 2;
}

body:not(.admin-page) .item .poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #0d0d0d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

/* Always-on soft bottom shadow; slightly stronger on hover */
body:not(.admin-page) .item .poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.34) 48%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 1;
  transition: background 0.2s ease;
}

body:not(.admin-page) .item:hover .poster::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.42) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

body:not(.admin-page) .item .poster .rating,
body:not(.admin-page) .item .poster .featu,
body:not(.admin-page) .item .poster .mepo,
body:not(.admin-page) .item .poster .quality,
body:not(.admin-page) .item .poster .mf-poster-foot,
body:not(.admin-page) .item.episodes .poster > .mf-card-votes {
  z-index: 6 !important;
}

body:not(.admin-page) .item .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

body:not(.admin-page) .item:hover .poster img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

body:not(.admin-page) .item .poster .rating {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  background: rgba(8, 8, 12, 0.82) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(251, 191, 36, 0.28);
  letter-spacing: 0.02em;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  line-height: 1;
  backdrop-filter: blur(6px);
  z-index: 6 !important;
}

body:not(.admin-page) .item .poster .rating::before {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: #fbbf24;
  -webkit-mask: var(--mf-icon-star) center / contain no-repeat;
  mask: var(--mf-icon-star) center / contain no-repeat;
}

body:not(.admin-page) .item .poster .featu {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 72px);
  background: linear-gradient(120deg, #e50914, #b00610) !important;
  color: #fff !important;
  font-size: 0.6rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  line-height: 1.2;
  display: inline-block !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coming Soon: sama pola bubble Featured, beda warna saja */
body:not(.admin-page) .item .poster .featu.featu--soon {
  background: linear-gradient(120deg, #c8920a, #9a6508) !important;
  letter-spacing: 0.04em;
  z-index: 4 !important;
}

body:not(.admin-page) .item .poster .featu-stack {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 6 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: calc(100% - 62px);
  pointer-events: none;
}

body:not(.admin-page) .item .poster .featu-stack .featu {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  max-width: 100%;
  width: auto !important;
  flex-shrink: 0;
}

body:not(.admin-page) .item .poster .featu.featu--reminded {
  background: linear-gradient(120deg, #1a7f4b, #0d5c35) !important;
  color: #fff;
  z-index: 4 !important;
  font-size: clamp(0.5rem, 2vw, 0.58rem) !important;
  padding: 2px 6px !important;
  max-width: calc(100% - 56px);
}

body:not(.admin-page) .items.carousel-row .item .poster .featu-stack,
body.home .items.carousel-row .item .poster .featu-stack {
  max-width: calc(100% - 52px);
}

body:not(.admin-page) .items.carousel-row .item .poster .featu.featu--reminded .featu-reminded-full,
body.home .items.carousel-row .item .poster .featu.featu--reminded .featu-reminded-full {
  display: none;
}

body:not(.admin-page) .items.carousel-row .item .poster .featu.featu--reminded .featu-reminded-compact,
body.home .items.carousel-row .item .poster .featu.featu--reminded .featu-reminded-compact {
  display: inline;
}

body.mf-page .movie-grid .item .poster .featu.featu--reminded .featu-reminded-full,
body.mf-page #recommendGrid .item .poster .featu.featu--reminded .featu-reminded-full {
  display: none;
}

body.mf-page .movie-grid .item .poster .featu.featu--reminded .featu-reminded-compact,
body.mf-page #recommendGrid .item .poster .featu.featu--reminded .featu-reminded-compact {
  display: inline;
}

body:not(.admin-page) .item .poster .featu.featu--reminded .featu-reminded-compact {
  display: none;
}

.detail-share-whatsapp {
  text-decoration: none;
}

.admin-notify-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-notify-stats-table th,
.admin-notify-stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-notify-stats-table th {
  opacity: 0.75;
  font-weight: 600;
}

.admin-seo-checklist {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
  font-size: 0.84rem;
}

.admin-seo-checklist li + li {
  margin-top: 6px;
}

.admin-seo-checklist a {
  color: #7ec8ff;
}

.admin-seo-rich-table td {
  vertical-align: top;
  font-size: 0.82rem;
}

.admin-seo-status-ok {
  color: #6ee7a0;
  font-weight: 600;
}

.admin-seo-status-warn {
  color: #fbbf24;
  font-weight: 600;
}

.admin-seo-status-fail {
  color: #f87171;
  font-weight: 600;
}

.mf-telegram-page .mf-telegram-hero {
  position: relative;
  padding: 48px 20px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 136, 204, 0.18) 0%, rgba(5, 8, 16, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mf-telegram-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.mf-telegram-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 136, 204, 0.2);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.mf-telegram-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
}

.mf-telegram-page .mf-telegram-lead {
  margin: 0 auto;
  max-width: 520px;
  opacity: 0.88;
  line-height: 1.55;
}

.mf-telegram-cta-row,
.mf-telegram-bottom-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Text ? primary CTA: keep a clear ~16px gap (was collapsing / stuck). */
.mf-telegram-page .mf-telegram-lead + .mf-telegram-cta-row,
.mf-telegram-page .section-sub + .btn,
.mf-telegram-page .section-sub + a.btn {
  margin-top: 16px;
}

.mf-telegram-bottom-cta {
  margin-top: 8px;
}

.mf-telegram-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

.mf-telegram-feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mf-telegram-feature-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mf-telegram-feature-list strong {
  display: block;
  margin-bottom: 4px;
}

.mf-telegram-feature-list span {
  display: block;
  opacity: 0.78;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mf-telegram-steps-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.mf-telegram-channel {
  margin-top: 16px;
  opacity: 0.8;
}

.mf-telegram-channel a {
  color: #7ec8ff;
}

body:not(.admin-page) .item.is-upcoming .poster > .rating {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
}

body:not(.admin-page) .item.is-upcoming .poster > .rating.rating--empty {
  display: none !important;
}

body:not(.admin-page) .item.is-upcoming .poster .mf-poster-foot {
  left: 12px !important;
  right: auto !important;
  bottom: 12px !important;
  top: auto !important;
  max-width: calc(100% - 56px);
  z-index: 5 !important;
}

body:not(.admin-page) .item .poster > .mepo {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

body:not(.admin-page) .item .poster .mepo .quality,
body:not(.admin-page) .item .poster > .quality {
  position: static !important;
  background: rgba(0, 0, 0, 0.72) !important;
  color: #fff !important;
  font-size: 0.62rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  border: none !important;
  line-height: 1;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}

/* Episode card .quality legacy (langsung di poster, tanpa .mf-poster-foot) */
body:not(.admin-page) .item.episodes .poster > .quality {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  top: auto !important;
  right: auto !important;
}

/* Play overlay (.see.play4) -> tombol play sentral muncul saat hover */
body:not(.admin-page) .item .poster > a.mf-poster-link {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3;
  display: block;
  background: transparent !important;
}

body:not(.admin-page) .item .poster > a.mf-poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body:not(.admin-page) .item .poster > a:not(.mf-poster-link) {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3;
  display: block;
  background: transparent !important;
}

body:not(.admin-page) .item .poster .see.play4 {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%) !important;
  background-color: transparent !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  display: block !important;
}

body:not(.admin-page) .item .poster .see.play4::before {
  content: none !important;
  display: none !important;
}

body:not(.admin-page) .item:hover .poster .see.play4 {
  opacity: 1 !important;
}

body:not(.admin-page) .item .poster .see.play4::after {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e50914
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M8 5v14l11-7z'/></svg>")
    center / 22px no-repeat;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.45);
  opacity: 1;
  transition: transform 0.2s ease;
}

body:not(.admin-page) .item:hover .poster .see.play4::after {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Card meta text */
body:not(.admin-page) .item {
  min-width: 0;
}

body:not(.admin-page) .item .data {
  padding: 10px 2px 4px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

body:not(.admin-page) .item .data h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  min-height: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.admin-page) .item .data h3 a {
  display: block;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.admin-page) .item .data > span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

body:not(.admin-page) .item.episodes .data .serie {
  color: rgba(229, 9, 20, 0.85);
  font-weight: 600;
}

/* Episode row: lebar 16:9, poster tidak terpotong (contain) */
body:not(.admin-page) #contenedor .items.full > .item.episodes,
body.home #contenedor .items.full > .item.episodes {
  flex: 0 0 clamp(200px, 20vw, 300px);
  min-width: 0;
}

body:not(.admin-page) .items.full > .item.episodes .poster,
body.home #contenedor .items.full > .item.episodes .poster {
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #1a1a1e 0%, #0d0d10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.admin-page) .items.full > .item.episodes .poster img,
body.home #contenedor .items.full > .item.episodes .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body:not(.admin-page) .items.full > .item.episodes:hover .poster img,
body.home #contenedor .items.full > .item.episodes:hover .poster img {
  transform: scale(1.02);
}

/* Season card label overlay */
body:not(.admin-page) .item.seasons .season_m {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 80%);
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  z-index: 2;
}

body:not(.admin-page) .item.seasons .season_m .a {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

body:not(.admin-page) .item.seasons .season_m .b {
  font-size: 1.4rem;
  font-weight: 900;
  color: #e50914;
}

body:not(.admin-page) .item.seasons .season_m .c {
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Banner promo row tetap, kasih sedikit jarak --- */
body:not(.admin-page) .module_home_ads {
  padding: 16px clamp(16px, 4vw, 48px);
}

body:not(.admin-page) .alert-box {
  background: linear-gradient(120deg, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

body:not(.admin-page) .alert-box .badge {
  background: #e50914;
  color: #fff;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  margin-right: 10px;
  vertical-align: middle;
}

/* --- Footer makeover --- */
body:not(.admin-page) footer.main {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 32px;
  padding: 36px clamp(16px, 4vw, 48px) 28px;
}

body:not(.admin-page) footer.main .columenu .item {
  overflow: visible;
  transform: none;
}

body:not(.admin-page) footer.main .columenu .item:hover {
  transform: none;
}

body:not(.admin-page) footer.main h3 {
  color: #fff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  line-height: 1.25;
  padding-bottom: 0.12em;
  overflow: visible;
}

body:not(.admin-page) footer.main .menu li a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.9;
}

body:not(.admin-page) footer.main .menu li a:hover {
  color: #fff;
}

body:not(.admin-page) footer.main .fotlogo .logo {
  color: #ff5a6e;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

body:not(.admin-page) footer.main .fotlogo .text p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.55;
}

body:not(.admin-page) footer.main .copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  text-align: center;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
}

body:not(.admin-page) footer.main .fmenu .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  justify-content: center;
  padding-top: 4px;
}

/* --- Admin: penyesuaian visual header (morph scroll = body.mf-has-idlix-header) --- */
body.admin-page.mf-has-idlix-header .mf-header .logo.logo--idlix {
  flex: 0 0 auto;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3859;
  white-space: nowrap;
}

body.admin-page.mf-has-idlix-header .mf-header .logo-mark--accent {
  color: #ffffff;
}

body.admin-page.mf-has-idlix-header .mf-header .mf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

body.admin-page.mf-has-idlix-header .mf-header .mf-nav-link:hover,
body.admin-page.mf-has-idlix-header .mf-header .mf-nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.admin-page.mf-has-idlix-header .mf-header .mf-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.admin-page.mf-has-idlix-header .mf-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
}

body.admin-page.mf-has-idlix-header .mf-search-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.admin-page.mf-has-idlix-header .mf-header .nav-toggle,
body.admin-page.mf-has-idlix-header .mf-nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 1025px) {
  body.admin-page.mf-has-idlix-header .mf-header .nav-toggle,
  body.admin-page.mf-has-idlix-header .mf-nav-toggle {
    display: none !important;
  }
}

body.mf-has-idlix-header .mf-header .search-box,
body.mf-has-idlix-header .mf-header .mf-search-form {
  display: none !important;
}

/* --- Mobile tweaks (non-header) --- */
@media (max-width: 900px) {
  body:not(.admin-page) .item .data h3 {
    font-size: clamp(0.76rem, 3vw, 0.82rem);
  }
  body:not(.admin-page) .mf-hero-cta {
    min-height: 40px;
    padding: 0 18px 0 14px;
    font-size: 0.88rem;
  }

  body:not(.admin-page) .mf-cta-play-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  body:not(.admin-page) .mf-cta-play-icon .mf-play-svg {
    width: 28px;
    height: 28px;
  }
}

/* =====================================================================
   METEORFLIX IDLIX-MAKEOVER (Phase 3 ? Hero, polish, banner, footer)
   ===================================================================== */

/*
 * --- Hero slider (full-bleed, tinggi ala IDLIX) ---
 * Satu sistem tinggi via CSS vars ? di-scale per breakpoint/orientasi/PWA.
 * Jangan override height langsung di MQ acak; ubah --mf-hero-h-* saja.
 */
body:not(.admin-page) .mf-hero-slider {
  --mf-hero-h-min: 380px;
  --mf-hero-h: 78vh;
  --mf-hero-h-max: 640px;
  --mf-hero-obj-pos: center 22%;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(var(--mf-hero-h-min), var(--mf-hero-h), var(--mf-hero-h-max));
  min-height: var(--mf-hero-h-min);
  overflow: hidden;
  background: #0a0909;
  isolation: isolate;
  margin: 0;
}

@supports (height: 100dvh) {
  body:not(.admin-page) .mf-hero-slider {
    --mf-hero-h: 78dvh;
  }
}

/* Phone besar / phablet portrait */
@media (min-width: 480px) and (max-width: 640px) and (orientation: portrait) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 400px;
    --mf-hero-h: 82vh;
    --mf-hero-h-max: 720px;
    --mf-hero-obj-pos: center 24%;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 82dvh;
    }
  }
}

/* Tablet portrait ? jangan pakai cap 720px (terlalu pendek vs desktop) */
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 440px;
    --mf-hero-h: 80vh;
    --mf-hero-h-max: 860px;
    --mf-hero-obj-pos: center 28%;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 80dvh;
    }
  }
}

/* Desktop: hero cinematic penuh ala IDLIX */
@media (min-width: 1025px) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 560px;
    --mf-hero-h: 90vh;
    --mf-hero-h-max: 1200px;
    --mf-hero-obj-pos: center center;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 90dvh;
    }
  }
}

/* Full / large desktop */
@media (min-width: 1440px) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 640px;
    --mf-hero-h: 92vh;
    --mf-hero-h-max: 1350px;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 92dvh;
    }
  }
}

/* PWA / installed app: pakai dvh + safe-area; max tetap dari breakpoint portrait/desktop */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: calc(
        100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
      );
    }
  }

  @media (min-width: 1025px) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 90dvh;
      --mf-hero-h-max: 1200px;
    }
  }

  @media (min-width: 1440px) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: 92dvh;
      --mf-hero-h-max: 1350px;
    }
  }

  /* Landscape PWA: isi viewport (chrome browser hilang) */
  @media (orientation: landscape) and (max-width: 1024px) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h-min: 260px;
      --mf-hero-h: calc(
        100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
      );
      --mf-hero-h-max: 100dvh;
    }
  }
}

/* Sub-halaman + beranda: hero menyatu dengan header (tanpa garis hitam di atas) */
body.mf-page-has-hero .mf-hero-slider,
body.home .mf-hero-slider,
body:not(.admin-page) .mf-hero-slider:not(.mf-hero--genre-hub-hidden):not([hidden]) {
  z-index: 1;
}

/*
 * Site-wide hero -> content blend: fade di dalam slide (bukan slider::after).
 * Harus satu stacking context dengan overlay/konten ? kalau di .mf-hero-slider::after,
 * fade mengecat di atas seluruh .mf-hero-track (CTA ikut gelap) karena track z-index:auto.
 * z-index 2 = di atas backdrop, di bawah overlay(3), konten/CTA(4+). Dots/audio tetap sibling slider.
 */
body:not(.admin-page) .mf-hero-slider:not(.mf-hero--genre-hub-hidden):not([hidden]) .mf-hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 42%, 360px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #000000 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.34) 66%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Konten langsung di bawah hero ? hitam seragam (tanpa seam #0a0909 vs #000) */
body:not(.admin-page) .mf-hero-slider:not(.mf-hero--genre-hub-hidden):not([hidden]) + #contenedor,
body:not(.admin-page) .mf-hero-slider:not(.mf-hero--genre-hub-hidden):not([hidden]) + main.detail-main,
body.mf-page-has-hero .mf-hero-slider + main.detail-main,
body.home .mf-hero-slider + #contenedor {
  position: relative;
  z-index: 2;
  background: #000000;
}

/* Perangkat sentuh: CTA solid (tanpa filter) ? scroll-hint sudah off site-wide */
@media (hover: none) and (pointer: coarse) {
  body:not(.admin-page) .mf-hero-cta,
  body:not(.admin-page) .mf-hero-content .mf-hero-cta {
    filter: none;
    background: #e50914;
    position: relative;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    transform: none;
  }

  body:not(.admin-page) .mf-hero-cta:active,
  body:not(.admin-page) .mf-hero-content .mf-hero-cta:active {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.24);
    transform: none;
    opacity: 0.9;
  }
}

body:not(.admin-page) .mf-hero-slider[hidden] {
  display: none !important;
}

/* /genre tanpa ?genre= ? hero off, header pakai aturan global (bukan pill paksa) */
body:not(.admin-page) .mf-hero-slider.mf-hero--genre-hub-hidden {
  display: none !important;
}

body:not(.admin-page) .mf-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-snap-stop: always;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

body:not(.admin-page) .mf-hero-track::-webkit-scrollbar {
  display: none;
}

body:not(.admin-page) .mf-hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}

/* Hero crossfade (IDLIX) ? slide ditumpuk, fade halus & overlap */
body:not(.admin-page) .mf-hero-slider.mf-hero-slider--fade .mf-hero-track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

body:not(.admin-page) .mf-hero-slider.mf-hero-slider--fade .mf-hero-slide {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 1.2s,
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: scale(1.03);
}

body:not(.admin-page) .mf-hero-slider.mf-hero-slider--fade .mf-hero-slide.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: scale(1);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0s,
    transform 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body:not(.admin-page) .mf-hero-slider.mf-hero-slider--fade .mf-hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
  transform: scale(1.01);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 1.2s,
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-slide {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body:not(.admin-page) .mf-hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0909;
  overflow: hidden;
}

body:not(.admin-page) .mf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mf-hero-obj-pos, center center);
  display: block;
  will-change: transform;
  backface-visibility: hidden;
  image-rendering: auto;
  -webkit-user-drag: none;
}

body:not(.admin-page) .mf-hero-bg-blur {
  filter: blur(28px) saturate(115%);
  transform: scale(1.12);
  opacity: 0.88;
  z-index: 0;
}

/* Backdrop penuh ala IDLIX ? cover HD tanpa distorsi */
body:not(.admin-page) .mf-hero-slide--overlay .mf-hero-bg-cover {
  z-index: 1;
  width: 100%;
  left: 0;
  right: 0;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-image: none;
          mask-image: none;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Trailer YouTube di hero ? satu iframe bersama, dipasang di slide aktif */
body:not(.admin-page) .mf-hero-trailer-shared,
body:not(.admin-page) .mf-hero-slide .mf-hero-trailer-shared {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.65s ease;
}

body:not(.admin-page) .mf-hero-trailer-shared.is-active.is-ready {
  opacity: 1;
}

body:not(.admin-page) .mf-hero-trailer-shared .mf-hero-trailer-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1.32);
  transform-origin: center center;
  overflow: hidden;
}

body:not(.admin-page) .mf-hero-trailer-shared .mf-hero-trailer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-trailer-shared::before,
body:not(.admin-page) .mf-hero-trailer-shared::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-trailer-shared::before {
  top: 0;
  height: 12%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.88) 0%,
    rgba(5, 5, 5, 0.28) 55%,
    transparent 100%
  );
}

body:not(.admin-page) .mf-hero-trailer-shared::after {
  bottom: 0;
  height: 16%;
  background: linear-gradient(
    0deg,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.38) 50%,
    transparent 100%
  );
}

body:not(.admin-page) .mf-hero-trailer-shared .mf-hero-trailer-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-audio-btn {
  position: absolute;
  top: auto;
  bottom: clamp(28px, 5vh, 40px);
  right: clamp(16px, 4vw, 28px);
  z-index: 50;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-page) .mf-hero-audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}

body:not(.admin-page) .mf-hero-audio-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body:not(.admin-page) .mf-hero-audio-btn:hover,
body:not(.admin-page) .mf-hero-audio-btn:focus-visible {
  background: rgba(0, 0, 0, 0.78);
  outline: none;
}

body:not(.admin-page) .mf-hero-audio-btn:active {
  transform: scale(0.94);
}

body:not(.admin-page) .mf-hero-audio-btn[hidden] {
  display: none !important;
}

body:not(.admin-page) .mf-hero-audio-btn.is-muted .mf-hero-audio-icon--on {
  display: none;
}

body:not(.admin-page) .mf-hero-audio-btn:not(.is-muted) .mf-hero-audio-icon--muted {
  display: none;
}

/* Trailer YouTube di hero ? backdrop tetap tampil minimal ~5s sampai video siap */
body:not(.admin-page) .mf-hero-trailer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body:not(.admin-page) .mf-hero-slide--has-trailer.is-trailer-ready .mf-hero-trailer,
body:not(.admin-page) .mf-hero-slide--has-trailer .mf-hero-trailer.is-ready {
  opacity: 1;
}

body:not(.admin-page) .mf-hero-trailer-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%) scale(1.32);
  transform-origin: center center;
  overflow: hidden;
}

body:not(.admin-page) .mf-hero-trailer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* Tutup area bawah/atas tempat logo/title YouTube muncul */
body:not(.admin-page) .mf-hero-trailer::before,
body:not(.admin-page) .mf-hero-trailer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-trailer::before {
  top: 0;
  height: 12%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.88) 0%,
    rgba(5, 5, 5, 0.28) 55%,
    transparent 100%
  );
}

body:not(.admin-page) .mf-hero-trailer::after {
  bottom: 0;
  height: 16%;
  background: linear-gradient(
    0deg,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.38) 50%,
    transparent 100%
  );
}

body:not(.admin-page) .mf-hero-trailer-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-slide--has-trailer.is-trailer-ready .mf-hero-bg-cover {
  opacity: 0.5;
}

body:not(.admin-page) .mf-hero-slide--has-trailer.is-trailer-ready .mf-hero-bg-blur {
  opacity: 0.72;
}

body:not(.admin-page) .mf-hero-slide--has-trailer.is-visible .mf-hero-bg-cover {
  animation: none;
  transform: none;
}

/* Trailer cinematic cover (crop halus, full bleed) ? desktop, mobile & PWA */
@media (max-aspect-ratio: 1/1) {
  body:not(.admin-page) .mf-hero-trailer-shared .mf-hero-trailer-stage,
  body:not(.admin-page) .mf-hero-trailer-stage {
    transform: translate(-50%, -50%) scale(1.38);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  body:not(.admin-page) .mf-hero-trailer-shared .mf-hero-trailer-stage,
  body:not(.admin-page) .mf-hero-trailer-stage {
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@media (max-width: 640px) {
  body:not(.admin-page) .mf-hero-audio-btn {
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    right: max(14px, env(safe-area-inset-right, 0px), 4vw);
    width: 36px;
    height: 36px;
  }

  body.home.mf-has-bottom-nav:not(.admin-page) .mf-hero-audio-btn {
    bottom: max(
      76px,
      calc(env(safe-area-inset-bottom, 0px) + var(--mf-bottom-nav-h, 56px) + 18px)
    );
  }

  body:not(.admin-page) .mf-hero-audio-icon,
  body:not(.admin-page) .mf-hero-audio-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .mf-hero-trailer-shared,
  body:not(.admin-page) .mf-hero-trailer {
    display: none !important;
  }
}

/* Hero IDLIX: zoom halus backdrop + teks fade saat slide terlihat */
@keyframes mf-hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

@keyframes mf-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-bg-cover {
  animation: mf-hero-kenburns 14s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

body:not(.admin-page) .mf-hero-slide:not(.is-visible) .mf-hero-content > * {
  opacity: 0;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-hero-badge {
  animation: mf-hero-rise 0.55s cubic-bezier(0, 0, 0.2, 1) 0.06s both;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-hero-title {
  animation: mf-hero-rise 0.6s cubic-bezier(0, 0, 0.2, 1) 0.12s both;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-promo-title--logo {
  animation: mf-hero-rise 0.6s cubic-bezier(0, 0, 0.2, 1) 0.12s both;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-hero-meta {
  animation: mf-hero-rise 0.55s cubic-bezier(0, 0, 0.2, 1) 0.18s both;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-hero-desc {
  animation: mf-hero-rise 0.55s cubic-bezier(0, 0, 0.2, 1) 0.24s both;
}

body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content .mf-hero-cta {
  animation: mf-hero-cta-in 0.45s cubic-bezier(0, 0, 0.2, 1) 0.3s both;
}

@keyframes mf-hero-cta-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body:not(.admin-page) .mf-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

body:not(.admin-page) .mf-hero-pill--trending {
  background: rgba(255, 193, 7, 0.22);
  color: #ffd54a;
  border: 1px solid rgba(255, 213, 74, 0.35);
}

body:not(.admin-page) .mf-hero-meta .mf-hero-pill--trending {
  margin-left: 2px;
}

body:not(.admin-page) .mf-hero-pill--latest {
  background: rgba(76, 175, 80, 0.22);
  color: #a5d6a7;
  border: 1px solid rgba(129, 199, 132, 0.4);
}

@media (max-width: 768px) {
  body:not(.admin-page) .mf-hero-slide--overlay .mf-hero-bg-cover {
    object-position: var(--mf-hero-obj-pos, center 22%);
  }
}

body:not(.admin-page) .mf-hero-promo-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Backlink promo tetap aktif saat trailer ? tombol suara di atas (z-index 50) menangkap tap di pojok kanan bawah saja */

body:not(.admin-page) .mf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.52) 34%, rgba(0, 0, 0, 0.14) 62%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* Konten hero tetap di atas trailer saat diputar */
body:not(.admin-page) .mf-hero-slider.is-trailer-live .mf-hero-slide.is-visible .mf-hero-overlay,
body:not(.admin-page) .mf-hero-slider.is-trailer-live .mf-hero-slide.is-visible .mf-hero-content {
  opacity: 1;
  visibility: visible;
}

body:not(.admin-page) .mf-hero-slider.is-trailer-live .mf-hero-slide.is-visible .mf-hero-content > * {
  opacity: 1;
}

/* Konten hero ? hierarki ala IDLIX: badge ? logo/judul ? meta ? deskripsi ? CTA */
body:not(.admin-page) .mf-hero-content {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 5.5vw, 56px);
  right: auto;
  bottom: clamp(72px, 10vh, 120px);
  max-width: min(520px, 48vw);
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-content .mf-hero-badge {
  margin: 0 0 10px;
}

body:not(.admin-page) .mf-hero-content .mf-hero-title,
body:not(.admin-page) .mf-hero-content .mf-promo-title--logo {
  margin: 0 0 8px;
}

body:not(.admin-page) .mf-hero-content .mf-hero-meta {
  margin: 0 0 10px;
}

body:not(.admin-page) .mf-hero-content .mf-hero-desc {
  margin: 0 0 14px;
}

body:not(.admin-page) .mf-hero-content > *:not(.mf-hero-cta) {
  pointer-events: none;
}

body:not(.admin-page) .mf-hero-content .mf-hero-cta {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  margin-top: 0;
}

body:not(.admin-page) .mf-hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  position: relative;
  min-height: 24px;
  padding: 5px 11px 5px 13px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.74);
  color: rgba(255, 255, 255, 0.97);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body:not(.admin-page) .mf-hero-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e50914;
  border-radius: 2px 0 0 2px;
}

body:not(.admin-page) .mf-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.06;
  margin: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 100%;
}

body:not(.admin-page) .mf-hero-title.mf-promo-title--logo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: min(500px, 46vw);
  line-height: 1;
  text-shadow: none;
}

body:not(.admin-page) .mf-title-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(76px, 11.5vw, 156px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.88));
}

body:not(.admin-page) .mf-title-logo.is-broken {
  display: none !important;
}

body:not(.admin-page) .mf-title-logo-fallback {
  display: block;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
}

body:not(.admin-page) .mf-title-logo-fallback[hidden] {
  display: none;
}

body.home .mf-spotlight .mf-title-logo-fallback {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

body:not(.admin-page) .mf-hero-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

body:not(.admin-page) .mf-hero-meta .mf-hero-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7em;
}

body:not(.admin-page) .mf-hero-meta .mf-hero-star {
  color: #ffd54a;
  font-size: 0.95em;
}

body:not(.admin-page) .mf-hero-desc {
  font-size: clamp(0.86rem, 1.05vw, 0.96rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin: 0;
  max-width: 480px;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
          line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Shared: play circle SVG (hero & sorotan) */
@keyframes mf-play-spin {
  to {
    transform: rotate(360deg);
  }
}

body:not(.admin-page) .mf-cta-play-icon,
body.home .mf-spotlight .mf-cta-play-icon,
body.detail-page .detail-actions-primary .mf-cta-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #fff;
  line-height: 0;
  box-sizing: border-box;
}

body:not(.admin-page) .mf-cta-play-icon .mf-play-svg,
body.home .mf-spotlight .mf-cta-play-icon .mf-play-svg,
body.detail-page .detail-actions-primary .mf-cta-play-icon .mf-play-svg {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
  overflow: visible;
}

body:not(.admin-page) .mf-cta-play-icon .mf-play-stroke-solid,
body.home .mf-spotlight .mf-cta-play-icon .mf-play-stroke-solid,
body.detail-page .detail-actions-primary .mf-cta-play-icon .mf-play-stroke-solid {
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
  stroke-width: 3px;
  transition: stroke-dashoffset 0.8s ease, opacity 0.35s ease;
}

body:not(.admin-page) .mf-cta-play-icon .mf-play-stroke-dotted,
body.home .mf-spotlight .mf-cta-play-icon .mf-play-stroke-dotted,
body.detail-page .detail-actions-primary .mf-cta-play-icon .mf-play-stroke-dotted {
  opacity: 0;
  stroke-dasharray: 4, 5;
  stroke-width: 2px;
  transform-origin: 50% 50%;
  transition: opacity 0.35s ease, stroke-width 0.35s ease;
}

body:not(.admin-page) .mf-cta-play-icon .mf-play-icon,
body.home .mf-spotlight .mf-cta-play-icon .mf-play-icon,
body.detail-page .detail-actions-primary .mf-cta-play-icon .mf-play-icon {
  transform-origin: 50% 50%;
  transition: transform 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.admin-page) .mf-hero-cta:hover .mf-play-stroke-dotted,
  body:not(.admin-page) .mf-hero-cta:focus-visible .mf-play-stroke-dotted,
  body.home .mf-spotlight .mf-sp-cta:hover .mf-play-stroke-dotted,
  body.home .mf-spotlight .mf-sp-cta:focus-visible .mf-play-stroke-dotted,
  body.detail-page .detail-actions-primary .mf-cta-premium:hover .mf-play-stroke-dotted,
  body.detail-page .detail-actions-primary .mf-cta-premium:focus-visible .mf-play-stroke-dotted {
    opacity: 1;
    stroke-width: 3px;
    animation: mf-play-spin 4s linear infinite;
  }

  body:not(.admin-page) .mf-hero-cta:hover .mf-play-stroke-solid,
  body:not(.admin-page) .mf-hero-cta:focus-visible .mf-play-stroke-solid,
  body.home .mf-spotlight .mf-sp-cta:hover .mf-play-stroke-solid,
  body.home .mf-spotlight .mf-sp-cta:focus-visible .mf-play-stroke-solid,
  body.detail-page .detail-actions-primary .mf-cta-premium:hover .mf-play-stroke-solid,
  body.detail-page .detail-actions-primary .mf-cta-premium:focus-visible .mf-play-stroke-solid {
    opacity: 0;
    stroke-dashoffset: 300;
  }

  body:not(.admin-page) .mf-hero-cta:hover .mf-play-icon,
  body:not(.admin-page) .mf-hero-cta:focus-visible .mf-play-icon,
  body.home .mf-spotlight .mf-sp-cta:hover .mf-play-icon,
  body.home .mf-spotlight .mf-sp-cta:focus-visible .mf-play-icon,
  body.detail-page .detail-actions-primary .mf-cta-premium:hover .mf-play-icon,
  body.detail-page .detail-actions-primary .mf-cta-premium:focus-visible .mf-play-icon {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .mf-cta-play-icon .mf-play-stroke-dotted,
  body.home .mf-spotlight .mf-cta-play-icon .mf-play-stroke-dotted {
    animation: none !important;
  }
}

/* Tombol Nonton ? premium v2 (di atas slide bottom-fade z-index:2 / overlay:3) */
body:not(.admin-page) .mf-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 0;
  position: relative;
  z-index: 6;
  min-height: 44px;
  padding: 0 22px 0 10px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #f40612 0%, #d40812 52%, #b20710 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-page) .mf-hero-cta:hover,
body:not(.admin-page) .mf-hero-cta:focus-visible {
  background: linear-gradient(180deg, #ff1a24 0%, #e50914 55%, #c40812 100%);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  outline: none;
}

body:not(.admin-page) .mf-hero-cta:active {
  opacity: 0.94;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:not(.admin-page) .mf-hero-cta-label {
  display: inline-block;
  line-height: 1;
}

/* Panah prev/next hero ? disembunyikan (navigasi tetap via dots + swipe) */
body:not(.admin-page) .mf-hero-nav,
body:not(.admin-page) .mf-hero-arrow {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.admin-page) .mf-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  font-family: inherit;
  padding: 0;
}

body:not(.admin-page) .mf-hero-slider:hover .mf-hero-arrow,
body:not(.admin-page) .mf-hero-slider:focus-within .mf-hero-arrow {
  opacity: 1;
}

body:not(.admin-page) .mf-hero-prev { left: clamp(10px, 2vw, 28px); }
body:not(.admin-page) .mf-hero-next { right: clamp(10px, 2vw, 28px); }

body:not(.admin-page) .mf-hero-arrow:hover {
  background: #e50914;
  border-color: #e50914;
  transform: translateY(-50%) scale(1.05);
}

/* Dots */
body:not(.admin-page) .mf-hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 6px;
  max-width: min(92vw, 560px);
}

/* Bar background tipis (16px) digambar terpisah supaya tampilan tetap ramping,
   sementara tombol tetap 24x24 (area sentuh min WCAG). */
body:not(.admin-page) .mf-hero-dots::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

/* Area sentuh 24x24 (min WCAG 2.2) ? pill visual digambar via ::before
   sehingga tampilan tetap kecil tapi target sentuh memadai. */
body:not(.admin-page) .mf-hero-dot-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 999px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-page) .mf-hero-dot-btn::before {
  content: "";
  display: block;
  width: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition:
    width 0.32s cubic-bezier(0, 0, 0.2, 1),
    background 0.32s ease,
    transform 0.25s ease;
}

body:not(.admin-page) .mf-hero-dot-btn.is-active::before {
  background: #e50914;
  width: 26px;
  transform: scale(1.08);
}

/* Banyak slide (hingga 24): tetap 24x24 (min sentuh), 1 baris scroll
   horizontal (bukan wrap) supaya bar tidak menumpuk & tetap ramping. */
body:not(.admin-page) .mf-hero-dots.mf-hero-dots--dense {
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: min(92vw, 520px);
  gap: 0;
  padding: 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body:not(.admin-page) .mf-hero-dots.mf-hero-dots--dense::-webkit-scrollbar {
  display: none;
}

body:not(.admin-page) .mf-hero-dots.mf-hero-dots--dense .mf-hero-dot-btn {
  flex: 0 0 auto;
}

body:not(.admin-page) .mf-hero-dots.mf-hero-dots--dense .mf-hero-dot-btn::before {
  width: 7px;
  height: 6px;
}

/* Slide banyak: counter "1 / N" ala Netflix (pengganti barisan titik). */
body:not(.admin-page) .mf-hero-dots.mf-hero-dots--counter {
  padding: 5px 13px;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body:not(.admin-page) .mf-hero-dots.mf-hero-dots--counter::before {
  display: none;
}

body:not(.admin-page) .mf-hero-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

body:not(.admin-page) .mf-hero-counter-cur {
  color: #fff;
  font-size: 0.86rem;
}

body:not(.admin-page) .mf-hero-counter-sep {
  opacity: 0.5;
  font-weight: 500;
}

body:not(.admin-page) .mf-hero-dots.mf-hero-dots--dense .mf-hero-dot-btn.is-active::before {
  width: 18px;
}

/* Scroll hint (chevron "v" di bawah dots): disembunyikan site-wide ? distracting, no click action */
body:not(.admin-page) .mf-hero-scroll-hint,
body:not(.admin-page) .mf-hero-scroll-chevron {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  animation: none !important;
}

/* Mobile/tablet portrait: vignette saja ? tinggi dari --mf-hero-h-* di atas */
@media (max-width: 1024px) and (orientation: portrait) {
  body:not(.admin-page) .mf-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0) 100%);
  }
}

/* Mobile landscape: tinggi via vars + teks di bawah logo (IDLIX) */
@media (max-width: 1024px) and (orientation: landscape) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 260px;
    --mf-hero-h: calc(
      100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    --mf-hero-h-max: 100svh;
    --mf-hero-obj-pos: center center;
    max-height: none;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: calc(
        100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
      );
      --mf-hero-h-max: 100dvh;
    }
  }

  body:not(.admin-page) .mf-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.08) 72%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 18%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
  }

  /* Landscape mobile: teks & CTA di bawah (scroll-hint off), tetap di bawah header */
  body:not(.admin-page) .mf-hero-content {
    top: calc(var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) + 8px);
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    left: max(14px, env(safe-area-inset-left, 0px), 3vw);
    right: auto;
    max-width: min(56vw, 520px);
    gap: 6px;
    justify-content: flex-end;
  }

  body:not(.admin-page) .mf-hero-title {
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body:not(.admin-page) .mf-title-logo {
    max-height: clamp(52px, 14vw, 88px);
  }

  body:not(.admin-page) .mf-hero-meta {
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
  }

  body:not(.admin-page) .mf-hero-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.76rem, 2.4vw, 0.84rem);
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
  }

  body:not(.admin-page) .mf-hero-cta {
    padding: 9px 18px;
    font-size: 0.82rem;
  }

  body:not(.admin-page) .mf-hero-dots {
    bottom: 10px;
  }

  body.home.is-scrolled .mf-hero-slider + #contenedor {
    padding-top: max(
      calc(var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) + 8px),
      var(--mf-header-offset, 64px)
    );
  }

  body.mf-page.mf-no-page-hero #dt_contenedor,
  body.mf-page:not(.mf-page-has-hero) #dt_contenedor,
  body.mf-has-idlix-header #dt_contenedor:has(.mf-hero--genre-hub-hidden) {
    padding-top: max(
      calc(
        var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) +
          var(--mf-header-pill-top, 10px) + 14px
      ),
      var(--mf-header-offset, 72px)
    );
  }
}

/* HP/tablet landscape sentuh ? vars yang sama (bukan height acak) */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  body:not(.admin-page) .mf-hero-slider,
  body.home .mf-hero-slider {
    --mf-hero-h-min: 260px;
    --mf-hero-h: calc(
      100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
    );
    --mf-hero-h-max: 100svh;
    --mf-hero-obj-pos: center center;
    max-height: none;
  }

  @supports (height: 100dvh) {
    body:not(.admin-page) .mf-hero-slider,
    body.home .mf-hero-slider {
      --mf-hero-h: calc(
        100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
      );
      --mf-hero-h-max: 100dvh;
    }
  }

  body:not(.admin-page) .mf-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.55) 36%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0) 88%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 16%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0) 100%);
  }

  body:not(.admin-page) .mf-hero-content {
    top: calc(var(--mf-header-bar-h, 56px) + env(safe-area-inset-top, 0px) + 8px);
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    left: max(14px, env(safe-area-inset-left, 0px), 3vw);
    right: auto;
    max-width: min(58vw, 500px);
    gap: 6px;
    justify-content: flex-end;
  }

  body:not(.admin-page) .mf-hero-title {
    font-size: clamp(1rem, 2.8vw, 1.42rem);
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
  }

  body:not(.admin-page) .mf-hero-meta {
    font-size: clamp(0.7rem, 2.4vw, 0.82rem);
    gap: 5px;
    line-height: 1.3;
  }

  body:not(.admin-page) .mf-hero-badge {
    font-size: clamp(0.56rem, 2vw, 0.64rem);
    padding: 4px 10px 4px 12px;
    letter-spacing: 0.09em;
    min-height: 22px;
  }

  body:not(.admin-page) .mf-hero-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    font-size: clamp(0.74rem, 2.2vw, 0.84rem);
    line-height: 1.38;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
  }

  body:not(.admin-page) .mf-hero-cta,
  body:not(.admin-page) .mf-hero-content .mf-hero-cta {
    min-height: 36px;
    padding: 0 14px 0 12px;
    font-size: clamp(0.8rem, 2.4vw, 0.86rem);
    margin-top: 4px;
    max-width: 100%;
  }

  body:not(.admin-page) .mf-hero-dots {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 400px) {
  body:not(.admin-page) .mf-hero-desc {
    -webkit-line-clamp: 1;
            line-clamp: 1;
  }

  body:not(.admin-page) .mf-hero-content {
    gap: 4px;
  }
}

@media (max-width: 768px) {
  /*
   * Mobile ?768 portrait ? teks/CTA anchor bawah.
   * Landscape sentuh: blok (hover:none)+(landscape) di atas.
   */
  @media (orientation: portrait) {
    body:not(.admin-page) .mf-hero-content {
      top: auto;
      left: max(16px, env(safe-area-inset-left, 0px), 4vw);
      right: max(16px, env(safe-area-inset-right, 0px), 4vw);
      max-width: none;
      width: auto;
      bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 20px));
      gap: 0;
    }

    body.home.mf-has-bottom-nav:not(.admin-page) .mf-hero-content {
      bottom: max(
        68px,
        calc(env(safe-area-inset-bottom, 0px) + var(--mf-bottom-nav-h, 56px) + 14px)
      );
    }

    body:not(.admin-page) .mf-hero-content .mf-hero-badge {
      margin-bottom: 8px;
    }

    body:not(.admin-page) .mf-hero-content .mf-hero-title,
    body:not(.admin-page) .mf-hero-content .mf-promo-title--logo {
      margin-bottom: 6px;
      max-width: 100%;
    }

    body:not(.admin-page) .mf-hero-content .mf-hero-meta {
      margin-bottom: 8px;
    }

    body:not(.admin-page) .mf-hero-content .mf-hero-desc {
      margin-bottom: 12px;
    }
  }

  @media (orientation: portrait) {
    body:not(.admin-page) .mf-hero-overlay {
      background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 44%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.16) 14%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0) 100%);
    }

    body:not(.admin-page) .mf-hero-title {
      font-size: clamp(1.22rem, 5.8vw, 1.85rem);
      line-height: 1.1;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
      text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
    }

    body:not(.admin-page) .mf-hero-title.mf-promo-title--logo,
    body:not(.admin-page) .mf-hero-content .mf-promo-title--logo {
      max-width: min(92vw, 420px);
    }

    body:not(.admin-page) .mf-title-logo {
      max-height: clamp(56px, 14vw, 96px);
    }

    body:not(.admin-page) .mf-hero-meta {
      font-size: clamp(0.76rem, 3.1vw, 0.88rem);
      gap: 6px;
      line-height: 1.35;
    }

    body:not(.admin-page) .mf-hero-badge {
      font-size: clamp(0.58rem, 2.5vw, 0.68rem);
      padding: 4px 10px;
      letter-spacing: 0.04em;
    }

    body:not(.admin-page) .mf-hero-desc {
      font-size: clamp(0.8rem, 3.3vw, 0.92rem);
      line-height: 1.45;
      max-width: 100%;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
              line-clamp: 3;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: normal;
      overflow-wrap: anywhere;
    }

    body:not(.admin-page) .mf-hero-cta,
    body:not(.admin-page) .mf-hero-content .mf-hero-cta {
      min-height: 38px;
      padding: 0 16px 0 12px;
      font-size: clamp(0.82rem, 3.2vw, 0.9rem);
      max-width: 100%;
    }

    body:not(.admin-page) .mf-cta-play-icon {
      width: 26px;
      height: 26px;
      flex-basis: 26px;
    }

    body:not(.admin-page) .mf-cta-play-icon .mf-play-svg {
      width: 26px;
      height: 26px;
    }

    body:not(.admin-page) .mf-hero-cta:active,
    body:not(.admin-page) .mf-hero-content .mf-hero-cta:active {
      opacity: 0.92;
      transform: none;
    }
  }

  body:not(.admin-page) .mf-hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  body:not(.admin-page) .mf-hero-dots {
    display: none !important;
  }

  /* Halaman sub (library, detail, genre) */
  body.mf-page .section-title,
  body.mf-page .mf-genre-page-title.section-title {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
    line-height: 1.2;
  }

  body.mf-page .page-breadcrumb {
    font-size: clamp(0.72rem, 2.8vw, 0.78rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.mf-page .library-meta,
  body.mf-page .section-sub {
    font-size: clamp(0.76rem, 3vw, 0.84rem);
    line-height: 1.45;
  }

  body.mf-page.detail-page .detail-title {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.mf-page.detail-page .detail-meta-primary {
    font-size: clamp(0.84rem, 3.2vw, 0.94rem);
  }

  body.mf-page.detail-page .detail-desc,
  body.mf-page.detail-page #detailDesc {
    font-size: clamp(0.88rem, 3.4vw, 0.96rem);
    line-height: 1.55;
  }

  body:not(.admin-page) .item .data h3 {
    font-size: clamp(0.78rem, 3.2vw, 0.86rem);
    line-height: 1.35;
  }

  body:not(.admin-page) .item .data > span,
  body:not(.admin-page) .item .data .serie {
    font-size: clamp(0.68rem, 2.8vw, 0.74rem);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .mf-hero-slider.mf-hero-slider--fade .mf-hero-slide {
    transition: opacity 0.01ms linear, visibility 0s linear 0s, transform none !important;
    transform: none !important;
  }

  body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-bg-cover,
  body:not(.admin-page) .mf-hero-slide.is-visible .mf-hero-content > * {
    animation: none !important;
  }
}

/* Mobile: scroll baris kartu lebih halus (IDLIX ? proximity, momentum) */
@media (max-width: 768px) {
  body.home #contenedor .carousel-row,
  body.home #contenedor .items.normal,
  body.home #contenedor .list_genres,
  body.home #contenedor .items.full,
  body.home #contenedor .items.featured.carousel-row,
  body.home #contenedor #continueWatchingGrid.items.normal.carousel-row,
  body.home #contenedor .mf-leaderboard-track,
  body.home #contenedor .mf-leaderboard-track.items.normal,
  body.home .mf-spotlight-track {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--mf-home-gutter, 16px);
  }

  body.home #contenedor .carousel-row > .item,
  body.home #contenedor .items.normal > .item,
  body.home #contenedor .list_genres > .item,
  body.home #contenedor .items.full > .item,
  body.home #contenedor .items.featured.carousel-row > .item,
  body.home #contenedor #continueWatchingGrid.items.normal.carousel-row > .item,
  body.home #contenedor .mf-leaderboard-track .mf-lb-card,
  body.home #contenedor .mf-leaderboard-track > .item,
  body.home .mf-spotlight .mf-sp-card {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* Remove top padding from contenedor when hero precedes it (homepage). */
body:not(.admin-page) .mf-hero-slider + #contenedor,
body.home .mf-hero-slider + #contenedor {
  padding-top: 0;
}

body:not(.admin-page).mf-page .mf-hero-slider + main.detail-main {
  padding-top: 0;
  margin-top: -1px;
}

/* Genre ? struktur halaman ala IDLIX (/genre & /genre/{slug}) */
body.mf-page .mf-genre-main {
  padding-top: 0;
}

body.mf-page #browseGrouped .mf-genre-page {
  padding-left: 0;
  padding-right: 0;
}

/* Hub /genre tanpa hero ? konten di bawah bar header (ala IDLIX /genre, bukan di belakang logo) */
body.mf-page:not(.mf-page-has-hero) .mf-genre-main,
body.mf-page:not(.mf-page-has-hero) #browseGrouped {
  position: relative;
  z-index: 1;
}

body.mf-page:not(.mf-page-has-hero) .mf-genre-page--hub,
body.mf-page.mf-no-page-hero .mf-genre-page--hub {
  padding-top: 12px;
  padding-left: var(--mf-page-gutter, 16px);
  padding-right: var(--mf-page-gutter, 16px);
  box-sizing: border-box;
}

.mf-genre-page {
  padding: 12px 0 20px;
  max-width: none;
  box-sizing: border-box;
}

.mf-genre-page-title.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mf-genre-section-label {
  margin: 22px 0 12px;
  padding: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.mf-genre-hub-lead {
  max-width: 42rem;
  margin: 0 0 4px;
  opacity: 0.88;
  line-height: 1.55;
}

.mf-genre-detail-sub {
  margin: 0 0 8px;
  opacity: 0.75;
}

.mf-genre-latest-section {
  padding: 0 var(--mf-page-gutter, 16px) 24px;
  box-sizing: border-box;
}

.mf-genre-latest-section .movie-grid {
  margin-top: 4px;
}

.mf-genre-empty {
  padding: 0 var(--mf-page-gutter, 16px) 32px;
}

.mf-genre-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 16px;
}

@media (min-width: 560px) {
  .mf-genre-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
}

@media (min-width: 900px) {
  .mf-genre-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
  }
}

.mf-genre-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 18, 0.95);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.mf-genre-hub-card:hover {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(28, 10, 12, 0.98);
  transform: translateY(-1px);
}

.mf-genre-hub-card h3 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mf-genre-hub-card .mf-genre-hub-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  font-size: 1.1rem;
}

/* Network hub ? logo directory ala IDLIX /network */
body.mf-page .mf-network-main,
body.mf-page #browseGrouped.mf-network-browse-root {
  position: relative;
  z-index: 1;
}

body.mf-page.mf-network-hub .mf-network-page--hub,
body.mf-page:not(.mf-page-has-hero) .mf-network-page--hub {
  padding-top: 12px;
  padding-left: var(--mf-page-gutter, 16px);
  padding-right: var(--mf-page-gutter, 16px);
  box-sizing: border-box;
}

.mf-network-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 24px;
}

@media (min-width: 560px) {
  .mf-network-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .mf-network-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .mf-network-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mf-network-hub-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 18, 0.95);
  color: #fff;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.mf-network-hub-card:hover,
.mf-network-hub-card:focus-visible {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(28, 10, 12, 0.98);
  transform: translateY(-1px);
  outline: none;
}

.mf-network-hub-card-media {
  flex: 0 0 88px;
  width: 88px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  /* Gelap seperti kartu — jangan plat putih */
  background: transparent;
  overflow: hidden;
  padding: 4px 6px;
  box-sizing: border-box;
}

.mf-network-hub-card-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
}

.mf-network-hub-card-fallback {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.9;
}

.mf-network-hub-card-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-network-hub-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.mf-network-hub-card-count {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.68;
}

.mf-network-hub-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  font-size: 1.15rem;
}

/* Selected network ? homepage-like chrome */
body.mf-network-home #networkHomeShell {
  display: block;
  position: relative;
  z-index: 2;
  background: #000000;
}

.mf-network-selected-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0 var(--mf-home-gutter, clamp(16px, 4vw, 48px));
  border: none;
  background: none;
  max-width: 100%;
  box-sizing: border-box;
}

.mf-network-selected-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  margin-left: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mf-network-selected-back:hover {
  color: #e50914;
  background: rgba(229, 9, 20, 0.1);
}

.mf-network-selected-back:focus-visible {
  color: #e50914;
  outline: 2px solid rgba(229, 9, 20, 0.85);
  outline-offset: 3px;
}

.mf-network-selected-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  max-width: min(100%, 420px);
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 18px;
  margin-left: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 22, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mf-network-selected-logo {
  flex: 0 0 auto;
  width: auto;
  min-width: 72px;
  max-width: 168px;
  height: 36px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 8px;
  background: transparent;
}

.mf-network-selected-logo[hidden] {
  display: none !important;
}

.mf-network-selected-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.mf-network-selected-bar--has-logo .mf-network-selected-logo {
  height: 36px;
  max-width: 200px;
}

.mf-network-selected-title {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-network-selected-title[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .mf-network-selected-bar {
    gap: 8px;
    margin: 2px 0 14px;
  }

  .mf-network-selected-brand {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    gap: 12px;
  }

  .mf-network-selected-logo,
  .mf-network-selected-bar--has-logo .mf-network-selected-logo {
    min-width: 64px;
    max-width: min(160px, 48vw);
    height: 30px;
  }

  .mf-network-selected-title {
    font-size: 1rem;
  }
}

.mf-genre-detail-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.mf-genre-detail-back:hover {
  color: #e50914;
}

/* Fallback slide ketika katalog belum siap atau tidak ada item layak. */
body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-slide.mf-hero-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(229, 9, 20, 0.32) 0%, rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle at 80% 70%, rgba(20, 35, 90, 0.4) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 60%, #000000 100%);
}

body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-slide.mf-hero-fallback::before {
  content: "METEORFLIX";
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 0.2em;
  color: rgba(229, 9, 20, 0.05);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 0 40px rgba(229, 9, 20, 0.15);
}

body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-arrow,
body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-dots,
body:not(.admin-page) .mf-hero-slider.is-fallback .mf-hero-scroll-hint {
  display: none !important;
}

/* Override agar [hidden] tidak hard-kill ? kasus edge bila JS tetap menyembunyikan. */
body:not(.admin-page) .mf-hero-slider[hidden] {
  display: block !important;
  min-height: clamp(220px, 28vh, 320px);
  background: linear-gradient(180deg, #050505 0%, #000000 100%);
}

/* --- Section header: small red accent bar before each row title --- */
body:not(.admin-page) #contenedor header h2,
body.home #contenedor header h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body:not(.admin-page) #contenedor header h2::before,
body.home #contenedor header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #ff1322 0%, #b00610 100%);
  border-radius: 2px;
  flex: 0 0 4px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
}

/* "See all" link turns red on hover */
body:not(.admin-page) .nav_items_module .see-all:hover {
  color: #e50914 !important;
  background: transparent !important;
}

/* Tinggi slot leaderboard ? rasio 728?90 ala Idlix; duo = 2 kolom, bukan billboard full-bleed */
body:not(.admin-page) {
  --mf-banner-leader-radius: 2px;
  --mf-banner-leader-max-w: 728px;
  --mf-banner-duo-gap: 10px;
  --mf-leaderboard-slot-min-h: clamp(48px, min(7.2vw, 6.4vh), 90px);
}

/* --- Banner ads: tighter & shorter so the hero stays dominant --- */
body:not(.admin-page) .module_home_ads {
  padding: 14px clamp(16px, 4vw, 48px) 6px;
}

body:not(.admin-page) .alert-box {
  background: linear-gradient(120deg, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid rgba(229, 9, 20, 0.18);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

body:not(.admin-page) .alert-box .badge {
  font-size: 0.6rem;
  padding: 2px 7px;
  letter-spacing: 0.18em;
}

body:not(.admin-page) .mf-banner-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

body:not(.admin-page) .mf-banner-row .kalongcolumn {
  width: 100%;
  max-width: var(--mf-banner-leader-max-w, 728px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: var(--mf-banner-leader-radius, 2px);
  background: rgba(12, 12, 14, 0.9);
  box-shadow: none;
}

body:not(.admin-page) .mf-banner-row .mf-banner-link {
  min-height: var(--mf-leaderboard-slot-min-h);
  border-radius: var(--mf-banner-leader-radius, 2px);
}

body:not(.admin-page) .mf-banner-video,
body:not(.admin-page) .mf-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
}

body:not(.admin-page) .module_home_ads .mf-banner-link {
  min-height: var(--mf-leaderboard-slot-min-h);
}

/* Slot leaderboard (home + halaman dalam): satu komponen, tampilan sama */
body.mf-page .mf-banner-duo-wrap.mf-page-ad-slot,
body.home #contenedor .mf-home-sponsor .mf-banner-duo-wrap {
  padding: 0;
  box-sizing: border-box;
}

/* Legacy --single only if explicitly needed; home beranda pakai duo 2-kolom */
body.mf-page .mf-banner-duo.mf-banner-duo--single,
body.home #contenedor .mf-home-sponsor .mf-banner-duo.mf-banner-duo--single {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--mf-banner-leader-max-w, 728px);
  margin-left: auto;
  margin-right: auto;
}

body.mf-page .mf-banner-duo .kalongcolumn {
  min-width: 0;
  display: flex;
  border-radius: var(--mf-banner-leader-radius, 2px);
  overflow: hidden;
  box-shadow: none;
}

body.home #contenedor .mf-home-sponsor .mf-banner-duo .kalongcolumn {
  min-width: 0;
  display: flex;
  border-radius: var(--mf-banner-leader-radius, 2px);
  overflow: hidden;
  box-shadow: none;
}

body.mf-page .mf-banner-duo .mf-banner-link,
body.home #contenedor .mf-home-sponsor .mf-banner-duo .mf-banner-link {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  aspect-ratio: 728 / 90;
  overflow: hidden;
  padding: 0;
  background: #0c0c0e;
  border: 0;
  border-radius: var(--mf-banner-leader-radius, 2px);
  box-sizing: border-box;
  box-shadow: none;
}

body.mf-page .mf-banner-duo.mf-banner-duo--single .mf-banner-link,
body.home #contenedor .mf-home-sponsor .mf-banner-duo.mf-banner-duo--single .mf-banner-link {
  max-width: var(--mf-banner-leader-max-w, 728px);
  margin-left: auto;
  margin-right: auto;
}

body.mf-page .mf-banner-duo .mf-banner-img,
body.mf-page .mf-banner-duo .mf-banner-video,
body.home #contenedor .mf-home-sponsor .mf-banner-duo .mf-banner-img,
body.home #contenedor .mf-home-sponsor .mf-banner-duo .mf-banner-video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
}

/* --- Footer touch-ups: tighter columns + Meteorflix tagline --- */
body:not(.admin-page) footer.main .columenu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 28px;
}

@media (max-width: 900px) {
  body:not(.admin-page) footer.main .columenu {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  body:not(.admin-page) footer.main .columenu {
    grid-template-columns: 1fr;
  }
}

body:not(.admin-page) footer.main .fotlogo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.admin-page) footer.main .fotlogo .text p::after {
  content: " ? Streaming sinematik, kapan saja, di mana saja.";
  color: rgba(229, 9, 20, 0.75);
  font-weight: 600;
}

/* --- Global smooth scroll + thin themed scrollbar --- */
html {
  scroll-behavior: smooth;
}

html,
body:not(.admin-page) {
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.5) #050505;
}

body:not(.admin-page)::-webkit-scrollbar {
  width: 9px;
}

body:not(.admin-page)::-webkit-scrollbar-track {
  background: #000;
}

body:not(.admin-page)::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.45);
  border-radius: 6px;
}

body:not(.admin-page)::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 9, 20, 0.75);
}

/* --- IDLIX-style flat nav --- */
.mf-nav.mf-nav-idlix {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.35rem;
  max-width: 100%;
  scrollbar-width: none;
}

.mf-nav.mf-nav-idlix::-webkit-scrollbar {
  display: none;
}

.mf-nav-links-flat {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
}

.mf-nav-links-flat a {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.mf-nav-links-flat a.active,
.mf-nav-library.active {
  opacity: 1;
  color: #ff3859;
}

.mf-nav-library {
  font-size: 0.82rem;
  white-space: nowrap;
  margin-left: 0.35rem;
  opacity: 0.85;
}

body:not(.admin-page) .mf-nav-admin {
  display: none !important;
}

body.admin-page .mf-nav-admin {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* --- Spotlight kartu (poster + backdrop) ? datar, tombol terpisah --- */
@keyframes mf-sp-card-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body.home .mf-spotlight {
  position: relative;
  margin: 4px 0 20px;
  padding: 0;
}

body.home .mf-spotlight[hidden],
body.home .mf-spotlight.mf-spotlight--empty,
body.home #homeSpotlightHeader.mf-spotlight-header--hidden {
  display: none !important;
}

body.home #contenedor header.mf-section-header--spotlight {
  margin-top: 8px;
}

body.home .mf-spotlight-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-snap-stop: always;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--mf-home-gutter, clamp(16px, 4vw, 48px));
  scroll-padding-left: var(--mf-home-gutter, clamp(16px, 4vw, 48px));
}

body.home .mf-spotlight-track::-webkit-scrollbar {
  display: none;
}

body.home .mf-spotlight .mf-sp-card {
  position: relative;
  flex: 0 0 min(calc(100% - 40px), 860px);
  width: min(calc(100% - 40px), 860px);
  height: clamp(220px, 24vw, 280px);
  min-height: clamp(220px, 24vw, 280px);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  display: block;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  isolation: isolate;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

body.home .mf-spotlight .mf-sp-card.mf-sp-card--animate {
  animation: mf-sp-card-in 0.45s ease both;
}

/* Sorotan: efek hanya saat hover/sentuh ? BUKAN slide aktif carousel */
@media (hover: hover) {
  body.home .mf-spotlight .mf-sp-card:hover {
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(229, 9, 20, 0.22);
  }
}

body.home .mf-spotlight .mf-sp-card:active {
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

body.home .mf-spotlight .mf-sp-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  body.home .mf-spotlight .mf-sp-card:hover .mf-sp-poster-img {
    transform: scale(1.02);
  }
}

body.home .mf-spotlight .mf-sp-card:active .mf-sp-poster-img {
  transform: scale(1.02);
}

body.home .mf-spotlight .mf-sp-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.home .mf-spotlight .mf-sp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.55s cubic-bezier(0, 0, 0.2, 1), opacity 0.45s ease;
}

body.home .mf-spotlight .mf-sp-bg-cover {
  z-index: 1;
  transition: transform 0.35s ease;
}

body.home .mf-spotlight .mf-sp-bg-blur {
  filter: blur(28px) saturate(115%);
  transform: scale(1.12);
  opacity: 0.8;
  z-index: 0;
}

@media (hover: hover) {
  body.home .mf-spotlight .mf-sp-card:hover .mf-sp-bg-cover {
    transform: scale(1.03);
  }
}

body.home .mf-spotlight .mf-sp-card:active .mf-sp-bg-cover {
  transform: scale(1.03);
}

body.home .mf-spotlight .mf-sp-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 42%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

body.home .mf-spotlight .mf-sp-split {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Equal inset ? vertical balance owned by body centering, not asymmetric pad */
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  pointer-events: none;
  min-height: 0;
}

body.home .mf-spotlight .mf-sp-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

body.home .mf-spotlight .mf-sp-poster {
  flex: 0 0 auto;
  width: clamp(84px, 11vw, 132px);
  max-width: clamp(84px, 11vw, 132px);
  max-height: clamp(126px, 16.5vw, 198px);
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #141414;
  box-sizing: border-box;
  align-self: center;
}

body.home .mf-spotlight .mf-sp-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/*
 * Text+CTA column: shrink-wrap then center as ONE unit on .mf-sp-body
 * (same vertical model as the poster). Never stretch-to-fill + pack-start ?
 * that is what made FILM?Tonton look top-heavy.
 */
body.home .mf-spotlight .mf-sp-content {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  max-width: none;
  align-self: center;
  height: fit-content;
  max-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

body.home .mf-spotlight .mf-sp-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  position: relative;
  min-height: 24px;
  padding: 5px 11px 5px 13px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.74);
  color: rgba(255, 255, 255, 0.97);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.home .mf-spotlight .mf-sp-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e50914;
  border-radius: 2px 0 0 2px;
}

body.home .mf-spotlight .mf-sp-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

body.home .mf-spotlight .mf-sp-title.mf-promo-title--logo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  -webkit-line-clamp: unset;
          line-clamp: unset;
  overflow: visible;
}

body.home .mf-spotlight .mf-title-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(36px, 5.5vw, 72px);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left bottom;
}

body.home .mf-spotlight .mf-sp-badge,
body.home .mf-spotlight .mf-sp-meta {
  flex-shrink: 0;
}

body.home .mf-spotlight .mf-sp-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.home .mf-spotlight .mf-sp-meta .mf-sp-star {
  color: #ffd54a;
}

body.home .mf-spotlight .mf-sp-pill--trending {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 193, 7, 0.22);
  color: #ffd54a;
  border: 1px solid rgba(255, 213, 74, 0.35);
}

body.home .mf-spotlight .mf-sp-desc {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  flex-shrink: 0;
  /* 2 lines + ink pad ? avoids mid-glyph / descender clip from line-clamp */
  font-size: 0.82rem;
  line-height: 1.5;
  min-height: calc(1.5em * 2 + 3px);
  min-height: calc(2lh + 3px);
  height: calc(1.5em * 2 + 3px);
  height: calc(2lh + 3px);
  max-height: calc(1.5em * 2 + 3px);
  max-height: calc(2lh + 3px);
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tombol Tonton ? premium v2 */
body.home .mf-spotlight .mf-sp-cta {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Modest desc?CTA air ? never margin-top:auto (breaks column centering) */
  margin-top: 4px;
  min-height: 42px;
  padding: 0 20px 0 8px;
  flex-shrink: 0;
  border-radius: 4px;
  border: none;
  background: linear-gradient(180deg, #f40612 0%, #d40812 52%, #b20710 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.86rem, 1.4vw, 0.92rem);
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: none;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

body.home .mf-spotlight .mf-sp-cta:hover {
  background: linear-gradient(180deg, #ff1a24 0%, #e50914 55%, #c40812 100%);
  transform: none;
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.home .mf-spotlight .mf-sp-cta:active {
  opacity: 0.94;
  transform: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  body.home .mf-spotlight .mf-sp-card.mf-sp-card--animate {
    animation: none;
  }

  body.home .mf-spotlight .mf-sp-card-link:hover .mf-sp-bg-cover,
  body.home .mf-spotlight .mf-sp-card-link:hover .mf-sp-poster-img,
  body.home .mf-spotlight .mf-sp-cta:hover {
    transform: none;
  }
}

body.home .mf-spotlight-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

body.home .mf-spotlight-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

body.home .mf-spotlight-arrow:hover {
  background: linear-gradient(135deg, #d50032 0%, #ff3d2e 100%);
  border-color: transparent;
  transform: translateY(-50%) scale(1.06);
}

body.home .mf-spotlight-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

body.home .mf-spotlight-prev {
  left: max(8px, env(safe-area-inset-left, 0px));
}

body.home .mf-spotlight-next {
  right: max(8px, env(safe-area-inset-right, 0px));
}

/* Small viewports: room for 2-line desc + logos (do NOT crush logos) */
@media (max-width: 768px) {
  body.home .mf-spotlight .mf-sp-card {
    flex: 0 0 calc(100% - 32px);
    width: calc(100% - 32px);
    /* Fit content; body centers the block ? avoid tall void under CTA */
    height: clamp(240px, 62vw, 284px);
    min-height: clamp(240px, 62vw, 284px);
  }

  body.home .mf-spotlight .mf-sp-split {
    padding: 16px clamp(14px, 4vw, 20px);
  }

  body.home .mf-spotlight .mf-sp-poster {
    width: clamp(68px, 18vw, 96px);
    max-width: clamp(68px, 18vw, 96px);
    max-height: clamp(102px, 27vw, 144px);
  }

  body.home .mf-spotlight .mf-sp-content {
    gap: 6px;
    overflow: visible;
    align-self: center;
    height: fit-content;
    max-height: 100%;
    justify-content: center;
  }

  body.home .mf-spotlight .mf-sp-title {
    font-size: clamp(0.92rem, 4vw, 1.18rem);
    -webkit-line-clamp: 2;
            line-clamp: 2;
  }

  body.home .mf-spotlight .mf-title-logo {
    max-height: clamp(32px, 8vw, 52px);
  }

  body.home .mf-spotlight .mf-sp-meta {
    font-size: 0.78rem;
    gap: 5px;
  }

  body.home .mf-spotlight .mf-sp-desc {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-size: 0.76rem;
    line-height: 1.55;
    /* Force 2-line box + ink pad. No padding inside clamp (border-box ate height). */
    padding: 0;
    box-sizing: border-box;
    min-height: calc(1.55em * 2 + 3px);
    min-height: calc(2lh + 3px);
    height: calc(1.55em * 2 + 3px);
    height: calc(2lh + 3px);
    max-height: calc(1.55em * 2 + 3px);
    max-height: calc(2lh + 3px);
    -webkit-line-clamp: 2;
            line-clamp: 2;
  }

  body.home .mf-spotlight .mf-sp-cta {
    min-height: 36px;
    padding: 0 14px 0 10px;
    font-size: 0.76rem;
  }

  body.home .mf-spotlight .mf-cta-play-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  body.home .mf-spotlight .mf-cta-play-icon .mf-play-svg {
    width: 28px;
    height: 28px;
  }
}

/* SOROTAN narrow/landscape: reinforce shrink-wrap + center (never pack-start) */
@media (max-width: 768px),
  (orientation: landscape) and (max-height: 500px) {
  body.home .mf-spotlight .mf-sp-body {
    align-items: center;
    height: 100%;
  }

  body.home .mf-spotlight .mf-sp-poster {
    align-self: center;
  }

  body.home .mf-spotlight .mf-sp-content {
    align-self: center;
    height: fit-content;
    max-height: 100%;
    justify-content: center;
  }

  body.home .mf-spotlight .mf-sp-cta {
    margin-top: 4px;
  }
}

/* Landscape tablets/phones: restore generous title logos (pre-clamp bump) */
@media (max-width: 1024px) and (orientation: landscape) {
  body.home .mf-spotlight .mf-title-logo {
    max-height: clamp(36px, 10vw, 64px);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  body.home .mf-spotlight .mf-sp-card {
    height: clamp(220px, 68vh, 268px);
    min-height: clamp(220px, 68vh, 268px);
  }

  body.home .mf-spotlight .mf-sp-split {
    padding: 14px clamp(14px, 3vw, 20px);
  }

  body.home .mf-spotlight .mf-sp-content {
    gap: 6px;
    height: fit-content;
    justify-content: center;
  }

  body.home .mf-spotlight .mf-sp-desc {
    -webkit-line-clamp: 1;
            line-clamp: 1;
    line-height: 1.55;
    padding: 0;
    min-height: calc(1.55em + 4px);
    min-height: calc(1lh + 4px);
    height: calc(1.55em + 4px);
    height: calc(1lh + 4px);
    max-height: calc(1.55em + 4px);
    max-height: calc(1lh + 4px);
  }

  body.home .mf-spotlight .mf-sp-cta {
    min-height: 34px;
  }
}

@media (max-width: 768px) and (max-height: 480px) {
  body.home .mf-spotlight .mf-sp-card {
    height: clamp(228px, 62vw, 268px);
    min-height: clamp(228px, 62vw, 268px);
  }

  body.home .mf-spotlight .mf-sp-desc {
    -webkit-line-clamp: 1;
            line-clamp: 1;
    line-height: 1.55;
    padding: 0;
    min-height: calc(1.55em + 4px);
    min-height: calc(1lh + 4px);
    height: calc(1.55em + 4px);
    height: calc(1lh + 4px);
    max-height: calc(1.55em + 4px);
    max-height: calc(1lh + 4px);
  }
}

.mf-leaderboard-section {
  padding-bottom: 28px;
  max-width: 100%;
}

.mf-leaderboard-section > header,
.mf-leaderboard-section .mf-section-header--leaderboard {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 24px 0 8px;
  border-bottom: none;
}

.mf-leaderboard-section > header h2,
.mf-leaderboard-section .mf-section-header--leaderboard h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  margin: 0;
  padding-left: 0;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mf-leaderboard-section > header h2 .mf-lb-heading-text,
.mf-leaderboard-section .mf-section-header--leaderboard h2 .mf-lb-heading-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.mf-lb-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Tablet & mobile (portrait + landscape): satu baris ? judul kiri, filter kanan */
@media (max-width: 1024px) {
  body.home #contenedor header.mf-section-header--leaderboard,
  .mf-leaderboard-section > header,
  .mf-leaderboard-section .mf-section-header--leaderboard {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2,
  .mf-leaderboard-section > header h2,
  .mf-leaderboard-section .mf-section-header--leaderboard h2 {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.82rem, 2.4vw, 1.05rem);
    letter-spacing: 0.05em;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2 .mf-lb-heading-text,
  .mf-leaderboard-section > header h2 .mf-lb-heading-text,
  .mf-leaderboard-section .mf-section-header--leaderboard h2 .mf-lb-heading-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  body.home #contenedor header.mf-section-header--leaderboard .mf-lb-toolbar,
  .mf-lb-toolbar {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
  }

  .mf-lb-filters {
    display: inline-flex;
    flex-shrink: 0;
    padding: 3px;
  }

  .mf-lb-filter {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: clamp(0.72rem, 2vw, 0.8rem);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  body.home #contenedor header.mf-section-header--leaderboard,
  .mf-leaderboard-section > header,
  .mf-leaderboard-section .mf-section-header--leaderboard {
    gap: 8px;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2,
  .mf-leaderboard-section > header h2,
  .mf-leaderboard-section .mf-section-header--leaderboard h2 {
    font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  }

  .mf-lb-filters {
    padding: 2px;
  }

  .mf-lb-filter {
    padding: 5px 7px;
    font-size: 0.7rem;
  }
}

/* PWA mobile rotasi: judul kiri + filter kanan sejajar, ellipsis jika sempit */
@media (max-width: 1024px) and (orientation: portrait),
       (max-width: 1024px) and (orientation: landscape) {
  body.home #contenedor header.mf-section-header--leaderboard,
  .mf-leaderboard-section > header,
  .mf-leaderboard-section .mf-section-header--leaderboard {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2,
  .mf-leaderboard-section > header h2,
  .mf-leaderboard-section .mf-section-header--leaderboard h2 {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2 .mf-lb-heading-text,
  .mf-leaderboard-section > header h2 .mf-lb-heading-text,
  .mf-leaderboard-section .mf-section-header--leaderboard h2 .mf-lb-heading-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.home #contenedor header.mf-section-header--leaderboard .mf-lb-toolbar,
  .mf-lb-toolbar {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
  }
}

.mf-lb-filters {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mf-lb-filter {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mf-lb-filter.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mf-leaderboard-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-block: 4px 12px;
  padding-inline: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: var(--mf-home-gutter, clamp(16px, 4vw, 48px));
}

.mf-leaderboard-track::-webkit-scrollbar {
  display: none;
}

.mf-leaderboard-track .mf-lb-card {
  flex: 0 0 clamp(160px, 15vw, 215px);
  scroll-snap-align: start;
}

@media (min-width: 1600px) {
  .mf-leaderboard-track .mf-lb-card,
  body.home #contenedor .mf-leaderboard-track .mf-lb-card {
    flex: 0 0 clamp(170px, 10vw, 230px);
  }

  body.home #contenedor .items.normal > .item,
  body.home #contenedor .list_genres > .item {
    flex: 0 0 clamp(170px, 10vw, 230px);
  }
}

.mf-lb-card {
  position: relative;
  display: block;
  min-width: 0;
  color: inherit;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  transition: transform 0.22s ease;
}

.mf-lb-card:hover {
  transform: translateY(-3px) scale(1.02);
  z-index: 2;
}

.admin-page .mf-lb-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.admin-page .mf-lb-card:hover {
  border-color: rgba(255, 56, 89, 0.45);
}

.mf-lb-rank {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 3;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  background: none;
  min-width: 0;
  height: auto;
}

.mf-lb-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #0d0d0d;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.mf-lb-poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.34) 48%,
    rgba(0, 0, 0, 0) 100%
  );
}

.mf-lb-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.mf-lb-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
}

.mf-lb-rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.82);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.mf-lb-rating .mf-lb-star {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: inline-block;
  background: #fbbf24;
  -webkit-mask: var(--mf-icon-star) center / contain no-repeat;
  mask: var(--mf-icon-star) center / contain no-repeat;
  font-size: 0;
  line-height: 0;
}

.mf-lb-rating .mf-rating-num {
  color: #fff;
  letter-spacing: 0.02em;
}

.mf-lb-views {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.82);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.mf-lb-views::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  -webkit-mask: var(--mf-icon-votes) center / contain no-repeat;
  mask: var(--mf-icon-votes) center / contain no-repeat;
  opacity: 0.95;
}

.mf-lb-views .mf-vote-num {
  font-variant-numeric: tabular-nums;
}

.mf-lb-meta {
  padding: 10px 2px 4px;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

/* IDLIX: satu baris, panjang ? ? */
.mf-lb-meta h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Trending cards ? shared item card UNGGULAN + nomor ranking saja */
.item.mf-trending-item .poster .mf-card-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  max-width: calc(50% - 12px);
}

@media (min-width: 1025px) {
  .item.mf-trending-item .poster .mf-card-rank {
    top: 12px;
    left: 12px;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    max-width: calc(45% - 16px);
  }
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.leaderboard-grid .mf-lb-card-page {
  display: block;
}

@media (max-width: 768px) {
  .mf-nav-library {
    display: none;
  }
}

/* --- Beranda: full-width PC (IDLIX), tanpa margin hitam samping --- */
body.home header.main .hbox,
body.home #dt_contenedor,
body.home #contenedor,
body.home footer.main .fbox {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.home #contenedor .module,
body.home #contenedor .module .content.full_width_layout.full {
  width: 100%;
  max-width: none;
}

body.home header.main {
  background: transparent;
  border-bottom: none;
}

/* Gutter genre spotlight: sama pola leaderboard (gutter di track, bukan wrapper) */
body.home #contenedor .mf-genre-spotlight {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

body.home #contenedor .mf-genre-spotlight .mf-section-header--genre {
  padding-left: var(--mf-home-gutter);
  padding-right: var(--mf-home-gutter);
}

body.home #contenedor .mf-leaderboard-track .mf-lb-card,
body.home #contenedor .mf-leaderboard-track > .item {
  flex: 0 0 clamp(160px, 15vw, 215px);
}

body.home #contenedor .mf-leaderboard-track .mf-lb-poster-wrap {
  border-radius: 10px;
  background: #0d0d0d;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

body.home #contenedor .mf-leaderboard-track .mf-lb-poster {
  border-radius: 10px;
  object-position: center center;
}

/* Trending ? judul kiri + filter All/Movies/Series kanan (satu baris, tidak numpuk) */
body.home #contenedor header.mf-section-header--leaderboard {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 26px var(--mf-home-gutter) 8px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

body.home #contenedor header.mf-section-header--leaderboard h2 {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-left: 0;
  margin: 0;
}

body.home #contenedor header.mf-section-header--leaderboard h2 .mf-lb-heading-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

body.home #contenedor header.mf-section-header--leaderboard .mf-lb-toolbar {
  flex: 0 0 auto;
  flex-shrink: 0;
}

body.home #contenedor .mf-leaderboard-track.items.normal.carousel-row {
  padding: 4px var(--mf-home-gutter) 22px;
  scroll-padding-inline: var(--mf-home-gutter);
  box-sizing: border-box;
}

/* Beranda: baris kartu poster biasa saja ? FEATURED, COLLECTIONS, MOVIES, dll. */
body.home #contenedor #dt-featured,
body.home #contenedor #dt-collections,
body.home #contenedor #dt-network-originals,
body.home #contenedor #dt-movies,
body.home #contenedor #dt-upcoming,
body.home #contenedor #dt-tvshows,
body.home #contenedor #dt-seasons,
body.home #contenedor #genre-spotlight-track {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 14px;
  padding: 4px var(--mf-home-gutter) 22px;
  scroll-padding-inline: var(--mf-home-gutter);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  grid-template-columns: none;
}

body.home #contenedor #dt-featured::-webkit-scrollbar,
body.home #contenedor #dt-collections::-webkit-scrollbar,
body.home #contenedor #dt-network-originals::-webkit-scrollbar,
body.home #contenedor #dt-movies::-webkit-scrollbar,
body.home #contenedor #dt-upcoming::-webkit-scrollbar,
body.home #contenedor #dt-tvshows::-webkit-scrollbar,
body.home #contenedor #dt-seasons::-webkit-scrollbar,
body.home #contenedor #genre-spotlight-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.home #contenedor #dt-featured > .item,
body.home #contenedor #dt-collections > .item,
body.home #contenedor #dt-network-originals > .item,
body.home #contenedor #dt-movies > .item,
body.home #contenedor #dt-upcoming > .item,
body.home #contenedor #dt-tvshows > .item,
body.home #contenedor #dt-seasons > .item,
body.home #contenedor #genre-spotlight-track > .item,
body.home #contenedor #leaderboard-trending-track > .item,
body.home #contenedor #leaderboard-country-track > .item,
body.home #contenedor .mf-leaderboard-track > .item {
  flex: 0 0 clamp(160px, 15vw, 215px);
  margin: 0;
}

body.home #contenedor #dt-featured::after,
body.home #contenedor #dt-collections::after,
body.home #contenedor #dt-network-originals::after,
body.home #contenedor #dt-movies::after,
body.home #contenedor #dt-upcoming::after,
body.home #contenedor #dt-tvshows::after,
body.home #contenedor #dt-seasons::after,
body.home #contenedor #genre-spotlight-track::after,
body.home #contenedor #leaderboard-trending-track::after,
body.home #contenedor #leaderboard-country-track::after,
body.home #contenedor .mf-leaderboard-track::after {
  content: "";
  flex: 0 0 max(var(--mf-home-gutter), env(safe-area-inset-right, 0px));
  width: max(var(--mf-home-gutter), env(safe-area-inset-right, 0px));
  min-width: max(var(--mf-home-gutter), env(safe-area-inset-right, 0px));
  height: 1px;
  pointer-events: none;
  flex-shrink: 0;
}

body.home #contenedor #dt-featured > .mf-carousel-scroll-end,
body.home #contenedor #dt-collections > .mf-carousel-scroll-end,
body.home #contenedor #dt-network-originals > .mf-carousel-scroll-end,
body.home #contenedor #dt-movies > .mf-carousel-scroll-end,
body.home #contenedor #dt-upcoming > .mf-carousel-scroll-end,
body.home #contenedor #dt-tvshows > .mf-carousel-scroll-end,
body.home #contenedor #dt-seasons > .mf-carousel-scroll-end,
body.home #contenedor #genre-spotlight-track > .mf-carousel-scroll-end {
  display: none !important;
}

body.home #contenedor .items.normal,
body.home #contenedor .list_genres,
body.home #contenedor .items.full,
body.home #contenedor #continueWatchingGrid.items.normal.carousel-row {
  padding: 4px var(--mf-home-gutter) 22px;
  scroll-padding-inline: var(--mf-home-gutter);
}

/* --- Beranda: urutan baris film ? sponsor ? genre (layout referensi) --- */
body.home .mf-hero-slider + #contenedor {
  padding-top: 0;
}

body.home #contenedor header.mf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: none;
  margin: 0;
  padding: 26px var(--mf-home-gutter) 8px;
  box-sizing: border-box;
}

body.home #contenedor header.mf-section-header--plain {
  padding-bottom: 4px;
}

body.home #contenedor header.mf-section-header h2 {
  margin: 0;
  padding-left: 0;
  flex: 1 1 auto;
  min-width: 0;
}


body.home #contenedor header.mf-section-header .nav_items_module {
  flex: 0 0 auto;
}

body.home #contenedor .mf-home-sponsor {
  max-width: none;
  width: 100%;
  margin: 8px 0 12px;
  padding: 0;
  box-sizing: border-box;
}

/* Label SPONSOR disembunyikan ? strip leaderboard polos ala Idlix */
body.home #contenedor .mf-home-sponsor .mf-sponsor-label {
  display: none !important;
}

/* Banner berpasangan Idlix-style: 2 kolom side-by-side, tinggi ~90?110px */
body.home #contenedor .mf-banner-duo-wrap {
  padding: 12px var(--mf-home-gutter) 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

body.home #contenedor .mf-banner-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mf-banner-duo-gap, 10px);
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
}

/* Jangan pakai --single di home duo; grid 2 kolom selalu (slot 6 boleh kosong) */
body.home #contenedor .mf-banner-duo.mf-banner-duo--single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin: 0;
}

body.home #contenedor .mf-banner-duo .kalongcolumn {
  min-width: 0;
  display: flex;
  border-radius: var(--mf-banner-leader-radius, 2px);
  overflow: hidden;
  box-shadow: none;
  background: #0c0c0e;
}

body.home #contenedor .mf-banner-duo .mf-banner-link {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  aspect-ratio: 728 / 90;
  overflow: hidden;
  padding: 0;
  background: #0c0c0e;
  border: 0;
  border-radius: var(--mf-banner-leader-radius, 2px);
  box-sizing: border-box;
  box-shadow: none;
}

body.home #contenedor .mf-banner-duo .mf-banner-video,
body.home #contenedor .mf-banner-duo .mf-banner-img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
}

body.home #contenedor .mf-banner-duo .kalongcolumn.is-banner-empty {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  body.home #contenedor .mf-banner-duo {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.home #contenedor .mf-banner-duo .kalongcolumn.is-banner-empty {
    display: none;
  }
}

/* Dropdown genre/network ala IDLIX */
body.home .mf-section-header--genre,
body.home .mf-genre-spotlight .mf-section-header--genre,
body.home .mf-section-header--network,
body.home .mf-network-originals .mf-section-header--network {
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 45;
  overflow: visible;
}

body.home .mf-genre-dropdown,
body.home .mf-network-dropdown {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  z-index: 50;
}

body.home .mf-genre-dropdown-trigger,
body.home .mf-network-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-align: left;
  position: relative;
  z-index: 51;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

body.home .mf-genre-dropdown-label,
body.home .mf-network-dropdown-label {
  margin: 0;
  padding: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ff4d6d;
  text-transform: none;
}

body.home .mf-genre-dropdown-label::before,
body.home .mf-network-dropdown-label::before {
  display: none;
}

body.home .mf-genre-dropdown-chevron,
body.home .mf-network-dropdown-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

body.home .mf-genre-dropdown.is-open .mf-genre-dropdown-chevron,
body.home .mf-network-dropdown.is-open .mf-network-dropdown-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

body.home .mf-genre-dropdown-menu,
body.home .mf-network-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  min-width: min(280px, 90vw);
  max-height: clamp(280px, 45vh, 360px);
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  background: rgba(18, 18, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.home .mf-genre-dropdown-menu::-webkit-scrollbar,
body.home .mf-network-dropdown-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.home .mf-genre-dropdown-menu[hidden],
body.home .mf-network-dropdown-menu[hidden] {
  display: none !important;
}

body.home .mf-genre-dropdown-option,
body.home .mf-network-dropdown-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
}

body.home .mf-genre-dropdown-option:hover,
body.home .mf-genre-dropdown-option.is-active,
body.home .mf-network-dropdown-option:hover,
body.home .mf-network-dropdown-option.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ff5c7a;
}

body.home .mf-genre-see-all,
body.home .mf-network-see-all {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

body.home #contenedor header.mf-section-header > .see-all {
  flex: 0 0 auto;
  align-self: center;
}

body.home .mf-lb-toolbar > .see-all {
  flex: 0 0 auto;
  align-self: center;
}

/* Sembunyikan tombol panah bulat jelek di beranda */
body.home .nav-btn {
  display: none !important;
}

/* Header mobile & tablet ? baris: logo | search + menu; scroll = pill (IDLIX) */
@media (max-width: 1024px) {
  body.mf-has-idlix-header {
    --mf-header-pill-inset-x: clamp(18px, 5vw, 32px);
    --mf-header-pill-top: 12px;
    --mf-header-bar-h: 52px;
    --mf-header-icon-btn: 36px;
    --mf-header-icon-size: 18px;
  }

  body.mf-has-idlix-header .mf-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  body.mf-has-idlix-header .mf-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--mf-header-bar-h, 56px);
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      max(14px, env(safe-area-inset-right, 0px))
      8px
      max(14px, env(safe-area-inset-left, 0px));
  }

  /* Mobile scroll: pill tidak menempel ke tepi browser ? jarak + safe-area (notch) */
  body.mf-has-idlix-header.is-scrolled .mf-header {
    top: max(var(--mf-header-pill-top, 12px), env(safe-area-inset-top, 0px));
  }

  body.mf-has-idlix-header.is-scrolled .mf-header-inner {
    margin-left: auto;
    margin-right: auto;
    padding:
      8px
      max(clamp(12px, 3.5vw, 18px), env(safe-area-inset-right, 0px))
      8px
      max(clamp(12px, 3.5vw, 18px), env(safe-area-inset-left, 0px));
  }

  body.mf-has-idlix-header .mf-header .logo-mark {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    letter-spacing: 0.04em;
  }

  body.mf-has-idlix-header .mf-header-inner > .logo,
  body.mf-has-idlix-header .mf-header-inner > .logo.logo--idlix {
    order: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 58%;
  }

  body.mf-has-idlix-header .mf-header-inner > .mf-nav.mf-nav--idlix {
    display: none;
    order: 2;
    flex: none;
  }

  body.mf-has-idlix-header .mf-header-inner > .mf-header-actions {
    order: 1;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
  }

  /* Search & menu ? ikon polos (tanpa bubble), sedikit lebih kecil dari desktop */
  body.mf-has-idlix-header .mf-search-trigger,
  body.mf-has-idlix-header .mf-header .nav-toggle,
  body.mf-has-idlix-header .mf-nav-toggle {
    width: var(--mf-header-icon-btn, 36px);
    height: var(--mf-header-icon-btn, 36px);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.mf-has-idlix-header .mf-search-trigger .mf-nav-icon--lg,
  body.mf-has-idlix-header .mf-nav-toggle .mf-nav-icon--lg {
    width: var(--mf-header-icon-size, 18px);
    height: var(--mf-header-icon-size, 18px);
  }

  body.mf-has-idlix-header .mf-header .nav-toggle,
  body.mf-has-idlix-header .mf-nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  body.mf-has-idlix-header {
    --mf-header-pill-top: 14px;
    --mf-header-bar-h: 50px;
  }
}

@media (max-width: 1024px) {
  body.mf-has-idlix-header.nav-open .mf-header-inner .mf-nav.mf-nav--idlix {
    display: flex;
    position: fixed;
    top: calc(
      max(var(--mf-header-pill-top, 8px), env(safe-area-inset-top, 0px)) +
      var(--mf-header-bar-h, 56px) + 6px
    );
    left: max(var(--mf-header-pill-inset-x, 12px), env(safe-area-inset-left, 0px));
    right: max(var(--mf-header-pill-inset-x, 12px), env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 14px;
    background: rgba(12, 12, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 121;
    max-height: min(70vh, calc(100dvh - 88px));
    overflow-y: auto;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
    -webkit-overflow-scrolling: touch;
  }

  body.mf-has-idlix-header .mf-header .mf-nav-link {
    padding: 12px 14px;
    font-size: 0.98rem;
    border-radius: 8px;
  }

  body.mf-has-idlix-header .mf-header .mf-nav-link span {
    flex: 1 1 auto;
  }

  body.mf-has-idlix-header .mf-nav-more {
    display: none;
  }

  body.mf-has-idlix-header .mf-nav-mobile-more {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  body.mf-has-idlix-header .mf-nav-mobile-more .mf-nav-link {
    width: 100%;
  }

}

@media (min-width: 1025px) {
  body.mf-has-idlix-header .mf-header .nav-toggle,
  body.mf-has-idlix-header .mf-nav-toggle {
    display: none !important;
  }
}

/* Semua halaman publik: grid & gutter HP kecil */
@media (max-width: 640px) {
  body.mf-page {
    --mf-page-gutter: max(14px, env(safe-area-inset-left, 0px), 4vw);
  }

  body.mf-page.detail-page .detail-hero,
  body.mf-page.detail-page .mf-detail-backdrop {
    padding-left: 0;
    padding-right: 0;
  }

  body.mf-page.detail-page .detail-episodes,
  body.mf-page.detail-page #episodesSection,
  body.mf-page.detail-page .detail-recommend,
  body.mf-page.detail-page .mf-detail-recommend,
  body.mf-page.detail-page .detail-main > section.section.detail-recommend {
    margin-left: max(var(--mf-page-gutter), env(safe-area-inset-left, 0px));
    margin-right: max(var(--mf-page-gutter), env(safe-area-inset-right, 0px));
    padding-left: 0;
    padding-right: 0;
  }

  .detail-episode-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    margin: 0 0 6px;
  }

  .detail-episode-now {
    font-size: 0.66rem;
    padding: 0 2px;
  }

  .detail-episode-nav-btn,
  .detail-episode-nav-btn--next {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
    margin-left: 0 !important;
  }

  .detail-episode-nav-icon {
    width: 12px;
    height: 12px;
  }

  @media (max-width: 400px) {
    .detail-episode-nav-btn span:not(.detail-episode-nav-icon) {
      display: none;
    }

    .detail-episode-nav-btn {
      min-width: 30px;
      padding: 4px 6px !important;
    }
  }

  body.mf-page #libraryGrid.movie-grid,
  body.mf-page #browseGrouped .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  body:not(.admin-page) .item .poster .rating {
    top: 10px !important;
    right: 10px !important;
    padding: 5px 10px !important;
  }

  body:not(.admin-page) .item .poster .featu-stack,
  body:not(.admin-page) .item .poster .featu.featu--soon {
    top: 10px !important;
    left: 10px !important;
  }

  body:not(.admin-page) .item .poster .featu-stack {
    max-width: calc(100% - 56px);
  }

  body.mf-page .movie-grid .item .poster .featu.featu--soon,
  body.mf-page #recommendGrid .item .poster .featu.featu--soon,
  body.home .items.carousel-row .item .poster .featu.featu--soon {
    max-width: calc(100% - 56px);
    font-size: 0.58rem !important;
    padding: 4px 8px !important;
  }

  body.home .items.carousel-row .item .poster .rating {
    top: 10px !important;
    right: 10px !important;
  }

  body:not(.admin-page) .item .poster .mf-poster-foot,
  body:not(.admin-page) .item.is-upcoming .poster .mf-poster-foot {
    left: 10px !important;
    bottom: 10px !important;
  }

  body.mf-page .section-header h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  body.home #contenedor {
    --mf-home-gutter: max(12px, env(safe-area-inset-left, 0px), 3.5vw);
  }

  body.home #contenedor header.mf-section-header:not(.mf-section-header--leaderboard) {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  body.home #contenedor header.mf-section-header--leaderboard {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 6px;
  }

  body.home #contenedor header.mf-section-header h2 {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  body.home #contenedor header.mf-section-header--leaderboard h2 {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.8rem, 2.6vw, 0.95rem);
  }

  body.home #contenedor header.mf-section-header--leaderboard h2 .mf-lb-heading-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  body.home #contenedor header.mf-section-header--leaderboard .mf-lb-toolbar {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
  }

  .mf-leaderboard-track .mf-lb-card {
    flex: 0 0 clamp(108px, 29vw, 132px);
  }

  body.home #contenedor .items.normal > .item,
  body.home #contenedor .items.featured.carousel-row > .item,
  body.home #contenedor #continueWatchingGrid.items.normal.carousel-row > .item {
    flex: 0 0 clamp(108px, 29vw, 132px);
  }

  body.home #contenedor .items.full > .item.episodes,
  body.mf-has-idlix-header #contenedor .items.full > .item.episodes {
    flex: 0 0 clamp(168px, 44vw, 220px);
  }

  /* Episode: tetap landscape 16:9 seperti desktop */
  body.mf-has-idlix-header .items.full > .item.episodes .poster,
  body.home #contenedor .items.full > .item.episodes .poster {
    aspect-ratio: 16 / 9;
  }

  body.home .mf-genre-dropdown-menu,
  body.home .mf-network-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

}

/* Admin: panel pengaturan beranda */
.admin-page .admin-home-sections {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .admin-home-sections legend {
  padding: 0 6px;
  font-weight: 600;
}

.admin-page .admin-home-hero-block label {
  display: block;
  margin-bottom: 12px;
}

.admin-page #homeHeroPromoLinksInput {
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.admin-page .admin-home-genre-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0;
}

.admin-page .admin-home-genre-row {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.admin-page .admin-home-genre-grid {
  gap: 12px;
}

.admin-page .admin-home-genre-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .admin-page .admin-home-genre-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-home-sections label {
    width: 100%;
  }
}

/* Semua halaman publik: kartu IDLIX tanpa garis tepi */
body:not(.admin-page) .items .item,
body:not(.admin-page) .items.carousel-row > .item,
body:not(.admin-page) .movie-grid .item,
body:not(.admin-page) .leaderboard-grid .item,
body:not(.admin-page) .continue-watching-grid .item,
body:not(.admin-page) #continueWatchingGrid.items.normal.carousel-row > .item {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.admin-page) .items .item:hover,
body:not(.admin-page) .items.carousel-row > .item:hover,
body:not(.admin-page) .movie-grid .item:hover,
body:not(.admin-page) .leaderboard-grid .item:hover,
body:not(.admin-page) .continue-watching-grid .item:hover,
body:not(.admin-page) #continueWatchingGrid.items.normal.carousel-row > .item:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Mobile: semua poster tetap utuh (proporsi desktop, tidak disembunyikan) */
@media (max-width: 768px) {
  body:not(.admin-page) .item .poster img,
  body:not(.admin-page) .movie-grid .item .poster img,
  body.home #contenedor .mf-leaderboard-track .mf-lb-poster {
    object-fit: cover;
    object-position: center center;
  }

  body:not(.admin-page) .items.full > .item.episodes .poster,
  body.home #contenedor .items.full > .item.episodes .poster {
    aspect-ratio: 16 / 9;
  }

  body:not(.admin-page) .items.full > .item.episodes .poster img,
  body.home #contenedor .items.full > .item.episodes .poster img {
    object-fit: cover;
    object-position: center top;
  }
}

/* --- Pencarian: filter genre/tahun di overlay --- */
.mf-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 0 4px;
}

.mf-search-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;
  min-width: 120px;
}

.mf-search-filter span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mf-search-filter select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 14, 0.95);
  color: #fff;
  font-size: 0.88rem;
}

/* --- Halaman 404 --- */
.mf-404-section {
  max-width: 1100px;
  margin: 0 auto;
}

.mf-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 28px;
}

.mf-404-popular-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.mf-404-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.mf-404-empty {
  color: rgba(255, 255, 255, 0.65);
}

/* --- PWA install banner --- */
.mf-pwa-install-banner {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(520px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.mf-pwa-install-text {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  flex: 1 1 200px;
}

.mf-pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-pwa-install-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #e50914;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mf-pwa-install-dismiss {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Offline catalog list --- */
.mf-offline-main {
  padding: 24px 16px 48px;
}

.mf-offline-catalog-wrap {
  margin-top: 20px;
}

.mf-offline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mf-offline-list a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.mf-offline-list a:hover {
  color: #ff6b6b;
}

.mf-offline-meta {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* --- Kartu grid vs leaderboard: layout badge berbeda --- */

/* Grid portrait (film/series): voter + WEBDL stack kiri bawah */
.item .poster .mf-poster-foot {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.item .poster .mf-poster-foot:empty {
  display: none;
}

.item .poster .mf-poster-foot .mf-card-votes,
.item .poster .mf-poster-foot .mepo,
.item .poster .mf-poster-foot > .quality {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

body:not(.admin-page) .item .poster .mf-poster-foot .mepo {
  position: static !important;
  display: inline-flex !important;
  background: none !important;
}

body:not(.admin-page) .item .poster .mf-poster-foot .mepo .quality,
body:not(.admin-page) .item .poster .mf-poster-foot > .quality {
  position: static !important;
  display: inline-flex !important;
}

/* ===== Meteorflix quality badge design system ===== */
.mf-quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 7px;
  box-sizing: border-box;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(244, 248, 255, 0.94);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(10, 15, 24, 0.86);
  border: 1px solid rgba(190, 205, 228, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .mf-quality-badge {
    background: rgba(12, 16, 24, 0.92);
  }
}

.mf-quality-badge[data-quality="dvd-rip"] {
  border-color: rgba(180, 160, 220, 0.36);
  color: rgba(232, 224, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(210, 190, 255, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.24);
}

.mf-quality-badge[data-quality="hd-rip"] {
  border-color: rgba(120, 170, 220, 0.38);
  color: rgba(210, 232, 255, 0.96);
}

.mf-quality-badge[data-quality="br-rip"] {
  border-color: rgba(90, 150, 255, 0.42);
  color: rgba(210, 228, 255, 0.98);
}

.mf-quality-badge[data-quality="bd-rip"] {
  border-color: rgba(70, 120, 230, 0.46);
  color: rgba(200, 220, 255, 0.98);
}

.mf-quality-badge[data-quality="web-dl"] {
  border-color: rgba(60, 210, 190, 0.42);
  color: rgba(210, 255, 245, 0.98);
}

.mf-quality-badge[data-quality="web-rip"] {
  border-color: rgba(40, 180, 170, 0.4);
  color: rgba(200, 245, 240, 0.96);
}

.mf-quality-badge[data-quality="dth-rip"] {
  border-color: rgba(220, 160, 80, 0.42);
  color: rgba(255, 230, 200, 0.96);
}

.mf-quality-badge[data-quality="hdtv"] {
  border-color: rgba(130, 140, 255, 0.44);
  color: rgba(220, 224, 255, 0.98);
}

.mf-quality-badge[data-quality="custom"] {
  border-color: rgba(190, 205, 228, 0.22);
  color: rgba(230, 236, 245, 0.92);
}

/* Override legacy solid-red .quality when using design system */
body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge,
body:not(.admin-page) .item .poster > .quality.mf-quality-badge,
body:not(.admin-page) .item .poster .mf-poster-foot .mepo .quality.mf-quality-badge,
body:not(.admin-page) .item .poster .mf-poster-foot > .quality.mf-quality-badge {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(10, 15, 24, 0.86) !important;
  color: inherit !important;
  border: 1px solid rgba(190, 205, 228, 0.2) !important;
  border-radius: 7px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: 0.055em;
  line-height: 1 !important;
  min-height: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.24) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="web-dl"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="web-dl"] {
  border-color: rgba(60, 210, 190, 0.42) !important;
  color: rgba(210, 255, 245, 0.98) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="web-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="web-rip"] {
  border-color: rgba(40, 180, 170, 0.4) !important;
  color: rgba(200, 245, 240, 0.96) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="bd-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="bd-rip"] {
  border-color: rgba(70, 120, 230, 0.46) !important;
  color: rgba(200, 220, 255, 0.98) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="br-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="br-rip"] {
  border-color: rgba(90, 150, 255, 0.42) !important;
  color: rgba(210, 228, 255, 0.98) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="hd-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="hd-rip"] {
  border-color: rgba(120, 170, 220, 0.38) !important;
  color: rgba(210, 232, 255, 0.96) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="dvd-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="dvd-rip"] {
  border-color: rgba(180, 160, 220, 0.36) !important;
  color: rgba(232, 224, 255, 0.96) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="dth-rip"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="dth-rip"] {
  border-color: rgba(220, 160, 80, 0.42) !important;
  color: rgba(255, 230, 200, 0.96) !important;
}

body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge[data-quality="hdtv"],
body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge[data-quality="hdtv"] {
  border-color: rgba(130, 140, 255, 0.44) !important;
  color: rgba(220, 224, 255, 0.98) !important;
}

/* Detail meta quality ? same token, slightly tighter */
body.mf-page.detail-page .mf-detail-meta-line .meta-badge--quality.mf-quality-badge,
body.mf-page.detail-page #detailQuality.mf-quality-badge {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(10, 15, 24, 0.86);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  padding: 3px 8px;
  line-height: 1;
  min-height: 22px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .mf-quality-badge,
  body:not(.admin-page) .item .poster .mepo .quality.mf-quality-badge,
  body:not(.admin-page) .item .poster .mf-poster-foot .quality.mf-quality-badge {
    min-height: 20px;
    padding: 2px 7px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
  }
}

.item .poster .mf-poster-foot .mf-card-votes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.item .poster .mf-poster-foot .mf-card-votes::before {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Episode (16:9): WEBDL kiri bawah, voter kanan bawah ? seperti bar leaderboard */
body:not(.admin-page) .item.episodes .poster > .mf-card-votes {
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 4 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

body:not(.admin-page) .item.episodes .poster > .mf-card-votes::before {
  content: "";
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.continue-item-card .poster .mf-poster-foot {
  bottom: 10px;
}

.continue-item-card .poster .mf-card-votes {
  z-index: 5;
}

/* --- Lanjut nonton (poster + progress) --- */
.continue-item-card .poster {
  position: relative;
}

.continue-item-card .continue-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 4px;
  border-radius: 0;
  z-index: 4;
}

.continue-item-card .continue-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* --- Pencarian instan (overlay header) --- */
.mf-search-instant-results {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mf-search-instant-results[hidden] {
  display: none !important;
}

.mf-search-instant-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mf-search-instant-empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.mf-search-instant-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.mf-search-instant-track .item {
  flex: 0 0 118px;
  scroll-snap-align: start;
}

.mf-search-instant-track .item .data h3 {
  font-size: 0.72rem;
  line-height: 1.25;
}

.mf-search-instant-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ff6b81;
  text-decoration: none;
}

.mf-search-instant-more:hover {
  color: #ff8fa3;
}

.mf-search-instant-fallback {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
}

.mf-search-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mf-search-recent-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.mf-search-recent-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

/* --- Admin: hero manual drag-drop --- */
.admin-page .admin-hero-sortable {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-page .admin-hero-sort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
}

.admin-page .admin-hero-sort-item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.admin-page .admin-hero-sort-item.is-drop-target {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.admin-page .admin-hero-sort-handle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  user-select: none;
}

.admin-page .admin-hero-sort-title {
  flex: 1;
  font-size: 0.88rem;
}

.admin-page .admin-hero-sort-remove {
  flex-shrink: 0;
  min-width: 34px;
  padding: 4px 8px;
}

.admin-page .admin-hero-preview-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.admin-page .admin-hero-preview {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.admin-page .admin-hero-preview-lead {
  margin: 0 0 4px;
}

.admin-page .admin-hero-preview-empty {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.admin-page .admin-hero-preview-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.admin-page .admin-hero-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .admin-hero-preview-item:last-child {
  border-bottom: none;
}

.admin-page .admin-hero-preview-thumb {
  width: 36px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.admin-page .admin-hero-preview-thumb--empty {
  display: inline-block;
}

.admin-page .admin-hero-preview-meta {
  min-width: 0;
}

.admin-page .admin-hero-preview-promo {
  display: block;
  margin-top: 2px;
  opacity: 0.65;
  font-size: 0.82rem;
  word-break: break-all;
}

.admin-page .admin-global-rating-hint {
  margin-top: 10px;
}

/* ===== Admin workspace layout (2026 polish) ===== */
.admin-page .admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.admin-page .admin-workspace-editor,
.admin-page .admin-workspace-catalog {
  min-width: 0;
}

.admin-page .admin-workspace-editor {
  container-type: inline-size;
  container-name: admin-editor;
  overflow: visible;
}

.admin-page .admin-editor-panel {
  position: relative;
  overflow: visible;
}

.admin-page .admin-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-page .admin-editor-head .section-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.admin-page .admin-logout-btn {
  flex-shrink: 0;
}

.admin-page .admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 0.8rem;
}

.admin-page .admin-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.admin-page .admin-tab.is-active .admin-tab-num {
  background: rgba(255, 255, 255, 0.22);
}

.admin-page .admin-tab-panel {
  padding: 20px;
  margin-bottom: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.admin-page .admin-subcard {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.38);
  overflow: visible;
}

.admin-page .admin-subcard:last-child {
  margin-bottom: 0;
}

.admin-page .admin-subcard-title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.admin-page .admin-subcard-head {
  margin-bottom: 10px;
}

.admin-page .admin-subcard-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page .admin-subcard-head-row .admin-subcard-title {
  margin-bottom: 0;
}

.admin-page .admin-span-2 {
  grid-column: span 2;
}

.admin-page .admin-title-label input {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.45;
}

.admin-page .admin-desc-label textarea {
  min-height: 120px;
  padding: 12px 14px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.admin-page .admin-grid-tight {
  gap: 10px;
}

.admin-page .admin-label-hint {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.74rem;
}

.admin-page .admin-desc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
}

.admin-page .admin-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.admin-page .admin-notice-muted {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.82);
}

.admin-page .admin-flags-publish {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.admin-page .admin-flags-publish label span,
.admin-page .admin-flags-sections label {
  line-height: 1.35;
}

.admin-page .admin-flags-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.admin-page .admin-legend {
  grid-column: 1 / -1;
  padding: 0;
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
}

.admin-page .admin-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  position: sticky;
  bottom: 12px;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.admin-page .admin-action-bar .btn-primary {
  flex: 1 1 180px;
}

.admin-page .admin-btn-danger {
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fecaca !important;
}

.admin-page .admin-btn-danger:hover {
  background: rgba(127, 29, 29, 0.35) !important;
}

.admin-page .admin-catalog-panel {
  position: sticky;
  top: calc(var(--mf-header-offset, 72px) + 12px);
  max-height: calc(100vh - var(--mf-header-offset, 72px) - 24px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  container-type: inline-size;
  container-name: admin-catalog;
  min-width: 0;
  overflow: hidden;
}

.admin-page .admin-catalog-head {
  margin-bottom: 12px;
}

.admin-page .admin-catalog-head .section-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.admin-page .admin-catalog-search-wrap {
  margin-bottom: 12px;
}

.admin-page .admin-catalog-search {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 14, 0.65);
  color: #fff;
  font-size: 0.86rem;
}

.admin-page .admin-catalog-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr));
  gap: 10px;
  align-content: start;
}

.admin-page .admin-catalog-grid .movie-card {
  min-width: 0;
}

.admin-page .admin-catalog-grid .movie-body {
  padding: 8px 10px 10px;
}

.admin-page .admin-catalog-grid .movie-title {
  font-size: 0.82rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.admin-page .admin-catalog-grid .movie-meta {
  font-size: 0.72rem;
  gap: 6px;
}

.admin-page .admin-catalog-grid .admin-view-detail {
  display: none;
}

.admin-page .admin-catalog-grid .admin-edit-hint {
  margin-top: 4px;
  font-size: 0.7rem;
}

.admin-page .admin-hero-manual-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.admin-page .admin-hero-manual-panel[hidden] {
  display: none !important;
}

.admin-page .admin-block-label {
  display: block;
  margin: 12px 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.admin-page .admin-hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 12px 0;
}

.admin-page .admin-hero-pick-label {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.admin-page .admin-hero-pick-select {
  width: 100%;
  min-height: 40px;
}

.admin-page .admin-home-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-page .admin-home-sections {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.admin-page .admin-home-hero-block label {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

@media (max-width: 1280px) {
  .admin-page .admin-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .admin-page .admin-catalog-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .admin-page .admin-catalog-grid {
    max-height: 420px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .admin-page .admin-catalog-grid .admin-view-detail {
    display: inline-block;
  }
}

@media (max-width: 1100px) {
  .admin-page .admin-span-2 {
    grid-column: span 1;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .admin-page .admin-workspace {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 300px);
  }

  .admin-page .admin-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-page .admin-tabs,
  .admin-page .admin-stepper {
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    overflow-x: auto;
    display: grid;
  }

  .admin-page .admin-flags-publish,
  .admin-page .admin-flags-sections {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-action-bar {
    position: static;
  }
}

/* ===== Admin shell: sidebar modules + stepper ===== */
.admin-page .admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 24, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.admin-page .admin-shell-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 24, 0.88));
}

.admin-page .admin-shell-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 14px;
}

.admin-page .admin-shell-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, #ff3859, #e11d48);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.35);
}

.admin-page .admin-shell-title {
  display: block;
  font-size: 0.92rem;
  color: #f8fafc;
}

.admin-page .admin-shell-sub {
  display: block;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 2px;
}

.admin-page .admin-module-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-page .admin-module-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.admin-page .admin-module-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.2);
  color: #fff;
}

.admin-page .admin-module-btn.is-active {
  background: linear-gradient(120deg, rgba(255, 56, 89, 0.22), rgba(225, 29, 72, 0.12));
  border-color: rgba(255, 56, 89, 0.45);
  color: #fff;
  box-shadow: inset 3px 0 0 #ff3859;
}

.admin-page .admin-module-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.admin-page .admin-module-icon-catalog::after,
.admin-page .admin-module-icon-home::after,
.admin-page .admin-module-icon-tools::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.admin-page .admin-module-icon-home::after {
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  inset: 9px 8px 7px;
}

.admin-page .admin-module-icon-tools::after {
  border-radius: 999px;
  inset: 8px;
}

.admin-page .admin-shell-sidebar-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-page .admin-shell-sidebar-foot .admin-logout-btn {
  width: 100%;
}

.admin-page .admin-shell-main {
  min-width: 0;
  padding: 16px 18px 20px;
}

.admin-page .admin-shell-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-page .admin-module-select-wrap {
  display: none;
  align-items: center;
  gap: 8px;
}

.admin-page .admin-module-select-label {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
}

.admin-page .admin-module-select {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.86rem;
}

.admin-page .admin-module-desc {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  opacity: 0.78;
  line-height: 1.45;
}

.admin-page .admin-module {
  display: none;
}

.admin-page .admin-module.is-active {
  display: block;
}

.admin-page .admin-module-head {
  margin-bottom: 16px;
}

.admin-page .admin-module-head .section-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.admin-page .admin-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.admin-page .admin-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(148, 163, 184, 0.2);
  z-index: 0;
}

.admin-page .admin-step {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px 10px;
  min-height: 58px;
}

.admin-page .admin-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.admin-page .admin-step.is-active .admin-step-num {
  background: rgba(255, 255, 255, 0.95);
  color: #be123c;
}

.admin-page .admin-step-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-page .admin-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

.admin-page .admin-kpi-tools {
  margin-top: 8px;
}

.admin-page .admin-content {
  padding: 0;
  background: transparent;
  border: none;
}

@media (max-width: 960px) {
  .admin-page .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-shell-sidebar {
    display: none;
  }

  .admin-page .admin-module-select-wrap {
    display: flex;
  }

  .admin-page .admin-shell-main {
    padding: 12px;
  }
}

/* ===== Admin UI soften pass ? breathable, app-like workspace ===== */
.admin-page .hero-bg {
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(64, 36, 105, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(28, 39, 69, 0.28), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #050810 100%);
}

.admin-page .admin-page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.admin-page .admin-workspace-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: none;
}

.admin-page .admin-page-header .section-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-page .admin-kpi {
  gap: 12px;
  margin-bottom: 18px;
}

.admin-page .admin-kpi-card {
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-page .admin-kpi-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.admin-page .admin-kpi-label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
  opacity: 0.7;
}

.admin-page .admin-kpi-value {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-page .admin-box,
.admin-page .admin-content {
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.admin-page .admin-login-box {
  padding: 24px;
}

.admin-page .admin-login-badge {
  text-transform: none;
  letter-spacing: 0.01em;
  border: none;
  background: rgba(56, 189, 248, 0.12);
}

.admin-page .admin-login-hint {
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-page .admin-shell {
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.admin-page .admin-shell-sidebar {
  padding: 20px 16px;
  border-right: none;
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .admin-shell-sidebar-head {
  border-bottom: none;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.admin-page .admin-shell-logo {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

.admin-page .admin-module-nav {
  gap: 4px;
}

.admin-page .admin-module-btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: none;
  font-weight: 550;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease;
}

.admin-page .admin-module-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  transform: translateX(2px);
}

.admin-page .admin-module-btn.is-active {
  background: rgba(255, 56, 89, 0.14);
  border: none;
  box-shadow: none;
  color: #fff;
}

.admin-page .admin-module-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.92);
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-page .admin-module-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.admin-page .admin-module-icon-catalog::after,
.admin-page .admin-module-icon-home::after,
.admin-page .admin-module-icon-tools::after {
  content: none;
}

.admin-page .admin-module-btn.is-active .admin-module-icon {
  background: rgba(255, 56, 89, 0.22);
  color: #fff;
}

.admin-page .admin-shell-sidebar-foot {
  border-top: none;
  padding-top: 12px;
  margin-top: auto;
}

.admin-page .admin-shell-topbar {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
}

.admin-page .admin-module-desc {
  opacity: 0.72;
  font-size: 0.85rem;
}

.admin-page .admin-module-select {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.admin-page .admin-module.is-active.is-entering,
.admin-page .admin-tab-panel.is-active.is-entering {
  animation: adminPanelEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes adminPanelEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page .admin-module.is-active.is-entering,
  .admin-page .admin-tab-panel.is-active.is-entering {
    animation: none;
  }

  .admin-page .admin-module-btn:hover {
    transform: none;
  }

  .admin-page .admin-kpi-card:hover {
    transform: none;
  }
}

.admin-page .admin-module-head {
  margin-bottom: 18px;
}

.admin-page .admin-module-head .section-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-page .admin-subcard {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-page .admin-subcard-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-page .admin-editor-head {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-page .admin-stepper {
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .admin-stepper::before {
  display: none;
}

.admin-page .admin-step,
.admin-page .admin-tab {
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 550;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-page .admin-step:hover,
.admin-page .admin-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  color: #fff;
}

.admin-page .admin-step.is-active,
.admin-page .admin-tab.is-active {
  background: rgba(255, 56, 89, 0.92);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.22);
}

.admin-page .admin-step.is-active .admin-step-num {
  background: rgba(255, 255, 255, 0.95);
  color: #be123c;
}

.admin-page .admin-step-nav {
  border-top: none;
  padding-top: 8px;
  margin-top: 16px;
}

.admin-page .admin-tab-panel {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-page .admin-form {
  gap: 16px;
}

.admin-page .admin-form label {
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 550;
  color: rgba(226, 232, 240, 0.9);
}

.admin-page .admin-form input,
.admin-page .admin-form select,
.admin-page .admin-form textarea,
.admin-page .admin-catalog-search {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-page .admin-form input:hover,
.admin-page .admin-form select:hover,
.admin-page .admin-form textarea:hover,
.admin-page .admin-catalog-search:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
}

.admin-page .admin-form input:focus,
.admin-page .admin-form select:focus,
.admin-page .admin-form textarea:focus,
.admin-page .admin-catalog-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 2px rgba(255, 56, 89, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-page .admin-form .btn {
  border-radius: 12px;
  font-weight: 600;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.admin-page .admin-form .btn:hover {
  transform: translateY(-1px);
}

.admin-page .admin-form .btn:active {
  transform: translateY(0);
}

.admin-page .admin-form .btn.btn-secondary {
  border: none;
  background: rgba(255, 255, 255, 0.08);
}

.admin-page .admin-form .btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-page .admin-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.admin-page .admin-flags label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(226, 232, 240, 0.96);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-page .admin-flags label:hover {
  border-color: rgba(255, 56, 89, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.admin-page .admin-flags label:has(input:checked) {
  border-color: rgba(255, 56, 89, 0.5);
  background: rgba(255, 56, 89, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 56, 89, 0.12);
}

.admin-page .admin-flags input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #ff3859;
  cursor: pointer;
}

.admin-page .admin-catalog-panel {
  border: none;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-width: 0;
}

.admin-page .admin-hero-manual-panel {
  border-top: none;
  padding-top: 16px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding-left: 12px;
  padding-right: 12px;
}

.admin-page .admin-hero-preview {
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-page .admin-hero-preview-wrap .btn {
  border-radius: 12px;
}

.admin-page .admin-notice {
  border: none;
  border-radius: 14px;
}

.admin-page .admin-notice-muted {
  border: none;
}

.admin-page .video-sources-group,
.admin-page .series-episodes-group {
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .video-source-row,
.admin-page .episode-row {
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-page .admin-genre-quick {
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .admin-genre-quick-row select {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.admin-page .admin-otp-dialog {
  border: none;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.admin-page.mf-has-idlix-header .mf-header {
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Admin layout fixes: editor overflow + catalog containers ===== */
.admin-page .admin-editor-panel,
.admin-page .admin-tab-panel,
.admin-page .admin-subcard,
.admin-page .admin-workspace-editor {
  overflow: visible;
}

.admin-page .admin-editor-panel,
.admin-page .admin-tab-panel,
.admin-page .video-sources-group,
.admin-page .series-episodes-group {
  min-width: 0;
}

.admin-page .video-sources-group,
.admin-page .series-episodes-group {
  overflow: hidden;
}

.admin-page .vs-file,
.admin-page .ep-file {
  color: rgba(226, 232, 240, 0.88);
}

.admin-page .vs-file::file-selector-button,
.admin-page .ep-file::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background 0.16s ease;
}

.admin-page .vs-file::file-selector-button:hover,
.admin-page .ep-file::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

@container admin-editor (max-width: 640px) {
  .admin-page .video-source-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "quality remove"
      "url url"
      "file file";
  }

  .admin-page .episode-row {
    grid-template-columns: 28px 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "drag num title remove"
      "drag poster poster poster"
      "drag url url url"
      "drag pick pick pick"
      "drag file file file";
  }

  .admin-page .episode-row .ep-pick-server {
    width: 100%;
    justify-content: center;
  }
}

@container admin-catalog (max-width: 280px) {
  .admin-page .admin-catalog-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@container admin-catalog (min-width: 281px) and (max-width: 340px) {
  .admin-page .admin-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container admin-catalog (min-width: 341px) {
  .admin-page .admin-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

.admin-page .admin-catalog-head .section-sub {
  font-size: 0.8rem;
  opacity: 0.72;
}

/* ===== Admin: kontras teks select/option & kontrol native ===== */
.admin-page select,
.admin-page .admin-form select,
.admin-page .admin-module-select,
.admin-page .admin-hero-pick-select,
.admin-page .admin-genre-quick-row select,
.admin-page .server-videos-pick select {
  color: #f1f5f9;
  color-scheme: dark;
}

.admin-page select:not([size]) option,
.admin-page select:not([size]) optgroup {
  color: #0f172a;
  background-color: #f8fafc;
}

.admin-page select:not([size]) option:disabled {
  color: #64748b;
}

.admin-page select:not([size]) option:checked {
  background-color: #dbeafe;
  color: #0f172a;
}

.admin-page select[size] option {
  color: #e2e8f0;
  background-color: #0f172a;
}

.admin-page select[size] option:checked,
.admin-page select[size] option:focus {
  background-color: rgba(255, 56, 89, 0.32);
  color: #fff;
}

.admin-page .admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-page .admin-form textarea,
.admin-page .admin-module--settings .admin-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-page .admin-module--settings .admin-grid select,
.admin-page .admin-module--settings .admin-grid textarea,
.admin-page .admin-module--settings .admin-subcard > label input:not([type="checkbox"]):not([type="radio"]),
.admin-page .admin-module--settings .admin-inline-field input,
.admin-page .admin-module--settings .admin-hero-pick-label select,
.admin-page .admin-module--settings .admin-block-label textarea,
.admin-page .admin-module--settings .admin-promo-custom-gif-row input,
.admin-page .admin-catalog-search,
.admin-page .server-videos-pick .server-videos-search {
  color: #f1f5f9;
  caret-color: #f1f5f9;
  color-scheme: dark;
}

.admin-page .admin-form input::placeholder,
.admin-page .admin-form textarea::placeholder,
.admin-page .admin-module--settings input::placeholder,
.admin-page .admin-module--settings textarea::placeholder,
.admin-page .admin-catalog-search::placeholder,
.admin-page .server-videos-pick .server-videos-search::placeholder {
  color: rgba(203, 213, 225, 0.72);
  opacity: 1;
}

.admin-page .admin-form label,
.admin-page .admin-block-label,
.admin-page .admin-genre-quick-label,
.admin-page .admin-module--settings .admin-grid > label,
.admin-page .admin-module--settings .admin-subcard > label:not(.admin-promo-gif-card),
.admin-page .admin-module--settings .admin-inline-field,
.admin-page .admin-module--settings .admin-hero-pick-label,
.admin-page .admin-module--settings .admin-home-genre-check {
  color: rgba(226, 232, 240, 0.92);
}

.admin-page .admin-form .section-sub,
.admin-page .admin-tab-help,
.admin-page .admin-label-hint {
  color: rgba(203, 213, 225, 0.82);
}

body.theme-light.admin-page select:not([size]) option,
body.theme-light.admin-page select:not([size]) optgroup {
  color: #0f172a;
  background-color: #ffffff;
}

body.theme-light.admin-page select,
body.theme-light.admin-page .admin-form select,
body.theme-light.admin-page .admin-module-select,
body.theme-light.admin-page .admin-hero-pick-select,
body.theme-light.admin-page .admin-genre-quick-row select,
body.theme-light.admin-page .server-videos-pick select {
  color-scheme: light;
  color: #0f172a;
}

body.theme-light.admin-page select[size] option {
  color: #0f172a;
  background-color: #f8fafc;
}

/* ===== Admin: editor status + search-first catalog ===== */
.admin-page .admin-editor-head {
  align-items: center;
}

.admin-page .admin-editor-status.is-editing {
  color: #fda4af;
}

.admin-page .admin-clear-editor-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-page .admin-catalog-idle,
.admin-page .admin-catalog-empty {
  padding: 20px 14px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.admin-page .admin-catalog-idle-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}

.admin-page .admin-catalog-idle .section-sub {
  margin: 0 0 10px;
}

.admin-page .admin-catalog-idle-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

.admin-page .admin-catalog-empty p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(203, 213, 225, 0.85);
}

.admin-page #adminList[hidden],
.admin-page #adminCatalogIdle[hidden],
.admin-page #adminCatalogNoResults[hidden] {
  display: none !important;
}

.admin-page .admin-catalog-grid .movie-card.is-editing {
  outline: 2px solid rgba(255, 56, 89, 0.72);
  box-shadow:
    0 0 0 3px rgba(255, 56, 89, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

/* Continue watching, upcoming notify, library filter drawer, admin preview, network banner */
.detail-upcoming-notify {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.detail-upcoming-notify-text {
  margin: 0 0 10px;
  font-size: 0.92rem;
  opacity: 0.9;
}
.detail-upcoming-notify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-upcoming-notify-status {
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.82;
}
.mf-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.mf-auth-inline-link {
  display: inline-block;
  font-size: 0.85rem;
  white-space: nowrap;
}
.mf-auth-2fa {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mf-auth-2fa[hidden] {
  display: none !important;
}
.mf-auth-google-btn {
  width: 100%;
  margin-top: 10px;
}
.mf-auth-status {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}
.mf-auth-grid--single .mf-auth-hero {
  display: none;
}
.mf-user-security-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mf-user-security-block {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.mf-user-security-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.mf-user-security-desc,
.mf-user-security-hint {
  margin: 0 0 8px;
  font-size: 0.88rem;
  opacity: 0.85;
}
.mf-user-security-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}
.mf-user-security-banner {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.mf-user-security-sessions,
.mf-user-security-log {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.mf-user-security-sessions li,
.mf-user-security-log li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.mf-user-security-ua {
  opacity: 0.75;
  font-size: 0.8rem;
}
.mf-user-security-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}
.mf-user-security-log .is-fail {
  color: #fca5a5;
}
.mf-user-security-danger {
  border-color: rgba(248, 113, 113, 0.45);
}
.mf-user-security-loading {
  opacity: 0.8;
}
.mf-release-toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 99998;
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(12, 16, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
}
.mf-release-toast a {
  color: #ff6b81;
}
.library-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.library-filter-toggle {
  display: none;
}
.library-filter-apply {
  display: none;
}
.library-genre-chips {
  margin-bottom: 10px;
}
@media (min-width: 769px) {
  body.mf-page .section-header:has(.library-controls-wrap) {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 16px;
  }

  body.mf-page .section-header:has(.library-controls-wrap) > div:first-child {
    flex: 1 1 auto;
    width: 100%;
  }

  body.mf-page .section-header:has(.library-controls-wrap) .page-breadcrumb {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.42);
  }

  body.mf-page .section-header:has(.library-controls-wrap) .section-title {
    font-size: clamp(1.45rem, 2.1vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  body.mf-page .section-header:has(.library-controls-wrap) .section-sub {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
    max-width: 54ch;
  }

  .library-controls-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.025) 100%
    );
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }

  .library-toolbar {
    display: flex;
    flex: 0 0 min(300px, 30%);
    min-width: 220px;
    max-width: 320px;
    margin: 0;
    align-items: center;
  }

  .library-search--toolbar,
  body.mf-page .library-search--toolbar {
    width: 100%;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background-color: rgba(5, 8, 16, 0.88);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #f9fafb;
    font-size: 0.84rem;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition:
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      background-color 0.18s ease;
  }

  .library-search--toolbar:focus,
  body.mf-page .library-search--toolbar:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
    background-color: rgba(5, 8, 16, 0.96);
  }

  .library-search--toolbar::placeholder,
  body.mf-page .library-search--toolbar::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .library-filter-drawer {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    min-width: 0;
  }

  .library-filter-drawer[hidden] {
    display: grid !important;
  }

  .library-filter-drawer select,
  body.mf-page .library-filter-drawer select {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background-color: rgba(5, 8, 16, 0.88);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    color: #f9fafb;
    font-size: 0.8rem;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition:
      border-color 0.18s ease,
      background-color 0.18s ease;
  }

  .library-filter-drawer select:hover,
  body.mf-page .library-filter-drawer select:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background-color: rgba(8, 12, 22, 0.94);
  }

  .library-filter-drawer select:focus,
  body.mf-page .library-filter-drawer select:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
  }

  .library-browse-panel {
    margin-top: 2px;
    margin-bottom: 14px;
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
  }

  body.mf-page .library-browse-panel .library-meta {
    margin: 0 0 12px;
    padding: 0;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.48);
  }

  .library-genre-chips--prominent {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: visible;
    white-space: normal;
    gap: 8px;
    padding: 0;
    margin: 0;
  }

  .library-genre-chips--prominent .chip-filter {
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
  }

  .library-genre-chips--prominent .chip-filter:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .library-genre-chips--prominent .chip-filter.active {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.32);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .library-controls-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .library-toolbar {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .library-filter-drawer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .library-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .library-filter-drawer {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
  }
  .library-filter-drawer.is-open,
  .library-filter-drawer:not([hidden]) {
    display: flex;
  }
  .library-filter-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    border: 0;
    background: #e50914;
    color: #fff;
    font: inherit;
    cursor: pointer;
  }

  /* Drawer kolom: jangan flex-grow ? input search jadi kotak tinggi */
  .library-filter-drawer.library-controls,
  body.mf-page .library-filter-drawer.library-controls {
    align-items: stretch;
  }

  .library-filter-drawer .library-search,
  body.mf-page .library-filter-drawer .library-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 10px;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
  }

  .library-filter-drawer select,
  body.mf-page .library-filter-drawer select {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .library-genre-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
.admin-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.admin-preview-modal[hidden] {
  display: none !important;
}
.admin-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}
.admin-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #070b14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.62);
}
.admin-preview-dialog--wide {
  width: min(1180px, 98vw);
}
.admin-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.admin-preview-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.admin-preview-close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.admin-preview-body {
  padding: 0;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  background: #050810;
}
.admin-preview-body--card,
.admin-preview-body--detail {
  padding: 0;
}
.admin-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
}
.admin-preview-live-link {
  color: #ff6b81;
  font-weight: 600;
  text-decoration: none;
}
.admin-preview-live-link:hover {
  text-decoration: underline;
}
.admin-preview-foot-note {
  font-size: 0.82rem;
  opacity: 0.72;
}
.admin-preview-frame {
  position: relative;
  overflow: hidden;
}
.admin-preview-device-label {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.98), rgba(5, 8, 16, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-preview-backdrop-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background-size: cover;
  background-position: center top;
  opacity: 0.28;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.08);
  pointer-events: none;
}
.admin-preview-flag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 0;
  position: relative;
  z-index: 2;
}
.admin-preview-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-preview-flag--featured {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  color: #ffb4bc;
}
.admin-preview-flag--soon {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fcd34d;
}
.admin-preview-frame--detail .detail-main {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
}
.admin-preview-frame--detail .detail-hero {
  margin-bottom: 18px;
}
.admin-preview-frame--detail .detail-actions .btn,
.admin-preview-frame--detail .detail-upcoming-notify button {
  pointer-events: none;
  cursor: default;
}
.admin-preview-player {
  display: block !important;
  margin-top: 8px;
}
.admin-preview-player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-preview-player-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(2px);
}
.admin-preview-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.admin-preview-player-overlay span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(229, 9, 20, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.admin-preview-player-overlay p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.85;
}
.admin-preview-episodes .episode-card-btn.is-disabled {
  opacity: 0.55;
}
.admin-preview-ep-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 0.86rem;
  opacity: 0.75;
  list-style: none;
}
.admin-preview-home-mock {
  padding: 8px 0 20px;
}
.admin-preview-context-panel + .admin-preview-context-panel {
  margin-top: 18px;
}
.admin-preview-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 8px;
  margin: 0;
  border: 0;
}
.admin-preview-section-head h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.admin-preview-section-head .see-all {
  font-size: 0.78rem;
  opacity: 0.75;
}
.admin-preview-card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 18px 16px;
  scrollbar-width: thin;
}
.admin-preview-card-row > .item {
  flex: 0 0 clamp(150px, 18vw, 210px);
  margin: 0;
}
.admin-preview-frame--card .items.featured.carousel-row > .item {
  flex: 0 0 clamp(150px, 18vw, 210px);
}
@media (max-width: 768px) {
  .admin-preview-dialog--wide .detail-hero {
    grid-template-columns: 1fr;
  }
  .admin-preview-dialog--wide .detail-poster {
    width: min(220px, 72vw);
    min-height: 280px;
    margin: 0 auto;
  }
  .admin-preview-card-row > .item,
  .admin-preview-frame--card .items.featured.carousel-row > .item {
    flex: 0 0 clamp(130px, 42vw, 170px);
  }
}
.mf-network-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(120, 70, 0, 0.95);
  color: #fff;
  font-size: 0.86rem;
}
.mf-network-banner[hidden] {
  display: none !important;
}
.mf-network-banner-retry {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
}
.mf-network-banner-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0.85;
}
.mf-network-banner-close:hover {
  opacity: 1;
}
.mf-offline-panel {
  max-width: 720px;
  margin: 0 auto;
}
.mf-offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.mf-offline-status {
  min-height: 1.2em;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* User auth & profil (gaya Idlix) */
.mf-auth-page .mf-auth-main {
  min-height: calc(100svh - var(--mf-header-offset, 72px));
  display: flex;
  align-items: center;
  padding: 32px 16px 48px;
}
.mf-auth-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.mf-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.mf-auth-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent, #e50914), #9b111e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.mf-auth-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mf-auth-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.mf-auth-hero-sub {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
  margin: 0 0 20px;
}
.mf-auth-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.mf-auth-hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mf-auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mf-auth-dot--primary { background: var(--accent, #e50914); }
.mf-auth-dot--ok { background: #4ade80; }
.mf-auth-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mf-auth-card-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.mf-auth-card-sub {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.mf-auth-form {
  display: grid;
  gap: 14px;
}
.mf-auth-label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}
.mf-auth-label input {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 12px 14px;
}
.mf-auth-password-wrap {
  position: relative;
}
.mf-auth-password-wrap input {
  width: 100%;
  padding-right: 42px;
}
.mf-auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  opacity: 0.7;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mf-auth-password-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}
.mf-auth-password-toggle svg {
  display: block;
}
.mf-auth-hint {
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.5);
}
.mf-auth-error {
  color: #fca5a5;
  font-size: 0.9rem;
  margin: 0;
}
.mf-auth-submit {
  width: 100%;
  margin-top: 4px;
}
.mf-auth-foot {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}
.mf-auth-foot a {
  color: var(--accent, #e50914);
  font-weight: 600;
}

/* ?? Auth luxury polish ?? */
body.mf-auth-page--luxury {
  --mf-auth-gold: #d4af6a;
  --mf-auth-gold-soft: rgba(212, 175, 106, 0.35);
  --mf-auth-card-bg: rgba(12, 14, 22, 0.72);
}

body.mf-auth-page--luxury .hero-bg.mf-auth-ambient,
body.mf-auth-page--luxury .hero-bg {
  background:
    radial-gradient(ellipse 90% 70% at 8% 12%, rgba(212, 175, 106, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 75% 55% at 92% 88%, rgba(229, 9, 20, 0.14) 0%, transparent 52%),
    radial-gradient(circle at 50% 120%, rgba(64, 36, 105, 0.45) 0%, transparent 45%),
    linear-gradient(168deg, #040508 0%, #0a0d14 38%, #06070b 100%);
  opacity: 1;
}

body.mf-auth-page--luxury .hero-bg.mf-auth-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.mf-auth-page--luxury .mf-header {
  background: linear-gradient(to bottom, rgba(4, 5, 8, 0.92), rgba(4, 5, 8, 0));
  border-bottom: 1px solid rgba(212, 175, 106, 0.08);
}

body.mf-auth-page--luxury .mf-auth-main {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px) 56px;
}

body.mf-auth-page--luxury .mf-auth-grid {
  width: min(1120px, 100%);
  gap: clamp(28px, 6vw, 72px);
}

body.mf-auth-page--luxury .mf-auth-brand {
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 28px;
}

body.mf-auth-page--luxury .mf-auth-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: linear-gradient(145deg, #e50914 0%, #7a0f18 55%, #d4af6a 140%);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.mf-auth-page--luxury .mf-auth-brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.mf-auth-page--luxury .mf-auth-brand-tag {
  flex: 1 0 100%;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mf-auth-gold);
  opacity: 0.85;
  margin-left: 52px;
}

body.mf-auth-page--luxury .mf-auth-hero-eyebrow,
body.mf-auth-page--luxury .mf-auth-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mf-auth-gold);
  opacity: 0.9;
}

body.mf-auth-page--luxury .mf-auth-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 16ch;
}

body.mf-auth-page--luxury .mf-auth-hero-title-lead {
  display: block;
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

body.mf-auth-page--luxury .mf-auth-hero-title-accent {
  display: block;
  font-weight: 650;
  background: linear-gradient(
    115deg,
    #f5e6c8 0%,
    var(--mf-auth-gold) 38%,
    #fff4dc 72%,
    #c9a227 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  letter-spacing: -0.02em;
}

body.mf-auth-page--luxury .mf-auth-hero-sub {
  font-size: 1.02rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.64);
  max-width: 42ch;
}

body.mf-auth-page--luxury .mf-auth-hero-tagline {
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(212, 175, 106, 0.82);
  max-width: 34ch;
}

body.mf-auth-page--luxury .mf-auth-hero-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.mf-auth-page--luxury .mf-auth-hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 106, 0.22);
  backdrop-filter: blur(8px);
}

body.mf-auth-page--luxury .mf-auth-feature-icon {
  color: var(--mf-auth-gold);
  font-size: 0.65rem;
  line-height: 1;
}

body.mf-auth-page--luxury .mf-auth-card-wrap {
  position: relative;
}

body.mf-auth-page--luxury .mf-auth-card-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(212, 175, 106, 0.45) 0%,
    rgba(229, 9, 20, 0.25) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

body.mf-auth-page--luxury .mf-auth-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: clamp(24px, 4.5vw, 36px);
  background: var(--mf-auth-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.mf-auth-page--luxury .mf-auth-card-title {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

body.mf-auth-page--luxury .mf-auth-card-sub {
  margin-bottom: 22px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

body.mf-auth-page--luxury .mf-auth-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 106, 0.75);
}

body.mf-auth-page--luxury .mf-auth-label input {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.42);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.mf-auth-page--luxury .mf-auth-label input:hover {
  border-color: rgba(212, 175, 106, 0.28);
}

body.mf-auth-page--luxury .mf-auth-label input:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.55);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.12);
}

body.mf-auth-page--luxury .mf-auth-inline-link {
  color: var(--mf-auth-gold);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

body.mf-auth-page--luxury .mf-auth-inline-link:hover {
  color: #f0ddb0;
  text-decoration: underline;
}

body.mf-auth-page--luxury .mf-auth-submit--primary {
  margin-top: 6px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #e50914 0%, #b10610 48%, #8b0a12 100%);
  box-shadow:
    0 12px 28px rgba(229, 9, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.mf-auth-page--luxury .mf-auth-submit--primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(229, 9, 20, 0.42);
  transform: translateY(-1px);
}

body.mf-auth-page--luxury .mf-auth-submit--primary:active:not(:disabled) {
  transform: translateY(0);
}

body.mf-auth-page--luxury .mf-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.mf-auth-page--luxury .mf-auth-divider[hidden] {
  display: none !important;
}

body.mf-auth-page--luxury .mf-auth-divider::before,
body.mf-auth-page--luxury .mf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.35), transparent);
}

body.mf-auth-page--luxury .mf-auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

body.mf-auth-page--luxury .mf-auth-google-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 106, 0.35);
  transform: translateY(-1px);
}

body.mf-auth-page--luxury .mf-auth-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

body.mf-auth-page--luxury .mf-auth-trust {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

body.mf-auth-page--luxury .mf-auth-foot {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.mf-auth-page--luxury .mf-auth-foot a {
  color: var(--mf-auth-gold);
  text-decoration: none;
}

body.mf-auth-page--luxury .mf-auth-foot a:hover {
  color: #f0ddb0;
  text-decoration: underline;
}

body.mf-auth-page--luxury .mf-auth-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

@media (max-width: 860px) {
  body.mf-auth-page--luxury .mf-auth-brand-tag {
    margin-left: 0;
    flex: none;
  }
  body.mf-auth-page--luxury .mf-auth-hero-title {
    max-width: none;
  }
  body.mf-auth-page--luxury .mf-auth-hero-sub,
  body.mf-auth-page--luxury .mf-auth-hero-tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  body.mf-auth-page--luxury .mf-auth-hero-features {
    justify-content: center;
  }
}

.mf-account-control {
  position: relative;
  z-index: 151;
  pointer-events: auto;
  flex-shrink: 0;
}

#mfAccountTrigger,
#mfAccountTrigger.mf-account-trigger {
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  cursor: pointer;
}

#mfAccountTrigger .mf-account-trigger-icon,
#mfAccountTrigger .mf-account-trigger-avatar,
#mfAccountTrigger .mf-account-trigger-label,
#mfAccountTrigger .mf-account-trigger-chevron,
#mfAccountTrigger .mf-account-avatar-img {
  pointer-events: none;
}

/* Tombol Akun ? guest: transparan seperti ikon search/nav; user: pill */
body.mf-has-idlix-header .mf-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

body.mf-has-idlix-header .mf-account-trigger:active {
  transform: scale(0.97);
}

/* Guest "Akun" ? pill kaca IDLIX (desktop: horizontal pill; mobile: bulat di blok ?1024px) */
@media (min-width: 1025px) {
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest {
    height: 38px;
    min-height: 38px;
    padding: 0 12px 0 10px;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  }

  body.mf-has-idlix-header:not(.is-scrolled) .mf-account-trigger.mf-account-trigger--guest {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
  }

  body.mf-has-idlix-header.is-scrolled .mf-account-trigger.mf-account-trigger--guest {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest:hover,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest.mf-account-trigger--active,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  }

  body.mf-has-idlix-header.is-scrolled .mf-account-trigger.mf-account-trigger--guest:hover,
  body.mf-has-idlix-header.is-scrolled .mf-account-trigger.mf-account-trigger--guest[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user {
    height: 44px;
    min-height: 44px;
    padding: 4px 8px 4px 5.6px;
    border: 1px solid rgba(255, 255, 255, 0.086);
    background: rgba(255, 255, 255, 0.1);
    gap: 6px;
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user:hover,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user.mf-account-trigger--active,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
  }

  body.mf-has-idlix-header:not(.is-scrolled) .mf-account-trigger.mf-account-trigger--user {
    background: rgba(255, 255, 255, 0.1);
  }

  body.mf-has-idlix-header.is-scrolled .mf-account-trigger.mf-account-trigger--user {
    background: rgba(255, 255, 255, 0.1);
  }
}

.mf-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
  touch-action: manipulation;
}

.mf-account-menu-icon.mf-account-guest-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest .mf-account-trigger-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.95);
}

body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest .mf-account-trigger-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.mf-has-idlix-header:not(.is-scrolled) .mf-search-trigger {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.75));
}

.mf-account-trigger-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  margin-left: 1px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}

.mf-account-trigger--active .mf-account-trigger-chevron,
.mf-account-trigger[aria-expanded="true"] .mf-account-trigger-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.mf-account-trigger-chevron::after {
  content: none;
}

.mf-account-trigger-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.mf-account-avatar--photo {
  background: #111;
  padding: 0;
}

.mf-account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.mf-account-menu-open::before {
  content: none;
  display: none;
}

.mf-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: default;
  pointer-events: auto;
}

.mf-account-backdrop[hidden] {
  display: none !important;
}

body.mf-account-menu-open .mf-header {
  z-index: 250;
}

.mf-account-menu-sheet-head {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 44px 6px;
  flex-shrink: 0;
}

.mf-account-menu-handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.mf-account-menu-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mf-account-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mf-account-menu[hidden],
#mfAccountMenu[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mf-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(384px, calc(100vw - 24px));
  background: rgba(24, 28, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45);
  z-index: 260;
  pointer-events: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mf-account-menu.mf-account-menu--portaled {
  z-index: 261;
}

.mf-account-menu,
.mf-account-menu * {
  pointer-events: auto;
}

.mf-account-menu a,
.mf-account-menu button {
  cursor: pointer;
}

.mf-account-menu-inner,
#mfAccountMenuBody {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mf-account-guest-summary,
.mf-account-user-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-account-menu-icon,
.mf-account-guest-summary .mf-account-guest-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f3f3;
}

.mf-account-hero-copy {
  min-width: 0;
}

.mf-account-hero-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-account-hero-subtitle {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #a0a0a0;
  line-height: 1.35;
}

.mf-account-auth-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mf-account-auth-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8.8px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 760;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mf-account-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.mf-account-auth-action--primary {
  background: rgb(36, 36, 36);
  color: rgb(213, 0, 50);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mf-account-auth-action--primary:hover {
  background: rgb(46, 46, 46);
  color: #ff1a45;
  border-color: rgba(255, 255, 255, 0.2);
}

.mf-account-auth-action--secondary {
  background: transparent;
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.086);
}

.mf-account-auth-action--secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
  border-color: rgba(255, 255, 255, 0.12);
}

.mf-account-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.mf-account-quick-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.086);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mf-account-quick-card:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.mf-account-user-summary .mf-account-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #f0f0f0;
  font-weight: 800;
  font-size: 1rem;
  overflow: hidden;
}

.mf-account-logout-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.086);
  background: transparent;
  color: #a0a0a0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mf-account-logout-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Menu akun vertikal ? gaya Idlix */
.mf-account-nav {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-account-nav-link {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #d8d8d8;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}

.mf-account-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mf-account-nav-link--button {
  margin-top: 4px;
  color: #a0a0a0;
}

.mf-account-nav-link--button:hover {
  color: #ff6b6b;
  background: rgba(255, 80, 80, 0.08);
}

.mf-account-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f3f3;
  flex-shrink: 0;
}

.mf-account-nav-icon .mf-ui-icon {
  color: #f3f3f3;
}

.mf-account-nav-icon--muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #b8b8b8;
}

.mf-account-nav-label {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mf-account-nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mf-account-nav-chevron {
  display: inline-flex;
  opacity: 0.35;
  color: currentColor;
}

.mf-account-user-avatar--tiered,
.mf-account-trigger-avatar--tiered,
.mf-user-avatar--tiered {
  box-shadow: 0 0 0 2px var(--user-tier-accent, rgba(255, 255, 255, 0.25));
}

.mf-account-user-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.mf-account-user-meta-icon {
  display: inline-flex;
  opacity: 0.75;
  color: #f59e0b;
}

.mf-account-user-meta-icon svg {
  display: block;
}

.mf-account-language-section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-account-language-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.mf-account-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mf-account-language-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #a0a0a0;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mf-account-language-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
}

.mf-account-language-option--active {
  background: rgb(36, 36, 36);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgb(213, 0, 50);
}

.mf-account-language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-account-language-flag {
  display: block;
  width: 32px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mf-account-language-name {
  font-size: 0.9375rem;
  font-weight: 720;
  line-height: 1.2;
}
.mf-user-main {
  padding-bottom: calc(48px + var(--mf-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
}
.mf-user-cover {
  position: relative;
  height: clamp(160px, 28vw, 280px);
  overflow: hidden;
}
.mf-user-cover-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1020 0%, #0a0c12 55%, #12080a 100%);
}
.mf-user-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.mf-user-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.95), transparent 55%);
}
.mf-user-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.mf-user-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "avatar body actions";
  align-items: end;
  gap: 14px 16px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}
.mf-user-avatar {
  grid-area: avatar;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #050810;
  background: linear-gradient(135deg, var(--accent, #e50914), #7f1d1d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
}
.mf-user-avatar--photo {
  background: #111;
}
.mf-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mf-user-head-body { grid-area: body; flex: 1; min-width: 0; }
.mf-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mf-user-display-name {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.mf-user-tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--user-tier-accent, rgba(255, 255, 255, 0.35)) 70%, transparent);
  color: var(--user-tier-accent, rgba(255, 196, 160, 0.95));
  background: color-mix(in srgb, var(--user-tier-accent, rgba(255, 255, 255, 0.2)) 14%, rgba(0, 0, 0, 0.25));
}
.mf-user-handle,
.mf-user-since {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}
.mf-user-bio {
  margin: 8px 0 0;
  max-width: 60ch;
}
.mf-user-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mf-user-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}
.mf-user-tab {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
}
.mf-user-tab[hidden],
.mf-user-panel[hidden],
.mf-user-pagination[hidden],
body:not(.mf-user-page--self) .mf-user-tab--self-only,
body:not(.mf-user-page--self) [data-user-tab="security"],
body:not(.mf-user-page--self) [data-user-tab="continue"],
body:not(.mf-user-page--self) [data-user-panel="security"],
body:not(.mf-user-page--self) [data-user-panel="continue"] {
  display: none !important;
}
.mf-user-tab-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.88);
}
.mf-user-tab-icon .mf-ui-icon {
  color: rgba(255, 255, 255, 0.88);
}
.mf-user-tab.is-active .mf-user-tab-icon,
.mf-user-tab.is-active .mf-user-tab-icon .mf-ui-icon {
  color: #fff;
}
.mf-user-tab.is-active {
  background: var(--accent, #e50914);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.28);
}
.mf-user-section-title,
.mf-user-subtitle {
  margin: 0 0 12px;
}
.mf-user-subtitle {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.85;
}
.mf-user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mf-user-stat {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.mf-user-stat-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  margin-bottom: 2px;
}
.mf-user-stat-icon .mf-ui-icon {
  color: #f0f0f0;
}
.mf-user-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}
.mf-user-stat span {
  font-size: 0.82rem;
  opacity: 0.7;
}
button.mf-user-stat--link {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
button.mf-user-stat--link:hover,
button.mf-user-stat--link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 9, 20, 0.35);
  outline: none;
}
.mf-user-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mf-user-activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mf-user-activity-item--comment {
  border-color: rgba(229, 9, 20, 0.18);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.035);
}
.mf-user-activity-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  margin-top: 2px;
}
.mf-user-activity-icon .mf-ui-icon {
  color: #f0f0f0;
}
.mf-user-activity-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.mf-user-activity-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.mf-user-activity-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  white-space: nowrap;
}
.mf-user-activity-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}
.mf-user-activity-label {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
}
.mf-user-activity-label:hover {
  color: #ff6b84;
}
.mf-user-activity-snippet {
  margin: 2px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  word-break: break-word;
}
.mf-user-activity-diskusi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 140, 160, 0.92);
  text-decoration: none;
}
.mf-user-activity-diskusi:hover,
.mf-user-activity-diskusi:focus-visible {
  color: #ffc1cb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mf-user-activity-diskusi-chevron {
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
}
.mf-user-activity-diskusi-chevron .mf-ui-icon {
  color: currentColor;
}
.mf-user-comments-list {
  margin-top: 4px;
}
.mf-user-overview-more {
  margin: 6px 0 0;
}
.mf-user-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 140, 160, 0.92);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mf-user-link-btn:hover,
.mf-user-link-btn:focus-visible {
  color: #ffc1cb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mf-user-link-btn-chevron {
  display: inline-flex;
  line-height: 0;
}
.mf-user-link-btn-chevron .mf-ui-icon,
.mf-user-activity-diskusi-chevron .mf-ui-icon {
  color: currentColor;
}
.mf-user-panel-sub {
  margin: -4px 0 14px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

/* Ikon UI global */
.mf-ui-icon {
  display: block;
  flex-shrink: 0;
  color: inherit;
}
.mf-ui-icon--fill {
  fill: currentColor;
  stroke: none;
}
.btn-detail-icon-glyph .mf-ui-icon {
  color: #fff;
}
.btn-detail-secondary.is-active .btn-detail-icon-glyph .mf-ui-icon--fill {
  color: var(--accent, #e50914);
}
.mf-account-auth-icon .mf-ui-icon,
.mf-account-trigger-icon .mf-ui-icon,
.mf-account-guest-icon .mf-ui-icon,
.mf-account-trigger-chevron .mf-ui-icon {
  color: currentColor;
}
.mf-user-empty {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.mf-user-empty-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}
.mf-user-empty-icon .mf-ui-icon {
  color: rgba(255, 255, 255, 0.55);
}
.mf-user-empty-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 32ch;
}
.mf-user-error {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
}
.mf-user-error h1 {
  font-size: 1.45rem;
  margin: 0 0 10px;
  color: #f2f4f8;
}
.mf-user-error p {
  margin: 0 0 18px;
  color: rgba(242, 244, 248, 0.72);
  line-height: 1.5;
}
.mf-user-private-lock {
  margin: 8px 0 32px;
}
.mf-user-private-card {
  max-width: 520px;
  margin: 12px auto 0;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 12, 18, 0.72);
}
.mf-user-private-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 200, 180, 0.88);
}
.mf-user-private-icon .mf-ui-icon {
  color: inherit;
}
.mf-user-private-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #f2f4f8;
}
.mf-user-private-card p {
  margin: 0 0 18px;
  color: rgba(242, 244, 248, 0.7);
  line-height: 1.55;
  font-size: 0.95rem;
}
.mf-user-privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 244, 248, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mf-user-privacy-chip--public {
  border-color: rgba(229, 9, 20, 0.35);
  color: rgba(255, 196, 196, 0.92);
}
body.mf-user-page--locked .mf-user-tabs,
body.mf-user-page--locked .mf-user-panels {
  display: none;
}
.mf-user-head-actions {
  grid-area: actions;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.mf-user-edit-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mf-user-edit-btn-icon {
  display: inline-flex;
}
.mf-user-follow-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 0;
  background: #e50914;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mf-user-follow-btn:hover:not(:disabled),
.mf-user-follow-btn:focus-visible:not(:disabled) {
  background: #f6121d;
  outline: none;
}
.mf-user-follow-btn.is-following {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}
.mf-user-follow-btn.is-following:hover:not(:disabled),
.mf-user-follow-btn.is-following:focus-visible:not(:disabled) {
  background: rgba(255, 80, 90, 0.16);
  border-color: rgba(229, 9, 20, 0.45);
  color: #ffc1cb;
}
.mf-user-follow-btn:disabled,
.mf-user-follow-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}
.mf-user-follow-btn-icon {
  display: inline-flex;
  line-height: 0;
}
.mf-user-follow-btn-icon .mf-ui-icon {
  color: currentColor;
}
.mf-user-people-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mf-user-person-item {
  margin: 0;
}
.mf-user-person-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mf-user-person-link:hover,
.mf-user-person-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 9, 20, 0.35);
  outline: none;
}
.mf-user-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
}
.mf-user-person-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(145deg, #3a1518, #1a0a0c);
}
.mf-user-person-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mf-user-person-name {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
}
.mf-user-person-handle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
}
.mf-user-person-tier {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--user-tier-accent, rgba(255, 255, 255, 0.35)) 55%, transparent);
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--user-tier-accent, rgba(255, 196, 160, 0.9));
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mf-user-person-private {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}
.mf-user-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.mf-user-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  padding: 0 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mf-user-page-btn:hover:not(:disabled),
.mf-user-page-btn:focus-visible:not(:disabled) {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(229, 9, 20, 0.1);
  outline: none;
}
.mf-user-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.mf-user-page-btn .mf-ui-icon {
  color: currentColor;
}
.mf-user-page-info {
  font-size: 0.9rem;
  opacity: 0.8;
}
.mf-user-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mf-user-edit-modal[hidden] {
  display: none !important;
}
.mf-user-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.mf-user-edit-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 24px;
  background: var(--mf-modal-card-bg, rgba(12, 14, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mf-user-edit-hero {
  margin: 0 -4px 8px;
}
.mf-user-edit-cover-wrap {
  position: relative;
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  touch-action: none;
}
.mf-user-edit-cover-wrap.is-draggable {
  cursor: grab;
}
.mf-user-edit-cover-wrap.is-draggable.is-dragging {
  cursor: grabbing;
}
.mf-user-edit-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-user-edit-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mf-user-edit-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.mf-user-edit-section-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}
.mf-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mf-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.mf-crop-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 16px;
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.mf-crop-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.mf-crop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.mf-crop-viewport {
  position: relative;
  overflow: hidden;
  background: #0a0c12;
  border-radius: 10px;
  touch-action: none;
  user-select: none;
}
.mf-crop-viewport.is-dragging {
  cursor: grabbing;
}
.mf-crop-img {
  position: absolute;
  pointer-events: none;
  max-width: none;
}
.mf-crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
  pointer-events: none;
  z-index: 3;
}
.mf-crop-frame--circle {
  border-radius: 50%;
}
.mf-crop-shade {
  display: none;
}
.mf-crop-zoom-label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.mf-crop-zoom {
  width: 100%;
  accent-color: var(--accent, #e50914);
}
.mf-crop-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}
.mf-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.mf-user-edit-cover-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1020 0%, #0a0c12 55%, #12080a 100%);
}
.mf-user-edit-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 18, 25, 0.92) 0%, transparent 58%);
  pointer-events: none;
}
.mf-user-edit-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mf-user-edit-cover-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.mf-user-edit-media-btn {
  font-size: 0.78rem;
  padding: 6px 12px;
  cursor: pointer;
  line-height: 1.2;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.mf-user-edit-media-btn--compact {
  font-size: 0.72rem;
  padding: 5px 10px;
  min-height: 32px;
  align-self: flex-end;
  margin-bottom: 2px;
}
.mf-user-edit-avatar-row {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100% - 24px);
  flex-wrap: nowrap;
}
.mf-user-edit-avatar-label {
  display: grid;
  gap: 4px;
  justify-items: center;
  cursor: pointer;
}
.mf-user-edit-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #0f1219;
  background: linear-gradient(135deg, var(--accent, #e50914), #7f1d1d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mf-user-edit-avatar--photo {
  background: #111;
}
.mf-user-edit-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mf-user-edit-avatar-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.mf-user-edit-label--range input[type="range"] {
  width: 100%;
  accent-color: var(--accent, #e50914);
}
.mf-user-edit-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
}
.mf-user-edit-form {
  display: grid;
  gap: 12px;
}
.mf-user-edit-label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}
.mf-user-edit-label input,
.mf-user-edit-label textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
}
.mf-user-edit-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.9;
}
.mf-user-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.btn-detail-secondary.is-active {
  border-color: var(--accent, #e50914);
  background: rgba(229, 9, 20, 0.14);
  color: #fff;
}
.btn-detail-secondary.is-active .btn-detail-icon-glyph {
  color: var(--accent, #e50914);
}
@media (max-width: 1024px) {
  .mf-account-trigger-label,
  .mf-account-trigger-chevron {
    display: none;
  }

  /* Mobile akun ? bubble kaca IDLIX (bulat); override base height/padding desktop */
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user {
    width: var(--mf-header-icon-btn, 36px);
    min-width: var(--mf-header-icon-btn, 36px);
    height: var(--mf-header-icon-btn, 36px);
    min-height: var(--mf-header-icon-btn, 36px);
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    gap: 0;
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  }

  body.mf-has-idlix-header:not(.is-scrolled) .mf-account-trigger.mf-account-trigger--guest {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
  }

  body.mf-has-idlix-header.is-scrolled .mf-account-trigger.mf-account-trigger--guest {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.18);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest:hover,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest .mf-account-trigger-icon,
  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--guest .mf-account-trigger-icon svg {
    width: var(--mf-header-icon-size, 18px);
    height: var(--mf-header-icon-size, 18px);
    min-width: var(--mf-header-icon-size, 18px);
    min-height: var(--mf-header-icon-size, 18px);
  }

  body.mf-has-idlix-header .mf-account-trigger.mf-account-trigger--user {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
  }

  .mf-account-trigger-avatar {
    width: 30px;
    height: 30px;
  }
  .mf-account-backdrop {
    background: rgba(0, 0, 0, 0.35);
  }
  body.mf-account-menu-open {
    overflow: hidden;
  }
  .mf-account-menu-sheet-head {
    display: flex;
  }
  .mf-account-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    max-height: min(88dvh, 88svh, 640px);
    overflow: hidden;
    z-index: 261;
    background: #242a36;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  }
  .mf-account-menu-inner,
  #mfAccountMenuBody {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: calc(min(88dvh, 88svh, 640px) - 60px);
  }
  @media (orientation: landscape) and (max-height: 520px) {
    .mf-account-menu {
      max-height: min(92dvh, 92svh, 480px);
    }
    .mf-account-menu-inner,
    #mfAccountMenuBody {
      max-height: calc(min(92dvh, 92svh, 480px) - 52px);
    }
  }
  .mf-account-control {
    position: relative;
    z-index: 126;
  }
}

@media (max-width: 860px) {
  .mf-auth-grid {
    grid-template-columns: 1fr;
  }
  .mf-auth-hero {
    order: 2;
    text-align: center;
  }
  .mf-auth-hero-sub,
  .mf-auth-hero-points {
    margin-left: auto;
    margin-right: auto;
  }
  .mf-auth-card-wrap {
    order: 1;
  }
}

@media (max-width: 640px) {
  .mf-user-main {
    padding-bottom: calc(28px + var(--mf-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px));
  }
  .mf-user-cover {
    height: clamp(128px, 38vw, 200px);
  }
  .mf-user-shell {
    padding: 0 12px;
  }
  .mf-user-head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar body"
      "actions actions";
    gap: 10px 12px;
    margin-top: -36px;
    margin-bottom: 16px;
  }
  .mf-user-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.55rem;
    border-width: 3px;
  }
  .mf-user-head-body {
    align-self: center;
    padding-top: 10px;
  }
  .mf-user-display-name {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  .mf-user-handle,
  .mf-user-since {
    font-size: 0.84rem;
  }
  .mf-user-bio {
    font-size: 0.9rem;
    max-width: none;
  }
  .mf-user-head-actions {
    width: 100%;
    align-items: stretch;
  }
  .mf-user-edit-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
  .mf-user-follow-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
  .mf-user-head-actions {
    flex-direction: column;
    gap: 8px;
  }
  .mf-user-tabs {
    gap: 6px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mf-user-tabs::-webkit-scrollbar {
    display: none;
  }
  .mf-user-tab {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }
  .mf-user-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mf-user-stat {
    min-width: 0;
    padding: 10px 8px;
  }
  .mf-user-edit-modal {
    align-items: flex-end;
    padding: 0;
  }
  .mf-user-edit-dialog {
    width: 100%;
    max-height: min(92vh, 780px);
    border-radius: 18px 18px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .mf-user-edit-cover-wrap {
    height: 148px;
  }
  .mf-user-edit-drag-hint {
    top: 8px;
    bottom: auto;
  }
  .mf-user-edit-cover-toolbar {
    justify-content: stretch;
  }
  .mf-user-edit-cover-toolbar .mf-user-edit-media-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 0.76rem;
    min-height: 40px;
  }
  .mf-user-edit-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
  .mf-user-edit-avatar-row {
    max-width: calc(100% - 16px);
    gap: 6px;
  }
  .mf-user-edit-avatar-row .mf-user-edit-media-btn--compact {
    max-width: none;
    flex-shrink: 0;
  }
  .mf-user-edit-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .mf-user-edit-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .mf-crop-modal {
    align-items: flex-end;
    padding: 0;
  }
  .mf-crop-panel {
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .mf-crop-actions {
    flex-direction: column-reverse;
  }
  .mf-crop-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .mf-account-user-summary {
    align-items: center;
  }
  .mf-account-guest-summary {
    align-items: center;
  }
}

@media (min-width: 861px) {
  body.mf-account-menu-open::before {
    display: none;
  }
}

/* ===== Mobile compact ? seluruh halaman publik ===== */
@media (max-width: 768px) {
  body.mf-page.detail-page .detail-poster {
    width: min(68vw, 260px);
    max-width: 260px;
  }

  body.mf-page.detail-page .detail-meta-badges {
    gap: 5px;
  }

  body.mf-page.detail-page .meta-badge {
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  body.mf-page.detail-page .detail-rating-block .audience-rating-panel {
    padding: 10px 12px;
    gap: 8px;
  }

  body.mf-page.detail-page .audience-score-box {
    min-width: 52px;
    font-size: 1.35rem;
    padding: 6px 8px;
    border-radius: 8px;
  }

  body.mf-page.detail-page .audience-stars .star {
    font-size: 0.88rem;
  }

  body.mf-page.detail-page .your-rating-badge {
    display: none !important;
  }

  body.mf-page.detail-page .your-rating-control {
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
  }

  body.mf-page.detail-page .your-star {
    font-size: 0.92rem;
    padding: 1px;
  }

  body.mf-page.detail-page .detail-share-panel {
    padding: 10px 12px;
    border-radius: 10px;
  }

  body.mf-page.detail-page .detail-share-row .btn-detail-secondary,
  body.mf-page.detail-page .detail-share-actions .btn-detail-secondary,
  body.mf-page.detail-page .detail-share-actions .detail-share-telegram {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  body.mf-page.detail-page .detail-share-input {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  body.mf-page.detail-page .detail-sticky-player {
    border-radius: 12px;
  }

  body.mf-page.detail-page .detail-sticky-player-hit {
    gap: 10px;
    padding: 8px 10px;
  }

  body.mf-page.detail-page .detail-sticky-player-thumb {
    width: 48px;
    height: 36px;
    border-radius: 6px;
  }

  body.mf-page.detail-page .detail-sticky-player-label {
    font-size: 0.8rem;
  }

  body.mf-page.detail-page .detail-sticky-player-sub {
    font-size: 0.7rem;
  }

  body.mf-page.detail-page .detail-sticky-player-action {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  body.mf-page.detail-page .detail-episodes,
  body.mf-page.detail-page #episodesSection,
  body.mf-page.detail-page .detail-recommend,
  body.mf-page.detail-page .mf-detail-recommend {
    padding-left: 0;
    padding-right: 0;
  }

  body.mf-page.detail-page .episode-card-body {
    min-height: 0;
    padding: 6px 1px 0;
    gap: 1px;
  }

  body.mf-page.detail-page .episode-card-num {
    font-size: 0.72rem;
  }

  body.mf-page.detail-page .episode-card-title {
    font-size: 0.76rem;
  }

  body.mf-page.detail-page .detail-credits {
    padding: 12px 14px;
    border-radius: 12px;
  }

  body.mf-page .library-filter-toggle {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  body.mf-page .library-filter-drawer .library-search,
  body.mf-page .library-filter-drawer select {
    min-height: 38px;
    height: 38px;
    max-height: 38px;
    font-size: 0.84rem;
  }

  body.mf-page .library-filter-apply {
    min-height: 38px;
    font-size: 0.84rem;
  }

  body.mf-page .library-controls .library-search {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  body.mf-page .library-genre-chips .chip-filter {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  body.mf-page .mf-genre-hub-card {
    padding: 10px 12px;
    font-size: 0.86rem;
    border-radius: 8px;
  }

  body.mf-page .mf-network-hub-card {
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  body.mf-page .mf-network-hub-card-media {
    flex-basis: 64px;
    width: 64px;
    height: 36px;
  }

  body.mf-page .mf-network-hub-card-name {
    font-size: 0.88rem;
  }

  body.mf-page .section-header {
    gap: 8px 10px;
  }
}

@media (max-width: 640px) {
  body.home #contenedor .items.full > .item.episodes,
  body.mf-has-idlix-header #contenedor .items.full > .item.episodes {
    flex: 0 0 clamp(168px, 46vw, 240px);
  }

  body.mf-page.detail-page .detail-episodes .episodes-list,
  body.mf-page.detail-page .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 6px;
  }

  body.mf-page.detail-page .detail-poster {
    width: min(62vw, 220px);
    max-width: 220px;
  }

  /* Landscape: poster tidak terlalu lebar (vw = sisi panjang) */
  @media (orientation: landscape) {
    body.mf-page.detail-page .detail-poster {
      width: min(36vw, 200px);
      max-width: 200px;
    }

    body.mf-page.detail-page .detail-episodes .episodes-list,
    body.mf-page.detail-page .episodes-grid {
      grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }
  }

  body.mf-page .mf-genre-page-title.section-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .mf-cookie-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  body.mf-page.detail-page .detail-title {
    font-size: clamp(1.28rem, 6vw, 1.65rem);
  }

  /* 2 kolom episode hanya portrait sempit ? landscape tetap auto-fill */
  @media (orientation: portrait) {
    body.mf-page.detail-page .episodes-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

/* ===== Library mobile: toolbar + bottom sheet filter ===== */
@media (max-width: 768px) {
  .library-toolbar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .library-search--toolbar,
  body.mf-page .library-search--toolbar {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .library-filter-toggle {
    flex: 0 0 auto;
    width: auto;
    min-width: 108px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .library-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.library-filter-sheet-open {
    overflow: hidden;
  }

  .library-filter-drawer.is-open,
  .library-filter-drawer:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 191;
    max-height: min(78vh, 640px);
    margin: 0;
    padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    background: rgba(12, 12, 16, 0.98);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mf-sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  @keyframes mf-sheet-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }

  .library-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 0 10px;
    margin-bottom: 4px;
    background: rgba(12, 12, 16, 0.98);
  }

  .library-filter-sheet-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .library-filter-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .library-filter-apply {
    display: none !important;
  }

  .library-filter-done {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .library-genre-chips--prominent {
    display: flex;
    gap: 8px;
    padding: 4px 0 14px;
    margin-bottom: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .library-genre-chips--prominent .chip-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
  }

  .library-genre-chips--prominent .chip-filter.active {
    border-color: rgba(229, 9, 20, 0.65);
    background: rgba(229, 9, 20, 0.22);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.25);
  }
}

@media (min-width: 769px) {
  .library-filter-backdrop,
  .library-filter-sheet-head,
  .library-filter-close,
  .library-filter-done {
    display: none !important;
  }
}

/* ===== Search overlay mobile (keyboard-safe) ===== */
@media (max-width: 768px) {
  .mf-search-overlay {
    align-items: flex-start;
    justify-content: center;
    padding:
      max(10px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
    top: var(--mf-search-vv-top, 0px);
    height: var(--mf-search-vv-height, 100%);
    max-height: var(--mf-search-vv-height, 100dvh);
    box-sizing: border-box;
  }

  .mf-search-overlay-panel {
    width: min(720px, 100%);
    max-height: calc(var(--mf-search-vv-height, 100dvh) - 20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mf-search-overlay-form {
    flex: 0 0 auto;
  }

  .mf-search-overlay-form input {
    padding: 14px 10px 14px 0;
    font-size: 16px;
  }

  .mf-search-overlay-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .mf-search-instant-results {
    margin-top: 10px;
    padding-top: 10px;
  }

  .mf-search-overlay-close {
    width: 48px;
    height: 48px;
  }
}

/* ===== Library mobile polish ===== */
@media (max-width: 768px) {
  body.mf-page .section-header:has(.library-controls-wrap) {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 10px;
  }

  body.mf-page .section-header:has(.library-controls-wrap) .page-breadcrumb {
    font-size: 0.72rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.45);
  }

  body.mf-page .section-header:has(.library-controls-wrap) .section-title {
    font-size: clamp(1.28rem, 5.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  body.mf-page .section-header:has(.library-controls-wrap) .section-sub {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
  }

  .library-controls-wrap {
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  }

  .library-toolbar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .library-search--toolbar,
  body.mf-page .library-search--toolbar {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background-color: rgba(5, 8, 16, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #f9fafb;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }

  .library-search--toolbar::placeholder,
  body.mf-page .library-search--toolbar::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .library-filter-toggle {
    flex: 0 0 auto;
    width: auto;
    min-width: 104px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .library-browse-panel {
    margin: 4px 0 12px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
  }

  body.mf-page .library-browse-panel .library-meta {
    margin: 0 0 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.46);
  }

  .library-genre-chips--prominent {
    gap: 7px;
    padding: 0 0 4px;
    margin: 0;
    mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  }

  .library-genre-chips--prominent .chip-filter {
    padding: 7px 13px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
  }

  .library-genre-chips--prominent .chip-filter.active {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.28);
  }

  body.mf-page #libraryGrid.movie-grid {
    gap: 12px 10px;
  }
}

/* ===== Search overlay mobile polish ===== */
@media (max-width: 768px) {
  .mf-search-overlay-head {
    margin-bottom: 12px;
    padding: 0 2px;
  }

  .mf-search-overlay-title {
    font-size: 1.05rem;
    font-weight: 700;
  }

  .mf-search-overlay-form {
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }

  .mf-search-overlay-submit {
    padding: 14px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .mf-search-filters {
    margin: 12px 0 0;
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  .mf-search-filter {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .mf-search-filter select {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
  }

  .mf-search-overlay-body {
    margin-top: 4px;
    padding: 0 2px 8px;
  }

  .mf-search-instant-label {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .mf-search-instant-track {
    gap: 12px;
    padding-bottom: 8px;
    scroll-padding-left: 2px;
  }

  .mf-search-instant-track .item {
    flex: 0 0 108px;
  }

  .mf-search-recent-list {
    gap: 7px;
  }

  .mf-search-recent-chip {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .mf-search-instant-more {
    display: block;
    margin-top: 12px;
    padding: 10px 0;
    text-align: center;
    font-size: 0.86rem;
  }
}

/* ===== Header search overlay ? desktop polish (bukan library) ===== */
@media (min-width: 769px) {
  .mf-search-overlay {
    padding: clamp(72px, 12vh, 112px) clamp(20px, 4vw, 48px) 28px;
  }

  .mf-search-overlay-panel {
    width: min(860px, 96vw);
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mf-search-overlay-head {
    margin-bottom: 10px;
  }

  .mf-search-overlay-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  /* Baris 1: input pill + tombol terpisah (bukan kotak gabung SEARCH) */
  .mf-search-overlay-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 14px 14px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.028) 100%
    );
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    overflow: visible;
    box-sizing: border-box;
  }

  .mf-search-overlay-icon {
    display: none;
  }

  .mf-search-overlay-form input[type="search"],
  .mf-search-overlay-form #mfSearchOverlayInput {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background-color: rgba(5, 8, 16, 0.88);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px 16px;
    color: #f9fafb;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition:
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      background-color 0.18s ease;
  }

  .mf-search-overlay-form input[type="search"]:focus,
  .mf-search-overlay-form #mfSearchOverlayInput:focus {
    border-color: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
    background-color: rgba(5, 8, 16, 0.96);
  }

  .mf-search-overlay-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .mf-search-overlay-submit {
    flex: 0 0 auto;
    height: 40px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: 0;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  /* Baris 2: filter ? nyambung ke card toolbar di atas */
  .mf-search-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 8px 8px 10px;
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.028) 0%,
      rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .mf-search-filter {
    min-width: 0;
    gap: 5px;
  }

  .mf-search-filter span {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
  }

  .mf-search-filter select {
    height: 38px;
    min-height: 38px;
    padding: 0 30px 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background-color: rgba(5, 8, 16, 0.88);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    color: #f9fafb;
    font-size: 0.8rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  .mf-search-filter select:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
  }

  /* Hasil cepat */
  .mf-search-overlay-body {
    margin-top: 12px;
    padding: 12px 14px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    max-height: min(48vh, 400px);
  }

  .mf-search-instant-results {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .mf-search-instant-track {
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.55) rgba(255, 255, 255, 0.08);
  }

  .mf-search-instant-track::-webkit-scrollbar {
    height: 5px;
  }

  .mf-search-instant-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.55);
  }

  .mf-search-instant-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .mf-search-instant-more {
    color: #ff6b81;
  }

  .mf-search-instant-more:hover {
    color: #ff8fa3;
  }
}

/* SSR crawl links ? homepage SEO (hidden from layout, tetap di HTML untuk crawler) */
.mf-seo-crawl {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mf-seo-crawl-title,
.mf-seo-crawl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mf-seo-crawl-intro {
  margin: 0;
  padding: 0;
  font-size: inherit;
}
.mf-seo-crawl-browse {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ?? Akses Cepat (floating quick nav) ?? */
.mf-qm-widget,
.mf-qm-widget * {
  box-sizing: border-box;
}

.mf-qm-widget {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 99990 !important;
  isolation: isolate;
}

.mf-qm-state {
  position: fixed !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.mf-qm-fab-wrap,
.mf-qm-backdrop,
.mf-qm-panel-shell {
  pointer-events: auto;
}

.mf-qm-fab-wrap {
  position: fixed !important;
  left: max(10px, env(safe-area-inset-left));
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--mf-qm-lift, 0px));
  z-index: calc(99990 + 2) !important;
  width: 56px;
  height: 56px;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s, bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#mfQmOpen:checked ~ .mf-qm-fab-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.6) translateY(20px);
}

.mf-qm-fab-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.35), transparent 68%);
  animation: mf-qm-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mf-qm-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

.mf-qm-fab {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #e50914 0%, #b20710 100%);
  box-shadow:
    0 6px 20px rgba(229, 9, 20, 0.4),
    0 0 16px rgba(229, 9, 20, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mf-qm-fab:hover { transform: scale(1.06); }
.mf-qm-fab:active { transform: scale(0.96); }
.mf-qm-fab:focus-visible { outline: 2px solid #ff6b7a; outline-offset: 4px; }
.mf-qm-fab svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)); pointer-events: none; }

.mf-qm-fab-tag {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #1a1f2e;
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-10px);
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}

.mf-qm-fab-wrap:hover .mf-qm-fab-tag,
.mf-qm-fab-wrap:focus-within .mf-qm-fab-tag,
.mf-qm-fab-wrap.is-touch .mf-qm-fab-tag {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 360px) {
  .mf-qm-fab-tag {
    left: calc(100% + 6px);
    padding: 6px 10px;
    font-size: 10px;
  }
}

.mf-qm-backdrop {
  position: fixed !important;
  inset: 0;
  z-index: calc(99990 - 1) !important;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  cursor: pointer;
}

#mfQmOpen:checked ~ .mf-qm-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mf-qm-panel-shell {
  position: fixed !important;
  left: max(8px, env(safe-area-inset-left));
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--mf-qm-lift, 0px));
  z-index: 99990 !important;
  width: min(380px, calc(100vw - 14px));
  max-height: min(580px, calc(100vh - 16px - var(--mf-qm-lift, 0px)));
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(229, 9, 20, 0.55), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translate3d(0, 120%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease, visibility 0.24s ease;
}

#mfQmOpen:checked ~ .mf-qm-panel-shell {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mf-qm-panel {
  position: relative;
  height: 100%;
  max-height: min(576px, calc(100vh - 20px - var(--mf-qm-lift, 0px)));
  display: flex;
  flex-direction: column;
  border-radius: 17px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(229, 9, 20, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1020, #070a12);
}

.mf-qm-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mf-qm-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: mf-qm-drift 8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-aurora span {
  animation-play-state: running;
}

.mf-qm-aurora span:nth-child(1) {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -30px;
  background: rgba(229, 9, 20, 0.2);
}

.mf-qm-aurora span:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: -50px;
  background: rgba(255, 107, 122, 0.12);
  animation-delay: -3s;
}

.mf-qm-aurora span:nth-child(3) {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: 30%;
  background: rgba(229, 9, 20, 0.1);
  animation-delay: -5s;
}

@keyframes mf-qm-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12px, -18px) scale(1.12); }
}

.mf-qm-head {
  position: relative;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.95), rgba(5, 8, 16, 0.85));
}

.mf-qm-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mf-qm-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e50914;
}

.mf-qm-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b7a;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
  animation: mf-qm-pulse 1.8s ease-in-out infinite;
}

.mf-qm-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f5f5f5;
}

.mf-qm-close-x {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1f2e;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s, border-color 0.18s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mf-qm-close-x:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: #e50914;
  transform: scale(1.04);
}

.mf-qm-search-wrap {
  position: relative;
  margin-top: 14px;
  display: block;
}

.mf-qm-search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.5;
  pointer-events: none;
}

.mf-qm-search {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1f2e;
  color: #f5f5f5;
  font-size: 0.88rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.mf-qm-search:focus {
  outline: none;
  border-color: #e50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.mf-qm-search::placeholder { color: rgba(255, 255, 255, 0.35); }

.mf-qm-list {
  position: relative;
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e50914 transparent;
}

.mf-qm-item {
  --accent: #e50914;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-24px) scale(0.96);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s, border-color 0.22s;
}

.mf-qm-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: translateY(-50%);
  transition: height 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.mf-qm-item:hover::before {
  height: 66%;
}

.mf-qm-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.mf-qm-item:hover::after { transform: translateX(120%); }

#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item {
  animation: mf-qm-slide-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(1) { animation-delay: 0.05s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(2) { animation-delay: 0.09s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(3) { animation-delay: 0.13s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(4) { animation-delay: 0.17s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(5) { animation-delay: 0.21s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(6) { animation-delay: 0.25s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(7) { animation-delay: 0.28s; }
#mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item:nth-child(8) { animation-delay: 0.31s; }

@keyframes mf-qm-slide-in {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.mf-qm-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.mf-qm-item[hidden] { display: none !important; }

.mf-qm-icon-wrap {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mf-qm-item:hover .mf-qm-icon-wrap {
  transform: scale(1.06);
}

.mf-qm-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mf-qm-text { flex: 1; min-width: 0; }

.mf-qm-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mf-qm-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-qm-item-desc {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mf-qm-go {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  opacity: 0.65;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, background 0.2s ease;
}

.mf-qm-item:hover .mf-qm-go {
  transform: translateX(3px) scale(1.08);
  opacity: 1;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}

.mf-qm-empty {
  display: none;
  padding: 32px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.mf-qm-empty.is-visible { display: block; }

.mf-qm-foot {
  position: relative;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #1a1f2e;
}

.mf-qm-foot-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: #e50914;
  transition: background 0.18s, transform 0.18s;
}

.mf-qm-foot-btn:hover {
  background: #b20710;
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .mf-qm-fab-glow,
  .mf-qm-aurora span,
  .mf-qm-brand-dot { animation: none !important; }
  .mf-qm-item,
  .mf-qm-panel-shell,
  .mf-qm-fab-wrap,
  .mf-qm-backdrop { transition: none !important; }
  #mfQmOpen:checked ~ .mf-qm-panel-shell .mf-qm-item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* =====================================================================
   MOBILE / PWA ? proporsi card & bottom nav (IDLIX), desktop tidak terpengaruh
   ===================================================================== */

@media (max-width: 1024px) {
  body:not(.admin-page) {
    --mf-mobile-card-poster: clamp(108px, 29vw, 132px);
    --mf-mobile-card-episode: clamp(168px, 44vw, 220px);
    --mf-mobile-card-gap: 10px;
    --mf-bottom-nav-h: 56px;
  }

  /* Akses Cepat ? hanya desktop */
  .mf-qm-widget {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(.admin-page) #contenedor .items.normal,
  body:not(.admin-page) #contenedor .list_genres,
  body:not(.admin-page) #contenedor .items.full,
  body.home #contenedor .items.normal,
  body.home #contenedor .list_genres,
  body.home #contenedor .items.full,
  body.home #contenedor .items.featured.carousel-row,
  body.home #contenedor #continueWatchingGrid.items.normal.carousel-row,
  body.home #contenedor .mf-leaderboard-track.items.normal {
    gap: var(--mf-mobile-card-gap, 10px);
    padding-bottom: 14px;
  }

  body:not(.admin-page) #contenedor .items.normal > .item,
  body:not(.admin-page) #contenedor .list_genres > .item,
  body.home #contenedor .items.normal > .item,
  body.home #contenedor .list_genres > .item,
  body.home #contenedor .items.featured.carousel-row > .item,
  body.home #contenedor #continueWatchingGrid.items.normal.carousel-row > .item {
    flex: 0 0 var(--mf-mobile-card-poster, clamp(108px, 29vw, 132px));
  }

  body:not(.admin-page) #contenedor .items.full > .item.episodes,
  body.home #contenedor .items.full > .item.episodes {
    flex: 0 0 var(--mf-mobile-card-episode, clamp(168px, 44vw, 220px));
  }

  body.home #contenedor .mf-leaderboard-track .mf-lb-card,
  .mf-leaderboard-track .mf-lb-card {
    flex: 0 0 var(--mf-mobile-card-poster, clamp(108px, 29vw, 132px));
  }

  .item.mf-trending-item .poster .mf-card-rank {
    font-size: clamp(0.8rem, 3.8vw, 1rem);
    max-width: calc(48% - 10px);
  }

  body.home #contenedor header.mf-section-header,
  body.home #contenedor header.mf-section-header--leaderboard {
    padding-top: 16px;
    padding-bottom: 6px;
  }

  body.home #contenedor .mf-home-sponsor {
    margin: 6px 0 18px;
  }

  body.home #contenedor .mf-banner-duo-wrap {
    padding-top: 12px;
    padding-bottom: 6px;
  }

  body.mf-page #browseGrouped .section {
    margin-bottom: 22px;
  }

  /* Ruang aman di atas bottom nav ? footer yang menangani, bukan kontainer */
  body.mf-has-bottom-nav.mf-page .detail-main {
    padding-bottom: calc(var(--mf-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  body.mf-has-bottom-nav:not(.admin-page) footer.main {
    padding-bottom: calc(10px + var(--mf-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px));
  }

  /* Footer mobile/PWA ? lebih ringkas */
  body:not(.admin-page) footer.main {
    margin-top: 18px;
    padding: 18px max(12px, env(safe-area-inset-left, 0px), 3.5vw) 10px;
  }

  body:not(.admin-page) footer.main .columenu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  body:not(.admin-page) footer.main h3 {
    font-size: 0.72rem;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    line-height: 1.25;
    padding-bottom: 0.14em;
    overflow: visible;
  }

  body:not(.admin-page) footer.main .menu li a {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  body:not(.admin-page) footer.main .fotlogo {
    margin-top: 14px;
    padding-top: 12px;
  }

  body:not(.admin-page) footer.main .fotlogo .logo {
    font-size: 1.15rem;
    margin-bottom: 4px;
    letter-spacing: 0.12em;
  }

  body:not(.admin-page) footer.main .fotlogo .text p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  body:not(.admin-page) footer.main .fotlogo .text p::after {
    display: inline;
    font-size: inherit;
  }

  body:not(.admin-page) footer.main .copy {
    margin-top: 12px;
    padding: 8px 0 0;
    font-size: 0.68rem;
  }

  body:not(.admin-page) footer.main .fmenu .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }

  body:not(.admin-page) footer.main .fmenu .menu li a {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  body:not(.admin-page) footer.main .mf-footer-badges {
    margin-top: 10px;
    gap: 10px;
  }

  body:not(.admin-page) footer.main .mf-dmca-badge-wrap {
    margin: 0;
    padding-top: 0;
  }

  body:not(.admin-page) footer.main .mf-dmca-badge-wrap img {
    max-width: 120px;
    width: 120px !important;
    height: 24px !important;
  }

  /* Mobile: keep Histats at native 150x25 ? do not scale (clips widget) */
  body:not(.admin-page) footer.main .mf-histats-wrap {
    width: 150px;
    min-width: 150px;
    height: 25px;
    min-height: 25px;
    max-height: none;
  }

  body:not(.admin-page) footer.main .mf-histats-wrap .mf-histats-link,
  body:not(.admin-page) footer.main .mf-histats-wrap a:not(.mf-histats-fallback) {
    width: auto;
    height: auto;
  }

  body:not(.admin-page) footer.main .mf-histats-wrap #histats_counter {
    width: 150px !important;
    height: 25px !important;
    transform: none !important;
  }

  body:not(.admin-page) footer.main .mf-histats-wrap img:not(.mf-histats-pixel),
  body:not(.admin-page) footer.main .mf-histats-wrap embed,
  body:not(.admin-page) footer.main .mf-histats-wrap object,
  body:not(.admin-page) footer.main .mf-histats-wrap iframe,
  body:not(.admin-page) footer.main .mf-histats-wrap canvas {
    width: auto !important;
    height: auto !important;
    max-width: none;
  }

  body:not(.admin-page) footer.main .mf-histats-fallback {
    min-width: 150px;
    height: 25px;
    font-size: 10px;
    padding: 0 8px;
  }

  /* Card poster ? rating kanan atas, quality/votes kiri bawah */
  body:not(.admin-page) .item .poster .rating {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
  }

  body:not(.admin-page) .item .poster .rating::before {
    width: 9px;
    height: 9px;
  }

  body:not(.admin-page) .item .poster .mf-poster-foot {
    top: auto !important;
    left: 8px !important;
    right: auto !important;
    bottom: 8px !important;
    width: auto;
    max-width: calc(100% - 52px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 4px;
  }

  body:not(.admin-page) .item .poster .mf-poster-foot .mepo {
    display: inline-flex !important;
    justify-content: flex-start;
  }

  body:not(.admin-page) .item .poster .mf-poster-foot .quality,
  body:not(.admin-page) .item .poster .mf-poster-foot .mepo .quality {
    font-size: 0.56rem !important;
    padding: 2px 6px !important;
    letter-spacing: 0.06em;
  }

  body:not(.admin-page) .item .poster .mf-poster-foot .mf-card-votes {
    font-size: 0.58rem;
    padding: 2px 6px;
    max-width: 100%;
    align-self: flex-start;
  }

  body:not(.admin-page) .item.is-upcoming .poster > .rating {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
  }

  body:not(.admin-page) .item.is-upcoming .poster .mf-poster-foot {
    top: auto !important;
    left: 8px !important;
    right: auto !important;
    bottom: 8px !important;
    max-width: calc(100% - 52px);
  }

  /* Sembunyikan badge unggulan / coming soon (rating + foot tetap) */
  body:not(.admin-page) .item .poster .featu,
  body:not(.admin-page) .item .poster .featu-stack {
    display: none !important;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer {
    padding: 14px var(--mf-page-gutter, 12px) calc(8px + var(--mf-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px));
  }

  body.mf-has-bottom-nav.mf-page .mf-footer > p {
    font-size: 0.72rem;
    line-height: 1.4;
    margin: 0 0 8px;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-footer-badges {
    margin: 6px 0 8px;
    gap: 8px;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-dmca-badge-wrap {
    margin: 0;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-dmca-badge-wrap img {
    max-width: 110px;
    width: 110px !important;
    height: 22px !important;
  }

  /* Bottom-nav: native Histats 150x25 (no scale) */
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap {
    width: 150px;
    min-width: 150px;
    height: 25px;
    min-height: 25px;
    max-height: none;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap .mf-histats-link,
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap a:not(.mf-histats-fallback) {
    width: auto;
    height: auto;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap #histats_counter {
    width: 150px !important;
    height: 25px !important;
    transform: none !important;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap img:not(.mf-histats-pixel),
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap embed,
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap object,
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap iframe,
  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-wrap canvas {
    width: auto !important;
    height: auto !important;
    max-width: none;
  }

  body.mf-has-bottom-nav.mf-page .mf-footer .mf-histats-fallback {
    min-width: 150px;
    height: 25px;
    font-size: 9px;
    padding: 0 7px;
  }
}

/* Bottom navigation bar */
.mf-bottom-nav {
  display: none;
}

@media (max-width: 1024px) {
  .mf-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(8, 8, 10, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }

  body.mf-has-bottom-nav:has(.detail-sticky-player:not([hidden])) .mf-bottom-nav,
  body.mf-has-bottom-nav:has(.mf-cookie-banner:not(.is-hidden)) .mf-bottom-nav {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .mf-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    min-height: var(--mf-bottom-nav-h, 56px);
    max-width: 640px;
    margin: 0 auto;
    padding: 4px max(6px, env(safe-area-inset-left, 0px)) 4px max(6px, env(safe-area-inset-right, 0px));
  }

  .mf-bnav-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .mf-bnav-link:hover,
  .mf-bnav-link:focus-visible {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
  }

  .mf-bnav-link.is-active {
    color: #e50914;
  }

  .mf-bnav-link.is-active .mf-bnav-icon {
    stroke: #e50914;
  }

  .mf-bnav-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .mf-bnav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  /* Desktop/laptop: hide. TV leanback must keep the bar visible. */
  body:not(.mf-tv-mode) .mf-bottom-nav {
    display: none !important;
  }

  body.mf-tv-mode .mf-bottom-nav {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(8, 8, 10, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
  }

  body.mf-tv-mode .mf-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    min-height: var(--mf-bottom-nav-h, 56px);
    max-width: 960px;
    margin: 0 auto;
    padding: 4px max(6px, env(safe-area-inset-left, 0px)) 4px max(6px, env(safe-area-inset-right, 0px));
    width: 100%;
  }

  body.mf-tv-mode .mf-bnav-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
  }

  body.mf-tv-mode .mf-bnav-link:hover,
  body.mf-tv-mode .mf-bnav-link:focus-visible,
  body.mf-tv-mode .mf-bnav-link:focus {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
  }

  body.mf-tv-mode .mf-bnav-link.is-active {
    color: #e50914;
  }

  body.mf-tv-mode .mf-bnav-link.is-active .mf-bnav-icon {
    stroke: #e50914;
  }

  body.mf-tv-mode .mf-bnav-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  body.mf-tv-mode .mf-bnav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  body.mf-tv-mode.mf-has-bottom-nav:has(.detail-sticky-player:not([hidden])) .mf-bottom-nav,
  body.mf-tv-mode.mf-has-bottom-nav:has(.mf-cookie-banner:not(.is-hidden)) .mf-bottom-nav {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== Admin panel polish v2 (settings, promo GIF, shell) ===== */
.admin-page .admin-login-card {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 106, 0.22);
  background: linear-gradient(165deg, rgba(12, 14, 22, 0.95), rgba(8, 10, 18, 0.92));
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-page .admin-shell {
  border-radius: 20px;
  border-color: rgba(212, 175, 106, 0.14);
  background: rgba(6, 8, 14, 0.88);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.admin-page .admin-shell-sidebar {
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.98), rgba(6, 8, 14, 0.94));
  border-right-color: rgba(212, 175, 106, 0.1);
}

.admin-page .admin-shell-main {
  padding: 20px 22px 24px;
  background: rgba(4, 6, 12, 0.35);
}

.admin-page .admin-module--settings .admin-module-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .admin-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-page .admin-module--settings .admin-subcard {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-page .admin-subcard-desc {
  margin: -4px 0 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.admin-page .admin-settings-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 106, 0.18);
  background: rgba(8, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-page .admin-settings-status {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(212, 175, 106, 0.85);
}

.admin-page .admin-settings-status:empty {
  display: none;
}

.admin-page .admin-promo-gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-page .admin-promo-gif-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-page .admin-promo-gif-card:has(input:checked) {
  border-color: rgba(255, 56, 89, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 56, 89, 0.25);
}

.admin-page .admin-promo-gif-card input[type="checkbox"] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  accent-color: #ff3859;
}

.admin-page .admin-promo-gif-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #050810;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .admin-promo-gif-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-page .admin-promo-gif-thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 48px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 6px,
    transparent 6px,
    transparent 12px
  );
}

.admin-page .admin-promo-gif-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.admin-page .admin-promo-gif-path {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.42);
  word-break: break-all;
}

.admin-page .admin-promo-custom-gif {
  margin-bottom: 14px;
}

.admin-page .admin-promo-custom-gif-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.admin-page .admin-promo-custom-gif-row input {
  flex: 1;
  min-width: 0;
}

.admin-page .admin-promo-snooze-block {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-page .admin-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.admin-page .admin-check-row input {
  margin-top: 3px;
  accent-color: #ff3859;
  flex-shrink: 0;
}

.admin-page .admin-promo-snooze-block .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-page .admin-inline-field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.admin-page .admin-grid--promo-timing {
  margin-bottom: 4px;
}

.admin-page .admin-editor-panel,
.admin-page .admin-catalog-panel {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.admin-page .admin-form input,
.admin-page .admin-form select,
.admin-page .admin-form textarea,
.admin-page .admin-grid input,
.admin-page .admin-grid select,
.admin-page .admin-grid textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.admin-page .admin-form input:focus,
.admin-page .admin-form select:focus,
.admin-page .admin-form textarea:focus,
.admin-page .admin-grid input:focus,
.admin-page .admin-grid select:focus,
.admin-page .admin-grid textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.45);
  box-shadow: 0 0 0 2px rgba(212, 175, 106, 0.12);
}

/* Pengaturan beranda & alat ? kolom isi di luar .admin-form */
.admin-page .admin-module--settings {
  color-scheme: dark;
}

.admin-page .admin-module--settings .admin-grid > label,
.admin-page .admin-module--settings .admin-subcard > label:not(.admin-promo-gif-card):not(.admin-check-row) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
}

.admin-page .admin-module--settings .admin-grid input:not([type="checkbox"]):not([type="radio"]),
.admin-page .admin-module--settings .admin-grid select,
.admin-page .admin-module--settings .admin-grid textarea,
.admin-page .admin-module--settings .admin-subcard > label:not(.admin-promo-gif-card) input:not([type="checkbox"]):not([type="radio"]),
.admin-page .admin-module--settings .admin-inline-field input,
.admin-page .admin-module--settings .admin-hero-pick-select,
.admin-page .admin-module--settings .admin-block-label textarea,
.admin-page .admin-module--settings .admin-promo-custom-gif-row input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 22, 0.88);
  color: #f1f5f9;
  caret-color: #f1f5f9;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.admin-page .admin-module--settings .admin-grid textarea,
.admin-page .admin-module--settings .admin-block-label textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-page .admin-module--settings .admin-grid input[type="number"] {
  font-variant-numeric: tabular-nums;
}

.admin-page .admin-module--settings .admin-grid input:hover:not(:disabled),
.admin-page .admin-module--settings .admin-grid select:hover:not(:disabled),
.admin-page .admin-module--settings .admin-grid textarea:hover:not(:disabled),
.admin-page .admin-module--settings .admin-subcard > label input:hover:not(:disabled),
.admin-page .admin-module--settings .admin-inline-field input:hover:not(:disabled),
.admin-page .admin-module--settings .admin-promo-custom-gif-row input:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 24, 0.95);
}

.admin-page .admin-module--settings .admin-grid input:focus,
.admin-page .admin-module--settings .admin-grid select:focus,
.admin-page .admin-module--settings .admin-grid textarea:focus,
.admin-page .admin-module--settings .admin-subcard > label input:focus,
.admin-page .admin-module--settings .admin-inline-field input:focus,
.admin-page .admin-module--settings .admin-promo-custom-gif-row input:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.5);
  box-shadow: 0 0 0 2px rgba(212, 175, 106, 0.14);
  background: rgba(12, 16, 28, 0.98);
}

.admin-page .admin-module--settings .admin-home-sections label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-page .admin-module--settings .admin-home-sections label:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.admin-page .admin-module--settings .admin-home-sections label:has(input:checked) {
  border-color: rgba(255, 56, 89, 0.35);
  background: rgba(255, 56, 89, 0.08);
}

.admin-page .admin-module--settings .admin-legend {
  color: rgba(212, 175, 106, 0.88);
  opacity: 1;
}

.admin-page .admin-module--settings .admin-subcard > label:has(> input[type="checkbox"]:only-child),
.admin-page .admin-module--settings .admin-subcard > label:has(> input[type="checkbox"]:first-child) {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.admin-page .admin-module--settings .admin-subcard > label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #ff3859;
  flex-shrink: 0;
}

.admin-page .admin-module--settings .admin-home-genre-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.admin-page .admin-module--settings .admin-notice {
  color: rgba(226, 232, 240, 0.88);
}

.admin-page .admin-module--settings .admin-notice code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(252, 211, 77, 0.92);
  font-size: 0.78rem;
  word-break: break-all;
}

.admin-page .admin-module--settings .admin-promo-custom-gif-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.admin-page .admin-module--settings .admin-promo-custom-gif-row input {
  flex: 1 1 180px;
  min-width: 0;
}

.admin-page .admin-module--settings .admin-promo-gif-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-page .admin-module--settings .admin-promo-gif-path {
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.68rem;
}

body.theme-light.admin-page .admin-module--settings {
  color-scheme: light;
}

body.theme-light.admin-page .admin-module--settings .admin-grid > label,
body.theme-light.admin-page .admin-module--settings .admin-subcard > label:not(.admin-promo-gif-card),
body.theme-light.admin-page .admin-module--settings .admin-inline-field,
body.theme-light.admin-page .admin-module--settings .admin-hero-pick-label,
body.theme-light.admin-page .admin-module--settings .admin-home-genre-check,
body.theme-light.admin-page .admin-module--settings .admin-home-sections label {
  color: #1e293b;
}

body.theme-light.admin-page .admin-module--settings .admin-grid input:not([type="checkbox"]):not([type="radio"]),
body.theme-light.admin-page .admin-module--settings .admin-grid select,
body.theme-light.admin-page .admin-module--settings .admin-grid textarea,
body.theme-light.admin-page .admin-module--settings .admin-subcard > label input:not([type="checkbox"]):not([type="radio"]),
body.theme-light.admin-page .admin-module--settings .admin-inline-field input,
body.theme-light.admin-page .admin-module--settings .admin-promo-custom-gif-row input,
body.theme-light.admin-page .admin-module--settings .admin-block-label textarea {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.55);
  color: #0f172a;
  caret-color: #0f172a;
  color-scheme: light;
}

body.theme-light.admin-page .admin-module--settings input::placeholder,
body.theme-light.admin-page .admin-module--settings textarea::placeholder {
  color: rgba(100, 116, 139, 0.85);
}

@media (max-width: 900px) {
  .admin-page .admin-shell-main {
    padding: 14px 12px 18px;
  }

  .admin-page .admin-promo-gif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-settings-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .admin-settings-footer .btn {
    width: 100%;
  }
}

/* ===== Detail page ? IDLIX backdrop + linear content ===== */
body.detail-page.mf-page-has-hero::before,
body.detail-page.mf-page-has-hero::after {
  display: none !important;
}

body.mf-page.detail-page {
  background: #0a0909;
}

body.detail-page.mf-page-has-hero::before,
body.detail-page.mf-page-has-hero::after {
  display: none !important;
}

.mf-detail-backdrop {
  position: relative;
  width: 100%;
  background: #0a0909;
}

.mf-detail-backdrop[hidden] {
  display: none !important;
}

.mf-detail-backdrop-media {
  --mf-hero-h-min: 380px;
  --mf-hero-h: 78vh;
  --mf-hero-h-max: 640px;
  position: relative;
  width: 100%;
  height: clamp(var(--mf-hero-h-min), var(--mf-hero-h), var(--mf-hero-h-max));
  min-height: var(--mf-hero-h-min);
  max-height: none;
  margin: 0;
  background: #0a0909;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .mf-detail-backdrop-media {
    --mf-hero-h: 78dvh;
  }
}

@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  body.mf-page.detail-page .mf-detail-backdrop-media {
    --mf-hero-h-min: 440px;
    --mf-hero-h: 80vh;
    --mf-hero-h-max: 860px;
  }

  @supports (height: 100dvh) {
    body.mf-page.detail-page .mf-detail-backdrop-media {
      --mf-hero-h: 80dvh;
    }
  }
}

@media (min-width: 1025px) {
  body.mf-page.detail-page .mf-detail-backdrop-media {
    --mf-hero-h-min: 560px;
    --mf-hero-h: 90vh;
    --mf-hero-h-max: 1200px;
  }

  @supports (height: 100dvh) {
    body.mf-page.detail-page .mf-detail-backdrop-media {
      --mf-hero-h: 90dvh;
    }
  }
}

@media (min-width: 1440px) {
  body.mf-page.detail-page .mf-detail-backdrop-media {
    --mf-hero-h-min: 640px;
    --mf-hero-h: 92vh;
    --mf-hero-h-max: 1350px;
  }

  @supports (height: 100dvh) {
    body.mf-page.detail-page .mf-detail-backdrop-media {
      --mf-hero-h: 92dvh;
    }
  }
}

/* Hapus stripe layer kedua ? satu gradient saja yang menutup ke #0a0909 */
body.mf-page.detail-page.mf-page-has-hero .mf-detail-backdrop::after {
  display: none;
}

.mf-detail-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.mf-detail-backdrop-gradient {
  position: absolute;
  inset: 0;
  /* Hanya overlay fade; posisi gambar tidak diubah. Solid penuh di bawah = tanpa belang. */
  background: linear-gradient(
    180deg,
    rgba(10, 9, 9, 0) 0%,
    rgba(10, 9, 9, 0.08) 28%,
    rgba(10, 9, 9, 0.45) 58%,
    rgba(10, 9, 9, 0.82) 78%,
    #0a0909 92%,
    #0a0909 100%
  );
  pointer-events: none;
  z-index: 1;
}

.mf-detail-backdrop-idle {
  position: absolute;
  inset: 0;
  z-index: 8;
  /* Biarkan klik tembus ke elemen di bawah, kecuali tombol play */
  pointer-events: none;
}

.mf-detail-backdrop-idle[hidden] {
  display: none !important;
}

.mf-detail-backdrop-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  width: clamp(72px, 16vw, 88px);
  height: clamp(72px, 16vw, 88px);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mf-detail-backdrop-play:hover,
.mf-detail-backdrop-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.mf-detail-backdrop-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
  margin-left: 3px;
}

/* Player inline ? menggantikan backdrop saat play (ala IDLIX) */
.mf-detail-backdrop.is-playing::after {
  display: none !important;
}

.mf-detail-backdrop.is-playing .mf-detail-backdrop-img,
.mf-detail-backdrop.is-playing .mf-detail-backdrop-gradient,
.mf-detail-backdrop.is-playing .mf-detail-backdrop-idle,
.mf-detail-backdrop.is-playing .mf-detail-dock-overlap {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.mf-detail-backdrop-player {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  background: #000;
  box-sizing: border-box;
}

.mf-detail-backdrop.is-playing .mf-detail-backdrop-player {
  inset: auto;
  /* Media sudah di bawah header (padding #dt_contenedor) ? player isi penuh media */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/*
 * Saat play (scroll di atas): konten digeser di bawah header agar video tidak tertimpa.
 * Header tetap perilaku normal ? transparan di atas, jadi pill saat is-scrolled.
 */
body.mf-page.detail-page.mf-detail-backdrop-playing #dt_contenedor,
body.mf-page.detail-page.mf-detail-player-open #dt_contenedor {
  padding-top: var(--mf-header-offset, 72px) !important;
}

/* Trailer modal di atas header */
body.mf-detail-player-open .mf-detail-player-modal {
  z-index: 140;
}

/* Tinggi media = sisa viewport di bawah header (max 16:9 dari lebar) */
body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
  height: min(
    calc(
      100vh - var(--mf-header-offset, 72px) - var(--mf-bottom-nav-h, 0px) -
        env(safe-area-inset-bottom, 0px)
    ),
    calc(100vw * 9 / 16)
  );
  min-height: 240px;
  max-height: none;
}

@supports (height: 100dvh) {
  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
    height: min(
      calc(
        100dvh - var(--mf-header-offset, 72px) - var(--mf-bottom-nav-h, 0px) -
          env(safe-area-inset-bottom, 0px)
      ),
      calc(100vw * 9 / 16)
    );
  }
}

@supports (height: 100svh) {
  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
    height: min(
      calc(
        100svh - var(--mf-header-offset, 72px) - var(--mf-bottom-nav-h, 0px) -
          env(safe-area-inset-bottom, 0px)
      ),
      calc(100vw * 9 / 16)
    );
  }
}

.mf-detail-backdrop-player-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.mf-detail-backdrop-episode-nav {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px clamp(12px, 3vw, 20px);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.88);
  transition: opacity 0.25s ease;
  position: relative;
  z-index: 8;
}

.mf-detail-backdrop-player.mf-detail-player-ui-idle .mf-detail-backdrop-episode-nav {
  opacity: 0;
  pointer-events: auto;
}

.mf-detail-backdrop-player.mf-detail-player-ui-active .mf-detail-backdrop-episode-nav {
  opacity: 1;
  pointer-events: auto;
}

.mf-detail-backdrop-player-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: none;
  position: relative;
  z-index: 1;
  /* Biar stage 16:9 bisa fit proporsional di dalam shell */
  container-type: size;
  container-name: mf-detail-player-shell;
}

/*
 * Stage 16:9 terbesar yang muat di shell (portrait = full lebar,
 * landscape = full tinggi). Jangan stretch non-16:9 ? itu yang bikin
 * Bunny iframe letterbox & film keliatan kecil di tengah.
 */
.mf-detail-backdrop-player-stage,
.mf-detail-backdrop-player .player-wrapper.mf-player-stage {
  flex: 0 0 auto;
  position: relative;
  width: min(100%, calc(100cqh * 16 / 9));
  max-width: 100%;
  max-height: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
}

/* Fallback browser tanpa container size queries */
@supports not (width: 1cqh) {
  .mf-detail-backdrop-player-stage,
  .mf-detail-backdrop-player .player-wrapper.mf-player-stage {
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }
}

.mf-detail-backdrop-player-stage .mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.mf-detail-backdrop-player-stage > .plyr,
.mf-detail-backdrop-player .player-wrapper.mf-player-stage > .plyr {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

.mf-detail-backdrop-player-stage .plyr video,
.mf-detail-backdrop-player-stage > video.mf-detail-video,
.mf-detail-backdrop-player-stage > video#detailVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.mf-detail-backdrop-player .plyr.mf-plyr-modal {
  --plyr-color-main: #e50914;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-range-fill-background: #e50914;
  --plyr-range-track-height: 3px;
  --plyr-range-thumb-height: 10px;
  --plyr-control-icon-size: 16px;
  --plyr-control-spacing: 8px;
  --plyr-font-size-time: 12px;
}

.mf-detail-backdrop-player .plyr.mf-plyr-modal .plyr__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  border: 0;
}

.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="rewind"],
.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="fast-forward"],
.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="restart"],
.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="duration"],
.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="pip"],
.mf-detail-backdrop-player .plyr.mf-plyr-modal [data-plyr="settings"] {
  display: none !important;
}

.mf-detail-backdrop-player .plyr.mf-plyr-modal .plyr__volume input[type="range"] {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.mf-detail-backdrop-player .plyr.mf-plyr-modal .plyr__control--overlaid {
  display: none !important;
}

.mf-detail-backdrop-player-stage:has(iframe.mf-detail-embed:not([style*="display: none"])) > video,
.mf-detail-backdrop-player-stage:has(iframe.mf-detail-embed:not([style*="display: none"])) > .plyr,
.mf-detail-backdrop-player .mf-player-stage--bunny > video,
.mf-detail-backdrop-player .mf-player-stage--bunny > .plyr {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mf-detail-backdrop-player .mf-player-stage--bunny iframe.mf-detail-embed {
  display: block !important;
  border: 0;
  background: #000;
}

.mf-detail-backdrop-player .mf-player-shell--bunny-loading::after {
  display: none !important;
}

.mf-detail-backdrop-player-close,
.mf-detail-backdrop-player-close-icon {
  display: none !important;
}

body.mf-detail-backdrop-playing .detail-sticky-player {
  display: none !important;
  z-index: 90;
}

body.mf-page.detail-page .mf-detail-backdrop-player {
  margin: 0;
  padding: 0;
  width: 100%;
}

body.mf-page.detail-page .mf-detail-backdrop-player-stage .mf-detail-video,
body.mf-page.detail-page .mf-detail-backdrop-player-stage .mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* Legacy modal rules ? kept for cached HTML fallback */
.mf-detail-player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 48px);
  box-sizing: border-box;
}

.mf-detail-player-modal .mf-detail-player-modal-stage {
  width: min(920px, 100%);
}

.mf-detail-player-modal .mf-detail-modal-player-shell {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.75) !important;
}

.mf-detail-player-modal .mf-detail-modal-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(78vh, calc(92vw * 9 / 16));
  background: #000;
  overflow: hidden;
}

.mf-detail-player-modal .mf-detail-modal-player-stage .mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.mf-detail-player-modal .mf-detail-modal-player-stage > .plyr,
.mf-detail-player-modal .player-wrapper.mf-player-stage > .plyr {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

.mf-detail-player-modal .plyr.mf-plyr-modal {
  --plyr-color-main: #e50914;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #fff;
  --plyr-range-fill-background: #e50914;
  --plyr-range-track-height: 3px;
  --plyr-range-thumb-height: 10px;
  --plyr-control-icon-size: 16px;
  --plyr-control-spacing: 8px;
  --plyr-font-size-time: 12px;
}

.mf-detail-player-modal .plyr.mf-plyr-modal .plyr__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  border: 0;
}

.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="rewind"],
.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="fast-forward"],
.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="restart"],
.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="duration"],
.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="pip"],
.mf-detail-player-modal .plyr.mf-plyr-modal [data-plyr="settings"] {
  display: none !important;
}

.mf-detail-player-modal .plyr.mf-plyr-modal .plyr__volume input[type="range"] {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.mf-detail-player-modal .plyr.mf-plyr-modal .plyr__control--overlaid {
  display: none !important;
}

.mf-detail-player-modal .mf-detail-modal-player-stage:has(iframe.mf-detail-embed:not([style*="display: none"])) > video,
.mf-detail-player-modal .mf-detail-modal-player-stage:has(iframe.mf-detail-embed:not([style*="display: none"])) > .plyr,
.mf-detail-player-modal .mf-player-stage--bunny > video,
.mf-detail-player-modal .mf-player-stage--bunny > .plyr {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mf-detail-player-modal .mf-player-stage--bunny iframe.mf-detail-embed {
  display: block !important;
  border: 0;
  background: #000;
}

.mf-detail-player-modal .mf-player-shell--bunny-loading::after {
  display: none !important;
}

.mf-detail-player-modal .mf-detail-modal-player-shell {
  border-radius: 8px;
  overflow: hidden;
}

.mf-detail-player-modal .mf-detail-player-modal-stage {
  border-radius: 8px;
  overflow: visible;
}

.mf-detail-modal-player-host {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
}

.mf-detail-modal-player-host .detail-player-section,
.mf-detail-modal-player-host .mf-detail-modal-player {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #000;
  overflow: visible;
}

.mf-detail-modal-player-host .mf-detail-backdrop-player-close,
.mf-detail-modal-player-host .mf-detail-backdrop-episode-nav {
  display: none !important;
}

.mf-detail-modal-player-host .mf-detail-backdrop-player-body {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
}

.mf-detail-modal-player-host .mf-detail-backdrop-player-shell,
.mf-detail-modal-player-host .mf-player-shell {
  /* Modal: jangan pakai shell fullscreen (cqh + flex:1) ? itu bikin height 0 & clip iframe */
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.75);
  container-type: normal;
  container-name: none;
}

.mf-detail-modal-player-host .mf-detail-backdrop-player-stage,
.mf-detail-modal-player-host .player-wrapper.mf-player-stage {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100%;
  max-height: min(78vh, calc(92vw * 9 / 16));
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0;
  flex: none;
}

.mf-detail-modal-player-host .mf-detail-backdrop-player-stage .mf-detail-embed,
.mf-detail-modal-player-host .player-wrapper.mf-player-stage .mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  z-index: 3;
}

.mf-detail-player-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mf-detail-player-modal[hidden] {
  display: none !important;
}

.mf-detail-player-modal-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  pointer-events: auto;
}

.mf-detail-player-modal .mf-detail-player-modal-close {
  display: none !important;
}

.mf-detail-player-modal-stage {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  max-width: 100%;
  height: auto;
  pointer-events: auto;
  animation: mf-detail-player-modal-in 0.24s ease;
}

@keyframes mf-detail-player-modal-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mf-detail-player-modal-close:hover,
.mf-detail-player-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: scale(1.04);
}

.mf-detail-player-modal-close-icon {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}

.mf-detail-player-modal-close-icon::before,
.mf-detail-player-modal-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.mf-detail-player-modal-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mf-detail-player-modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.mf-detail-player-open {
  overflow: hidden;
}

body.mf-detail-player-open #dt_contenedor,
body.mf-detail-player-open .mf-footer {
  pointer-events: none;
}

body.mf-detail-player-open .detail-sticky-player {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-backdrop-player-shell {
  position: relative;
}

/* Detail lebar: konten ikut melebar (bukan terkunci 1280px di tengah) */
body.mf-page.detail-page {
  --mf-content-max: 100%;
  --mf-page-gutter: clamp(18px, 4.2vw, 64px);
}

@media (min-width: 1280px) {
  body.mf-page.detail-page {
    --mf-page-gutter: clamp(28px, 5vw, 80px);
  }
}

/* Mobile/PWA: jangan timpa gutter aman (safe-area) */
@media (max-width: 640px) {
  body.mf-page.detail-page {
    --mf-page-gutter: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px), 4vw);
  }
}

/* Tablet/HP landscape (+ PWA): player besar; play tidak tertutup judul */
@media (max-width: 1024px) and (orientation: landscape) {
  .mf-detail-backdrop-media,
  body.mf-page.detail-page .mf-detail-backdrop-media {
    /* Sisakan ruang bottom nav supaya judul/genre tidak ketimpa */
    height: clamp(
      220px,
      calc(
        100svh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
          env(safe-area-inset-bottom, 0px)
      ),
      900px
    );
    min-height: 200px;
  }

  @supports (height: 100dvh) {
    .mf-detail-backdrop-media,
    body.mf-page.detail-page .mf-detail-backdrop-media {
      height: clamp(
        220px,
        calc(
          100dvh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
            env(safe-area-inset-bottom, 0px)
        ),
        900px
      );
      min-height: 200px;
    }
  }

  /* Idle: overlap flex ? genre tidak pernah terpotong oleh logo */
  body.mf-page.detail-page .mf-detail-dock-overlap {
    max-height: 46%;
    overflow: hidden;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 8px;
    box-sizing: border-box;
  }

  body.mf-page.detail-page .mf-detail-dock-title {
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  body.mf-page.detail-page .mf-detail-dock-title.mf-promo-title--logo {
    margin-bottom: 0;
  }

  body.mf-page.detail-page .mf-detail-dock-genres {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  body.mf-page.detail-page .mf-detail-backdrop-idle {
    z-index: 12;
  }

  body.mf-page.detail-page .mf-detail-backdrop-play {
    width: clamp(48px, 10vw, 64px);
    height: clamp(48px, 10vw, 64px);
    z-index: 13;
    top: 36%;
  }

  /* Saat play: isi sisa tinggi layar (header + bottom nav sudah dikurangi di rule global) */
  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
    height: min(
      calc(
        100svh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
          env(safe-area-inset-bottom, 0px)
      ),
      calc(100vw * 9 / 16)
    ) !important;
    min-height: 200px;
    max-height: none;
  }

  @supports (height: 100dvh) {
    body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
    body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
      height: min(
        calc(
          100dvh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
            env(safe-area-inset-bottom, 0px)
        ),
        calc(100vw * 9 / 16)
      ) !important;
    }
  }

  /* Stage selalu 16:9 fit ? jangan gepeng di landscape pendek */
  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-player-stage,
  body.mf-page.detail-page.mf-detail-backdrop-playing .player-wrapper.mf-player-stage {
    width: min(100%, calc(100cqh * 16 / 9));
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }

  body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo {
    max-height: clamp(40px, 14vh, 72px);
    max-width: min(320px, 50vw);
  }

  .mf-detail-hero-dock {
    padding-top: 8px;
  }

  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-hero-dock,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-hero-dock {
    padding-top: 12px;
  }
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 420px) {
  .mf-detail-backdrop-media,
  body.mf-page.detail-page .mf-detail-backdrop-media {
    height: clamp(
      180px,
      calc(
        100svh - var(--mf-header-offset, 48px) - var(--mf-bottom-nav-h, 56px) -
          env(safe-area-inset-bottom, 0px)
      ),
      480px
    );
    min-height: 180px;
  }

  body.mf-page.detail-page .mf-detail-dock-overlap {
    max-height: 52%;
    padding-bottom: 6px;
    gap: 2px;
  }

  body.mf-page.detail-page .mf-detail-backdrop-play {
    width: 44px;
    height: 44px;
    top: 40%;
  }

  body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo {
    max-height: clamp(36px, 12vh, 56px);
    max-width: min(260px, 46vw);
  }

  body.mf-page.detail-page .mf-detail-dock-genres {
    margin: 0;
    font-size: 0.78rem;
  }

  .mf-detail-hero-dock {
    padding-top: 6px;
  }
}

/* PWA standalone / fullscreen: hormati safe-area untuk offset konten (header tetap pill normal) */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body.mf-page.detail-page.mf-detail-backdrop-playing #dt_contenedor,
  body.mf-page.detail-page.mf-detail-player-open #dt_contenedor {
    padding-top: max(
      var(--mf-header-offset, 72px),
      calc(env(safe-area-inset-top, 0px) + var(--mf-header-bar-h, 56px))
    ) !important;
  }
}

@media (display-mode: standalone) and (orientation: landscape),
  (display-mode: fullscreen) and (orientation: landscape) {
  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-backdrop-media,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-backdrop-media {
    height: min(
      calc(
        100svh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
          env(safe-area-inset-bottom, 0px)
      ),
      calc(100vw * 9 / 16)
    ) !important;
  }
}

/* Hero dock ? judul di backdrop, konten linear ala IDLIX */
.mf-detail-dock-overlap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 0 var(--mf-page-gutter, clamp(16px, 4vw, 48px)) 4px;
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  pointer-events: none;
  overflow: visible;
}

.mf-detail-dock-overlap .mf-detail-dock-title,
.mf-detail-dock-overlap .mf-detail-dock-genres,
.mf-detail-dock-overlap .meta-genre-link {
  pointer-events: auto;
}

.mf-detail-dock-overlap .mf-detail-dock-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.mf-detail-dock-overlap .mf-detail-dock-genres,
.mf-detail-dock-overlap .meta-genre-link {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.55);
}

.mf-detail-hero-dock {
  position: relative;
  width: 100%;
  background: #0a0909;
  margin-top: 0;
  /* Rapat ke blok judul+genre di overlap (ala hero), tetap ada napas ke tombol */
  padding-top: clamp(8px, 1.2vw, 12px);
  z-index: 3;
}

body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-hero-dock,
body.mf-page.detail-page.mf-detail-player-open .mf-detail-hero-dock {
  /* Overlap (judul/genre) disembunyikan saat play ? beri jarak sedikit lebih longgar */
  padding-top: clamp(14px, 2vw, 22px);
}

@media (max-width: 640px) {
  .mf-detail-hero-dock {
    padding-top: 8px;
  }

  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-hero-dock,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-hero-dock {
    padding-top: 14px;
  }
}

body.mf-page.detail-page .mf-detail-dock-actions--top {
  margin: 0 0 14px;
}

/* Samakan warna solid dock ? episodes/recommend (hilangkan belang antar section) */
body.mf-page.detail-page .detail-main,
body.mf-page.detail-page .mf-detail-hero-dock,
body.mf-page.detail-page .detail-episodes,
body.mf-page.detail-page #episodesSection,
body.mf-page.detail-page .detail-recommend,
body.mf-page.detail-page .mf-detail-recommend,
body.mf-page.detail-page .detail-main > section.section.detail-recommend {
  background: #0a0909 !important;
  background-color: #0a0909 !important;
}

.mf-detail-hero-dock-inner,
.mf-detail-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4px var(--mf-page-gutter, clamp(16px, 4vw, 48px)) 24px;
  box-sizing: border-box;
}

body.mf-page.detail-page .mf-detail-hero-dock-inner {
  padding-top: 2px;
}

body.mf-page.detail-page .mf-detail-dock-title {
  margin: 0 0 2px;
  font-size: clamp(1.65rem, 4.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
}

body.mf-page.detail-page .mf-detail-dock-title.mf-promo-title--logo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: min(520px, 92vw);
  line-height: 1;
  text-transform: none;
  font-weight: 400;
  /* Samakan kerapatan logo ? baris bawah seperti hero (8px) */
  margin: 0 0 2px;
}

body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo {
  display: block;
  width: auto;
  max-width: min(520px, 92vw);
  height: auto;
  max-height: clamp(100px, 22vw, 160px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.55));
}

body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo.is-broken {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo-fallback {
  font-size: clamp(1.65rem, 4.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
}

body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo-fallback[hidden] {
  display: none;
}

body.mf-page.detail-page .mf-detail-dock-genres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  /* Genre tetap baris sendiri ? hanya rapatkan ke logo & ke tombol di bawah */
  margin: clamp(4px, 0.9vw, 8px) 0 clamp(2px, 0.6vw, 4px);
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
}

body.mf-page.detail-page .mf-detail-dock-genres .meta-genre-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.mf-page.detail-page .mf-detail-dock-genres .meta-genre-link:hover {
  color: #fff;
}

body.mf-page.detail-page .mf-detail-dock-genres .meta-genre-sep {
  color: rgba(255, 255, 255, 0.42);
}

body.mf-page.detail-page .mf-detail-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.mf-page.detail-page .mf-detail-dock-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0 0 14px;
}

body.mf-page.detail-page .mf-detail-meta-share {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: baseline;
  padding-top: 0;
  margin: 6px 0 0;
  white-space: nowrap;
}

body.mf-page.detail-page .detail-meta-primary.mf-detail-meta-line > *::before,
body.mf-page.detail-page .detail-meta-primary.mf-detail-meta-line > *::after {
  content: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mf-page.detail-page .mf-detail-meta-line .mf-detail-meta-sep {
  display: inline;
  margin: 0 0.45em;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 400;
  font-size: 1em;
  line-height: 1;
  vertical-align: baseline;
  pointer-events: none;
  user-select: none;
}

body.mf-page.detail-page .mf-detail-meta-line {
  display: block;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 550;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  word-spacing: 0.04em;
}

body.mf-page.detail-page .mf-detail-meta-line > * {
  display: inline;
  vertical-align: baseline;
}

body.mf-page.detail-page .mf-detail-meta-line .meta-badge--quality {
  background: rgba(34, 139, 34, 0.22);
  border: 1px solid rgba(76, 175, 80, 0.45);
  color: #9ae6a0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.35;
  vertical-align: baseline;
}

body.mf-page.detail-page .mf-detail-meta-line .meta-country,
body.mf-page.detail-page .mf-detail-meta-line .meta-language,
body.mf-page.detail-page .mf-detail-meta-line .meta-network {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 550;
}

body.mf-page.detail-page .mf-detail-meta-line .meta-release,
body.mf-page.detail-page .mf-detail-meta-line .meta-duration {
  font-weight: 550;
}

body.mf-page.detail-page .mf-detail-inline-score {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #f0c14b;
  font-size: 0.84rem;
  font-weight: 600;
}

body.mf-page.detail-page .mf-detail-inline-score[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-director-sep {
  margin: 0 4px;
}

body.mf-page.detail-page .mf-detail-dock-meta--idlix {
  margin: 0;
  flex: 0 1 auto;
}

body.mf-page.detail-page .mf-detail-director-line {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.48);
  width: 100%;
  max-width: 100%;
}

body.mf-page.detail-page .mf-detail-director-line > span:first-child {
  color: rgba(255, 255, 255, 0.48);
}

body.mf-page.detail-page .mf-detail-director-line #detailDirectorInline {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

body.mf-page.detail-page .mf-detail-cast-line {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.48);
  width: 100%;
  max-width: 100%;
}

body.mf-page.detail-page .mf-detail-cast-line > span:first-child {
  color: rgba(255, 255, 255, 0.48);
}

body.mf-page.detail-page .mf-detail-cast-line #detailCastInline {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

body.mf-page.detail-page .mf-detail-cast-line[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-dock-tagline {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
  max-width: 100%;
}

body.mf-page.detail-page .mf-detail-dock-tagline[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-network-logos,
.mf-detail-network-logos.admin-preview-network-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 2px 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.mf-page.detail-page .mf-detail-network-logos[hidden] {
  display: none !important;
}

/* Logo network tanpa alas/plate ? hanya mark transparan di atas hero gelap. */
body.mf-page.detail-page .mf-detail-network-logo-chip,
.mf-detail-network-logos .mf-detail-network-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.mf-page.detail-page .mf-detail-network-logo,
.mf-detail-network-logos .mf-detail-network-logo {
  display: block;
  height: clamp(26px, 4.6vw, 34px);
  width: auto;
  max-width: min(168px, 48vw);
  object-fit: contain;
  object-position: center;
  opacity: 0.98;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

body.mf-page.detail-page .mf-detail-rate-row {
  margin: 2px 0 8px;
}

body.mf-page.detail-page .mf-detail-rate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

body.mf-page.detail-page .mf-detail-rate-toggle.is-rated {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-rate-toggle:hover,
body.mf-page.detail-page .mf-detail-rate-toggle:focus-visible,
body.mf-page.detail-page .mf-detail-rate-toggle.is-open {
  color: rgba(255, 255, 255, 0.88);
}

body.mf-page.detail-page .mf-detail-rate-panel {
  margin-top: 6px;
}

body.mf-page.detail-page .mf-detail-rate-panel[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-rate-panel-inner,
body.mf-page.detail-page .mf-detail-rate-panel .your-rating-control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}

body.mf-page.detail-page .mf-detail-rate-panel .your-rating-badge,
body.mf-page.detail-page .mf-detail-rate-panel .your-rating-badge--compact {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-rate-panel .your-star {
  font-size: 0.95rem;
  padding: 1px 2px;
}

body.mf-page.detail-page .mf-detail-breadcrumb--footer {
  margin: 8px 0 0;
  padding: 0 var(--mf-page-gutter, clamp(16px, 4vw, 48px)) 20px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

body.mf-page.detail-page .mf-detail-breadcrumb--footer a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-breadcrumb--footer a:hover {
  color: rgba(255, 255, 255, 0.72);
}

/* Modal player ? film & trailer tampilan seragam ala IDLIX */
.mf-detail-player-modal .mf-detail-modal-player-shell,
.mf-detail-player-modal .mf-player-shell:has(.mf-player-stage--bunny),
.mf-detail-player-modal .mf-player-shell:has(iframe.mf-detail-embed:not([style*="display: none"])) {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65) !important;
  border: none !important;
  background: #000;
}

.mf-detail-player-modal .mf-detail-modal-player-stage {
  position: relative;
  overflow: hidden;
}

.mf-detail-player-modal .mf-detail-modal-player-stage .mf-detail-embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.mf-detail-player-modal .mf-detail-modal-player-stage > .plyr,
.mf-detail-player-modal .player-wrapper.mf-player-stage > .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mf-detail-player-modal .mf-player-shell--bunny-loading::after {
  border-radius: 12px;
}

body.mf-page.detail-page .mf-detail-hero .mf-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

body.mf-page.detail-page .mf-detail-hero .mf-hero-cta {
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

body.mf-page.detail-page .mf-hero-pill--duration {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.mf-page.detail-page .detail-hero--panel,
body.mf-page.detail-page .detail-hero.detail-hero--panel {
  display: none !important;
}

body.mf-page.detail-page .detail-a11y-store {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mf-page.detail-page .mf-detail-breadcrumb {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

body.mf-page.detail-page .mf-detail-dock-desc {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  width: 100%;
  max-width: 100%;
}

body.mf-page.detail-page .mf-detail-dock-desc[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-breadcrumb a:hover {
  color: #fff;
}

body.mf-page.detail-page .mf-detail-dock-meta {
  margin: 0 0 12px;
}

body.mf-page.detail-page .mf-detail-dock-meta .detail-meta-primary,
body.mf-page.detail-page .mf-detail-dock-meta .detail-meta-badges {
  margin: 0 0 6px;
}

body.mf-page.detail-page .mf-detail-dock-rating {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.mf-page.detail-page .mf-detail-dock-rating .audience-rating-panel {
  gap: 12px;
}

body.mf-page.detail-page .mf-detail-dock-actions {
  margin: 0 0 10px;
}

body.mf-page.detail-page .mf-detail-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}

body.mf-page.detail-page .mf-detail-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.92;
}

body.mf-page.detail-page .mf-detail-chip-icon .mf-ui-icon {
  display: block;
  width: 16px;
  height: 16px;
}

/* Ikon play di tombol Trailer ? lebih besar biar kebaca */
body.mf-page.detail-page .mf-detail-chip-icon--trailer .mf-ui-icon {
  width: 20px;
  height: 20px;
}

body.mf-page.detail-page .mf-detail-action-chip:hover,
body.mf-page.detail-page .mf-detail-action-chip:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.mf-page.detail-page .mf-detail-action-chip.is-active,
body.mf-page.detail-page .mf-detail-action-chip[aria-pressed="true"] {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.42);
  color: #fff;
}

body.mf-page.detail-page .mf-detail-action-chip.loading {
  opacity: 0.62;
  pointer-events: none;
}

/* Share pill ? di baris meta ala IDLIX */
body.mf-page.detail-page .mf-detail-share-wrap {
  position: relative;
  display: inline;
  vertical-align: baseline;
}

body.mf-page.detail-page .mf-detail-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  vertical-align: baseline;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.mf-page.detail-page .mf-detail-share-pill:hover,
body.mf-page.detail-page .mf-detail-share-pill:focus-visible,
body.mf-page.detail-page .mf-detail-share-pill.is-open {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
}

body.mf-page.detail-page .mf-detail-share-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  opacity: 0.9;
}

/* Detail page ? meta strip: JS-driven dot separators */
body.mf-page.detail-page .detail-meta-strip {
  padding-bottom: 0;
  border-bottom: none;
  gap: 0;
}

body.mf-page.detail-page .mf-detail-meta-line > [hidden],
body.mf-page.detail-page .mf-detail-meta-line > :empty {
  display: none !important;
}

body.mf-page.detail-page.mf-page-has-hero .mf-detail-backdrop {
  margin-top: 0;
}

body.mf-page.detail-page.mf-page-has-hero #mfDetailBackdrop {
  position: relative;
  z-index: 1;
}

/* Play button ? single ring ala IDLIX */
.mf-detail-backdrop-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mf-detail-backdrop-play-ring {
  display: none !important;
}

.mf-detail-backdrop-play-icon {
  margin-left: 0;
}

/* Detail page ? episodes & recommend flat (no box/divider), ala IDLIX */
body.mf-page.detail-page .detail-episodes,
body.mf-page.detail-page #episodesSection,
body.mf-page.detail-page .detail-recommend,
body.mf-page.detail-page .mf-detail-recommend,
body.mf-page.detail-page .detail-main > section.section.detail-recommend {
  background: #0a0909 !important;
  background-color: #0a0909 !important;
  border: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  margin-left: var(--mf-page-gutter, clamp(16px, 4vw, 48px));
  margin-right: var(--mf-page-gutter, clamp(16px, 4vw, 48px));
}

body.mf-page.detail-page .detail-episodes,
body.mf-page.detail-page #episodesSection {
  padding: 12px 0 16px;
  margin-top: 0;
  margin-bottom: 16px;
}

body.mf-page.detail-page .detail-recommend,
body.mf-page.detail-page .mf-detail-recommend,
body.mf-page.detail-page .detail-main > section.section.detail-recommend {
  padding: 0;
  margin-top: 20px;
  margin-bottom: 28px;
}

body.mf-page.detail-page .detail-episodes .section-title,
body.mf-page.detail-page .mf-detail-section-head,
body.mf-page.detail-page .mf-detail-section-head .section-title {
  margin: 0 0 12px;
  padding: 0;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

body.mf-page.detail-page .mf-detail-section-head {
  margin-bottom: 12px;
}

body.mf-page.detail-page .mf-detail-section-head .section-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.mf-page.detail-page .detail-episodes .episodes-list {
  margin-top: 0;
  gap: 12px;
}

body.mf-page.detail-page .mf-detail-hero-dock,
body.mf-page.detail-page .mf-detail-hero-dock-inner {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.mf-page.detail-page .mf-detail-dock-genres .meta-genre-link {
  border-bottom: none;
}

body.mf-page.detail-page .episode-card-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  overflow: visible;
  box-shadow: none;
}

body.mf-page.detail-page .episode-card-btn:hover:not(:disabled) {
  box-shadow: none;
}

body.mf-page.detail-page .episode-card-btn.is-active {
  outline-color: #e50914;
  box-shadow: none;
}

body.mf-page.detail-page .episode-card-thumb {
  background-color: #14141a;
  border-radius: 6px;
}

body.mf-page.detail-page .episode-card-body {
  padding: 8px 2px 0;
  min-height: 0;
  gap: 2px;
  background: transparent;
  border: none;
}

body.mf-page.detail-page .episode-card-num {
  line-height: 1.2;
  color: #e50914;
}

body.mf-page.detail-page .episode-card-title {
  line-height: 1.3;
  opacity: 0.9;
}

body.mf-page.detail-page .mf-detail-share-btn-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mf-page.detail-page .mf-detail-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 60;
  min-width: 188px;
  padding: 6px 0;
  border-radius: 12px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

body.mf-page.detail-page .mf-detail-share-menu[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-share-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}

body.mf-page.detail-page .mf-detail-share-menu-item:hover,
body.mf-page.detail-page .mf-detail-share-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

body.mf-page.detail-page .mf-detail-share-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.mf-page.detail-page .mf-detail-share-menu-icon--wa {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 2.09.61 4.09 1.75 5.81L2 22l4.45-1.17a9.86 9.86 0 0 0 5.59 1.72h.01c5.46 0 9.91-4.45 9.91-9.91C22 6.45 17.5 2 12.04 2zm5.8 14.2c-.25.7-1.45 1.34-2 1.44-.5.09-1.15.13-1.86-.14-.43-.17-.99-.4-1.71-.78-3.01-1.74-4.97-4.9-5.12-5.13-.15-.23-1.22-1.62-1.22-3.09s.77-2.2 1.04-2.5c.27-.3.59-.38.79-.38.2 0 .4 0 .57.01.18 0 .43-.07.67.51.25.6.85 2.07.92 2.22.08.15.13.33.03.53-.1.2-.15.33-.3.51-.15.18-.31.4-.44.54-.15.15-.3.31-.13.61.17.3.76 1.25 1.63 2.02 1.12.99 2.06 1.3 2.36 1.44.3.15.47.13.64-.08.17-.2.74-.86.94-1.16.2-.3.4-.25.67-.15.27.1 1.72.81 2.01.96.3.15.49.22.56.34.07.12.07.7-.18 1.4z'/%3E%3C/svg%3E");
}

body.mf-page.detail-page .mf-detail-share-menu-icon--tg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23229ED9'/%3E%3Cpath fill='%23fff' d='M7.2 11.8l8.9-3.4c.4-.15.8.1.65.55l-1.5 7.1c-.12.5-.45.62-.9.38l-2.5-1.85-1.2 1.15c-.13.13-.24.24-.5.24l.18-2.55 4.65-4.2c.2-.18-.04-.28-.32-.1l-5.75 3.62-2.48-.78c-.54-.17-.55-.54.11-.8z'/%3E%3C/svg%3E");
}

body.mf-page.detail-page .mf-detail-share-menu-icon--x {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b8b8b8' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

body.mf-page.detail-page .mf-detail-share-menu-icon--link {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b8b8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l2.5-2.5a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-2.5 2.5a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

body.mf-page.detail-page .mf-detail-share-menu-icon--bot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23229ED9'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M8 12h8M12 8v8'/%3E%3C/svg%3E");
}

body.mf-page.detail-page .mf-detail-share-menu-divider {
  height: 1px;
  margin: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
}

body.mf-page.detail-page .mf-detail-dock-rating--compact {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

body.mf-page.detail-page .mf-detail-dock-rating--compact .your-rating-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

body.mf-page.detail-page .mf-detail-dock-rating--compact .your-rating-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

body.mf-page.detail-page .mf-detail-breadcrumb--subtle {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

body.mf-page.detail-page .mf-detail-breadcrumb--subtle a {
  color: rgba(255, 255, 255, 0.48);
}

body.mf-page.detail-page .mf-detail-share-url-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mf-page.detail-page .mf-detail-share-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 51;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

body.mf-page.detail-page .mf-detail-share-toast[hidden] {
  display: none !important;
}

body.mf-page.detail-page #detailCredits,
body.mf-page.detail-page .mf-detail-dock-credits {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-cast-section {
  margin: 16px 0 10px;
}

body.mf-page.detail-page .mf-detail-cast-section[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-cast-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.mf-page.detail-page .mf-detail-cast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

body.mf-page.detail-page .mf-detail-cast-chip {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-cast-chip:hover {
  color: #fff;
  text-decoration: underline;
}

body.mf-page.detail-page .detail-upcoming-notify {
  margin-top: 12px;
}

/* Player ? full width ala IDLIX */
body.mf-page.detail-page .detail-player-section {
  margin: 0 0 0;
  padding-top: 0;
}

body.mf-page.detail-page .detail-player-section .mf-player-shell {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.mf-page.detail-page #playerModeLabel {
  display: none !important;
}

body.mf-detail-share-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.mf-detail-share-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
  body.mf-page.detail-page .mf-detail-share-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(var(--mf-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px));
    z-index: 210;
    min-width: 0;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px 0 14px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.72);
    background: #1a1a1a;
  }

  body.mf-page.detail-page .mf-detail-share-wrap.is-open::before {
    display: none;
  }

  body.mf-page.detail-page .mf-detail-share-menu-item {
    min-height: 50px;
    padding: 13px 22px;
    gap: 14px;
    font-size: 0.92rem;
  }

  body.mf-page.detail-page .mf-detail-share-menu-divider {
    margin: 8px 18px;
  }

  body.mf-page.detail-page .mf-detail-meta-share {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  body.mf-page.detail-page .mf-detail-dock-meta-row {
    margin-bottom: 16px;
  }
}

body.mf-page.detail-page .detail-main {
  padding-top: 0;
}

body.mf-page.detail-page .mf-detail-recommend-grid {
  gap: 12px;
}

/* ===== Mobile/PWA detail: stack rapi, tidak saling timpa ===== */
@media (max-width: 1024px) {
  /* Play selalu di zona atas; dock judul/genre di bawah ? jangan bentrok */
  body.mf-page.detail-page .mf-detail-backdrop-play {
    top: 38%;
    width: clamp(56px, 13vw, 76px);
    height: clamp(56px, 13vw, 76px);
  }

  body.mf-page.detail-page .mf-detail-dock-overlap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    max-height: 42%;
    overflow: hidden;
    padding-bottom: 8px;
    box-sizing: border-box;
    z-index: 6;
  }

  body.mf-page.detail-page .mf-detail-dock-title {
    flex: 0 1 auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    max-width: 100%;
  }

  body.mf-page.detail-page .mf-detail-dock-title.mf-promo-title--logo {
    margin: 0;
  }

  body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo {
    max-height: clamp(64px, 16vw, 88px);
    max-width: min(340px, 86vw);
  }

  /* Genre baris sendiri ? tidak ikut terpotong logo */
  body.mf-page.detail-page .mf-detail-dock-genres {
    flex: 0 0 auto;
    margin: 0;
    max-width: 100%;
  }

  body.mf-page.detail-page .mf-detail-hero-dock {
    padding-top: 10px;
  }

  body.mf-page.detail-page .mf-detail-dock-actions--top {
    margin: 0 0 12px;
  }

  body.mf-page.detail-page .mf-detail-icon-actions {
    gap: 8px;
  }
}

/* Portrait HP: backdrop tidak menjulang ke bawah bottom-nav */
@media (max-width: 640px) and (orientation: portrait) {
  body.mf-page.detail-page .mf-detail-backdrop-media {
    height: clamp(
      320px,
      calc(
        100svh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
          env(safe-area-inset-bottom, 0px) - 24px
      ),
      560px
    );
    min-height: 300px;
    max-height: none;
  }

  @supports (height: 100dvh) {
    body.mf-page.detail-page .mf-detail-backdrop-media {
      height: clamp(
        320px,
        calc(
          100dvh - var(--mf-header-offset, 56px) - var(--mf-bottom-nav-h, 56px) -
            env(safe-area-inset-bottom, 0px) - 24px
        ),
        560px
      );
    }
  }

  body.mf-page.detail-page .mf-detail-dock-overlap {
    max-height: 38%;
    gap: 6px;
    padding-bottom: 10px;
    padding-left: max(var(--mf-page-gutter, 16px), env(safe-area-inset-left, 0px));
    padding-right: max(var(--mf-page-gutter, 16px), env(safe-area-inset-right, 0px));
  }

  body.mf-page.detail-page .mf-detail-dock-title .mf-title-logo {
    max-height: clamp(68px, 18vw, 92px);
    max-width: min(300px, 88vw);
  }

  body.mf-page.detail-page .mf-detail-backdrop-play {
    top: 36%;
    width: clamp(60px, 15vw, 72px);
    height: clamp(60px, 15vw, 72px);
  }

  .mf-detail-hero-dock {
    padding-top: 8px;
    margin-top: 0;
  }

  body.mf-page.detail-page.mf-detail-backdrop-playing .mf-detail-hero-dock,
  body.mf-page.detail-page.mf-detail-player-open .mf-detail-hero-dock {
    padding-top: 14px;
  }

  .mf-detail-backdrop-episode-nav {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  body.mf-page.detail-page .mf-detail-dock-meta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
  }

  body.mf-page.detail-page .mf-detail-dock-meta--idlix {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.mf-page.detail-page .mf-detail-meta-line {
    line-height: 1.45;
  }

  body.mf-page.detail-page .mf-detail-meta-share {
    display: block;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 16px;
  }

  body.mf-page.detail-page .mf-detail-director-line {
    margin-top: 2px;
  }

  body.mf-page.detail-page .mf-detail-action-chip {
    flex: 0 0 auto;
    min-width: 0;
  }
}

/* Landscape: bottom nav lebih ringkas supaya label tidak nabrak safe-area */
@media (max-width: 1024px) and (orientation: landscape) {
  .mf-bottom-nav-inner {
    min-height: 48px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .mf-bnav-link {
    font-size: 0.58rem;
    gap: 2px;
    padding: 2px 1px;
  }

  .mf-bnav-icon {
    width: 18px;
    height: 18px;
  }
}

/* ?? Soft page transitions (mobile / PWA / app / desktop) ?? */
:root {
  --mf-page-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mf-page-leave-ms: 520ms;
  --mf-page-enter-ms: 560ms;
}

/* JS owns leave/enter ? keep native cross-doc VT off to avoid double animation. */
@view-transition {
  navigation: none;
}

.mf-page-leave-veil {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  background: rgba(5, 8, 16, 0.92);
  opacity: 0;
  transition: opacity var(--mf-page-leave-ms) var(--mf-page-ease);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mf-page-leave-veil.is-on {
  opacity: 1;
}

html.mf-page-leave,
html.mf-page-leave body {
  pointer-events: none;
  cursor: progress;
}

html.mf-page-leave #dt_contenedor,
html.mf-page-leave .mf-page-leave-surface,
html.mf-page-leave #contenedor,
html.mf-page-leave main {
  transition:
    opacity var(--mf-page-leave-ms) var(--mf-page-ease),
    transform var(--mf-page-leave-ms) var(--mf-page-ease);
  opacity: 0;
  transform: translateY(-12px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

/* Lite path for mobile / PWA / TV ? opacity + veil only (still clearly soft) */
html.mf-page-leave--lite #dt_contenedor,
html.mf-page-leave--lite .mf-page-leave-surface,
html.mf-page-leave--lite #contenedor,
html.mf-page-leave--lite main {
  transform: none;
  opacity: 0;
  filter: none !important;
}

html.mf-page-enter #dt_contenedor,
html.mf-page-enter #contenedor,
html.mf-page-enter main {
  opacity: 0;
  transform: translateY(14px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

html.mf-page-enter.mf-page-enter-active #dt_contenedor,
html.mf-page-enter.mf-page-enter-active #contenedor,
html.mf-page-enter.mf-page-enter-active main {
  transition:
    opacity var(--mf-page-enter-ms) var(--mf-page-ease),
    transform var(--mf-page-enter-ms) var(--mf-page-ease);
  opacity: 1;
  transform: translateY(0);
}

html.mf-page-enter--lite #dt_contenedor,
html.mf-page-enter--lite #contenedor,
html.mf-page-enter--lite main {
  transform: none;
}

html.mf-page-enter--lite.mf-page-enter-active #dt_contenedor,
html.mf-page-enter--lite.mf-page-enter-active #contenedor,
html.mf-page-enter--lite.mf-page-enter-active main {
  transform: none;
}

@media (hover: none) and (pointer: coarse) {
  :root {
    --mf-page-leave-ms: 440ms;
    --mf-page-enter-ms: 480ms;
  }
}

@media (display-mode: standalone),
  (display-mode: fullscreen),
  (display-mode: minimal-ui) {
  :root {
    --mf-page-leave-ms: 440ms;
    --mf-page-enter-ms: 480ms;
  }
}

html.mf-tv-mode {
  --mf-page-leave-ms: 360ms;
  --mf-page-enter-ms: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .mf-page-leave-veil,
  html.mf-page-leave #dt_contenedor,
  html.mf-page-leave .mf-page-leave-surface,
  html.mf-page-leave #contenedor,
  html.mf-page-leave main,
  html.mf-page-enter #dt_contenedor,
  html.mf-page-enter #contenedor,
  html.mf-page-enter main,
  html.mf-page-enter.mf-page-enter-active #dt_contenedor,
  html.mf-page-enter.mf-page-enter-active #contenedor,
  html.mf-page-enter.mf-page-enter-active main {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .mf-page-leave-veil.is-on {
    opacity: 0 !important;
  }
}

/* ?? Detail comments (native diskusi) ?? */
body.mf-page.detail-page .mf-detail-comments,
body.mf-page.detail-page #detailCommentsSection {
  background: #0a0909 !important;
  background-color: #0a0909 !important;
  margin: 0;
  padding: 8px var(--mf-page-gutter, clamp(16px, 4vw, 48px)) 28px;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

body.mf-page.detail-page .mf-detail-comments-head {
  margin-bottom: 14px;
}

body.mf-page.detail-page .mf-detail-comments-head .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

body.mf-page.detail-page .mf-detail-comments-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.28);
  color: #ff8a9a;
  flex-shrink: 0;
}

body.mf-page.detail-page .mf-detail-comments-title-icon .mf-ui-icon {
  color: #ff8a9a;
}

body.mf-page.detail-page .mf-detail-comments-count {
  font-size: 0.85em;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.45);
}

body.mf-page.detail-page .mf-detail-comments-sub {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

body.mf-page.detail-page .mf-detail-comments-composer {
  margin: 0 0 16px;
}

body.mf-page.detail-page .mf-detail-comments-composer.is-auth-pending {
  opacity: 0.88;
}

body.mf-page.detail-page .mf-detail-comments-composer.is-auth-pending .mf-detail-comments-gate {
  pointer-events: none;
}

body.mf-page.detail-page .mf-detail-comments-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

body.mf-page.detail-page .mf-detail-comments-gate[hidden],
body.mf-page.detail-page .mf-detail-comments-form[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-comments-gate p {
  margin: 0;
  flex: 1 1 180px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

body.mf-page.detail-page .mf-detail-comments-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 0;
  background: #e50914;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

body.mf-page.detail-page .mf-detail-comments-login:hover,
body.mf-page.detail-page .mf-detail-comments-login:focus-visible {
  background: #f6121d;
}

body.mf-page.detail-page .mf-detail-comments-login-icon {
  display: inline-flex;
  line-height: 0;
}

body.mf-page.detail-page .mf-detail-comments-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.mf-page.detail-page .mf-detail-comments-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

body.mf-page.detail-page .mf-detail-comments-input {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

body.mf-page.detail-page .mf-detail-comments-input:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.18);
}

body.mf-page.detail-page .mf-detail-comments-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body.mf-page.detail-page .mf-detail-comments-form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}

body.mf-page.detail-page .mf-detail-comments-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

body.mf-page.detail-page .mf-detail-comments-hint:empty {
  display: none;
}

body.mf-page.detail-page .mf-detail-comments-hint strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

body.mf-page.detail-page .mf-detail-comments-cancel-reply {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #ff6b84;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.mf-page.detail-page .mf-detail-comments-submit {
  flex: 0 0 auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #e50914;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease;
}

body.mf-page.detail-page .mf-detail-comments-submit:hover:not(:disabled),
body.mf-page.detail-page .mf-detail-comments-submit:focus-visible:not(:disabled) {
  background: #f6121d;
}

body.mf-page.detail-page .mf-detail-comments-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

body.mf-page.detail-page .mf-detail-comments-submit-icon {
  display: inline-flex;
  line-height: 0;
}

body.mf-page.detail-page .mf-detail-comments-status {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

body.mf-page.detail-page .mf-detail-comments-status[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-comments-status.is-error {
  color: #ff8a9a;
}

body.mf-page.detail-page .mf-detail-comments-status.is-ok {
  color: rgba(140, 220, 160, 0.9);
}

body.mf-page.detail-page .mf-detail-comments-chars {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

body.mf-page.detail-page .mf-detail-comments-chars.is-near-limit {
  color: rgba(255, 200, 120, 0.85);
}

body.mf-page.detail-page .mf-detail-comments-chars.is-over {
  color: #ff8a9a;
}

body.mf-page.detail-page .mf-detail-comments-list,
body.mf-page.detail-page .mf-detail-comments-replies {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.mf-page.detail-page .mf-detail-comments-skeleton {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

body.mf-page.detail-page .mf-detail-comments-skel-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: mf-detail-comments-pulse 1.2s ease-in-out infinite;
}

body.mf-page.detail-page .mf-detail-comments-skel-lines {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

body.mf-page.detail-page .mf-detail-comments-skel-lines span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  animation: mf-detail-comments-pulse 1.2s ease-in-out infinite;
}

body.mf-page.detail-page .mf-detail-comments-skel-lines span:nth-child(1) {
  width: 42%;
}

body.mf-page.detail-page .mf-detail-comments-skel-lines span:nth-child(2) {
  width: 88%;
}

body.mf-page.detail-page .mf-detail-comments-skel-lines span:nth-child(3) {
  width: 64%;
  animation-delay: 0.15s;
}

@keyframes mf-detail-comments-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

body.mf-page.detail-page .mf-detail-comment {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

body.mf-page.detail-page .mf-detail-comment:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.mf-page.detail-page .mf-detail-comment-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

body.mf-page.detail-page .mf-detail-comment-avatar-link {
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 50%;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

body.mf-page.detail-page .mf-detail-comment-avatar-link:hover,
body.mf-page.detail-page .mf-detail-comment-avatar-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.45);
  outline: none;
}

body.mf-page.detail-page .mf-detail-comment-avatar-link--static {
  pointer-events: none;
}

body.mf-page.detail-page .mf-detail-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

body.mf-page.detail-page .mf-detail-comment-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #3a1518, #1a0a0c);
}

body.mf-page.detail-page .mf-detail-comment-body {
  flex: 1 1 auto;
  min-width: 0;
}

body.mf-page.detail-page .mf-detail-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 4px;
}

body.mf-page.detail-page .mf-detail-comment-name {
  font-size: 0.88rem;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-comment-name:hover,
body.mf-page.detail-page .mf-detail-comment-name:focus-visible {
  color: #ff6b84;
}

body.mf-page.detail-page .mf-detail-comment-name--static {
  cursor: default;
}

body.mf-page.detail-page .mf-detail-comment-user {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
}

body.mf-page.detail-page a.mf-detail-comment-user:hover,
body.mf-page.detail-page a.mf-detail-comment-user:focus-visible {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.mf-page.detail-page .mf-detail-comment-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.32);
}

body.mf-page.detail-page .mf-detail-comment-tier {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--mf-tier-accent, rgba(255, 255, 255, 0.35)) 55%, transparent);
  color: var(--mf-tier-accent, rgba(255, 196, 160, 0.9));
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mf-page.detail-page .mf-detail-comment-points {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 220, 160, 0.88);
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

body.mf-page.detail-page .mf-detail-comment-points-icon {
  display: inline-flex;
  line-height: 0;
  color: rgba(255, 210, 120, 0.92);
}

body.mf-page.detail-page .mf-detail-comment-points-icon .mf-ui-icon {
  color: inherit;
}

body.mf-page.detail-page .mf-detail-comment-text {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

body.mf-page.detail-page .mf-detail-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 4px;
}

body.mf-page.detail-page .mf-detail-comment-reply-btn,
body.mf-page.detail-page .mf-detail-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

body.mf-page.detail-page .mf-detail-comment-action-icon {
  display: inline-flex;
  line-height: 0;
  opacity: 0.9;
}

body.mf-page.detail-page .mf-detail-comment-action-icon .mf-ui-icon {
  color: currentColor;
}

body.mf-page.detail-page .mf-detail-comment-reply-btn {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
}

body.mf-page.detail-page .mf-detail-comment-reply-btn:hover,
body.mf-page.detail-page .mf-detail-comment-reply-btn:focus-visible {
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

body.mf-page.detail-page .mf-detail-comment-reply-btn--guest {
  color: rgba(255, 160, 170, 0.78);
}

body.mf-page.detail-page .mf-detail-comment-reply-btn--guest:hover,
body.mf-page.detail-page .mf-detail-comment-reply-btn--guest:focus-visible {
  color: #ffc1cb;
}

body.mf-page.detail-page .mf-detail-comment-action {
  color: rgba(255, 255, 255, 0.4);
}

body.mf-page.detail-page .mf-detail-comment-action:hover,
body.mf-page.detail-page .mf-detail-comment-action:focus-visible {
  color: rgba(255, 255, 255, 0.82);
  outline: none;
}

body.mf-page.detail-page .mf-detail-comment-delete:hover,
body.mf-page.detail-page .mf-detail-comment-delete:focus-visible {
  color: #ff8a9a;
}

body.mf-page.detail-page .mf-detail-comment-report:hover,
body.mf-page.detail-page .mf-detail-comment-report:focus-visible {
  color: #ffc07a;
}

body.mf-page.detail-page .mf-detail-comment-action:disabled {
  opacity: 0.45;
  cursor: wait;
}

body.mf-page.detail-page .mf-detail-comments-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

body.mf-page.detail-page .mf-detail-comments-pager[hidden] {
  display: none !important;
}

body.mf-page.detail-page .mf-detail-comments-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  padding: 0 8px;
}

body.mf-page.detail-page .mf-detail-comments-page-btn:hover:not(:disabled),
body.mf-page.detail-page .mf-detail-comments-page-btn:focus-visible:not(:disabled) {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(229, 9, 20, 0.1);
  outline: none;
}

body.mf-page.detail-page .mf-detail-comments-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.mf-page.detail-page .mf-detail-comments-page-btn .mf-ui-icon {
  color: currentColor;
}

body.mf-page.detail-page .mf-detail-comments-page-info {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

body.mf-page.detail-page .mf-detail-comments-replies {
  margin: 10px 0 0 14px;
  padding: 0 0 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

body.mf-page.detail-page .mf-detail-comments-replies .mf-detail-comments-replies .mf-detail-comments-replies .mf-detail-comments-replies {
  margin-left: 0;
  padding-left: 8px;
}

body.mf-page.detail-page .mf-detail-comment--reply {
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 0;
}

body.mf-page.detail-page .mf-detail-comment--reply .mf-detail-comment-avatar {
  width: 28px;
  height: 28px;
}

body.mf-page.detail-page .mf-detail-comments-empty {
  margin: 0;
  padding: 28px 12px;
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

body.mf-page.detail-page .mf-detail-comments-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.22);
  color: rgba(255, 160, 175, 0.9);
}

body.mf-page.detail-page .mf-detail-comments-empty-icon .mf-ui-icon {
  color: inherit;
}

body.mf-page.detail-page .mf-detail-comments-empty p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

body.mf-page.detail-page .mf-detail-comments-empty span:not(.mf-detail-comments-empty-icon) {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

body.mf-page.detail-page .mf-detail-comments-error {
  margin: 0;
  padding: 24px 14px;
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 100, 120, 0.18);
  border-radius: 12px;
  background: rgba(80, 12, 20, 0.22);
}

body.mf-page.detail-page .mf-detail-comments-error-icon {
  display: inline-flex;
  color: rgba(255, 170, 180, 0.9);
  margin-bottom: 2px;
}

body.mf-page.detail-page .mf-detail-comments-error p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 180, 190, 0.9);
}

body.mf-page.detail-page .mf-detail-comments-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

body.mf-page.detail-page .mf-detail-comments-retry:hover,
body.mf-page.detail-page .mf-detail-comments-retry:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

body.mf-page.detail-page .mf-detail-comments-retry-icon {
  display: inline-flex;
  line-height: 0;
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  body.mf-page.detail-page .mf-detail-comments-replies {
    margin-left: 8px;
    padding-left: 8px;
  }

  body.mf-page.detail-page .mf-detail-comments-compose-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.mf-page.detail-page .mf-detail-comments-input {
    min-height: 48px;
  }

  body.mf-page.detail-page .mf-detail-comments-form-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  body.mf-page.detail-page .mf-detail-comments-chars {
    align-self: auto;
    margin: 0;
  }

  body.mf-page.detail-page .mf-detail-comments-submit {
    width: 100%;
    height: 40px;
  }

  body.mf-page.detail-page .mf-detail-comment-main {
    gap: 8px;
  }
}
