/* Ladang Cerdas: tampilan */

:root {
  --latar: #f1f6ea;
  --latar-sinar: #d9eecb;
  --kartu: #ffffff;
  --kartu-lembut: #f7faf2;
  --tinta: #13241a;
  --redup: #536657;
  --garis: rgba(19, 36, 26, 0.09);
  --hijau: #2a7d38;
  --hijau-tua: #164f26;
  --hijau-terang: #2a7d38;
  --gandum: #e9a23b;
  --bayangan: 0 1px 2px rgba(19, 36, 26, 0.05), 0 10px 28px rgba(30, 80, 40, 0.09);
  --sudut: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --latar: #0c150f;
    --latar-sinar: #173520;
    --kartu: #142019;
    --kartu-lembut: #18271d;
    --tinta: #e7f1e4;
    --redup: #9db3a1;
    --garis: rgba(231, 241, 228, 0.09);
    --hijau-terang: #6cc77a;
    --bayangan: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tinta);
  background:
    radial-gradient(900px 480px at 50% -160px, var(--latar-sinar), transparent 72%),
    var(--latar);
  background-repeat: no-repeat;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gandum);
  outline-offset: 3px;
  border-radius: 10px;
}

.wadah {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* ---------- Bar atas ---------- */

.atas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 18px;
}

.merek {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--redup);
  padding: 6px 4px;
}

.merek:hover {
  color: var(--tinta);
}

.bagikan {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--kartu);
  color: var(--tinta);
  box-shadow: var(--bayangan);
  cursor: pointer;
}

.bagikan svg {
  width: 20px;
  height: 20px;
}

/* ---------- Profil ---------- */

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--kartu);
  box-shadow: var(--bayangan);
  background: var(--kartu);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tagline {
  margin: 0 auto 14px;
  max-width: 34ch;
  color: var(--redup);
  font-size: 16px;
}

.lencana {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  background: var(--kartu);
  box-shadow: var(--bayangan);
  font-size: 13px;
  font-weight: 700;
}

.lencana .ikon {
  color: var(--hijau-terang);
}

/* ---------- Umum ---------- */

.ikon {
  display: inline-grid;
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.ikon svg {
  width: 100%;
  height: 100%;
}

section {
  margin-bottom: 30px;
}

.label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--redup);
}

.daftar {
  display: grid;
  gap: 12px;
}

.kartu {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--sudut);
  background: var(--kartu);
  box-shadow: var(--bayangan);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.kartu:hover {
  transform: translateY(-2px);
}

a.kartu:active {
  transform: translateY(0) scale(0.99);
}

.teks {
  display: grid;
  flex: 1;
  min-width: 0;
}

.teks strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.handle {
  color: var(--redup);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Logo platform ---------- */

.logo-platform {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
}

.logo-platform svg {
  width: 46%;
  height: 46%;
}

.logo-platform.kecil {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.lp-tiktok {
  background: #111;
}

.lp-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.lp-youtube {
  background: #ff0033;
}

.lp-youtube svg {
  width: 54%;
  height: 54%;
}

.lp-facebook {
  background: #1877f2;
}

.lp-facebook svg {
  width: 60%;
  height: 60%;
}

/* ---------- Tombol ---------- */

.tombol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.tombol.besar {
  padding: 12px 20px;
  font-size: 15px;
}

a.tombol:hover {
  filter: brightness(1.08);
}

/* ---------- Catatan ---------- */

.catatan {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--kartu-lembut);
  border: 1px solid var(--garis);
  color: var(--redup);
  font-size: 14px;
}

.catatan .ikon {
  margin-top: 2px;
  color: var(--hijau-terang);
}

/* ---------- Episode ---------- */

.episode {
  padding: 10px 16px 10px 10px;
}

.thumb {
  position: relative;
  flex: none;
  width: 58px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--kartu-lembut);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-kosong {
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--hijau-terang), var(--hijau-tua));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.thumb-kosong small {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.nomor {
  font-size: 13px;
  font-weight: 700;
  color: var(--hijau-terang);
}

.ikon.panah {
  color: var(--hijau-terang);
  width: 20px;
  height: 20px;
}

.lihat-semua {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--hijau-terang);
  text-decoration: none;
}

/* ---------- Statistik ---------- */

.statistik {
  display: block;
  padding: 24px 18px 20px;
  text-align: center;
}

.statistik .label {
  margin-bottom: 4px;
}

.total {
  margin: 0;
  font-size: clamp(44px, 13vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--hijau-tua);
}

.total .satuan {
  color: var(--hijau-terang);
}

@media (prefers-color-scheme: dark) {
  .total {
    color: var(--tinta);
  }
}

.sub {
  margin: 4px 0 18px;
  color: var(--redup);
  font-size: 14px;
}

.bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
}

.bar > span {
  flex: 1 1 0;
  min-width: 6px;
}

.bar .lp-tiktok,
.legenda .lp-tiktok {
  background: var(--tinta);
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--redup);
}

.legenda li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.titik {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.populer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.populer a {
  position: relative;
  display: block;
  aspect-ratio: 9 / 14;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hijau-terang), var(--hijau-tua));
  text-decoration: none;
}

.populer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.populer-judul {
  display: block;
  padding: 10px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.views {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #13241a;
  font-size: 12px;
  font-weight: 800;
}

.diperbarui {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--redup);
}

/* ---------- Dukung (Saweria) ---------- */

.dukung {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  border-radius: var(--sudut);
  background: linear-gradient(135deg, var(--kartu) 0%, var(--kartu-lembut) 100%);
  border: 1px solid var(--garis);
  box-shadow: var(--bayangan);
}

.dukung .hati {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff2df;
  color: #e0565b;
}

.dukung .hati svg {
  width: 24px;
  height: 24px;
}

.dukung h2 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.dukung p {
  margin: 0 0 14px;
  color: var(--redup);
  font-size: 14px;
}

/* ---------- Halaman episode ---------- */

.video {
  margin: 0 auto 22px;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--bayangan);
  aspect-ratio: 16 / 9;
}

.video.vertikal {
  max-width: 340px;
  aspect-ratio: 9 / 16;
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.putar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.putar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lingkar-putar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hijau);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.lingkar-putar svg {
  width: 34px;
  height: 34px;
}

.putar:hover .lingkar-putar {
  transform: scale(1.06);
}

.video-gambar {
  max-width: 340px;
  margin: 0 auto 22px;
  border-radius: 26px;
  box-shadow: var(--bayangan);
}

.pil {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--kartu);
  box-shadow: var(--bayangan);
  font-size: 13px;
  font-weight: 700;
  color: var(--hijau-terang);
}

.judul-episode,
.judul-halaman {
  margin: 0 0 10px;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--redup);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: var(--kartu);
  box-shadow: var(--bayangan);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.isi h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.isi p,
.isi li {
  font-size: 16px;
}

.isi p {
  margin: 0 0 12px;
}

.isi ul,
.isi ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.isi li {
  margin-bottom: 6px;
}

.sumber li {
  font-size: 15px;
  color: var(--redup);
}

.sumber a {
  color: var(--hijau-terang);
  text-underline-offset: 3px;
  word-break: break-word;
}

.sumber h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.sumber h3:first-of-type {
  margin-top: 4px;
}

.sumber .situs {
  font-size: 13px;
}

/* ---------- Kaki & notifikasi ---------- */

.kaki {
  text-align: center;
  color: var(--redup);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--latar);
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.muncul {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
