/* ==========================================================================
   IrohaStream — tema flat hangat.
   Satu warna aksen (merah persimmon), permukaan datar, garis tipis,
   tanpa gradasi/glow. Sengaja dibuat simpel & padat seperti situs buatan
   komunitas, bukan template korporat.
   ========================================================================== */

:root {
  --bg: #17161a;
  --bg-2: #1c1b20;
  --surface: #1e1d22;
  --surface-2: #232227;
  --border: #2a2930;
  --border-2: #34333a;
  --text: #e9e7e2;
  --text-soft: #cfccc5;
  --muted: #a09d96;
  --muted-2: #6e6c66;
  --accent: #e5533f;
  --accent-hover: #f0644f;
  --accent-dim: #b8432f;
  --ok: #b5d1ab;
  --ok-border: #3c5a37;
  --ok-bg: #1f2a1d;
  --err: #eba396;
  --err-border: #6e3129;
  --err-bg: #2a1d1b;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.content { padding: 22px 0 30px; }

/* ===================== header ===================== */

.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* urutan: logo → menu → cari. Di layar sempit urutan diubah lewat
   media query jadi 2 baris supaya menu tidak ketindih kolom cari */
.main-nav { order: 2; }
.search-box { order: 3; }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  order: 1;
}

.logo-dot {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.logo-text b { color: var(--accent); font-weight: 700; }

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  color: var(--muted);
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--muted-2);
}

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

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 150px;
}
.search-box input::placeholder { color: var(--muted-2); }

/* ===================== breadcrumb & judul ===================== */

.breadcrumb {
  padding: 9px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.breadcrumb .sep { margin: 0 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 18px;
  line-height: 1.35;
}

.page-title small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

/* ===================== beranda: 2 kolom ===================== */

.home-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
  padding-top: 20px;
}

.row-section { margin-bottom: 30px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}

.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}

.section-head .more { font-size: 12px; color: var(--muted); }
.section-head .more:hover { color: var(--accent); }

/* sidebar */

.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 16px;
}

.side-head {
  border-bottom: 1px dashed var(--border-2);
  padding-bottom: 7px;
  margin-bottom: 9px;
}

.side-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.side-empty { color: var(--muted-2); font-size: 12.5px; margin: 6px 0 0; }

.mini-list { list-style: none; margin: 0; padding: 0; }

.mini-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.mini-list li:last-child { border-bottom: none; }
.mini-list a { color: var(--text-soft); }
.mini-list a:hover { color: var(--accent); }

.side-genre { line-height: 2.1; }
.side-genre a {
  color: var(--muted);
  font-size: 12.5px;
  margin-right: 11px;
}
.side-genre a:hover { color: var(--accent); }
.side-genre .side-more { display: block; margin-top: 2px; color: var(--accent); font-size: 12.5px; }

/* ===================== kartu anime ===================== */

.grid-anime {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px 13px;
}

.card h3 {
  margin: 7px 0 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.card h3 a {
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card h3 a:hover { color: var(--accent); }
.card .meta { font-size: 11.5px; color: var(--muted-2); }

.thumb {
  position: relative;
  display: block;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: filter 0.15s ease;
}

.thumb:hover img { filter: brightness(1.1); }

.ep-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(14, 13, 16, 0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-top-left-radius: 4px;
}

.score-badge {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-bottom-right-radius: 4px;
}

/* ===================== update terbaru (sidebar) ===================== */

.update-list { display: flex; flex-direction: column; }

.update-item {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.update-item:last-child { border-bottom: none; }

.up-thumb img {
  display: block;
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.up-body { flex: 1; min-width: 0; }

.up-body h4 {
  margin: 1px 0 3px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.up-body h4 a {
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.up-body h4 a:hover { color: var(--accent); }

.up-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-2);
  flex-wrap: wrap;
}

.up-meta .ep { color: var(--accent); font-weight: 600; }

/* ===================== alert, loading, empty ===================== */

.alert {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.alert.err { background: var(--err-bg); border-color: var(--err-border); color: var(--err); }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok); }

.loading {
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
  padding: 34px 0;
  line-height: 2.2;
}

.spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: iroha-spin 0.8s linear infinite;
}

.spin.light { border-color: #3a3941; border-top-color: #fff; }

@keyframes iroha-spin { to { transform: rotate(360deg); } }

.empty-state {
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding: 38px 20px;
}

/* ===================== tombol ===================== */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
}

.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); border-color: var(--muted-2); background: transparent; }

.btn.danger {
  background: transparent;
  border: 1px solid #5a2c26;
  color: #e07b6d;
}
.btn.danger:hover { background: #33201d; border-color: #7a3a30; color: #f0938a; }

/* ===================== paginasi & chip ===================== */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 6px;
}

.pagination a, .pagination span.current {
  padding: 6px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

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

.pagination span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-cloud a {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 4px 11px;
  background: var(--surface);
}

.chip-cloud a:hover { color: var(--accent); border-color: var(--accent); }
.chip-cloud a.on { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ===================== detail anime ===================== */

.anime-header {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}

.anime-poster {
  flex: 0 0 196px;
}

.anime-poster img {
  display: block;
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.anime-info { flex: 1; min-width: 0; }
.anime-info h1 { font-size: 22px; margin: 2px 0 4px; line-height: 1.3; }

.anime-info .japanese { color: var(--muted-2); font-size: 13px; margin-bottom: 12px; }

.info-table {
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0 4px;
}

.info-table td { padding: 2.5px 0; vertical-align: top; }
.info-table td.k { color: var(--muted-2); padding-right: 14px; white-space: nowrap; }
.info-table td.v { color: var(--text-soft); }

.genre-tags { margin-top: 13px; }

.tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 3px 9px;
  margin: 0 6px 6px 0;
}

a.tag:hover, .genre-tags a:hover { color: var(--accent); border-color: var(--accent); }
.genre-tags a { display: inline-block; font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 3px; padding: 3px 9px; margin: 0 6px 6px 0; }

.sinopsis { margin-bottom: 24px; }

.sinopsis h2, .section-head h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-soft); }

.sinopsis h2 {
  margin: 0 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}

.sinopsis p { font-size: 14px; line-height: 1.75; color: var(--text-soft); margin: 0 0 10px; }

.ep-list { border-top: 1px solid var(--border); }

.ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
}

.ep-item a {
  color: var(--text-soft);
  font-size: 13.5px;
  padding: 8px 0;
  flex: 1;
}

.ep-item a:hover { color: var(--accent); }

.ep-num {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ===================== halaman nonton ===================== */

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 22px;
  align-items: start;
}

.watch-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.nav-ep {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.nav-ep:hover { color: var(--accent); border-color: var(--accent); }
.nav-ep.all { flex: 1; text-align: center; }
.nav-ep.disabled { opacity: 0.4; pointer-events: none; }

.watch-main .page-title { margin-bottom: 4px; font-size: 18px; }
.watch-meta { font-size: 12.5px; color: var(--muted-2); margin-bottom: 12px; }

.player-cinema {
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.player-cinema video, .player-cinema iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.player-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  line-height: 2;
}

.player-status {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 8px;
  min-height: 18px;
}

/* panel kualitas/server */

.quality-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 14px;
}

.qp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.qp-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-soft); }
.qp-hint { font-size: 11px; color: var(--muted-2); }

.qp-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.qp-row:last-child { margin-bottom: 0; }

.qp-quality {
  flex: 0 0 46px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 5px;
}

.qp-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.qp-btn {
  font-size: 12px;
  font-family: inherit;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 5px 11px;
  cursor: pointer;
}

.qp-btn:hover { color: var(--accent); border-color: var(--accent); }
.qp-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* sidebar episode */

.side-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 9px; }

.watch-side .side-head { border-bottom: 1px dashed var(--border-2); padding-bottom: 7px; }

.side-episodes {
  max-height: 540px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}

.side-episodes::-webkit-scrollbar { width: 8px; }
.side-episodes::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.side-ep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.side-ep:last-child { border-bottom: none; }
.side-ep:hover { color: var(--text); background: var(--surface-2); }

.side-ep.current {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.side-ep .ep-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-ep .now { font-size: 10px; }

/* ===================== jadwal tayang ===================== */

.jadwal-page { padding-bottom: 96px; }

.jd-title {
  margin: 12px 0 3px;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.jd-sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* strip pilih hari */

.jd-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 12px 6px 16px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.jd-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.jd-day .lbl { font-size: 12px; color: var(--muted); }

.jd-day .num {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: 12px;
  transition: background 0.12s ease;
}

.jd-day:hover .num { background: var(--surface-2); }

.jd-day.sel .lbl { color: var(--text); }
.jd-day.sel .num {
  background: #1f8bff;
  color: #fff;
  box-shadow: 0 5px 16px rgba(31, 139, 255, 0.35);
}

.jd-day.today:not(.sel) .num::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #1f8bff;
}

/* kartu jadwal */

.jd-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #232226;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px 13px 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.jd-card::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 99px;
  background: #f2c94c;
}

.jd-time {
  flex: 0 0 56px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.jd-poster {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}

.jd-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd-info {
  flex: 1;
  min-width: 0;
}

.jd-info h4 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jd-eps { font-size: 13px; color: var(--muted); margin-bottom: 5px; }

.jd-rate {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.jd-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.jd-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.jd-status.done { color: #f2c94c; }
.jd-status.done .dot { background: #f2c94c; }
.jd-status.wait { color: var(--muted); }
.jd-status.wait .dot { background: var(--muted-2); }

/* tombol hari sebelumnya/berikutnya (melayang) */

.jd-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  pointer-events: none;
  z-index: 40;
}

.jd-float[hidden] { display: none; }

.jd-float button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #232226;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.jd-float button:hover { border-color: #1f8bff; color: #fff; }

.jd-float .ar { font-size: 16px; line-height: 1; }

@media (max-width: 560px) {
  .jd-week { padding: 10px 2px 14px; border-radius: 8px; }
  .jd-day .num { width: 30px; height: 30px; font-size: 14px; border-radius: 10px; }
  .jd-title { font-size: 21px; }
  .jd-card { gap: 11px; padding-left: 21px; border-radius: 12px; }
  .jd-poster { flex-basis: 58px; width: 58px; }
  .jd-time { flex-basis: 46px; font-size: 15px; }
  .jd-info h4 { font-size: 13.5px; }
  .jd-float button { padding: 10px 16px; font-size: 13.5px; }
}

/* ===================== form ===================== */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 720px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-soft);
}

.req { color: var(--accent); }

.form-group input[type="text"], .form-group input[type="password"], .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  padding: 8px 10px;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }

.form-group textarea { min-height: 92px; resize: vertical; }

.hint { font-size: 12px; color: var(--muted-2); margin-top: 5px; line-height: 1.55; }

.ep-row {
  display: grid;
  grid-template-columns: 1fr 88px 2fr 34px;
  gap: 8px;
  margin-bottom: 8px;
}

.ep-row input, .ep-row select {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
  padding: 6px 8px;
  outline: none;
}

.ep-row input:focus, .ep-row select:focus { border-color: var(--accent); }

.btn-row { display: flex; gap: 10px; margin-top: 18px; }

/* ===================== gerbang admin ===================== */

.gate-box {
  max-width: 430px;
  margin: 46px auto 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}

.gate-box h2 { margin: 0 0 8px; font-size: 18px; }
.gate-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.gate-form { display: flex; gap: 8px; margin-bottom: 10px; }

.gate-form input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  padding: 8px 10px;
  outline: none;
  font-family: inherit;
}

.gate-form input:focus { border-color: var(--accent); }

.gate-hint { font-size: 11.5px; color: var(--muted-2); margin: 4px 0 0; }

/* ===================== footer ===================== */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding: 22px 0 30px;
}

.f-brand { font-weight: 700; font-size: 14px; margin: 0 0 6px; }

.f-note {
  font-size: 12px;
  color: var(--muted-2);
  max-width: 660px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.f-copy { font-size: 12px; color: var(--muted-2); margin: 0; }

/* ===================== responsif ===================== */

@media (max-width: 980px) {
  .home-cols { grid-template-columns: 1fr; }
  .home-side { order: 2; }
  .watch-layout { grid-template-columns: 1fr; }
  .anime-header { flex-direction: column; }
  .anime-poster { flex: none; max-width: 190px; }
}

@media (max-width: 760px) {
  /* header 2 baris: baris 1 logo + kolom cari, baris 2 menu penuh.
     Dulu menu & cari dipaksa satu baris sehingga "Beranda" ketindih search */
  .header-inner { gap: 10px 12px; }
  .search-box { order: 2; flex: 1; min-width: 0; }
  .search-box input { width: auto; flex: 1; min-width: 0; }
  .main-nav { order: 3; flex-basis: 100%; margin-top: 1px; }
  .main-nav a { padding: 7px 11px; }
}

@media (max-width: 560px) {
  .grid-anime { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px 10px; }
  .ep-row { grid-template-columns: 1fr 74px 1.6fr 30px; }
  .form-panel { padding: 15px; }
  .gate-box { margin: 26px auto 10px; padding: 20px; }
}

/* ---------- banner konfigurasi backend belum diatur ---------- */
.cfg-warn {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #3a2418;
  border: 1px solid #c9563b;
  color: #ffd9cd;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cfg-warn b { color: #ff9a7d; }
.cfg-warn code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.cfg-warn button {
  margin-left: auto;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd9cd;
  font-size: 15px;
  cursor: pointer;
}
.cfg-warn button:hover { background: rgba(255, 255, 255, 0.2); }
