/* ==========================================================================
   DETAIL EVENT v3 — 2 Okt 2026
   Dimuat SETELAH ui-v2/event-details.css dan menimpa sebagian aturannya.
   Semua bagian (Deskripsi, Line Up, Tiket, Lokasi) tampil berurutan dalam
   1 halaman; menu bagian menempel di atas saat di-scroll.
   ========================================================================== */

/* tema membungkus halaman dengan .page-wrapper{overflow:hidden}, yang mematikan position:sticky
   (menu bagian & kartu info). "clip" tetap memotong luapan horizontal tanpa mematikan sticky. */
.page-wrapper:has(.event-details-ui-v2) { overflow: visible; overflow-x: clip; }

/* ---------- HERO: poster utuh di semua layar ---------- */
.event-details-ui-v2 .ed-hero { background: transparent; box-shadow: none; border-radius: 20px; margin-bottom: 18px; }
.event-details-ui-v2 .ed-hero-media {
  position: relative; overflow: hidden; border-radius: 20px; background: #0a1220;
  box-shadow: 0 18px 44px rgba(13, 27, 46, .14);
  display: flex; align-items: center; justify-content: center;
}
/* latar: versi blur dari poster yang sama, mengisi sisi kosong bila rasio poster bukan 16:9 */
.event-details-ui-v2 .ed-hero-media::before {
  content: ""; position: absolute; inset: -40px; z-index: 0;
  background-image: var(--hero-bg); background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.2) brightness(.55);
}
.event-details-ui-v2 .ed-hero-media img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto;
  transform: none !important;
}
.event-details-ui-v2 .ed-hero-chips { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.event-details-ui-v2 .ed-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; text-decoration: none; line-height: 1.2;
}
.event-details-ui-v2 .ed-chip--glass { background: rgba(255, 255, 255, .92); color: var(--ink); }
.event-details-ui-v2 a.ed-chip--glass:hover { background: #fff; color: var(--brand); }

/* ---------- KARTU INFO (kanan / di bawah poster pada HP) ---------- */
.event-details-ui-v2 .ed-info { padding: 24px; border-radius: 20px; box-shadow: 0 16px 40px rgba(13, 27, 46, .08); top: 16px; }
.event-details-ui-v2 .ed-info::before { display: none; }
.event-details-ui-v2 .ed-title {
  margin: 0 0 18px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em;
  color: var(--ink); white-space: normal; overflow: visible;
}
.event-details-ui-v2 .ed-facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.event-details-ui-v2 .ed-facts li { display: flex; gap: 12px; align-items: center; margin: 0; }
.event-details-ui-v2 .ed-facts b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.event-details-ui-v2 .ed-facts small { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.event-details-ui-v2 .ed-facts small a, .event-details-ui-v2 .ed-ig { color: var(--brand); font-weight: 600; }
.event-details-ui-v2 .ed-ig { display: inline-block; font-size: 12.5px; margin-top: 2px; }
.event-details-ui-v2 .ed-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.event-details-ui-v2 .ed-ico svg { width: 19px; height: 19px; }
.event-details-ui-v2 .ed-ava { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; background: #e9eef6; }
.event-details-ui-v2 .ed-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 14px 0 4px; border-top: 1px solid var(--line);
}
.event-details-ui-v2 .ed-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.event-details-ui-v2 .ed-price strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.event-details-ui-v2 .sidebar-ticket-link { min-height: 50px; border-radius: 12px; font-weight: 800; }

/* ---------- MENU BAGIAN (menempel di atas) ---------- */
.event-details-ui-v2 .detail-ev { margin-top: 10px; }
.event-details-ui-v2 .ed-sectionnav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 8px -15px 8px; padding: 10px 15px;
  background: rgba(245, 247, 251, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.event-details-ui-v2 .ed-sectionnav__pills {
  display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.event-details-ui-v2 .ed-sectionnav__pills::-webkit-scrollbar { display: none; }
.event-details-ui-v2 .ed-sectionnav__pills a {
  flex: none; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.event-details-ui-v2 .ed-sectionnav__pills a:hover { color: var(--ink); background: var(--bg); }
.event-details-ui-v2 .ed-sectionnav__pills a.is-active { background: var(--ink); color: #fff; }
.event-details-ui-v2 .ed-sectionnav__cta {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--brand); color: #fff !important; font-size: 14px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 22px rgba(30, 91, 214, .28); white-space: nowrap;
}
.event-details-ui-v2 .ed-sectionnav__cta span { font-weight: 600; opacity: .85; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .35); }
.event-details-ui-v2 .ed-sectionnav__cta:hover { background: var(--brand-dark); }

/* ---------- BAGIAN ---------- */
.event-details-ui-v2 .detail-ev > .col-12 { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-top: 0 !important; }
.event-details-ui-v2 .ed-sections { display: flex; flex-direction: column; gap: 22px; }
.event-details-ui-v2 .ed-section {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-sm); scroll-margin-top: 90px;
}
.event-details-ui-v2 .ed-section__head { margin-bottom: 20px; }
/* tema menambahkan header:after/section:after (clearfix) yang ikut jadi item flex -> matikan */
.event-details-ui-v2 .ed-section::after, .event-details-ui-v2 .ed-section__head::after, .event-details-ui-v2 .ed-sectionnav::after { content: none; display: none; }
.event-details-ui-v2 .ed-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.event-details-ui-v2 .ed-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.event-details-ui-v2 .ed-section__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.event-details-ui-v2 .ed-section__meta { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Deskripsi */
.event-details-ui-v2 .ed-tiles { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.event-details-ui-v2 .ed-tiles li { background: var(--bg); border-radius: 14px; padding: 13px 14px; margin: 0; min-width: 0; }
.event-details-ui-v2 .ed-tiles small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.event-details-ui-v2 .ed-tiles b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-details-ui-v2 .ed-desc { position: relative; max-width: 860px; }
.event-details-ui-v2 .ed-desc .summernote-content { font-size: 15px; line-height: 1.8; color: #33425b; }
.event-details-ui-v2 .ed-desc.is-clamped { max-height: 340px; overflow: hidden; }
.event-details-ui-v2 .ed-desc.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
/* is-clamped.is-open lebih spesifik dari aturan max-height mobile (@media) di bawah,
   jadi deskripsi benar-benar terbuka di HP saat "Baca selengkapnya" diklik */
.event-details-ui-v2 .ed-desc.is-clamped.is-open,
.event-details-ui-v2 .ed-desc.is-open { max-height: none; overflow: visible; }
.event-details-ui-v2 .ed-desc.is-open::after { display: none; }
.event-details-ui-v2 .ed-more {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; margin-top: 10px;
  border: 1.5px solid #dfe5ef; border-radius: 12px; background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 800; cursor: pointer;
  position: relative; z-index: 2; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.event-details-ui-v2 .ed-more:hover { border-color: var(--brand); color: var(--brand); }
.event-details-ui-v2 .ed-more svg { width: 16px; height: 16px; transition: transform .2s; }
.event-details-ui-v2 .ed-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.event-details-ui-v2 .ed-more[hidden] { display: none; }
.event-details-ui-v2 .event-refund-policy { margin-top: 22px; background: #fffaf0; border: 1px solid #ffe7b8; border-radius: 16px; padding: 16px 18px; }
.event-details-ui-v2 .event-refund-policy h5 { color: #5b3d00; }
.event-details-ui-v2 .event-refund-policy p { color: #5b4a24; margin-bottom: 0; }

/* Line Up: kartu berfoto */
.event-details-ui-v2 .ed-lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.event-details-ui-v2 .ed-lineup .lineup-item {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.event-details-ui-v2 .ed-lineup .lineup-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-details-ui-v2 .ed-lineup .lineup-avatar { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; border: 0; background: #1b2b4b; }
.event-details-ui-v2 .ed-lineup .lineup-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.event-details-ui-v2 .ed-lineup .lineup-info { padding: 14px 56px 14px 14px; }
.event-details-ui-v2 .ed-lineup .lineup-name { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; white-space: normal; }
.event-details-ui-v2 .ed-lineup .lineup-ig { position: absolute; right: 12px; bottom: 11px; width: 36px; height: 36px; }

/* Tiket */
.event-details-ui-v2 #profile .ticket-card { border-radius: 18px; padding: 20px 22px; }
.event-details-ui-v2 #profile .ticket-card::before { display: none; }
.event-details-ui-v2 #profile .ticket-card:has(.quantity-input) { border-color: #cfdcf3; }
.event-details-ui-v2 #profile .ticket-card.is-picked { border: 2px solid var(--brand); background: #f7faff; padding: 19px 21px; }
.event-details-ui-v2 #profile .ticket-card:has(.ticket-badge--soldout),
.event-details-ui-v2 #profile .ticket-card:has(.ticket-badge--ended) { background: #fbfbfc; }
.event-details-ui-v2 #profile .ticket-card:has(.ticket-badge--soldout) .ticket-price-now,
.event-details-ui-v2 #profile .ticket-card:has(.ticket-badge--ended) .ticket-price-now { color: var(--muted); text-decoration: line-through; }
.event-details-ui-v2 #profile .ticket-card:has(.ticket-badge--soon) { border-style: dashed; background: #fafbfd; }
.event-details-ui-v2 #profile .ticket-card-name { white-space: normal; overflow: visible; text-transform: none; font-size: 17px; }
.event-details-ui-v2 #profile .ticket-card-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.event-details-ui-v2 .ticket-stock-low {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: #fff4e0; color: #9a5b00; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.event-details-ui-v2 .ticket-stock-low::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.event-details-ui-v2 .ticket-card:has(.ticket-badge) .ticket-stock-low { display: none; }
.event-details-ui-v2 .quantity-input { border-radius: 14px; margin: 0 !important; }
.event-details-ui-v2 .quantity-input button { width: 40px; height: 40px; min-width: 40px; border-radius: 11px; }
.event-details-ui-v2 .ed-login-note { margin: -4px 0 12px; font-size: 13px; color: var(--ink-soft); }
.event-details-ui-v2 .ed-login-note a { font-weight: 800; }
.event-details-ui-v2 .ed-login-note ~ .ed-login-note { display: none; }
.event-details-ui-v2 #profile .total { border-radius: 16px; padding: 16px 20px; background: var(--bg); }
.event-details-ui-v2 #profile #total_price { font-size: 22px; }
.event-details-ui-v2 #profile .theme-btn { min-height: 54px; border-radius: 14px; font-size: 16px; font-weight: 800; }

/* Waiting list */
.event-details-ui-v2 .ed-waitlist {
  display: flex; gap: 14px; margin-top: 18px; padding: 20px; border-radius: 18px;
  border: 1px solid #dbe5f6; background: #f7faff;
}
.event-details-ui-v2 .ed-waitlist__body { flex: 1; min-width: 0; }
.event-details-ui-v2 .ed-waitlist__title { display: block; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.event-details-ui-v2 .ed-waitlist__title--ok { color: #15803d; }
.event-details-ui-v2 .ed-waitlist p { color: var(--ink-soft); font-size: 13.5px !important; line-height: 1.6; }
.event-details-ui-v2 .ed-waitlist__notice { margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; background: #e7f8ef; color: #0b7a3e; font-size: 13px; font-weight: 700; }
.event-details-ui-v2 .ed-waitlist__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 110px; gap: 10px; margin-top: 12px; }
.event-details-ui-v2 .ed-waitlist__form .form-group { margin: 0 !important; }
.event-details-ui-v2 .ed-waitlist__form .form-group:first-of-type { grid-column: 1 / -1; }
.event-details-ui-v2 .ed-waitlist__form .theme-btn { grid-column: 1 / -1; margin-top: 4px; }
.event-details-ui-v2 .ed-waitlist .form-control {
  height: 46px !important; border: 1.5px solid #dfe5ef; border-radius: 12px; font-size: 14px; background: #fff;
}
.event-details-ui-v2 .ed-waitlist .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 91, 214, .12); }

/* Lokasi */
.event-details-ui-v2 .ed-map iframe { min-height: 0; height: 360px; border-radius: 18px; box-shadow: none; display: block; }
.event-details-ui-v2 .ed-venue { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.event-details-ui-v2 .ed-venue__text { flex: 1; min-width: 0; }
.event-details-ui-v2 .ed-venue__text b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.event-details-ui-v2 .ed-venue__text small { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.event-details-ui-v2 .ed-venue__actions { display: flex; gap: 8px; flex: none; }
.event-details-ui-v2 .ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: 12px; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 0; font-family: inherit;
}
.event-details-ui-v2 .ed-btn svg { width: 17px; height: 17px; }
.event-details-ui-v2 .ed-btn--primary { background: var(--brand); color: #fff !important; box-shadow: 0 10px 22px rgba(30, 91, 214, .28); }
.event-details-ui-v2 .ed-btn--primary:hover { background: var(--brand-dark); }
.event-details-ui-v2 .ed-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid #dfe5ef; }
.event-details-ui-v2 .ed-btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.event-details-ui-v2 .ed-btn[hidden] { display: none; }

/* Bar bawah HP */
.event-details-ui-v2 .ed-mbar { display: none; }

/* ---------- RESPONSIF ---------- */
@media (max-width: 991.98px) {
  .event-details-ui-v2 .ed-info { position: static; margin-bottom: 4px; }
  .event-details-ui-v2 .ed-hero-media img { max-height: none; }   /* tablet/HP: poster tampil penuh */
}
@media (max-width: 767.98px) {
  .event-details-ui-v2 .ed-hero { margin: 0 0 14px; }
  .event-details-ui-v2 .ed-hero-media { border-radius: 16px; }
  .event-details-ui-v2 .ed-hero-chips { left: 10px; top: 10px; }
  .event-details-ui-v2 .ed-chip { font-size: 11.5px; padding: 5px 10px; }
  .event-details-ui-v2 .ed-info { padding: 18px; border-radius: 18px; }
  .event-details-ui-v2 .ed-title { font-size: 21px; margin-bottom: 14px; }
  .event-details-ui-v2 .ed-price strong { font-size: 21px; }

  .event-details-ui-v2 .ed-sectionnav { padding: 8px 15px; }
  .event-details-ui-v2 .ed-sectionnav__cta { display: none; }
  .event-details-ui-v2 .ed-sectionnav__pills { width: 100%; }
  .event-details-ui-v2 .ed-sectionnav__pills a { padding: 9px 15px; font-size: 13.5px; }

  .event-details-ui-v2 .ed-sections { gap: 14px; }
  .event-details-ui-v2 .ed-section { padding: 20px 18px; border-radius: 18px; scroll-margin-top: 76px; }
  .event-details-ui-v2 .ed-section__title { font-size: 20px; }
  .event-details-ui-v2 .ed-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .event-details-ui-v2 .ed-desc .summernote-content { font-size: 14.5px; line-height: 1.75; }
  .event-details-ui-v2 .ed-desc.is-clamped { max-height: 280px; }
  .event-details-ui-v2 .ed-more { width: 100%; justify-content: center; height: 46px; }

  /* line up: geser ke samping */
  .event-details-ui-v2 #lineup { padding-right: 0; overflow: hidden; }
  .event-details-ui-v2 #lineup .ed-section__head { padding-right: 18px; }
  .event-details-ui-v2 .ed-lineup {
    display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 2px 18px 6px 0;
    scrollbar-width: none;
  }
  .event-details-ui-v2 .ed-lineup::-webkit-scrollbar { display: none; }
  .event-details-ui-v2 .ed-lineup .lineup-item { width: 150px; flex: none; scroll-snap-align: start; }
  .event-details-ui-v2 .ed-lineup .lineup-name { font-size: 14px; }

  .event-details-ui-v2 #profile .ticket-card { padding: 16px; }
  .event-details-ui-v2 #profile .ticket-card-name { font-size: 16px; }
  .event-details-ui-v2 #profile .ticket-card-act { justify-content: space-between; width: 100%; }
  .event-details-ui-v2 #profile .ticket-card-act .quantity-input { width: auto; margin: 0 0 0 auto !important; }
  .event-details-ui-v2 .ticket-discount, .event-details-ui-v2 .ticket-note { border-radius: 12px; line-height: 1.45; }
  .event-details-ui-v2 .ed-waitlist { flex-direction: column; padding: 16px; }
  .event-details-ui-v2 .ed-waitlist__form { grid-template-columns: 1fr; }

  .event-details-ui-v2 .ed-map iframe { height: 240px; border-radius: 14px; }
  .event-details-ui-v2 .ed-venue { flex-wrap: wrap; }
  .event-details-ui-v2 .ed-venue__actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-details-ui-v2 .ed-venue__actions .ed-btn:only-child { grid-column: 1 / -1; }

  /* bar bawah */
  .event-details-ui-v2 .ed-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(13, 27, 46, .08);
    transition: transform .25s ease;
  }
  .event-details-ui-v2 .ed-mbar[hidden] { display: none; }
  .event-details-ui-v2 .ed-mbar.is-away { transform: translateY(110%); }
  .event-details-ui-v2 .ed-mbar__info { min-width: 0; }
  .event-details-ui-v2 .ed-mbar__info small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .event-details-ui-v2 .ed-mbar__info strong { display: block; font-size: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
  .event-details-ui-v2 .ed-mbar .ed-btn { flex: 1; max-width: 200px; height: 48px; }
  body.has-ed-mbar .page-main { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-details-ui-v2 .ed-lineup .lineup-item, .event-details-ui-v2 .ed-mbar { transition: none; }
}
