/* css/feed.css
   Beranda Langkatalk: header, kategori, kartu gaya Instagram, panel suka dan komentar.
   Versi bersih. HP: 1 kolom. Tablet: 2 kolom. PC: 4 kolom. */

/* ---------- Header ---------- */
.lk-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--lk-kaca-garis);
}
.lk-logo { display: flex; align-items: center; gap: 8px; color: var(--lk-teks); }
.lk-logo img { width: 28px; height: 28px; border-radius: 6px; }
.lk-logo b {
  display: block;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  line-height: 1.05;
  background: linear-gradient(90deg, #7A3FE0, #5B78F2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lk-logo small { display: block; font-size: 10px; color: var(--lk-muted); }
.btn-kecil { min-height: 40px; padding: 0 14px; font-size: 13px; }

/* ---------- Kategori ---------- */
.lk-chips {
  position: sticky;
  top: 56px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  background: rgba(243, 240, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lk-chips::-webkit-scrollbar { display: none; }
.chip-kat {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--lk-body);
  cursor: pointer;
}
.chip-kat.on {
  background: var(--lk-grad-tombol);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 63, 224, 0.24);
}

/* ---------- Daftar kartu (HP: 1 kolom) ---------- */
.lk-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 560px;
  margin: 14px auto 0;
  padding: 0 12px 8px;
}
/* Gradasi lembut di belakang kartu agar efek blur kaca terlihat tanpa membebani HP */
body::before {
  content: "";
  position: fixed;
  inset: -12% -8% auto -8%;
  height: 68vh;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 154, 85, 0.22), transparent 55%),
    radial-gradient(circle at 82% 16%, rgba(125, 165, 255, 0.18), transparent 52%),
    radial-gradient(circle at 50% 65%, rgba(255, 214, 175, 0.2), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.ig-kartu {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(95, 63, 200, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: munculNaik 220ms ease both;
}
@keyframes munculNaik {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Kepala kartu */
.ig-kepala { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-info { min-width: 0; flex: 1; }
.ig-info b { display: block; font-size: 13px; color: var(--lk-teks); }
.ig-info small { font-size: 11px; color: var(--lk-muted); }
.av {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lk-grad-tombol);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lencana {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lk-jingga);
  color: var(--lk-navy);
  font-size: 10px;
  font-weight: 800;
}

/* Gambar: selalu 2:1 (1200 x 600) */
.ig-media {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--lk-grad-brand);
  overflow: hidden;
}
.ig-gambar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ig-media-kosong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

/* Ikon aksi minimalis */
.ig-aksi { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.ig-ikon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lk-teks);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ig-ikon:active { transform: scale(0.9); }
.ig-ikon:disabled { opacity: 0.5; }
.ig-ikon.suka.aktif { color: #E11D48; }
.ig-ikon.suka.aktif svg { fill: currentColor; }
.ig-ikon.ig-simpan { margin-left: auto; }
.ig-ikon.ig-simpan.aktif { color: var(--lk-ungu); }
.ig-ikon.ig-simpan.aktif svg { fill: currentColor; }

/* Isi di bawah ikon */
.ig-isi { padding: 6px 14px 14px; }
.ig-jumlah { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--lk-teks); }
.ig-judul {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--lk-teks);
  margin: 0;
}
.ig-judul a { color: inherit; }
.ig-desk {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lk-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-lihat {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--lk-muted);
  cursor: pointer;
}

/* ---------- Status, notifikasi, footer ---------- */
.lk-sentinel { height: 1px; }
.lk-status {
  text-align: center;
  font-size: 13px;
  color: var(--lk-muted);
  padding: 16px;
  min-height: 24px;
}
.lk-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--lk-malam);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  max-width: 90vw;
  text-align: center;
  transition: 200ms ease;
  z-index: 80;
}
.lk-toast.on { opacity: 1; transform: translate(-50%, 0); }

.lk-footer {
  max-width: 560px;
  margin: 28px auto 24px;
  padding: 16px;
  border-top: 1px solid var(--lk-garis);
  font-size: 12px;
  color: var(--lk-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.lk-footer-link { display: flex; gap: 14px; }
.lk-footer-link a { color: var(--lk-teks); font-weight: 700; }

/* ---------- Panel bawah (suka dan komentar) ---------- */
.lk-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(13, 10, 44, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 60;
}
.lk-sheet-bg.on { opacity: 1; pointer-events: auto; }

.lk-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 61;
}
.lk-sheet.on { transform: translateY(0); }

.lk-grip {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: var(--lk-garis);
  margin: 0 auto 12px;
}
.sh-judul {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--lk-teks);
  margin: 0 0 4px;
}
.sh-catatan { font-size: 12.5px; color: var(--lk-muted); margin: 8px 0; line-height: 1.5; }
.sh-form { margin-top: 8px; }
.sh-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lk-teks);
  margin-bottom: 10px;
}
.sh-label input,
.sh-label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--lk-garis);
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--lk-teks);
  background: #fff;
}
.sh-label textarea { min-height: 90px; resize: vertical; }
.sh-label input:focus,
.sh-label textarea:focus {
  outline: none;
  border-color: #5F6FEE;
  box-shadow: 0 0 0 4px rgba(95, 111, 238, 0.16);
}
.sh-err { min-height: 18px; color: #B91C1C; font-size: 13px; font-weight: 600; margin: 6px 0 0; }
.sh-tombol { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn-tutup {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--lk-garis);
  background: #fff;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--lk-teks);
  cursor: pointer;
}
.k-list { max-height: 220px; overflow-y: auto; margin: 6px 0 4px; }
.k-item { padding: 9px 0; border-bottom: 1px solid var(--lk-garis); font-size: 14px; }
.k-item small { color: var(--lk-muted); margin-left: 6px; }
.k-item p { margin: 4px 0 0; color: var(--lk-body); white-space: pre-wrap; }

/* ---------- Tablet (768 s.d. 1023 px): 2 kolom ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .lk-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    gap: 16px;
  }
  .lk-footer { max-width: 760px; }
  .lk-sheet { max-width: 560px; margin: 0 auto; border-radius: 24px; }
}

/* ---------- PC (1024 px ke atas): 4 kolom ---------- */
@media (min-width: 1024px) {
  .lk-header,
  .lk-chips { padding-left: 32px; padding-right: 32px; }

  .lk-feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1240px;
    gap: 20px;
    padding: 0 32px 8px;
    align-items: start;
  }
  .lk-footer { max-width: 1240px; padding: 16px 32px; }

  .ig-judul { font-size: 15px; }
  .ig-kepala { padding: 10px 12px; }
  .ig-isi { padding: 6px 12px 12px; }
  .lk-sheet { max-width: 560px; margin: 0 auto; border-radius: 24px; }
}
/* ===== Kartu beranda: kaca + bayangan tipis, keterangan foto, foto penulis ===== */
.ig-media { position: relative; }

/* Keterangan foto: kotak putih kecil di pojok kiri bawah gambar */
.ig-keterangan {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lk-body);
  font-size: 10px;
  font-style: italic;
  line-height: 1.3;
  pointer-events: none;
}

/* Foto penulis di bulatan kepala kartu */
.av-foto {
  object-fit: cover;
  background: var(--lk-lavender);
}
/* ===== Breaking news: slideshow di atas feed ===== */
.lk-breaking {
  max-width: 1240px;
  margin: 14px auto 0;
  padding: 0 12px;
}
.lk-bk-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #DC2626, #F43F5E);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
  margin-bottom: 10px;
}
.lk-bk-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 22px;
}
.lk-bk-track::-webkit-scrollbar { display: none; }
.lk-bk-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--lk-navy);
  color: #fff;
  box-shadow: var(--lk-bayangan);
}
.lk-bk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}
.lk-bk-slide:hover img { transform: scale(1.03); }
.lk-bk-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 10, 44, 0.92) 0%, rgba(13, 10, 44, 0.35) 55%, rgba(13, 10, 44, 0) 100%);
}
.lk-bk-isi {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
}
.lk-bk-kat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FF9A55;
  color: #161133;
  margin-bottom: 8px;
}
.lk-bk-isi h2 {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lk-bk-isi p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lk-bk-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.lk-bk-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(95, 63, 200, 0.25);
  cursor: pointer;
  transition: width 240ms ease, background 240ms ease;
}
.lk-bk-dot.on {
  width: 22px;
  background: var(--lk-grad-tombol);
}
@media (min-width: 1024px) {
  .lk-bk-isi { padding: 26px; }
  .lk-bk-isi h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lk-bk-track { scroll-behavior: auto; }
  .lk-bk-slide img { transition: none; }
}
/* ===== Feed kaca (glassmorphism) dan animasi halus ===== */
.ig-kartu {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(95, 63, 200, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease,
              background 320ms ease;
  will-change: transform;
}
.ig-kartu:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 44px rgba(95, 63, 200, 0.2);
}
.ig-kepala,
.ig-aksi,
.ig-isi { background: transparent; }

.ig-media { border-radius: 0; }
.ig-kartu:hover .ig-gambar { transform: scale(1.025); }
.ig-gambar {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-ikon {
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
              color 220ms ease,
              background 220ms ease;
}
.ig-ikon:hover { background: rgba(124, 63, 224, 0.08); border-radius: 12px; }

.chip-kat { transition: transform 200ms ease, background 240ms ease, box-shadow 240ms ease; }
.chip-kat:hover { transform: translateY(-1px); }

.lk-header,
.lk-chips {
  transition: background 300ms ease, box-shadow 300ms ease;
}

@media (hover: none) {
  .ig-kartu:hover { transform: none; box-shadow: var(--lk-bayangan); }
  .ig-kartu:hover .ig-gambar { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-kartu, .ig-gambar, .ig-ikon, .chip-kat { transition: none; }
  .ig-kartu:hover { transform: none; }
}
/* ===== Iklan beranda ===== */
.ad-slot {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--lk-kaca);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--lk-kaca-garis);
  box-shadow: var(--lk-bayangan);
  animation: munculNaik 300ms ease both;
}
.lk-feed > .ad-slot { grid-column: 1 / -1; }
.ad-luar {
  width: min(1240px, calc(100% - 24px));
  margin: 14px auto;
}
.ad-4-1 { aspect-ratio: 4 / 1; }
.ad-2-1 { aspect-ratio: 2 / 1; }
.ad-manual,
.ad-manual img {
  display: block;
  width: 100%;
  height: 100%;
}
.ad-manual img {
  object-fit: cover;
  transition: transform 600ms ease;
}
.ad-slot:hover .ad-manual img { transform: scale(1.02); }
.ad-google .adsbygoogle { display: block; }
.ad-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(13, 10, 44, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .ad-slot { animation: none; }
  .ad-manual img { transition: none; }
}
/* Animasi tekan, pop suka, dan pantul simpan */
@keyframes lkPopSuka {
  0% { transform: scale(1); }
  45% { transform: scale(1.3); }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes lkPantulSimpan {
  0% { transform: scale(1); }
  40% { transform: scale(1.24) translateY(-3px); }
  75% { transform: scale(0.94); }
  100% { transform: scale(1) translateY(0); }
}

.ig-ikon:active {
  transform: scale(0.86);
}

.ig-ikon.suka.aktif svg {
  animation: lkPopSuka 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-simpan.aktif svg {
  animation: lkPantulSimpan 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ig-ikon,
  .ig-ikon.suka.aktif svg,
  .ig-simpan.aktif svg {
    transition: none;
    animation: none;
  }
}

/* ===== Skeleton shimmer saat memuat berita ===== */
@keyframes lkShimmer {
  0% { background-position: -220% 0; }
  100% { background-position: 220% 0; }
}

.lk-skel-kartu {
  pointer-events: none;
  overflow: hidden;
}

.lk-skel-blok {
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(228, 224, 245, 0.55) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(228, 224, 245, 0.55) 75%
  );
  background-size: 220% 100%;
  animation: lkShimmer 1.35s ease-in-out infinite;
}

.lk-skel-media {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 0;
}

.lk-skel-av {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.lk-skel-baris {
  height: 12px;
  margin-top: 8px;
}

.lk-skel-judul {
  height: 16px;
  width: 82%;
  margin-top: 10px;
}

.lk-skel-pendek {
  width: 45%;
}

@media (prefers-reduced-motion: reduce) {
  .lk-skel-blok {
    animation: none;
  }
}
/* ===== Pencarian: ikon kaca dan panel meluncur ===== */
.cari-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--lk-kaca-garis);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--lk-teks);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(95, 63, 200, 0.12);
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
.cari-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(95, 63, 200, 0.18); }
.cari-btn:active { transform: scale(0.92); }

.cari-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14px;
  background: rgba(13, 10, 44, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.cari-panel.on { opacity: 1; pointer-events: auto; }

.cari-kaca {
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--lk-kaca-garis);
  box-shadow: 0 24px 60px rgba(22, 17, 51, 0.22);
  transform: translateY(-16px) scale(0.98);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}
.cari-panel.on .cari-kaca { transform: translateY(0) scale(1); opacity: 1; }

.cari-baris { display: flex; gap: 8px; align-items: center; }
#cariInput {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--lk-garis);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 16px;
  color: var(--lk-teks);
}
#cariInput:focus {
  outline: none;
  border-color: #5F6FEE;
  box-shadow: 0 0 0 4px rgba(95, 111, 238, 0.16);
}
.cari-tutup {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--lk-garis);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.cari-hasil { overflow-y: auto; display: grid; gap: 8px; }
.cari-info { margin: 8px 0; text-align: center; color: var(--lk-muted); font-size: 14px; }

.cari-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--lk-garis);
  color: var(--lk-teks);
  animation: munculNaik 260ms ease both;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cari-item:hover { transform: translateX(3px); box-shadow: var(--lk-bayangan); }
.cari-item img,
.cari-ph {
  width: 96px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lk-grad-brand);
}
.cari-teks { min-width: 0; }
.cari-teks b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cari-teks small { font-size: 12px; color: var(--lk-muted); }

.cari-kerangka { display: grid; gap: 8px; }
.cari-kerangka span {
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ece8ff 25%, #f8f6ff 50%, #ece8ff 75%);
  background-size: 200% 100%;
  animation: cariKilau 1.3s infinite linear;
}
@keyframes cariKilau {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (min-width: 768px) {
  .cari-panel { padding-top: 10vh; }
}
@media (prefers-reduced-motion: reduce) {
  .cari-panel, .cari-kaca, .cari-item, .cari-btn { transition: none; animation: none; }
  .cari-kerangka span { animation: none; }
}
/* ===== Breaking PC: 1 besar kiri, 2 kecil kanan, tampil sekaligus ===== */
@media (min-width: 1024px) {
  .lk-bk-track {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 420px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .lk-bk-slide {
    flex: none;
    height: 100%;
    aspect-ratio: auto;
  }
  .lk-bk-slide:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .lk-bk-slide:nth-child(2) { grid-column: 2; grid-row: 1; }
  .lk-bk-slide:nth-child(3) { grid-column: 2; grid-row: 2; }
  .lk-bk-slide:not(:first-child) .lk-bk-isi { padding: 14px; }
  .lk-bk-slide:not(:first-child) .lk-bk-isi h2 { font-size: 16px; }
  .lk-bk-slide:not(:first-child) .lk-bk-isi p { display: none; }
  .lk-bk-nav { display: none; }
}
/* ===== Kategori: turun ke bawah, per baris (HP 4, PC 8) ===== */
.lk-chips {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  padding: 10px 12px 4px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.chip-kat {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}
@media (min-width: 1024px) {
  .lk-chips {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .chip-kat {
    min-height: 36px;
    font-size: 13px;
  }
}
/* ===== HP: header muat, foto profil tidak terpotong, halaman tidak bisa digeser ke samping ===== */
body {
  overflow-x: clip;
}
header.lk-header {
  gap: 8px;
  padding-left: 12px;
  padding-right: 12px;
  min-width: 0;
}
.lk-logo {
  min-width: 0;
}
#headerAkun {
  gap: 6px;
}
#headerAkun .btn-kecil {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}
.lk-avatar,
.cari-btn {
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .lk-logo small { display: none; }
  .lk-logo b { font-size: 15px; }
}
/* ===== HP: halaman tidak bisa digeser ke samping ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 1023px) {
  body {
    background-attachment: scroll;
  }
  body::before {
    left: 0;
    right: 0;
    width: 100%;
  }
}
/* ===== Tombol kategori di HP: tulisan rapi, sudut seragam ===== */
.lk-chips {
  padding: 12px 16px 6px;
  gap: 8px;
  align-items: stretch;
}
.chip-kat,
.chip-tambah {
  height: 42px;
  min-height: 42px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(45, 30, 110, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.filter-bar .filter-btn {
  width: 42px;
  height: 42px;
  border-radius: 18px;
}
@media (min-width: 1024px) {
  .chip-kat,
  .chip-tambah { font-size: 13px; }
}
/* ===== Ikon aksi di kartu feed: dibuat lebih kecil ===== */
.ig-aksi { gap: 6px; }
.ig-ikon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ig-ikon svg { width: 18px; height: 18px; }
.ig-jumlah { font-size: 12px; }
/* ===== Menu HP sederhana: Beranda + Menu Kategori ===== */
.menu-hp-bar { display: none; }
.menu-hp-panel { display: none; }

@media (max-width: 700px) {
  .lk-chips { display: none !important; }

  .menu-hp-bar {
    display: flex; gap: 10px; padding: 12px 16px 6px;
  }
  .menu-hp-btn {
    flex: 1; height: 44px; border-radius: 16px;
    border: 1px solid #E4DEFF; background: #fff; color: #1d1640;
    font: 700 14px 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(45,30,110,.06); cursor: pointer;
  }
  .menu-hp-btn.on {
    background: linear-gradient(135deg,#5A2FCF,#2D5CF0); color: #fff; border-color: transparent;
  }

  .menu-hp-panel {
    display: flex; position: fixed; inset: 0; z-index: 90;
    align-items: flex-end; background: rgba(13,10,44,.35);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .menu-hp-panel.on { opacity: 1; pointer-events: auto; }

  .menu-hp-kaca {
    width: 100%; max-height: 75vh; overflow-y: auto;
    background: rgba(255,255,255,.92);
    border-radius: 24px 24px 0 0; padding: 18px 16px 28px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -12px 40px rgba(45,30,110,.2);
  }
  .menu-hp-atas {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
    font: 800 16px 'Sora', sans-serif; color: #1d1640;
  }
  .menu-hp-atas button {
    width: 36px; height: 36px; border-radius: 12px; border: 1px solid #E4DEFF; background: #fff; cursor: pointer;
  }
  .menu-hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .menu-hp-grid button {
    min-height: 44px; padding: 6px 10px; border-radius: 16px;
    border: 1px solid #E4DEFF; background: #fff; color: #1d1640;
    font: 700 13px/1.25 'Plus Jakarta Sans', sans-serif; text-align: center; cursor: pointer;
  }
  .menu-hp-grid button.on {
    background: linear-gradient(135deg,#5A2FCF,#2D5CF0); color: #fff; border-color: transparent;
  }
}
