/* ===== DASAR HALAMAN ===== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    color: #fff;
    font-family: "Space Grotesk", Arial, sans-serif;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Sembunyikan judul SEO lama */
.sr-only,
.seo-fallback {
    display: none !important;
}

/* Header */
.ui-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 28px 30px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
}

.wordmark {
    font-size: 30px;
    font-weight: 700;

    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
}

.wordmark .logo-wordmark {
    display: block !important;
    width: 150px !important;
    height: auto !important;
    max-width: 150px !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

.top-status {
    text-align: center;
    font-size: 11px;
}

.tagline {
    margin: 0 0 6px;
}

.locale {
    font-size: 10px;
    color: #888;
}

.top-actions {
    justify-self: end;
    display: flex;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 18px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    border: 1px solid rgba(255,255,255,.25);
}

.pill-ghost {
    background: #111;
    color: #fff;
}

.pill-accent {
    background: #d9ff00;
    color: #000;
    border-color: #d9ff00;
}

/* Footer */
.ui-bottom {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    z-index: 100;

    padding: 22px 28px;

    font-size: 10px;
}

/* Hilangkan ikon sosial lama */
.social-links {
    display: none !important;
}

/* Menu bawah */
.nav-pill {
    position: fixed;
    left: 50%;
    bottom: 20px;

    transform: translateX(-50%);

    display: flex;
    gap: 5px;

    padding: 5px;

    border-radius: 999px;

    background: rgba(20,20,20,.92);
    border: 1px solid rgba(255,255,255,.15);

    z-index: 110;
}

.nav-item {
    background: transparent;
    border: 0;

    color: #aaa;

    padding: 9px 14px;

    font-size: 11px;
    cursor: pointer;
}

.hint {
    position: fixed;
    left: 50%;
    bottom: 75px;

    transform: translateX(-50%);

    font-size: 10px;
    color: #777;

    z-index: 100;
}

/* Filter tetap hilang */
#filter-btn,
#filter-panel {
    display: none !important;
}
/* ====== AREA CAROUSEL ====== */
.carousel-wrap {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 90vw;
    height: 72vh;

    perspective: 1400px;
    perspective-origin: center center;

    overflow: hidden;
    z-index: 5;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
}

.carousel-stage.dragging {
  cursor: grabbing;
}

.ampm-card {
    position: absolute;
    left: 50%;
    top: 50%;

   width: 112px;
    height: 158px;

margin-left: -56px;
margin-top: -79px;

    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.ampm-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.ampm-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.00) 26%,
    rgba(0,0,0,0.10) 70%,
    rgba(0,0,0,0.25)
  );
  pointer-events: auto;
}

/* mobile */
@media (max-width: 768px) {
  .carousel-wrap {
    width: 92vw;
    height: 58vh;
    top: 50%;
  }

  .ampm-card {
    width: 110px;
    height: 154px;
    margin-left: -55px;
    margin-top: -77px;
  }
}
/* Sembunyikan semua halaman lama Searchbro */
.page {
    display: none !important;
}
.ampm-card {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.ampm-card-inner,
.ampm-card::after {
    pointer-events: none !important;
}
/* Pastikan area carousel menerima klik */
.carousel-wrap,
.carousel-stage {
    pointer-events: auto !important;
}

/* Kartu boleh diklik */
.ampm-card {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Isi/efek kartu jangan menangkap klik */
.ampm-card-inner,
.ampm-card::after {
    pointer-events: none !important;
}

/* Layer lama jangan menutupi carousel */
#gl {
    pointer-events: none !important;
}