/* ============================================================
   Anichin Stream — Stylesheet
   Bahasa desain terinspirasi anichin.moe (dark, padat, rapi):
   - BG halaman #16151d, header #0b0a0d, box #222
   - Aksen: oranye-merah #f45c43 + biru #0c70de
   - Font Inter, kartu poster portrait dengan badge
   ============================================================ */

:root {
  --bg: #16151d;
  --bg-deep: #0b0a0d;
  --box: #22222a;
  --box-2: #1a1920;
  --line: #312f40;
  --line-soft: #262432;
  --text: #cccccc;
  --text-strong: #ffffff;
  --text-mute: #999999;
  --accent: #f45c43;
  --accent-2: #0c70de;
  --hot: #d33;
  --sub-badge: #ffa000;
  --purple: #694ba1;
  --green: #22c55e;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--text-strong); text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }

.container {
  width: min(1220px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-deep);
  border-bottom: 1px solid #1c1a24;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--text-strong);
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff8a5c);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.brand-text { white-space: nowrap; }

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > li {
  list-style: none;
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: 9px 13px;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  border-radius: 3px;
  transition: background .15s, color .15s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--text-strong);
  background: #1d1b26;
}

/* dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 170px;
  background: #1c1c1c;
  border-radius: 6px;
  box-shadow: 0 0 20px 0 #000;
  padding: 8px 0;
  list-style: none;
  display: none;
  z-index: 120;
}

.main-nav li:hover > .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: .88rem;
  color: #b9b9b9;
  transition: color .15s, background .15s;
}

.sub-menu li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.search-bar {
  display: flex;
  align-items: center;
  margin-left: auto;
  width: 300px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .15s;
}

.search-bar:focus-within { border-color: var(--accent-2); }

.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  padding: 8px 12px;
  font-size: .88rem;
  font-family: inherit;
}

.search-bar input::placeholder { color: #777; }

.search-bar button {
  display: grid;
  place-items: center;
  padding: 0 12px;
  align-self: stretch;
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
  transition: color .15s;
}

.search-bar button:hover { color: var(--accent); }

/* ---------- Announcement strip ---------- */
.announ {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 20px;
  text-align: center;
  font-size: .88rem;
  color: var(--text-mute);
}

.announ strong { color: var(--text-strong); }

/* ---------- Box & section header ---------- */
.bixbox {
  background: var(--box);
  border-radius: 3px;
  box-shadow: 1px 3px 8px rgba(0, 0, 0, .35);
  margin-bottom: 20px;
  overflow: hidden;
}

.releases {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font);
}

.releases h1,
.releases h2,
.releases h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .01em;
  margin: 0;
}

.releases.blue { background: var(--accent-2); border-bottom-color: transparent; }
.releases.blue h2,
.releases.blue h3 { color: #fff; }
.releases.purple { background: var(--purple); border-bottom-color: transparent; }
.releases.purple h2,
.releases.purple h3 { color: #fff; }
.releases.orange { background: var(--accent); border-bottom-color: transparent; }
.releases.orange h2,
.releases.orange h3 { color: #fff; }

.releases .more {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14);
  padding: 4px 10px;
  border-radius: 3px;
}

.releases .more:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* ---------- Card grid (listupd / bs) ---------- */
.listupd {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.bs { transition: transform .18s ease; }
.bs:hover { transform: translateY(-3px); }

.bsx { position: relative; }

.limit {
  position: relative;
  overflow: hidden;
  background: #333;
  border-radius: 3px;
  aspect-ratio: 10 / 14;
}

.limit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.bs:hover .limit img { transform: scale(1.07); }

/* play overlay */
.ply {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 90, 170, .65);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 2;
}

.bs:hover .ply { opacity: 1; }

.ply svg {
  width: 42px;
  height: 42px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* status ribbon (diagonal) */
.limit .status {
  position: absolute;
  top: 7%;
  left: -34%;
  width: 100%;
  padding: 2px 0;
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  color: #fff;
  background: #d33;
  transform: rotate(-45deg);
  z-index: 3;
}

.limit .status.ongoing { background: #d33; }
.limit .status.completed { background: var(--accent-2); }
.limit .status.upcoming { background: #7a6ad8; }
.limit .status.dropped { background: #555; }
.limit .status.episode { background: #d33; }

/* type badge */
.limit .typez {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: .66rem;
  font-weight: 700;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
  z-index: 3;
}

/* hot badge */
.hotbadge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--hot);
  border-radius: 50%;
  color: #fff;
  z-index: 3;
}

.hotbadge svg { width: 12px; height: 12px; }

/* bottom gradient info */
.limit .bt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 8px 7px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.82) 100%);
  color: #fff;
}

.limit .bt .epx {
  font-size: .78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limit .bt .sb {
  padding: 2px 6px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 3px;
  background: var(--sub-badge);
  color: #111;
  flex-shrink: 0;
}

/* title below poster */
.bs .tt {
  margin-top: 7px;
  text-align: center;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.bs:hover .tt { color: var(--text-strong); }

/* ---------- Schedule: tombol hari + dropdown judul ---------- */
.schedule-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.sch-tab {
  position: relative;
  flex: 1;
  min-width: 92px;
}

.sch-tab > button {
  width: 100%;
  padding: 9px 10px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.sch-tab:hover > button,
.sch-tab.today > button {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.sch-tab.today > button { background: var(--accent); border-color: var(--accent); }

.sch-drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 230px;
  margin-top: 4px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  padding: 8px 0;
  display: none;
}

.sch-tab:hover .sch-drop,
.sch-tab:focus-within .sch-drop { display: block; }

.sch-drop a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 14px;
  font-size: .84rem;
  color: var(--text);
  transition: background .15s, color .15s;
}

.sch-drop a:hover { background: rgba(12, 112, 222, .12); color: var(--text-strong); }

.sch-drop .si-time {
  font-size: .72rem;
  color: var(--text-mute);
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.filter-tabs a {
  padding: 7px 16px;
  border-radius: 3px;
  border: 1px solid var(--line-soft);
  background: var(--box);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}

.filter-tabs a:hover { border-color: var(--accent-2); color: #fff; }

.filter-tabs a.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

/* ---------- Detail / watch ---------- */
.animefull {
  background: var(--box);
  border-radius: 3px;
  box-shadow: 1px 3px 8px rgba(0,0,0,.35);
  margin-bottom: 20px;
  overflow: hidden;
}

.bigcontent {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}

.bigcontent .thumb {
  padding: 16px;
  align-self: start;
}

.bigcontent .thumb img {
  width: 100%;
  border-radius: 3px;
}

.infox { padding: 18px 22px 22px; min-width: 0; }

.infox h1.entry-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 4px;
}

.infox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}

.bookmark-btn:hover { border-color: var(--accent); color: var(--accent); }

.bookmark-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bookmark-btn.active svg { fill: currentColor; }

.infox .alter { color: var(--text-mute); font-size: .9rem; display: block; margin-bottom: 10px; }

.ninfo .mindesc {
  font-size: .88rem;
  color: var(--text-mute);
  margin-bottom: 12px;
}

.spe {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
}

.spe span {
  font-size: .86rem;
  color: var(--text);
}

.spe span b { color: var(--text-mute); font-weight: 600; margin-right: 4px; }

.spe span a { color: var(--accent-2); }
.spe span a:hover { color: var(--accent); }

.genxed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.genxed a {
  padding: 3px 11px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--accent-2);
  border-radius: 3px;
  color: var(--accent-2);
  transition: all .15s;
}

.genxed a:hover { background: var(--accent-2); color: #fff; }

.synopsis {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-size: .9rem;
  color: var(--text);
  max-width: 900px;
}

.synopsis h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  margin-bottom: 8px;
}

/* Player */
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
}

.mirror-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 15px;
}

.mirror-tabs a {
  padding: 7px 16px;
  border-radius: 3px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}

.mirror-tabs a:hover { border-color: var(--accent-2); color: #fff; }

.mirror-tabs a.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.mirror-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  vertical-align: middle;
}

.mirror-tag.ok {
  background: rgba(34, 197, 94, .15);
  color: #4ade80;
}

.mirror-tag.warn {
  background: rgba(244, 92, 67, .18);
  color: #f87171;
}

.mirror-tabs a.active .mirror-tag.warn {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.mirror-note {
  padding: 0 15px 14px;
  font-size: .8rem;
  color: var(--text-mute);
}

/* Episode table */
.eplister { padding: 4px 15px 15px; }

.ephead,
.eplister ul li a {
  display: grid;
  grid-template-columns: 60px 1fr 70px 130px;
  gap: 12px;
  align-items: center;
}

.ephead {
  padding: 8px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  background: var(--box-2);
  border-radius: 3px;
}

.eplister ul {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Batasi tinggi daftar episode agar halaman tidak terlalu panjang.
     Header kolom (.ephead) tetap terlihat di atas; daftar bisa discroll. */
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar tipis untuk daftar episode */
.eplister ul::-webkit-scrollbar { width: 8px; }
.eplister ul::-webkit-scrollbar-track { background: transparent; }
.eplister ul::-webkit-scrollbar-thumb { background: #3a3748; border-radius: 999px; }
.eplister ul::-webkit-scrollbar-thumb:hover { background: #4a465c; }

.eplister ul li a {
  padding: 8px 12px;
  border-radius: 3px;
  font-size: .86rem;
  color: var(--text);
  transition: background .15s, color .15s;
}

.eplister ul li a:hover { background: var(--box-2); color: var(--text-strong); }

.eplister ul li a.active {
  background: rgba(12, 112, 222, .12);
  box-shadow: inset 2px 0 0 var(--accent-2);
  color: var(--text-strong);
}

.epl-num { font-weight: 700; color: var(--accent); }

.epl-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epl-sub .status {
  display: inline-block;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 3px;
  background: var(--sub-badge);
  color: #111;
}

.epl-date { color: var(--text-mute); font-size: .82rem; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 15px 18px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  padding: 8px 13px;
  text-align: center;
  border-radius: 3px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}

.pagination a:hover { border-color: var(--accent-2); color: #fff; }

.pagination .current {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

/* ---------- Empty / error ---------- */
.empty-state,
.error-box {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-mute);
}

.error-box h1 { color: var(--text-strong); margin-bottom: 8px; font-size: 1.4rem; }

.error-box .msg { color: var(--text-mute); max-width: 560px; margin: 0 auto 20px; }

.error-box a.btn {
  display: inline-block;
  background: var(--accent-2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px;
  background: var(--bg-deep);
  border-top: 1px solid #1c1a24;
}

.footer-az {
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-az .ftaz {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.az-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.az-list li a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}

.az-list li a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.footer-bottom .txt { font-size: .82rem; color: var(--text-mute); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-nav a { font-size: .84rem; color: var(--text); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Hero slider (#slidertwo style) ---------- */
.hero-slider {
  position: relative;
  margin: 20px 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--box);
  box-shadow: 1px 3px 8px rgba(0, 0, 0, .35);
}

.hero-track { position: relative; }

.hero-slide {
  display: none;
  position: relative;
  aspect-ratio: 21 / 9;
}

.hero-slide.active { display: block; animation: heroFade .5s ease; }

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 9, 13, .88) 0%, rgba(10, 9, 13, .45) 45%, rgba(10, 9, 13, .05) 75%);
}

.hero-info {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 3;
  max-width: 58%;
}

.hero-info .hero-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background: var(--accent);
  margin-bottom: 10px;
}

.hero-info .hero-badge.badge-completed { background: var(--accent-2); }
.hero-info .hero-badge.badge-upcoming { background: #7a6ad8; }
.hero-info .hero-badge.badge-dropped { background: #555; }

.hero-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.hero-info .hero-watch {
  display: inline-block;
  padding: 8px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: .84rem;
  font-weight: 700;
  transition: filter .15s;
}

.hero-info .hero-watch:hover { filter: brightness(1.12); }

/* paging prev/next */
.hero-paging {
  position: absolute;
  right: 18px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-nav {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.hero-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* dots */
.hero-dots {
  position: absolute;
  left: 34px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-mute);
}

.breadcrumb a { color: var(--text-mute); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--text); }

/* ---------- Layout: konten + sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.layout-main { min-width: 0; }

.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Widget sidebar ---------- */
.widget {
  background: var(--box);
  border-radius: 3px;
  box-shadow: 1px 3px 8px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.widget .wt-title {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-strong);
}

.widget .wt-body { padding: 12px; }

/* Filter search */
.filter-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-search select,
.filter-search input[type="search"] {
  width: 100%;
  background: var(--box-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  color: var(--text);
  padding: 8px 10px;
  font-size: .86rem;
  font-family: inherit;
  outline: none;
}

.filter-search select:focus,
.filter-search input[type="search"]:focus { border-color: var(--accent-2); }

.filter-search button {
  background: var(--accent-2);
  border: 0;
  border-radius: 3px;
  color: #fff;
  padding: 9px;
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s;
}

.filter-search button:hover { filter: brightness(1.1); }

/* List widget (riwayat, ongoing series, popular) */
.mini-list { display: flex; flex-direction: column; gap: 2px; }

.mini-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 3px;
  transition: background .15s;
}

.mini-list a:hover { background: var(--box-2); }

.mini-list .ml-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--box-2);
}

.mini-list .ml-info { min-width: 0; }

.mini-list .ml-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-list .ml-meta {
  font-size: .72rem;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 960px) {
  .bigcontent { grid-template-columns: 1fr; }
  .bigcontent .thumb { max-width: 220px; margin: 0 auto; }
  .ephead, .eplister ul li a { grid-template-columns: 50px 1fr 60px; }
  .eph-date, .epl-date { display: none; }
  .listupd { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(1220px, 100% - 24px); }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .search-bar { order: 2; width: 100%; margin-left: 0; }
  .listupd { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .schedule-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .sidebar { grid-template-columns: 1fr; }
  .infox h1.entry-title { font-size: 1.2rem; }
  .hero-slide { aspect-ratio: 16 / 10; }
  .hero-info { left: 18px; bottom: 46px; max-width: 80%; }
  .hero-info h3 { font-size: 1.05rem; }
  .hero-dots { left: 18px; bottom: 16px; }
  .hero-paging { right: 12px; bottom: 40px; }
  .hero-nav { width: 34px; height: 34px; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3748; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #4a465c; }
