/* ============================================================================
 * DongHuaKu — style.css (paket shared-hosting)
 * CSS murni (tanpa framework). Tema gelap, responsif mobile + desktop.
 * ========================================================================== */
:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel2: #111c33;
  --line: rgba(255, 255, 255, 0.1);
  --txt: #e2e8f0;
  --mut: #94a3b8;
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.15);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --amber: #fbbf24;
  --green: #34d399;
  --grad: linear-gradient(135deg, #f43f5e, #f97316);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #2563eb);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: 60vh; padding-top: 20px; padding-bottom: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.logo .mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad); box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35);
}
.logo .mark svg { width: 17px; height: 17px; fill: #fff; }
.logo em { font-style: normal; background: linear-gradient(90deg, #fb7185, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mainnav { display: none; gap: 4px; margin-left: 10px; }
.mainnav a { padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #cbd5e1; }
.mainnav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mainnav a.active { background: var(--rose-soft); color: #fda4af; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.searchbox { position: relative; display: none; }
.searchbox input {
  width: 230px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 11px; color: #fff; padding: 10px 12px 10px 36px; font-size: 14px; outline: none;
}
.searchbox input:focus { border-color: var(--rose); background: rgba(255,255,255,0.08); }
.searchbox svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: #64748b; fill: none; stroke-width: 2; }
.iconbtn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: #cbd5e1; cursor: pointer;
}
.iconbtn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; }
.mobile-menu.open { display: block; }
.mobile-menu .searchbox { display: block; margin-bottom: 10px; }
.mobile-menu .searchbox input { width: 100%; }
.mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu nav a { background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.mobile-menu nav a.active { background: var(--rose-soft); color: #fda4af; border-color: rgba(244,63,94,0.35); }

/* ---------- Tombol, badge, pill ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--txt); border-radius: 12px;
  padding: 10px 18px; font-size: 14px; font-weight: 800; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,0.1); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 22px rgba(244,63,94,0.3); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-cyan { background: var(--grad-cyan); border: none; color: #fff; box-shadow: 0 8px 22px rgba(6,182,214,0.3); }
.btn-cyan:hover { filter: brightness(1.1); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 7px; background: rgba(0,0,0,0.7); color: #e2e8f0;
}
.badge.rose { background: rgba(244,63,94,0.92); color: #fff; }
.badge.cyan { background: rgba(6,182,214,0.92); color: #fff; }
.badge.amber { color: var(--amber); }
.badge.green { background: rgba(52,211,153,0.15); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  color: #cbd5e1; border-radius: 11px; padding: 8px 16px; font-size: 14px; font-weight: 800; cursor: pointer;
}
.pill:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pill.active { background: var(--rose); border-color: var(--rose); color: #fff; box-shadow: 0 6px 18px rgba(244,63,94,0.3); }
.pill.active.cyan { background: #0891b2; border-color: #0891b2; box-shadow: 0 6px 18px rgba(6,182,214,0.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line); min-height: 320px; display: flex; align-items: flex-end;
}
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(2,6,23,0.97) 20%, rgba(2,6,23,0.6)), linear-gradient(to top, #020617 5%, transparent 60%); }
.hero .inner { position: relative; padding: 24px; max-width: 640px; }
.hero .kicker { font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); }
.hero h1 { margin: 8px 0; font-size: 26px; line-height: 1.2; font-weight: 900; }
.hero .score { color: var(--amber); font-weight: 800; font-size: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero .dots { display: flex; gap: 6px; margin-top: 16px; align-items: center; }
.hero .dots button { height: 6px; width: 12px; border-radius: 99px; border: none; background: rgba(255,255,255,0.3); cursor: pointer; padding: 0; }
.hero .dots button.on { width: 32px; background: var(--rose); }
.hero .nav { display: flex; gap: 6px; margin-top: 16px; }
.hero .foot { display: flex; align-items: center; gap: 12px; }

/* ---------- Pindah server ---------- */
.server-switch {
  margin: 0 0 24px; padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(30,41,59,.96), rgba(15,23,42,.96));
  border: 1px solid rgba(148,163,184,.2); box-shadow: 0 12px 30px rgba(0,0,0,.16);
}
.server-switch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.server-switch-head h2 { margin: 2px 0 1px; font-size: 18px; font-weight: 900; }
.server-switch-head p { margin: 0; color: var(--mut); font-size: 12px; }
.server-switch-kicker { color: #67e8f9; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
.server-switch-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; color: #fff; font-size: 23px; background: var(--grad-cyan); }
.server-switch-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.server-option { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); transition: .2s ease; }
.server-option:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.7); background: rgba(34,211,238,.1); }
.server-option-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.server-option b, .server-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-option b { color: #f8fafc; font-size: 13px; }
.server-option small { margin-top: 2px; color: var(--mut); font-size: 10px; }
.server-arrow { margin-left: auto; color: #67e8f9; font-size: 22px; line-height: 1; }
.server-donghua .server-option-dot { background: #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.12); }
.creator-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.creator-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 13px; border: 1px solid rgba(244,63,94,.35); border-radius: 11px; background: rgba(244,63,94,.13); color: #fecdd3; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.creator-btn:hover { background: rgba(244,63,94,.25); color: #fff; }
.admin-btn { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.1); color: #a5f3fc; }
.admin-btn:hover { background: rgba(34,211,238,.2); }
.modal-open { overflow: hidden; }
.qris-modal[hidden] { display: none; }
.qris-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.qris-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.qris-card { position: relative; width: min(100%, 390px); max-height: calc(100vh - 32px); overflow: auto; padding: 23px 18px 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: #0f172a; box-shadow: 0 24px 80px rgba(0,0,0,.5); text-align: center; }
.qris-card h2 { margin: 5px 0 4px; font-size: 21px; }
.qris-card p { margin: 0 0 15px; color: var(--mut); font-size: 13px; }
.qris-close { position: absolute; top: 9px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #cbd5e1; font-size: 24px; line-height: 1; cursor: pointer; }
.qris-image-wrap { display: grid; place-items: center; min-height: 210px; padding: 10px; border-radius: 14px; background: #fff; }
.qris-image-wrap img { display: block; width: min(100%, 300px); max-height: 380px; object-fit: contain; border-radius: 8px; }
.qris-fallback { padding: 22px 8px; color: #334155; font-size: 13px; }
.qris-fallback a { color: #e11d48; font-weight: 800; }
.qris-open { margin-top: 14px; width: 100%; justify-content: center; }

/* ---------- Baris & kartu ---------- */
.sec { margin-top: 32px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 19px; font-weight: 900; }
.sec-head p { margin: 2px 0 0; font-size: 13px; color: var(--mut); }
.sec-head .more { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #fda4af; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; }
.sec-head .more:hover { background: var(--rose); color: #fff; }
.row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.row > * { flex: 0 0 150px; }
.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(244,63,94,0.6); }
.card.cyan:hover { border-color: rgba(34,211,238,0.6); }
.card .thumb { position: relative; aspect-ratio: 3/4; background: #1e293b; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .tags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.card .time {
  position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px);
  font-size: 11px; background: rgba(0,0,0,0.72); border-radius: 7px; padding: 3px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .cap { padding: 10px; }
.card .cap h3 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.top10 { position: relative; flex: 0 0 300px !important; height: 168px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.top10 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.top10 .shade { position: absolute; inset: 0; background: linear-gradient(to top, #000 10%, rgba(0,0,0,0.35), transparent); }
.top10 .rank { position: absolute; left: 4px; bottom: -16px; font-size: 92px; font-weight: 900; line-height: 1; color: rgba(255,255,255,0.92); -webkit-text-stroke: 2px rgba(244,63,94,0.9); }
.top10 .cap2 { position: relative; margin-left: 64px; padding: 12px; }
.top10 .cap2 h3 { margin: 0; font-size: 14px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top10 .cap2 .score { color: var(--amber); font-size: 12px; font-weight: 800; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.pager .cur { background: var(--rose-soft); border: 1px solid rgba(244,63,94,0.35); color: #fda4af; font-weight: 900; font-size: 14px; border-radius: 11px; padding: 9px 18px; }

/* ---------- Status ---------- */
.state { max-width: 440px; margin: 40px auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px 24px; }
.state h3 { margin: 12px 0 4px; font-size: 17px; }
.state p { margin: 0; color: var(--mut); font-size: 14px; }
.state .btn { margin-top: 16px; }
.skel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.skel { border-radius: var(--radius); background: linear-gradient(100deg, #0f172a 40%, #1e293b 50%, #0f172a 60%); background-size: 200% 100%; animation: sh 1.3s infinite; aspect-ratio: 3/4; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Halaman judul ---------- */
.page-title { margin: 6px 0 0; font-size: 24px; font-weight: 900; }
.page-desc { margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.toolbar input[type="text"], .toolbar input[type="search"] {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 11px;
  color: #fff; padding: 9px 13px; font-size: 14px; outline: none; min-width: 0;
}
.toolbar input:focus { border-color: var(--rose); }

/* ---------- Detail ---------- */
.detail-head { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.detail-head .blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; filter: blur(24px); }
.detail-head .shade { position: absolute; inset: 0; background: rgba(2,6,23,0.6); }
.detail-head .inner { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.detail-head .poster { width: 200px; border-radius: 13px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.detail-head h1 { margin: 10px 0 0; font-size: 22px; line-height: 1.25; font-weight: 900; }
.detail-head .alt { color: var(--mut); font-size: 13px; margin-top: 4px; }
.detail-head .flags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-head .genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-head .genres a, .detail-head .genres span {
  font-size: 12px; font-weight: 800; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: #fda4af;
}
.detail-head .genres.cy a, .detail-head .genres.cy span { color: #67e8f9; }
.detail-head .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cols { display: grid; gap: 16px; margin-top: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.panel h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; }
.panel dl { margin: 0; display: grid; gap: 9px; font-size: 14px; }
.panel dl div { display: flex; gap: 10px; }
.panel dt { width: 110px; flex-shrink: 0; color: #64748b; }
.panel dd { margin: 0; font-weight: 600; }
.panel .syn { font-size: 14px; color: #cbd5e1; }
.panel .syn p { margin: 0 0 10px; }
.epgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.epgrid a {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 6px; text-align: center; font-weight: 900; font-size: 14px;
}
.epgrid a:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.epgrid.cy a:hover { background: #0891b2; border-color: #0891b2; }
.eplist { display: grid; gap: 8px; margin-top: 12px; }
.eplist a { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px; font-size: 14px; font-weight: 700; }
.eplist a:hover, .eplist a.on { border-color: rgba(34,211,238,0.5); color: #a5f3fc; }
.eplist a.on { background: var(--cyan-soft); }
.batchlinks { display: grid; gap: 8px; margin-top: 12px; }
.batchlinks a { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px; font-size: 14px; font-weight: 700; }
.batchlinks a:hover { border-color: rgba(244,63,94,0.5); color: #fecdd3; }

/* ---------- Nonton ---------- */
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--mut); }
.backlink:hover { color: #fda4af; }
.watch-title { margin: 8px 0 0; font-size: 20px; font-weight: 900; }
.watch-sub { color: #64748b; font-size: 12px; margin-top: 2px; }
.player { margin-top: 14px; background: #000; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .none { height: 100%; display: grid; place-items: center; color: #64748b; font-size: 14px; }
.prevnext { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.prevnext .spacer { flex: 1; }
.srvgroup { margin-top: 12px; }
.srvgroup h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #64748b; }
.srvgroup .list { display: flex; flex-wrap: wrap; gap: 7px; }
.srvbtn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--txt);
  border-radius: 9px; padding: 8px 13px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.srvbtn:hover { background: rgba(255,255,255,0.1); }
.srvbtn.on { background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.45); color: var(--green); }
.srvbtn:disabled { opacity: 0.55; cursor: wait; }
details.dl { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
details.dl summary { cursor: pointer; padding: 12px 15px; font-weight: 800; font-size: 14px; list-style: none; }
details.dl summary::-webkit-details-marker { display: none; }
details.dl .body { padding: 0 15px 15px; display: grid; gap: 10px; }
details.dl .q { font-size: 12px; font-weight: 800; color: var(--mut); margin-bottom: 5px; }
details.dl .links { display: flex; flex-wrap: wrap; gap: 6px; }
details.dl .links a { font-size: 12px; font-weight: 800; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; color: #67e8f9; }
details.dl .links a:hover { background: rgba(34,211,238,0.18); }

/* ---------- Jadwal ---------- */
.daypills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-top: 14px; scrollbar-width: none; }
.daypills::-webkit-scrollbar { display: none; }
.sched-grid { display: grid; gap: 10px; margin-top: 14px; }
.sched-item { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 12px; }
.sched-item:hover { border-color: rgba(244,63,94,0.5); }
.sched-item img { width: 64px; height: 88px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.sched-item h3 { margin: 0; font-size: 14px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sched-item .m { font-size: 12px; color: var(--mut); margin-top: 4px; }

/* ---------- Genre chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a, .chips span { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 16px; font-size: 14px; font-weight: 700; }
.chips a:hover { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ---------- Form pencarian ---------- */
.bigsearch { position: relative; margin-top: 14px; }
.bigsearch input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  color: #fff; padding: 14px 16px 14px 46px; font-size: 15px; outline: none;
}
.bigsearch input:focus { border-color: var(--rose); }
.bigsearch svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; stroke: #64748b; fill: none; stroke-width: 2; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: #01040f; }
.site-footer .cols2 { display: grid; gap: 26px; padding: 36px 0; }
.site-footer p { color: var(--mut); font-size: 13px; max-width: 520px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer ul a { color: var(--mut); }
.site-footer ul a:hover { color: #fda4af; }
.site-footer .copy { border-top: 1px solid var(--line); padding: 16px 0 90px; text-align: center; font-size: 12px; color: #475569; }

/* ---------- Navigasi mobile ---------- */
body {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.mobilenav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 9999;

  display: grid;
  grid-template-columns: repeat(5, 1fr);

  background: rgba(2, 6, 23, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.mobilenav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.mobilenav a.active {
  color: #fb7185;
}

/* ---------- Responsif ---------- */
@media (max-width: 639px) {
  .server-switch { padding: 14px; }
  .server-switch-list { grid-template-columns: 1fr; }
  .server-option { padding: 12px 11px; }
}
@media (min-width: 640px) {
  .grid, .skel-grid { grid-template-columns: repeat(3, 1fr); }
  .row > * { flex-basis: 165px; }
  .epgrid { grid-template-columns: repeat(6, 1fr); }
  .hero h1 { font-size: 32px; }
  .searchbox { display: block; }
}
@media (min-width: 900px) {
  .mainnav { display: flex; }
  #btn-menu { display: none; }
  .mobile-menu.open { display: none; }
  .grid, .skel-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .detail-head .inner { flex-direction: row; padding: 26px; }
  .detail-head h1 { font-size: 28px; }
  .cols { grid-template-columns: 1fr 2fr; }
  .cols.even { grid-template-columns: 1fr 1fr; }
  .sched-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols2 { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer .copy { padding-bottom: 16px; }
  .mobilenav { display: none; }
}
@media (min-width: 1200px) {
  .grid, .skel-grid { grid-template-columns: repeat(6, 1fr); }
  .row > * { flex-basis: 176px; }
  .epgrid { grid-template-columns: repeat(10, 1fr); }
}
