/* =====================================================================
   halus.css: penyempurnaan animasi (gaya bersih & halus).
   Dimuat SETELAH hub.css. File ini hanya MENAMBAH animasi, tidak mengubah aturan lama.
   Untuk mematikan semuanya: hapus baris <link ... halus.css> di halaman, atau kosongkan file ini.
   Kalau perangkat memakai "kurangi gerakan", gerakan geser/zoom dihilangkan dan tinggal efek muncul pelan.
   ===================================================================== */
:root { --jarak: 18px; --jarak-x: 28px; --skala-awal: .94; }
@media (prefers-reduced-motion: reduce) { :root { --jarak: 0px; --jarak-x: 0px; --skala-awal: 1; } }

/* Properti `translate` dan `scale` (terpisah dari `transform`) dipakai supaya tidak bentrok dengan hover lama yang memakai transform. */
@keyframes halusNaik { from { opacity: 0; translate: 0 var(--jarak); } to { opacity: 1; translate: 0 0; } }
@keyframes halusKanan { from { opacity: 0; translate: var(--jarak-x) 0; } to { opacity: 1; translate: 0 0; } }
@keyframes halusPop { 0% { opacity: 0; scale: var(--skala-awal); } 60% { opacity: 1; scale: 1.025; } 100% { opacity: 1; scale: 1; } }
@keyframes halusMuncul { from { opacity: 0; } to { opacity: 1; } }
@keyframes halusCetak { from { opacity: .3; clip-path: inset(0 0 100% 0 round 14px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 14px); } }
@keyframes halusKilat { to { translate: 120% 0; } }
@keyframes halusPanah { 50% { translate: 5px 0; } }
@keyframes halusGeser { to { translate: 0 -2.5%; } }

/* ---------- 1. Beranda: hero masuk berurutan setelah judul ---------- */
.hero .kicker { animation: halusNaik .7s var(--ease) .05s both; }
.hero .lead { animation: halusNaik .85s var(--ease) .75s both; }
.hero .aksi { animation: halusNaik .85s var(--ease) .92s both; }
.hero .fitur { animation: halusKanan .95s var(--ease) .45s both; }

/* Poster sorotan bergeser pelan saat halaman di-scroll (hanya browser yang mendukung; yang lain tampil biasa) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .fitur-poster img { scale: 1.06; animation: halusGeser linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
  }
}

/* ---------- 2. Kartu event (Jelajahi dan beranda) ---------- */
.kartu-poster::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; translate: -120% 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kartu:hover .kartu-poster::after { animation: halusKilat .95s var(--ease) both; }
  .kartu:hover .kartu-harga i { animation: halusPanah .7s var(--ease); }
}
.kartu:focus-visible { outline: 3px solid var(--primer, #0a0a0a); outline-offset: 4px; }

/* ---------- 3. Alur beli: nomor booking muncul dengan lembut ---------- */
#hasil > * { animation: halusNaik .7s var(--ease) both; }
#hasil > :nth-child(2) { animation-delay: .08s; }
#hasil > :nth-child(3) { animation-delay: .16s; }
#hasil > :nth-child(4) { animation-delay: .24s; }
#hasil > :nth-child(n+5) { animation-delay: .32s; }
#hasil .nomor-box { animation: halusPop .85s var(--ease) .12s both; }

/* ---------- 4. Tiket Saya: tiket "tercetak" dari atas ke bawah ---------- */
.status-box { animation: halusNaik .6s var(--ease) both; }
.info-scan { animation: halusNaik .65s var(--ease) .08s both; }
.status-box b.lunas { display: inline-block; animation: halusPop .75s var(--ease) .3s both; }
.tiket-hp { animation: halusNaik .75s var(--ease) .16s both; }
.tiket-hp + .tiket-hp { animation-delay: .3s; }
.tiket-hp + .tiket-hp + .tiket-hp { animation-delay: .44s; }
.tiket-hp canvas { animation: halusCetak 1s var(--ease) .3s both; }
@media (prefers-reduced-motion: reduce) {
  .tiket-hp canvas { animation-name: halusMuncul; }
}

/* ---------- Halaman band (/band/<slug>) dan tautan line-up ---------- */
.lineup li a { color: inherit; text-decoration: none; }
.lineup li a:focus-visible { outline: 3px solid var(--aksen); outline-offset: 4px; border-radius: 4px; }
.band-judul { margin-top: 6px; }
.band-tentang { max-width: 60ch; margin: 18px 0 0; color: var(--abu); }
.band-aksi { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 8px; }
.band-ig { font-weight: 700; text-underline-offset: 3px; }
.band .grid, #band .grid { min-height: 0; }
#band .sub-seksi { margin-top: 46px; }

/* ---------- Band favorit: hati + sorotan "Band favoritmu tampil" ---------- */
.hati { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; margin: -4px -4px -4px 0; color: inherit; cursor: pointer; font: inherit; line-height: 1; border-radius: 999px; }
.hati svg { fill: transparent; stroke: currentColor; transition: fill .18s, transform .18s var(--ease); }
.hati[aria-pressed="true"] svg { fill: #e0245e; stroke: #e0245e; }
.hati:hover svg { transform: scale(1.14); }
.hati:focus-visible { outline: 3px solid var(--aksen); outline-offset: 2px; }
.hati.pop svg { animation: hatiPop .38s var(--ease); }
@keyframes hatiPop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.tag.fav { background: #e0245e; color: #fff; border-color: #e0245e; }
.hati-teks { border: 2px solid var(--ink); padding: 11px 18px; margin: 0; font-weight: 800; }
.hati-teks[aria-pressed="true"] { border-color: #e0245e; }
.lineup li { display: inline-flex; align-items: center; gap: 10px; }
.fav-sorot { margin: 28px 0; padding: 16px 18px 6px; border: 2px solid var(--ink); border-radius: 12px; background: var(--soft); }
.fav-tag { display: flex; align-items: center; gap: 8px; font: 900 .82rem/1 var(--judul); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.fav-tag svg { fill: #e0245e; stroke: #e0245e; flex: none; }
.fav-daftar { list-style: none; padding: 0; }
.fav-daftar li { margin: 0 0 10px; }
.fav-daftar a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.fav-daftar a:hover .fav-ket b { text-decoration: underline; text-underline-offset: 3px; }
.fav-tgl { flex: none; width: 52px; text-align: center; background: var(--pen); color: #fff; border-radius: 8px; padding: 7px 0 6px; }
.fav-tgl b { display: block; font: 900 1.3rem/1 var(--judul); }
.fav-tgl i { display: block; font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.fav-ket b { display: block; font: 900 1.02rem/1.2 var(--judul); text-transform: uppercase; }
.fav-ket span { display: block; font-size: .9rem; color: var(--abu); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .hati.pop svg { animation: none; } }

/* Login Google pembeli (akun.js): dialog masuk / akun, dan tombol hati saat menunggu server */
.hati:disabled { opacity: .5; cursor: wait; }
/* Pop-up akun (sudah login): kartu kaca gelap, sama gayanya dengan halaman /masuk */
.dlg-akun { margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; padding: 0; width: min(92vw, 380px); color: #fff;
  background: linear-gradient(160deg, rgba(58,58,58,.96), rgba(14,14,14,.98)); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.dlg-akun[open] { animation: dlg-naik .35s cubic-bezier(.2,.9,.25,1); }
@keyframes dlg-naik { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-akun::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg-isi { padding: 26px 22px 18px; display: grid; gap: 12px; }
.dlg-kecil { font: 700 .72rem/1 var(--teks, system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.dlg-isi h2 { font: 900 1.5rem/1.1 var(--judul); text-transform: uppercase; letter-spacing: .02em; }
.dlg-isi p { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.5; }
.dlg-isi p b { color: #fff; }
.dlg-g { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 999px; font: inherit; font-weight: 700; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px rgba(0,0,0,.35); }
.dlg-g:hover { background: linear-gradient(180deg, rgba(255,255,255,.44), rgba(255,255,255,.14)); }
.dlg-g svg { width: 20px; height: 20px; flex: none; }
.dlg-g:disabled { opacity: .6; cursor: wait; }
.dlg-lain { background: none; border: 0; padding: 8px; color: rgba(255,255,255,.75); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dlg-bahaya { color: #ff9b94; }
.dlg-isi .dlg-pesan { color: #ffb4b4; font-size: .9rem; min-height: 1em; }
.dlg-akun button:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dlg-akun[open] { animation: none; } }
