/* ============================================================================
   HobAnime theme v2.0.0 — main.css
   Identitas baru: navy + cyan, Plus Jakarta Sans, dark default + light toggle.
   Semua nama kelas yang dipakai PHP/JS lama (card, sidebar-box, player-*,
   naveps, hb-cw-*, hb-bookmark-btn, dsb.) DIPERTAHANKAN dan hanya di-restyle,
   supaya inc/continue-watching.php dan hobanime-app.js tetap bekerja.
   ========================================================================== */

/* ── 1. TOKEN ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0B1220;  --bg2: #111A2E;  --card: #162238;  --line: #223050;
  --text: #F1F5F9; --muted: #94A3B8; --muted2: #8A99AF; /* rev6: AA di atas --bg2 */
  --blue: #1E3A8A; --blue2: #2B4FC9; --cyan: #22D3EE; --cyan-rgb: 34, 211, 238;
  --hot: #F43F5E;  --new: #22C55E;   --star: #FBBF24;
  --on-cyan: #061018;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --hdr-h: 64px;

  /* alias token lama → supaya episode.css / anime.css / hobanime-app.js
     yang masih memakai var(--accent) dsb. langsung ikut rebrand */
  --accent: var(--cyan); --accent2: var(--blue2); --accent-rgb: var(--cyan-rgb);
  --on-accent: var(--on-cyan); --surface: var(--card); --surface-2: var(--card);
  --border: var(--line); --border-2: var(--line); --bg3: var(--bg2);
  --red: var(--hot); --green: var(--new); --navy: var(--bg);
}
html[data-theme="light"] {
  --bg: #F4F6FB; --bg2: #FFFFFF; --card: #FFFFFF; --line: #E2E8F0;
  --text: #0F172A; --muted: #475569; --muted2: #64748B;
  --blue2: #1E3A8A; --cyan: #0891B2; --cyan-rgb: 8, 145, 178; --on-cyan: #FFFFFF;
  --shadow: 0 8px 24px rgba(15,23,42,.08);
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font-family: "Plus Jakarta Sans", "PJS Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
/* Poster card & pill metadata tetap kecil (dense UI sengaja), body text naik 16px */
.card-title { font-size: 14px; }
.da-title { font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
picture { display: block; width: 100%; height: 100%; }
.site-brand picture, .footer-brand picture { width: auto; height: auto; }
button, input, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-pill); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--r-sm); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--cyan); color: var(--on-cyan); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { left: 8px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site-wrapper { padding-top: 20px; min-height: 60vh; }
.layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0,1fr) 320px; } }
.layout > main { min-width: 0; }

/* ── 3. HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hdr-h); }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; flex: none; }
.site-brand b, .footer-brand b { color: var(--cyan); font-weight: 800; }
.logo-ring { width: 36px; height: 36px; flex: none; }
.main-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm);
}
.nav-list a:hover, .nav-list a.active { color: var(--text); background: var(--card); }
@media (min-width: 1024px) { .main-nav { display: block; } }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Search */
.search-wrap { position: relative; display: none; }
@media (min-width: 768px) { .search-wrap { display: block; } }
.search-form {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 6px 0 14px; height: 38px;
}
.search-form:focus-within { border-color: var(--cyan); }
.search-form input { background: transparent; border: 0; outline: 0; color: var(--text); width: 170px; font-size: 13px; }
.search-form input::placeholder { color: var(--muted); }
.search-btn { width: 28px; height: 28px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.search-btn:hover { color: var(--cyan); }
.search-suggestions {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 420px; overflow: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); z-index: 60;
}
.search-suggestions.show { display: block; }
.sr-item { display: flex; gap: 10px; padding: 8px 10px; align-items: center; border-top: 1px solid var(--line); }
.sr-item:first-child { border-top: 0; }
.sr-item:hover { background: var(--card); }
.sr-item img { width: 36px; height: 50px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.sr-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.sr-meta { font-size: 11px; color: var(--muted); }

/* Icon buttons (theme toggle, hamburger) */
.iconbtn {
  width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer; flex: none;
}
.iconbtn:hover { border-color: var(--cyan); color: var(--cyan); }
.iconbtn svg { width: 18px; height: 18px; }
.mobile-menu-btn { display: grid; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Drawer mobile */
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(300px, 84vw); z-index: 70;
  background: var(--bg2); border-left: 1px solid var(--line); padding: 20px;
  transform: translateX(100%); transition: transform .25s ease; overflow: auto;
}
.mobile-menu.open { transform: none; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 52px; }
.mobile-nav-list a { display: block; padding: 12px 14px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; letter-spacing: .03em; color: var(--muted); min-height: 44px; }
.mobile-nav-list a:hover, .mobile-nav-list a.active { background: var(--card); color: var(--text); }
.mobile-nav-list a.mobile-tg-link { color: var(--cyan); }
.mobile-search { margin-top: 14px; }
.mobile-search .search-form input { width: 100%; }
.mobile-overlay { position: fixed; inset: 0; z-index: 65; background: rgba(3,8,18,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* Ticker + breadcrumb */
.info-ticker {
  display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px; margin-bottom: 14px;
}
.info-ticker strong { color: var(--cyan); }
.info-ticker a { color: var(--text); font-weight: 700; }
.hb-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hb-breadcrumb a:hover { color: var(--cyan); }
.hb-breadcrumb .sep { color: var(--muted2); }
.hb-breadcrumb .current { color: var(--text); font-weight: 600; }

/* ── 4. TIPOGRAFI SECTION & TOMBOL ───────────────────────────────────────── */
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.section-title:first-child { margin-top: 0; }
.section-title h2, .section-title h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.section-title small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.see-all { font-size: 13px; font-weight: 700; color: var(--cyan); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.home-intro { margin: 0 0 20px; }
.home-h1 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.home-intro-text { font-size: 13px; color: var(--muted); max-width: 760px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: .15s; min-height: 44px;
}
.btn-cyan { background: var(--cyan); color: var(--on-cyan); }
.btn-cyan:hover { filter: brightness(1.08); }
.btn-ghost { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 16%, transparent); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.chip, .genre-tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 6px 12px; min-height: 32px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.chip:hover, .chip.on, .genre-tag:hover { color: var(--text); border-color: var(--cyan); }

/* ── 5. GRID & KARTU ─────────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .cards-grid { grid-template-columns: repeat(5, 1fr); } .cards-grid.grid-6 { grid-template-columns: repeat(6, 1fr); } }
.home-ep-grid { /* sama dengan cards-grid; alias untuk JS lama */ }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card > a { display: block; height: 100%; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); border-color: var(--cyan); } }
.card:active { transform: scale(.98); }
.card-thumb { position: relative; aspect-ratio: 2 / 3; background: #0a0f1c; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb .overlay { display: none; }
.badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(6,16,24,.85); color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: var(--r-sm);
}
.badge.type { left: auto; right: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.views-badge { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 10px; background: rgba(6,16,24,.75); color: #fff; padding: 3px 6px; border-radius: var(--r-sm); }
.hb-flag {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); color: #fff;
}
.flag-new { background: #15803D; } .flag-hot { background: #BE123C; } /* rev5: kontras AA untuk teks putih 10px */ .flag-featured { background: var(--blue2); }
.card-info { padding: 10px 12px 12px; }
.card-title, .card-ep-title {
  font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta, .card-time, .card-rating { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-rating::before { content: "★ "; color: var(--star); }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Shortcode [daftar_anime] */
.daftar-anime-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 640px) { .daftar-anime-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .daftar-anime-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1100px) { .daftar-anime-grid { grid-template-columns: repeat(6,1fr); } }
.da-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.da-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.da-title { padding: 10px 12px 4px; font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.da-rating { padding: 0 12px 12px; font-size: 12px; color: var(--muted); }

/* Pagination (paginate_links + shortcode) */
.pagination, .page-numbers:not(a):not(span), .hb-pager { display: flex; justify-content: center; margin: 28px 0 8px; }
ul.page-numbers { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; justify-content: center; }
a.page-numbers, span.page-numbers, .hb-pager a, .hb-pager span {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700;
}
a.page-numbers:hover, .hb-pager a:hover { border-color: var(--cyan); color: var(--text); }
span.page-numbers.current, .hb-pager .current { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }

/* ── 6. HERO HOMEPAGE ────────────────────────────────────────────────────── */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 8px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: blur(2px); transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,26,.35) 0%, rgba(6,12,26,.8) 55%, rgba(6,12,26,.95) 100%); }
.hero-in { position: relative; z-index: 2; padding: 28px; width: 100%; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.2fr .8fr; align-items: end; padding: 40px; } }
.hero-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.hero h2 { font-size: clamp(26px, 4.2vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: #fff; }
.hero p { color: #CBD5E1; font-size: 15px; max-width: 520px; margin: 12px 0 20px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* 24 Okt 2026: dulu selector-nya `.today` polos. Itu BERTABRAKAN dengan
   `.day.today` di /jadwal/ (penanda hari aktif), sehingga kartu hari berubah
   jadi grid 3 kolom dan tiap baris jadwal menyusut jadi 66px. Sekarang
   dibatasi ke hero beranda tempat kelas ini sebenarnya dipakai. */
.hero .today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero .today a { display: block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 10px; color: #fff; }
.hero .today .card-thumb { border-radius: var(--r-sm); }
.hero .today b { display: block; font-size: 12px; margin-top: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .today span { font-size: 11px; color: var(--cyan); font-weight: 700; }

/* Strip jadwal hari ini */
.jadwal-strip { display: flex; gap: 10px; overflow: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.jadwal-strip a { flex: none; width: 230px; display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; scroll-snap-align: start; }
.jadwal-strip a:hover { border-color: var(--cyan); }
.jadwal-strip .thumb { width: 44px; height: 60px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: #0a0f1c; }
.jadwal-strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.jadwal-strip b { font-size: 13px; display: block; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jadwal-strip span { font-size: 12px; color: var(--cyan); font-weight: 700; }

/* ── 7. SIDEBAR ──────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--hdr-h) + 16px); }
.sidebar-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.sidebar-box-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.top-item, .latest-ep-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.top-item:first-of-type, .latest-ep-item:first-of-type { border-top: 0; }
.top-rank { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--blue); color: #fff; flex: none; }
.top-rank.gold { background: var(--cyan); color: var(--on-cyan); }
.top-rank.silver { background: var(--blue2); }
.top-thumb, .latest-ep-thumb { width: 40px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: #0a0f1c; }
.top-thumb img, .latest-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-title, .le-title { font-size: 13px; font-weight: 700; line-height: 1.3; display: block; }
.top-meta, .le-ep { font-size: 12px; color: var(--muted); }
.sidebar-genre-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-see-all { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cyan); }
.side-article b { font-size: 13px; display: block; line-height: 1.3; }
.side-article span { font-size: 12px; color: var(--muted); }

/* ── SHARE BUTTON EPISODE (WA/FB/TG — viral loop mobile) ────────────────── */
.ep-share { display: flex; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.ep-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; min-height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.ep-share-btn:hover { transform: translateY(-2px); opacity: .92; }
.ep-share-btn.wa { background: #25D366; }
.ep-share-btn.fb { background: #1877F2; }
.ep-share-btn.tg { background: #229ED9; }
.ep-share-btn svg { flex: none; }
@media (max-width: 480px) { .ep-share-btn { padding: 9px 13px; } }

/* ── 8. SINGLE ANIME ─────────────────────────────────────────────────────── */
.anime-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 24px; }
.anime-hero-bg { position: absolute; inset: 0; opacity: .35; filter: blur(8px); transform: scale(1.1); }
.anime-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.anime-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.3), var(--bg2) 95%); }
.anime-detail { position: relative; z-index: 2; display: grid; gap: 24px; padding: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .anime-detail { grid-template-columns: 220px 1fr; padding: 32px; } }
.anime-cover { width: 200px; max-width: 100%; }
@media (min-width: 760px) { .anime-cover { width: 220px; } }
.anime-poster { aspect-ratio: 2/3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #0a0f1c; }
.anime-poster img { width: 100%; height: 100%; object-fit: cover; }
.anime-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.anime-stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 14px 0; }
.anime-stats b { display: block; font-size: 20px; font-weight: 800; }
.anime-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.anime-meta { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 13px; margin-top: 14px; }
.anime-meta dt { color: var(--muted); }
.meta-row { display: contents; }
.genre-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.anime-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.hb-bookmark-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: transparent;
  border: 1px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 12px; min-height: 44px;
}
.hb-bookmark-btn:hover { background: rgba(var(--cyan-rgb), .12); }
.hb-bookmark-btn.is-marked { background: var(--cyan); color: var(--on-cyan); }
.anime-synopsis h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.synopsis-text { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 760px; }
.synopsis-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { background: none; border: 0; color: var(--cyan); font-weight: 700; cursor: pointer; margin-top: 6px; font-size: 13px; }

.episode-list-section h3, .hb-other-eps h3 { font-size: 18px; font-weight: 800; margin: 28px 0 12px; }
.episode-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .episode-grid { grid-template-columns: repeat(2, 1fr); } }
.ep-card {
  display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; min-height: 44px; font-size: 14px; font-weight: 700;
}
.ep-card:hover, .ep-card.on { border-color: var(--cyan); }
.ep-card.on .ep-num { color: var(--cyan); }
.ep-card::after { content: "›"; color: var(--muted); font-weight: 800; }
.ep-search-wrap { margin-bottom: 10px; }
.ep-search-input { width: 100%; max-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 14px; outline: 0; }
.ep-search-input:focus { border-color: var(--cyan); }

.next-release { background: linear-gradient(135deg, var(--blue), var(--bg)); color: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.next-release .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.next-release p { font-size: 14px; color: #CBD5E1; margin-top: 4px; }
.next-release .cd { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; }

.hb-faq { margin-top: 36px; }
.hb-faq h2, .hb-collection-links h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.hb-faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.hb-faq-item summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; align-items: center; }
.hb-faq-item summary::-webkit-details-marker { display: none; }
.hb-faq-item summary::after { content: "+"; color: var(--cyan); font-weight: 800; }
.hb-faq-item[open] summary::after { content: "–"; }
.hb-faq-item p { padding: 0 0 14px; color: var(--muted); font-size: 14px; }
.hb-collection-links { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.hb-collection-links p { color: var(--muted); margin-bottom: 12px; }
.hb-collection-links nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-collection-links nav a { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 6px 12px; min-height: 32px; border-radius: var(--r-pill); background: var(--bg2); border: 1px solid var(--line); }
.hb-collection-links nav a:hover { border-color: var(--cyan); }
.hb-genre-links, .hb-ep-genres { margin-top: 24px; }
.hb-genre-links h3, .hb-ep-genres h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.genre-link-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-related { margin-top: 36px; }

/* ── 9. SINGLE EPISODE / PLAYER ──────────────────────────────────────────── */
.ep-title { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 18px 0 8px; }
.ep-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ep-sub a { color: var(--cyan); font-weight: 700; }

/* Blok fakta episode (22 Okt 2026): pasangan label-nilai yang unik per
   episode. Mobile-first: grid 2 kolom, label kecil di atas nilai. */
.ep-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 0 0 18px; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.ep-fact { background: var(--bg2); padding: 9px 12px; }
.ep-fact dt {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted2); margin: 0 0 2px;
}
.ep-fact dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
@media (min-width: 560px) {
  .ep-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ep-facts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.player { background: #000; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.player-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-status {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; font-size: 14px; font-weight: 600; color: #CBD5E1; background: rgba(6,12,26,.9);
}
.player-status.is-error { color: #FDA4AF; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--card); border-top: 1px solid var(--line); }
.player-servers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.player-servers[hidden], .player-actions[hidden] { display: none; }
.server-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.player-server-buttons { display: none; gap: 6px; flex-wrap: wrap; }
.player-server-select { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 12px; min-height: 40px; }
@media (min-width: 768px) { .player-server-buttons { display: flex; } .player-server-select { display: none; } }
.player-server-btn {
  cursor: pointer; font-size: 12px; font-weight: 700; padding: 7px 12px; min-height: 36px; border-radius: var(--r-pill);
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
}
.player-server-btn:hover, .player-server-btn.active { color: var(--text); border-color: var(--cyan); }
.player-server-btn.active { background: rgba(var(--cyan-rgb), .15); color: var(--cyan); }
.player-server-btn.failed { opacity: .5; text-decoration: line-through; }
.player-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.player-action-btn {
  cursor: pointer; font-size: 12px; font-weight: 700; padding: 7px 12px; min-height: 36px; border-radius: var(--r-pill);
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
}
.player-action-btn:hover { border-color: var(--cyan); }
.player-fs-btn { border-color: var(--cyan); color: var(--cyan); }
.player-report-btn { color: var(--hot); }
.player-hint { font-size: 12px; color: var(--muted); }

.naveps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 16px 0; }
.naveps .nvs a, .naveps .nvs .nolink {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px;
}
.naveps .nvs a:hover { border-color: var(--cyan); color: var(--cyan); }
.naveps .nolink { color: var(--muted); opacity: 1; border-style: dashed; } /* rev7: kontras AA */
.naveps .nvsc a { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.naveps .nvsc a:hover { color: var(--on-cyan); filter: brightness(1.08); }
@media (max-width: 480px) { .naveps .tex { font-size: 12px; } }

.ep-content { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 20px 0; }
.ep-content h2 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ep-content p + p { margin-top: 10px; }
.ep-content strong { color: var(--text); }
.ep-source-status { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }

.download-section { margin: 24px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.download-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.download-grid { display: grid; gap: 12px; }
.dl-lang-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dl-links { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.dl-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.hb-other-eps .episode-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.hb-other-eps .ep-card { justify-content: center; }
.hb-other-eps .ep-card::after { content: none; }
.series-card { display: flex; gap: 14px; }
.series-card .thumb { width: 72px; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden; flex: none; background: #0a0f1c; }
.series-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.series-card b { font-size: 15px; display: block; line-height: 1.3; }
.series-card span { font-size: 12px; color: var(--muted); }
.series-card .more { font-size: 12px; color: var(--cyan); font-weight: 700; margin-top: 8px; }

/* ── 10. JADWAL ──────────────────────────────────────────────────────────── */
.nextup { display: flex; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--blue), var(--bg)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: #fff; flex-wrap: wrap; }
.nextup .thumb { width: 84px; height: 116px; border-radius: var(--r-md); overflow: hidden; flex: none; background: #0a0f1c; }
.nextup .thumb img { width: 100%; height: 100%; object-fit: cover; }
.nextup > div { flex: 1; min-width: 200px; }
.nextup .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.nextup h2 { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.nextup p { font-size: 14px; color: #CBD5E1; }
.nextup .cd { font-size: 28px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.daytabs { display: flex; gap: 6px; overflow: auto; margin: 24px 0 16px; padding-bottom: 4px; }
.days { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
/* 24 Okt 2026: dulu `repeat(N, 1fr)`. `1fr` = minmax(auto, 1fr), jadi kolom
   yang berisi judul panjang (mis. "A Record Of Mortal's Journey To Immortality
   New") MELEBAR dan menekan kolom lain - terukur 218/218/387 px di 1280px.
   minmax(0, 1fr) memaksa semua kolom sama lebar. */
@media (min-width: 800px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; scroll-margin-top: 90px; }
.day.today { border-color: var(--cyan); }
.day h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.day h3 em { font-style: normal; font-size: 11px; background: var(--cyan); color: var(--on-cyan); padding: 2px 8px; border-radius: var(--r-pill); }
.day .row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.day .row:first-of-type { border-top: 0; }
.day .row .thumb { width: 40px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: #0a0f1c; }
.day .row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.day .row div { flex: 1; min-width: 0; }
/* Judul panjang (mis. "A Record Of Mortal's Journey To Immortality New")
   dipotong 2 baris + elipsis agar tinggi baris seragam. */
.day .row b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.day .row span { font-size: 12px; color: var(--muted); }
.day .empty { padding: 10px 0; text-align: left; }

/* ── 11. RETENSI CLIENT-SIDE (hobanime-app.js / continue-watching.php) ───── */
.section-hb-app { margin: 24px 0; contain: layout style; }
.hb-cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .hb-cw-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; } }
.hb-cw-card { display: block; color: inherit; }
.hb-cw-thumb { position: relative; aspect-ratio: 2/3; border-radius: var(--r-md); overflow: hidden; background: #0a0f1c; border: 1px solid var(--line); }
.hb-cw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-cw-badge { position: absolute; bottom: 6px; left: 6px; z-index: 2; background: rgba(6,16,24,.85); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: var(--r-sm); }
.hb-cw-mark { position: absolute; top: 6px; right: 6px; z-index: 2; font-size: 13px; }
.hb-cw-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; font-size: 1.6rem; color: #fff; opacity: 0; transition: opacity .2s; }
.hb-cw-card:hover .hb-cw-play { opacity: 1; }
.hb-cw-title { font-size: 12px; font-weight: 700; line-height: 1.3; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-cw-clear { background: none; border: 0; cursor: pointer; color: var(--cyan); font-size: 13px; font-weight: 700; }
.hb-continue-bar { background: var(--card); border-bottom: 1px solid var(--line); font-size: 13px; }
.hb-continue-bar .container { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.hb-continue-bar a { color: var(--cyan); font-weight: 700; }

/* ── 12. ARTIKEL / KOMENTAR / GENERIK ────────────────────────────────────── */
.section-articles ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.section-articles li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.section-articles strong { font-size: 14px; }
.section-articles span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.entry-content { font-size: 15px; line-height: 1.7; color: var(--muted); }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--text); margin: 24px 0 8px; font-weight: 800; }
.entry-content p + p, .entry-content ul, .entry-content ol { margin-top: 12px; }
.entry-content a { color: var(--cyan); }
.anime-comments { margin-top: 36px; }
.comment-list { list-style: none; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: 0;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--cyan); }
.comment-form .submit { background: var(--cyan); color: var(--on-cyan); border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; min-height: 44px; }

/* ── 13. FOOTER ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { display: grid; gap: 36px; padding: 48px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.footer-desc { font-size: 13px; color: var(--muted); max-width: 360px; margin-top: 14px; }
.footer-copy { font-size: 12px; color: var(--muted2); margin-top: 14px; }
.footer-col h5, .footer-h { font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.footer-nav, .footer-col { display: flex; flex-direction: column; }
.footer-nav a, .footer-col > a:not(.btn) { display: block; font-size: 13px; color: var(--muted); padding: 5px 0; }
.footer-nav a:hover, .footer-col > a:hover { color: var(--text); }
.footer-social { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-disclaimer { font-size: 12px; color: var(--muted2); border-top: 1px solid var(--line); padding: 16px 0 24px; }

/* ── 14. UMPAN BALIK SENTUH & A11Y ───────────────────────────────────────── */
@media (hover: none) { .card:hover { transform: none; border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 15. HALAMAN DAFTAR (rev3: az-list, ongoing, popular, genre, search, archive) ── */
.page-intro { margin-bottom: 20px; }
.page-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.page-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-desc { font-size: 14px; color: var(--muted); max-width: 760px; margin-top: 8px; }
.page-desc a { color: var(--cyan); font-weight: 600; }
.az-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.az-link { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700; }
.az-link:hover { color: var(--text); border-color: var(--cyan); }
.az-link.active { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.genre-index-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .genre-index-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .genre-index-grid { grid-template-columns: repeat(4, 1fr); } }
.genre-index-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.genre-index-item:hover { border-color: var(--cyan); }
.genre-index-item.is-popular { background: linear-gradient(135deg, rgba(var(--cyan-rgb), .12), var(--card)); }
.gi-count, .gcount { font-size: 12px; font-weight: 700; color: var(--muted); }
.gi-count { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 8px; }
.ranked { position: relative; }
.ranked::before { content: attr(data-rank); position: absolute; z-index: 3; top: -8px; left: -6px; min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--shadow); }
.ranked.top::before { background: var(--cyan); color: var(--on-cyan); }
.ranked .card { height: 100%; }
.page-search { max-width: 480px; margin-bottom: 20px; height: 46px; padding-right: 4px; }
.page-search input { flex: 1; width: auto; }
.list-rows { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.list-row:hover { border-color: var(--cyan); }
.list-row b { font-size: 14px; } .list-row span { font-size: 12px; color: var(--muted); }
.empty-box { background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 24px; color: var(--muted); }
.empty-box p { margin-bottom: 12px; }

/* ── 16. TEMPLATE GENERIK (rev4: single, page, 404, komentar, definition box) ── */
.article { max-width: 780px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
.article-cover img { width: 100%; height: auto; }
.article-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.article-foot a, .entry-content a { color: var(--cyan); font-weight: 600; }
.entry-content img { border-radius: var(--r-md); height: auto; }
.entry-content ul, .entry-content ol { padding-left: 20px; }
.entry-content blockquote { border-left: 3px solid var(--cyan); padding: 4px 0 4px 14px; color: var(--text); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content.is-catalog { color: var(--text); }
.notfound { text-align: center; padding: 24px 0 8px; display: flex; flex-direction: column; align-items: center; }
.nf-code { font-size: clamp(72px, 12vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--cyan), var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .page-desc { margin: 10px auto 18px; }
.notfound .page-search { width: 100%; }
.nf-links { justify-content: center; }
.comments-area { margin-top: 36px; }
.comments-title, .comment-reply-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.comment-list ol.children { list-style: none; margin-left: 20px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.comment-author img { border-radius: var(--r-pill); }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.comment-content { font-size: 14px; color: var(--muted); }
.reply a { font-size: 12px; font-weight: 700; color: var(--cyan); }
.comment-form p { margin-bottom: 10px; }
.comment-form label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.definition-box { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.definition-box h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.definition-box p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.definition-box p + p { margin-top: 8px; }
.definition-box strong, .definition-box em { color: var(--text); }

/* ── 17. REV5 PERBAIKAN DARI PREVIEW ─────────────────────────────────────── */
.ranked .hb-flag { left: auto; right: 8px; }           /* nomor peringkat tidak menimpa flag HOT */
.footer-h { font-size: 13px; font-weight: 800; margin-bottom: 12px; }

/* ── 18. REV7: CLS font-swap & episode ───────────────────────────────────── */
/* Fallback lokal dengan metrik disesuaikan ke Plus Jakarta Sans supaya teks
   tidak "melompat" saat web font selesai dimuat (CLS 0,19 di halaman episode). */
@font-face { font-family: "PJS Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 104%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
.hb-breadcrumb { min-height: 21px; }
.ep-title { min-height: 1.2em; }
.player-wrap { contain: layout; }

/* ── 19. REV8: facade player "klik untuk putar" ─────────────────────────── */
.player-facade { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.pf-bg { position: absolute; inset: 0; }
.pf-bg picture, .pf-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.55); transform: scale(1.08); }
.pf-play { position: relative; width: 76px; height: 76px; border-radius: 999px; background: var(--cyan); color: var(--on-cyan);
  display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(var(--cyan-rgb), .18); transition: transform .15s; }
.pf-play svg { margin-left: 4px; }
.pf-text { position: relative; font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.player-facade:hover .pf-play, .player-facade:focus-visible .pf-play { transform: scale(1.08); }
@media (max-width: 480px) { .pf-play { width: 60px; height: 60px; } }

/* ── 20. REV9: breadcrumb satu baris (CLS episode 0,19 dari font-swap) ──── */
.hb-breadcrumb { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; min-height: 21px; }
.hb-breadcrumb > * { flex: none; }
.hb-breadcrumb .current { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── 21. REV10: drawer mobile di luar header ─────────────────────────────── */
.mobile-menu { z-index: 90; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.mobile-menu.open { visibility: visible; transition: transform .25s ease, visibility 0s; }
.mobile-overlay { z-index: 85; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-menu-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mobile-nav-list { margin-top: 12px; }
.mobile-search .search-suggestions { position: static; width: 100%; margin-top: 8px; max-height: 50vh; }
body.nav-open { overflow: hidden; touch-action: none; }
.mobile-menu { touch-action: pan-y; }
@media (min-width: 1024px) { .mobile-menu, .mobile-overlay { display: none; } }
.search-wrap.mobile-search { display: block; } /* rev10: kotak cari di drawer tetap tampil di HP (<768px) */

/* ── 22. REV11: cegah geser horizontal di HP ───────────────────────────────
   Drawer yang tersembunyi (translateX 100%) dulu ikut memperlebar halaman,
   sehingga seluruh halaman bisa tergeser ke kiri (logo terpotong). */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ── 23. SELF-HOST FONT: Plus Jakarta Sans lokal ──────────────────────────── */
/* Eliminasi round-trip Google Fonts CDN → LCP turun ~1-2s. Variable font 27KB. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ── FAQ HOMEPAGE (fix 15 Okt 2026 — konten visible pendamping FAQPage schema) ── */
.home-faq { margin-top: 28px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.home-faq h2 { font-size: 18px; margin-bottom: 14px; }
.home-faq-item + .home-faq-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.home-faq-item h3 { font-size: 15px; margin-bottom: 6px; }
.home-faq-item p { font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (min-width: 768px) { .home-faq h2 { font-size: 20px; } .home-faq-item p { font-size: 15px; } }

/* -- Jadwal ringkasan (23 Okt 2026): blok data di /jadwal/ ------------- */
.jadwal-ringkasan { margin: 24px 0 8px; }
.jl-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 20px; }
.jl-stat { background: var(--card, #171a21); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 12px 14px; text-align: center; }
.jl-stat b { display: block; font-size: 20px; line-height: 1.2; color: var(--cyan); }
.jl-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.jl-sub { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
.jl-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 4px; }
.jl-inline li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.jl-inline li b { color: var(--fg, #e8eaf0); }
.jl-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 14px; }
.jl-table caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.jl-table th, .jl-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.jl-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.jl-table tbody th { font-weight: 600; }
.jl-table td { color: var(--muted); }
.jl-table tr.is-today th, .jl-table tr.is-today td { color: var(--cyan); }
@media (min-width: 640px) { .jl-stats { grid-template-columns: repeat(4, 1fr); } }
