:root {
  --bg: #07070b;
  --bg2: #0d0d14;
  --card: #121219;
  --card2: #191922;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --text: #f4f4f8;
  --muted: #9b9baa;
  --pink: #ff2d87;
  --violet: #a855f7;
  --emerald: #34d399;
  --amber: #ffd166;
  --grad: linear-gradient(135deg, #ff2d87 0%, #a855f7 55%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,45,135,.14), rgba(168,85,247,.14));
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,.5);
  --font-h: 'Sora', sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4, .brand, .fw-700 { font-family: var(--font-h); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Background aurora ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -12%, rgba(168,85,247,.18), transparent 62%),
    radial-gradient(820px 520px at -12% 22%, rgba(255,45,135,.13), transparent 62%),
    radial-gradient(700px 520px at 55% 115%, rgba(124,58,237,.12), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,11,.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; flex-shrink: 0; }
.brand .logo-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255,45,135,.4);
}
.brand .logo-ic svg {
  width: 30px; height: 30px; border-radius: 9px; display: block;
}
.brand .b1 { color: #fff; }
.brand .b2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); }

/* search */
.searchbox { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 14px; height: 42px; min-width: 240px; transition: border-color .2s, box-shadow .2s; }
.searchbox:focus-within { border-color: rgba(168,85,247,.55); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }
.searchbox input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.searchbox input::placeholder { color: #6b6b7b; }
.searchbox svg { width: 17px; height: 17px; stroke: var(--muted); flex-shrink: 0; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: rgba(18,18,25,.98); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); z-index: 90; display: none; }
.suggest.show { display: block; }
.suggest a { display: flex; gap: 12px; padding: 10px 14px; align-items: center; border-bottom: 1px solid var(--line); transition: .15s; }
.suggest a:last-child { border-bottom: none; }
.suggest a:hover { background: var(--card2); }
.suggest img { width: 40px; height: 54px; object-fit: cover; border-radius: 6px; }
.suggest .s-t { font-size: 13px; font-weight: 600; }
.suggest .s-s { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; padding: 13px 24px; border-radius: 12px; transition: .25s; cursor: pointer; border: none; line-height: 1; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(255,45,135,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(168,85,247,.5); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 54px 0 34px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 38px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad-soft); border: 1px solid rgba(255,45,135,.35); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.8);} }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 16px; }
.hero h1 .amp { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--muted); font-size: 16px; max-width: 540px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero featured slider */
.hero-panel { position: relative; }
.feat-stack { position: relative; height: 440px; border-radius: 22px; }
.feat-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; opacity: 0; transform: scale(.94) translateY(14px); pointer-events: none; transition: opacity .55s, transform .55s; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.feat-card.active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.feat-card .fc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 6s ease; }
.feat-card.active .fc-img { transform: scale(1.08); }
.feat-card .fc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 22%, rgba(7,7,11,.9) 82%); }
.feat-card .fc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px; }
.feat-card .fc-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #fff; background: var(--grad); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.feat-card h3 { font-size: 23px; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
.feat-card p { font-size: 13px; color: #cfcfdb; max-width: 460px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-meta { display: flex; gap: 10px; margin-top: 10px; font-size: 11.5px; color: #d7d7e0; align-items: center; }
.feat-meta .fm { background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(3px); }
.feat-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.feat-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: #33333f; cursor: pointer; transition: .3s; }
.feat-dots button.active { width: 28px; background: var(--grad); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 6px 0 8px; }
.stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: var(--grad); opacity: .7; }
.stat .n { font-family: var(--font-h); font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { position: relative; font-size: 23px; font-weight: 800; letter-spacing: -.5px; padding-left: 14px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 4px; background: var(--grad); }
.sec-head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sec-more { font-size: 13px; font-weight: 700; color: var(--violet); white-space: nowrap; transition: gap .2s; }
.sec-more:hover { text-decoration: underline; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; transition: .2s; cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--pink); transform: translateY(-1px); }
.chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgba(255,45,135,.3); }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }
.acard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s cubic-bezier(.2,.7,.3,1); }
.acard:hover { transform: translateY(-7px); border-color: rgba(255,45,135,.5); box-shadow: 0 22px 44px rgba(0,0,0,.55); }
.acard .poster { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.acard .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.acard:hover .poster img { transform: scale(1.09); }
.acard .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,11,.92)); }
.acard .ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .32s; z-index: 2; background: rgba(7,7,11,.25); }
.acard:hover .ov { opacity: 1; }
.play-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); box-shadow: 0 8px 26px rgba(255,45,135,.55); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.acard:hover .play-ic { transform: scale(1.08); }
.play-ic::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.acard .badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; z-index: 3; }
.badge1 { font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 7px; }
.badge2 { font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--pink); padding: 3px 9px; border-radius: 7px; margin-left: auto; animation: pulse 2s infinite; }
.badge2.done { background: rgba(16,185,129,.9); color: #fff; animation: none; }
.acard .meta { padding: 13px 13px 15px; }
.acard .meta h4 { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.acard .meta .meta2 { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }
.acard .meta .meta2 span { display: inline-flex; align-items: center; gap: 4px; }
.rate-hi { color: var(--amber) !important; font-weight: 700; }
.ep-tag { position: absolute; right: 8px; bottom: 46px; z-index: 3; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(7,7,11,.72); border: 1px solid var(--line2); backdrop-filter: blur(4px); padding: 3px 9px; border-radius: 999px; }

/* ---------- Detail page ---------- */
.detail-hero { position: relative; padding: 44px 0 28px; }
.detail-hero .dh-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(4px) brightness(.3); transform: scale(1.06); z-index: -1; }
.detail-hero .dh-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,11,.5), var(--bg) 88%); }
.dh-grid { display: grid; grid-template-columns: 236px 1fr; gap: 32px; align-items: start; }
.dh-poster { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.6); border: 1px solid var(--line); }
.dh-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.dh-info h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; line-height: 1.2; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dh-meta span { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dh-meta .pill-pink { color: #fff; background: var(--grad); border-color: transparent; }
.dh-meta .pill-done { color: #d1fae5; background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.4); }
.dh-meta .pill-live { color: #ffe4f0; background: rgba(255,45,135,.15); border-color: rgba(255,45,135,.4); }
.dh-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dh-genres a { font-size: 12.5px; font-weight: 600; color: var(--violet); background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.3); padding: 6px 12px; border-radius: 9px; transition: .2s; }
.dh-genres a:hover { color: #fff; border-color: var(--pink); background: rgba(255,45,135,.15); }
.dh-syn { color: #c9c9d2; font-size: 14.5px; max-width: 780px; }
.rating-big { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-h); font-weight: 800; font-size: 17px; color: var(--amber); margin: 0 0 16px; }
.rating-big svg { width: 17px; height: 17px; stroke: var(--amber); fill: var(--amber); }

/* episode grid */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; }
.ep-btn { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--text);
  background: var(--card); border: 1px solid var(--line); padding: 11px 8px; border-radius: 10px; transition: .2s; }
.ep-btn:hover { color: #fff; border-color: var(--pink); background: var(--card2); transform: translateY(-2px); }
.ep-btn.current { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(255,45,135,.35); }

/* ---------- Watch page ---------- */
.watch-wrap { max-width: 1020px; margin: 0 auto; padding: 26px 20px 40px; }
.player-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(0,0,0,.55); background: #000; }
.player-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }
.player-load { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: linear-gradient(160deg,#1a1020,#0d0d12); z-index: 5; }
.player-holder { position: relative; z-index: 1; }
.mirror-tabs { position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 0; background: #0b0b10; border-bottom: 1px solid var(--line); }
.mirror-tab { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 7px 13px; border-radius: 9px 9px 0 0; cursor: pointer; transition: .2s; }
.mirror-tab.active { color: #fff; background: var(--grad); border-color: transparent; }
.mirror-tab:hover { color: #fff; border-color: var(--pink); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.watch-title { font-size: 21px; font-weight: 800; margin: 18px 0 8px; }
.watch-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.ep-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ep-nav a { flex: 1; min-width: 140px; text-align: center; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--card); border: 1px solid var(--line); padding: 13px; border-radius: 12px; transition: .2s; }
.ep-nav a:hover { border-color: var(--pink); background: var(--card2); }
.ep-nav a.dis { opacity: .35; pointer-events: none; }
.ep-total { display: inline-block; margin-left: 4px; font-size: 11.5px; color: var(--text); background: var(--card); border: 1px solid var(--line2); padding: 2px 8px; border-radius: 20px; }
.dl-list { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-list .chip { text-decoration: none; }
.dl-table details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dl-table summary { cursor: pointer; font-weight: 700; font-size: 13.5px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.dl-table summary span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dl-table summary:hover { color: var(--pink); }
.dl-table details[open] summary { border-bottom: 1px solid var(--line2); }
.dl-table .dl-list { padding: 12px 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 34px 0 0; background: linear-gradient(180deg, rgba(7,7,11,.4), rgba(10,10,15,.95)); }
.footer-simple { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 26px; }
.footer-simple .brand { font-size: 19px; }
.network-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad); padding: 9px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(255,45,135,.3); transition: transform .2s; }
.network-badge:hover { transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ad slot */
.ad-slot { margin: 24px 0; padding: 16px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(255,255,255,.015); min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }

/* hamburger + mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 4.5px; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: rgba(7,7,11,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 20px 14px; }
.nav-mobile a { display: block; padding: 13px 6px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: #a855f7; }
.nav-mobile.open { display: block; }
.nav-mobile .m-search { display: flex; margin-bottom: 12px; min-width: 0; width: 100%; }
.nav-mobile .m-search .suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 95; }

/* ---------- AOS tweaks ---------- */
[data-aos] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feat-stack { height: 360px; }
  .dh-grid { grid-template-columns: 150px 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .searchbox { display: none; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-inner { justify-content: space-between; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 10px; }
  .acard .meta { padding: 9px 9px 11px; }
  .acard .meta h4 { font-size: 11.5px; min-height: 32px; }
  .acard .meta .meta2 { gap: 6px; font-size: 10px; }
  .ep-tag { right: 6px; bottom: 42px; font-size: 9.5px; padding: 2px 7px; }
  .badge1, .badge2 { font-size: 9px; padding: 2px 7px; }
  .play-ic { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .dh-grid { grid-template-columns: 1fr; }
  .dh-poster { max-width: 190px; }
  .feat-stack { height: 320px; }
  .watch-title { font-size: 18px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .hero { padding: 34px 0 22px; }
  .container { padding: 0 14px; }
  .section { padding: 24px 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .brand { font-size: 18px; }
  .topbar-inner { height: 56px; }
  .nav-mobile { top: 56px; }
  .sec-head { margin-bottom: 18px; }
  .sec-head h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Page transition loader ---------- */
.page-loader { position: fixed; inset: 0; z-index: 9999; background: rgba(7,7,11,.72); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .32s ease; }
.page-loader.show { opacity: 1; }
.pl-box { width: 58px; height: 58px; border-radius: 16px; background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(255,45,135,.45); animation: pl-pulse 1.1s ease-in-out infinite; }
.pl-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; opacity: .95; }
@keyframes pl-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- Chat dengan kami ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 12px 34px rgba(255,45,135,.5); transition: transform .25s, box-shadow .25s; }
.chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 44px rgba(168,85,247,.55); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab.on { transform: rotate(90deg); }
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 201; width: 360px; max-width: calc(100vw - 28px);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  background: var(--grad); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: 14.5px; }
.chat-head > div { display: flex; align-items: center; gap: 9px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 4px rgba(167,243,208,.2); animation: pulse 1.6s infinite; }
.chat-close { background: rgba(255,255,255,.16); border: none; color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.chat-close:hover { background: rgba(255,255,255,.28); }
.chat-box { height: 360px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(168,85,247,.05), rgba(7,7,11,.1)); }
.chat-box::-webkit-scrollbar { width: 8px; } .chat-box::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; }
.chat-nick { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.chat-nick p { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.chat-nick input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 13.5px; margin-bottom: 10px; }
.chat-nick input:focus { outline: none; border-color: var(--violet); }
.chat-nick .btn { width: 100%; justify-content: center; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); animation: bubble-in .25s ease; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }
.bubble.mine { align-self: flex-end; background: var(--grad); border-color: transparent; }
.bubble .who { font-size: 11px; font-weight: 800; color: var(--violet); display: block; margin-bottom: 3px; }
.bubble.mine .who { color: #ffd9ec; }
.bubble .txt { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.bubble .when { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; text-align: right; }
.bubble.mine .when { color: rgba(255,255,255,.7); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.chat-input textarea { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 13.5px; resize: none; min-height: 26px; max-height: 110px; font-family: inherit; padding: 6px 4px; }
.chat-input .btn { padding: 10px 14px; font-size: 13px; }

/* ---------- Watch: 2 kolom + cinema ---------- */
.watch-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 20px 40px; }
.watch-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.watch-col { min-width: 0; }
.watch-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
.watch-side::-webkit-scrollbar { width: 7px; } .watch-side::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; }
.watch-side .ep-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.player-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(0,0,0,.55); background: #000; }
.player-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }
.cinema-btn { position: absolute; top: 12px; right: 12px; z-index: 20; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(7,7,11,.6); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: .2s; }
.cinema-btn:hover { background: rgba(255,45,135,.85); border-color: transparent; }
.cinema-btn.on { background: var(--pink); }
.watch-wrap.cinema { max-width: 1500px; padding-left: 6px; padding-right: 6px; }
.watch-wrap.cinema .watch-grid { grid-template-columns: 1fr; }
.watch-wrap.cinema .watch-side { position: static; max-height: none; }
.watch-wrap.cinema .player-frame iframe { aspect-ratio: 16/8.4; }

/* 404 */
.nf-code { font-family: var(--font-h); font-size: clamp(74px, 16vw, 150px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; }

/* badges: tipe tampil jelas, status ringkas */
.acard .badges { align-items: flex-start; }
.badge1 { font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: 7px; flex-shrink: 0; }
.badge2 { font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--pink); padding: 3px 9px; border-radius: 7px; flex-shrink: 0; animation: pulse 2s infinite; }
.badge2.done { background: rgba(16,185,129,.9); color: #fff; animation: none; }

/* expand footer gap utk chat fab */
footer { padding-bottom: 34px; }

@media (max-width: 900px) {
  .watch-grid { grid-template-columns: 1fr; gap: 18px; }
  .watch-side { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .chat-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .chat-panel { right: 10px; bottom: 78px; }
}