:root{
  --bg1:#fff6fb;
  --bg2:#f3fbff;
  --ink:#1f2a44;
  --muted:#54607a;
  --card: rgba(255,255,255,.78);
  --line: rgba(40, 60, 120, .14);
  --shadow: 0 18px 55px rgba(31,42,68,.14);
  --shadow2: 0 10px 30px rgba(31,42,68,.10);

  --p1:#a78bfa;   /* lavender */
  --p2:#60a5fa;   /* sky */
  --p3:#34d399;   /* mint */
  --p4:#fb7185;   /* pink */
  --p5:#fbbf24;   /* honey */
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  background: radial-gradient(1200px 600px at 20% 0%, var(--bg2), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, var(--bg1), transparent 60%),
              linear-gradient(180deg, #ffffff, #f7fbff 45%, #fff7fb);
  overflow-x:hidden;
}

.container{ width:min(1120px, 92%); margin:0 auto; position:relative; z-index:2; }
.small{ font-size:12px; }
.muted{ color:var(--muted); }

/* ---------- Animated background blobs ---------- */
.bg-blobs{
  position:fixed; inset:-40px; z-index:0; pointer-events:none;
  overflow:hidden;
}
.blob{
  position:absolute; width:420px; height:420px;
  filter: blur(35px);
  opacity:.55;
  border-radius: 50%;
  animation: floaty 12s ease-in-out infinite;
}
.b1{ left:-80px; top:-80px; background: radial-gradient(circle at 30% 30%, var(--p1), transparent 60%); }
.b2{ right:-120px; top:20px; background: radial-gradient(circle at 30% 30%, var(--p2), transparent 60%); animation-delay: -4s; }
.b3{ left:10%; bottom:-180px; background: radial-gradient(circle at 30% 30%, var(--p4), transparent 60%); animation-delay: -7s; }
.b4{ right:12%; bottom:-220px; background: radial-gradient(circle at 30% 30%, var(--p3), transparent 60%); animation-delay: -10s; }

@keyframes floaty{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-22px,0) scale(1.05); }
}

/* ---------- Topbar ---------- */
.topbar{
  padding:26px 0 18px;
  position:sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(0,0,0,.05);
  z-index: 10;
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  flex-wrap:wrap;
}
.brand{ display:flex; align-items:center; gap:14px; }
.logo-badge{
  width:50px; height:50px; border-radius: 16px;
  display:grid; place-items:center;
  font-weight:900; letter-spacing:.5px;
  color:#fff;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: var(--shadow2);
  transform: translateZ(0);
}
h1{ font-size:20px; margin:0; line-height:1.1; }
.topbar p{ margin:4px 0 0; }

.chip-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.75);
  box-shadow: 0 8px 20px rgba(31,42,68,.08);
}

/* ---------- Topbar Right ---------- */
.topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ---------- Cards / Glass ---------- */
.card{
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  border: 1px solid rgba(0,0,0,.06);
}
.glass{
  background: var(--card);
  backdrop-filter: blur(10px);
}

/* ---------- Filters ---------- */
.filters{ margin-top:16px; padding:16px; }
.filters-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-bottom:12px;
}
.section-title{ margin:0; font-size:16px; }
.filters-actions{ display:flex; gap:10px; }

label{ display:block; font-size:13px; margin-bottom:6px; color:var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
  align-items:end;
}

select, input{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(40,60,120,.18);
  background: rgba(255,255,255,.72);
  color:var(--ink);
  outline:none;
  box-shadow: 0 10px 20px rgba(31,42,68,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
select:focus, input:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 14px 30px rgba(96,165,250,.18);
  transform: translateY(-1px);
}

.quick{ display:flex; gap:10px; }

/* Buttons */
.btn{
  border: 1px solid rgba(40,60,120,.16);
  background: rgba(255,255,255,.7);
  color:var(--ink);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 10px 20px rgba(31,42,68,.08);
  user-select:none;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 16px 35px rgba(31,42,68,.12); }
.btn:active{ transform: translateY(0px) scale(.98); }
.btn.ghost{ background: rgba(255,255,255,.35); }
.btn.soft{ background: rgba(255,255,255,.55); }

.btn.primary{
  border: none;
  color:white;
  background: linear-gradient(135deg, var(--p4), var(--p1), var(--p2));
}

.btn.float{
  border:none; color:white;
  background: linear-gradient(135deg, var(--p2), var(--p1));
  border-radius:999px;
  padding:10px 14px;
}

/* Admin login button */
.admin-btn{
  background: linear-gradient(135deg, #111827, #374151);
  color:#fff;
  border:none;
  padding:10px 14px;
  font-size:13px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.admin-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background: linear-gradient(135deg, #1f2937, #4b5563);
}

/* ---------- Status row ---------- */
.timeline-wrap{ margin:18px 0 60px; }
.status-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hidden{ display:none !important; }

/* ---------- Timeline ---------- */
.timeline{
  position:relative;
  padding:26px 0;
  margin-top:8px;
}
.timeline:before{
  content:"";
  position:absolute;
  left:50%;
  top:0; bottom:0;
  width:4px;
  transform: translateX(-50%);
  border-radius:999px;
  background: linear-gradient(180deg, rgba(167,139,250,.55), rgba(96,165,250,.55), rgba(52,211,153,.5));
  box-shadow: 0 18px 40px rgba(31,42,68,.12);
}

/* Items */
.item{
  position:relative;
  width:50%;
  padding:16px 18px;
  opacity:0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.item.in-view{
  opacity:1;
  transform: translateY(0);
}
.item.left{ left:0; padding-right:34px; }
.item.right{ left:50%; padding-left:34px; }

.item.left:after, .item.right:after{
  content:"";
  position:absolute;
  top:30px;
  width:22px;
  height:4px;
  border-radius:999px;
  background: rgba(40,60,120,.16);
}
.item.left:after{ right:8px; }
.item.right:after{ left:8px; }

/* Dot */
.dot{
  position:absolute;
  top:24px;
  left:50%;
  width:14px; height:14px;
  transform: translateX(-50%);
  border-radius:50%;
  background: linear-gradient(135deg, var(--p5), var(--p4));
  box-shadow: 0 14px 28px rgba(251,113,133,.22);
}

/* Card content */
.card2{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding:12px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  transform: translateZ(0);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card2:before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(167,139,250,.25), rgba(96,165,250,.25), rgba(52,211,153,.18), rgba(251,113,133,.22));
  opacity:.55;
  pointer-events:none;
}
.card2 > *{ position:relative; z-index:1; }

.card2:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(31,42,68,.18);
}

/* Thumbnail */
.thumb{
  width:160px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow:hidden;
  flex:0 0 auto;
  position:relative;
  box-shadow: 0 14px 30px rgba(31,42,68,.18);
}
.thumb img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: transform .2s ease;
}
.card2:hover .thumb img{ transform: scale(1.06); }

.play-badge{
  position:absolute;
  right:10px; bottom:10px;
  width:36px; height:36px;
  border-radius:999px;
  display:grid; place-items:center;
  color:white;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.play-badge:before{
  content:"▶";
  font-size:14px;
  margin-left:2px;
}

h3{
  margin:0 0 6px;
  font-size:15px;
  line-height:1.25;
}
.meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.meta a{
  color: #2563eb;
  text-decoration:none;
  font-weight:600;
}
.meta a:hover{ text-decoration:underline; }

.tags{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
  box-shadow: 0 10px 20px rgba(31,42,68,.08);
}

/* ---------- Modal ---------- */
.modal{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  z-index: 50;
}
.modal.hidden{ display:none; }
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(10px);
  animation: fadeIn .2s ease both;
}
.modal-content{
  position:relative;
  width:min(980px, 94vw);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0,0,0,.25);
  overflow:hidden;
  transform: translateY(12px) scale(.98);
  animation: popIn .22s ease forwards;
}
@keyframes popIn{
  to{ transform: translateY(0) scale(1); }
}
@keyframes fadeIn{
  from{ opacity:0; } to{ opacity:1; }
}

.modal-close{
  position:absolute;
  top:12px; right:12px;
  width:40px; height:40px;
  border-radius: 14px;
  border: none;
  background: rgba(0,0,0,.15);
  color:white;
  font-size:22px;
  cursor:pointer;
  z-index:3;
}
.modal-inner{
  width:100%;
  aspect-ratio: 16/9;
  background:#000;
}
.modal-inner iframe{
  width:100%; height:100%; border:0;
}
.modal-footer{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
}
.modal-title{
  font-weight:800;
  font-size:13px;
  color: var(--ink);
  max-width: 72%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr 1fr; }

  .timeline:before{ left:18px; transform:none; }
  .item{ width:100%; left:0 !important; padding-left:54px; padding-right:0; }
  .item.left:after, .item.right:after{ left:18px; right:auto; width:18px; }
  .dot{ left:18px; transform:none; }

  .thumb{ width:140px; }
  .modal-title{ max-width: 60%; }

  .topbar-right{
    width:100%;
    justify-content:space-between;
  }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .quick{ flex-direction:column; }
  .thumb{ width:120px; }
}
/* =========================
   Right-side Month/Year Scrubber
   ========================= */
.scrubber{
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.scrubber-track{
  position: relative;
  width: 30px;
  height: 62vh;
  min-height: 280px;
  max-height: 640px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
}

.scrubber-thumb{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  cursor: grab;
}

.scrubber-thumb:active{
  cursor: grabbing;
}

.scrubber-marks{
  position: absolute;
  inset: 0;
  pointer-events: none; /* enable only on children */
}

.scrubber-mark{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scrubber-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.scrubber-label{
  font-size: 11px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.9);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .12s ease, transform .12s ease;
  white-space: nowrap;
}

.scrubber:hover .scrubber-label{
  opacity: 1;
  transform: translateX(0);
}

.scrubber-bubble{
  position: absolute;
  right: 46px;
  top: 0;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.scrubber.dragging .scrubber-bubble{
  opacity: 1;
}

/* Hide scrubber on small screens (optional) */
@media (max-width: 860px){
  .scrubber{ display:none; }
}

/* (Optional) add right padding so cards don't hide under scrubber */
@media (min-width: 861px){
  .timeline-wrap{ padding-right: 44px; }
}
/* highlight item yang tengah aktif (ScrollSpy) */
.item.is-active .card2 {
  outline: 2px solid rgba(122,162,255,.55);
  box-shadow: 0 0 0 .25rem rgba(122,162,255,.12);
  transform: translateY(-1px);
}
/* ===== FIX: ensure scrubber is clickable & above everything ===== */
.scrubber{
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.scrubber-track{
  pointer-events: auto !important;
}

.scrubber-thumb{
  pointer-events: auto !important;
}

.scrubber-marks{
  pointer-events: none; /* marks container ignore */
}

.scrubber-mark{
  pointer-events: auto; /* but each mark clickable */
}

/* Optional: make it easier to grab */
.scrubber-track{
  width: 34px !important;
}
