:root{
  --accent:#0b5cff;
  --muted:#6b7280;
  --card-radius:12px;
  --gap:18px;
  --max-width:1100px;
  --thumb-max-height:520px;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial;
  background:#fff;
  color:#0b0b0b;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.container-inner{ max-width:var(--max-width); margin:0 auto; padding:28px 18px; }

/* header */
.header{ text-align:center; margin-bottom:14px; }
.header .page-title{ font-size:34px; margin:0 0 6px 0; font-weight:900; letter-spacing:-0.6px; }
.header .sub{ color:var(--muted); margin-top:6px; }

/* GRID: single column */
.grid{
  display:grid;
  grid-template-columns: 1fr; /* single column */
  gap: var(--gap);
  align-items:start;
  padding-bottom:24px;
}

/* card wrapper */
.card-wrap{ padding:0 6px; }

/* card */
.card{ border-radius:var(--card-radius); overflow:visible; display:block; }

/* image container - show whole image (contain), centered */
.card-media{
  border-radius: var(--card-radius);
  overflow:hidden;
  background:#000;
  position:relative;
  box-shadow: 0 18px 40px rgba(12,20,40,0.06);
  display:block;
}
.card-media img{
  display:block;
  width:100%;
  height:auto;
  max-height:var(--thumb-max-height);
  object-fit:contain;    /* keep full image visible; change to cover if you want crop-fit */
  background:#000;
  transition: transform .28s ease;
}
.card-media:hover img{ transform: scale(1.02); }

/* info area below image */
.card-info {
  margin-top:12px;
  padding:14px;
  border-radius:0 0 var(--card-radius) var(--card-radius);
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
  color:#111;
  box-shadow: 0 6px 20px rgba(11,20,40,0.04);
}
.card-title{
  font-weight:800;
  margin:0 0 6px 0;
  font-size:16px;
  line-height:1.18;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
}
.card-sub { color:var(--muted); font-size:13px; }

/* clickable area */
.card-link{ text-decoration:none; display:block; border-radius:var(--card-radius); outline:none; }

/* footer */
.site-footer{
  text-align:center;
  padding:28px 12px;
  color:#666;
  font-weight:700;
  border-top:1px solid rgba(0,0,0,0.06);
  background: #fff;
  flex-shrink:0;
}
.footer-clock{
  display:inline-block;
  background:#0b1220;
  color:#fff;
  padding:10px 18px;
  border-radius:18px;
  font-weight:900;
  font-size:16px;
  margin-bottom:8px;
  box-shadow: 0 10px 30px rgba(11,20,40,0.06);
}
.footer-sub { margin-top:6px; color:#666; font-weight:700; }
.footer-emoji{ margin-left:8px; transform:translateY(1px); }

/* debug hidden */
.debug{ display:none; }

/* small screens tweak */
@media(max-width:420px){
  .container-inner{ padding-left:12px; padding-right:12px; }
  .card-wrap{ padding:0 4px; }
}

/* ========================================================
   Popup promo styles (dipisah di list.css)
   ======================================================== */

/* overlay */
#promoPopupOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 999999;
  transition: opacity .28s ease, visibility .28s ease;
  opacity: 1;
  visibility: visible;
}

/* hidden state */
#promoPopupOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* card */
#promoPopup {
  width: min(920px, 92%);
  max-width: 980px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2,6,23,0.6);
  transform-origin: center;
  animation: popIn .22s ease;
  position: relative;
}

/* subtle pop animation */
@keyframes popIn {
  from { transform: translateY(6px) scale(.995); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* image fits */
#promoPopup img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* top-right close (round) */
#promoCloseBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

/* bottom control bar with CTA and countdown */
#promoControls {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  background: linear-gradient(90deg,#fafafa,#ffffff);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  color:#222;
}

#promoControls .promo-text {
  display:flex;
  flex-direction:column;
  gap:4px;
  font-weight:700;
}

#promoControls .promo-text .headline {
  font-size: 15px;
  color: #111;
}

#promoControls .promo-text .subline {
  font-size: 13px;
  color: var(--muted);
  font-weight:600;
}

#promoCTA {
  appearance: none;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg,#ff7a00,#ff5b00);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255,91,0,0.2);
  text-decoration: none;
}

#promoCountdown {
  font-weight:700;
  padding-left:6px;
}

/* small screens */
@media (max-width:420px){
  #promoPopup { width: calc(100% - 20px); border-radius: 8px; }
  #promoCloseBtn { width:32px; height:32px; top:8px; right:8px; }
  #promoControls{ font-size:13px; padding:8px; }
  #promoCTA { padding:6px 10px; border-radius:6px; }
}

/* prevent background scroll while popup open */
html.promo-no-scroll, body.promo-no-scroll { overflow: hidden; touch-action: none; }
