/* Mata Kresna 134 — dark ops theme */
:root {
  --bg: #080b14;
  --bg2: #0c1120;
  --panel: #111828;
  --panel2: #161e32;
  --line: rgba(255, 255, 255, .09);
  --txt: #eef2ff;
  --mut: #8b93a7;
  --acc: #ff3b30;
  --acc2: #ff6b4a;
  --ok: #22c55e;
  --mono: 'JetBrains Mono', monospace;
  --r: 16px;
  /* lebar maksimum konten (header, hero, wall) — disamakan 1280px */
  --maxw: 1280px;
}

* {
  box-sizing: border-box
}

[hidden] {
  display: none !important
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 15% -5%, rgba(255, 59, 48, .14), transparent),
    radial-gradient(800px 500px at 90% 10%, rgba(59, 130, 246, .12), transparent);
  z-index: 0
}

a {
  color: inherit;
  text-decoration: none
}

code {
  background: #1c2440;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: .82em
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 11, 20, .78);
  border-bottom: 1px solid var(--line)
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 26px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-mark {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: none;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0
}

.brand-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block
}

.brand-mark .dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 2px rgba(8, 11, 20, .9);
  animation: blink 1.4s infinite
}

@keyframes blink {
  50% {
    opacity: .25
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: -.02em
}

.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--mut);
  font-weight: 700
}

.topnav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut)
}

.topnav a.active,
.topnav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff
}

.clockbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 59, 48, .14);
  border: 1px solid rgba(255, 59, 48, .45);
  color: #ff6b62;
  font: 700 11px var(--mono);
  letter-spacing: .12em;
  padding: 6px 11px;
  border-radius: 99px
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
  animation: blink 1.2s infinite
}

.clock {
  font: 700 12.5px var(--mono);
  color: #cbd3ea
}

/* hero — tinggi area mengikuti rasio gambar (1600x900 = 16:9) */
.hero {
  position: relative;
  aspect-ratio: 1600 / 900;
  display: flex;
  align-items: end;
  overflow: hidden;
  z-index: 1;
  background-color: var(--bg)
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* gambar selalu utuh (tidak terpotong), diposisikan dari atas-tengah */
  background-image: var(--hero-img);
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, .55), rgba(8, 11, 20, .35) 40%, rgba(8, 11, 20, .96) 92%), linear-gradient(90deg, rgba(8, 11, 20, .88) 0%, rgba(8, 11, 20, .35) 55%, transparent)
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 22px 36px;
  width: 100%
}

.eyebrow {
  font: 700 11px var(--mono);
  letter-spacing: .24em;
  color: #ffb4ae;
  margin: 0 0 12px
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800
}

.tagline-sm {
  display: block;
  font-size: .35em;
  font-weight: 700;
  letter-spacing: .16em;
  color: #ffb4ae;
  line-height: 1.4;
  margin-top: 4px
}

/* baris kedua hero berukuran penuh (mis. "Live", "Under Construction") */
.hero-muted {
  color: var(--mut)
}

.hero .sub {
  max-width: 560px;
  color: #c4cbdf;
  font-size: 16px;
  line-height: 1.6
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  min-width: min(420px, 90vw);
  backdrop-filter: blur(10px)
}

.search input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  width: 100%;
  padding: 14px 0;
  font-size: 14px
}

.search input::placeholder {
  color: #9aa3bb
}

.btn-primary {
  background: linear-gradient(135deg, #ff3b30, #ff6b4a);
  border: 0;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 59, 48, .35);
  transition: .2s
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06)
}

.btn-ghost {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: #e6ebf7;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .13)
}

.btn-ghost.big {
  padding: 14px 30px;
  border-radius: 14px
}

.btn-ghost.small {
  font-size: 12px;
  padding: 8px 13px
}

.stats {
  display: flex;
  gap: 34px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.stats div {
  display: flex;
  flex-direction: column
}

.stats strong {
  font-size: 26px;
  letter-spacing: -.03em
}

.stats span {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mut);
  font-weight: 700
}

/* wall */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px;
  position: relative;
  z-index: 1
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 16px
}

/* dropdown berantai (provinsi → kabupaten/kota) */
.filter-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 0
}

.fc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 220px;
  max-width: 340px
}

.fc-label {
  font: 700 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut)
}

.fc-select {
  position: relative
}

.fc-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #e6ebf7;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 38px 12px 14px;
  cursor: pointer;
  outline: 0;
  transition: border-color .2s, background .2s
}

.fc-select select:hover {
  background: rgba(255, 255, 255, .1)
}

.fc-select select:focus {
  border-color: var(--acc)
}

.fc-select select:disabled {
  opacity: .5;
  cursor: not-allowed
}

.fc-select option {
  background: #101828;
  color: #e6ebf7
}

/* panah dropdown */
.fc-select::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--mut);
  border-bottom: 2px solid var(--mut);
  transform: rotate(45deg);
  pointer-events: none
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.auto {
  font-size: 12.5px;
  color: var(--mut);
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 600
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

/* layar lebar (PC besar): tambah kolom agar ruang kiri-kanan terpakai */
@media(min-width:1500px) {
  .grid {
    grid-template-columns: repeat(5, 1fr)
  }
}

@media(max-width:1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:820px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .topnav {
    display: none
  }
}

@media(max-width:520px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: .25s;
  animation: rise .5s both
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px)
  }
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45)
}

.thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  cursor: zoom-in
}

.thumb video,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* live preview di kartu: di atas poster, hanya tampil saat stream jalan.
   tanpa z-index agar veil & badge (ditulis setelahnya) tetap di atasnya */
.thumb .live-vid {
  position: absolute;
  inset: 0;
  background: #000
}

.thumb .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 35%, transparent 60%, rgba(0, 0, 0, .55));
  pointer-events: none
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 7px;
  align-items: center
}

.badge .live-pill {
  padding: 5px 10px;
  font-size: 10px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px)
}

.ptz {
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  background: rgba(59, 130, 246, .85);
  padding: 6px 9px;
  border-radius: 8px
}

.real {
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  background: rgba(34, 197, 94, .9);
  color: #04140a;
  padding: 6px 9px;
  border-radius: 8px
}

.demo {
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  padding: 6px 9px;
  border-radius: 8px
}

.offb {
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  background: rgba(255, 59, 48, .9);
  color: #fff;
  padding: 6px 9px;
  border-radius: 8px
}

.off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 26, .72);
  backdrop-filter: blur(3px);
  text-align: center;
  padding: 16px
}

.off strong {
  font-size: 14px
}

.off span {
  font-size: 12px;
  color: var(--mut)
}

.playhint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 99px;
  opacity: 0;
  transition: .22s;
  white-space: nowrap
}

.card:hover .playhint {
  opacity: 1
}

.thumb img {
  transition: transform .5s ease
}

.card:hover .thumb img {
  transform: scale(1.05)
}

.camtime {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font: 600 10.5px var(--mono);
  background: rgba(0, 0, 0, .6);
  padding: 5px 9px;
  border-radius: 8px;
  color: #dfe5f5
}

.snaptime {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font: 700 9.5px var(--mono);
  letter-spacing: .08em;
  background: rgba(34, 197, 94, .85);
  color: #04140a;
  padding: 5px 9px;
  border-radius: 8px
}

.snaptime.loading {
  background: rgba(0, 0, 0, .55);
  padding: 6px;
  display: inline-flex;
  align-items: center
}

.mini-spin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: sp 0.8s linear infinite;
  display: inline-block
}

.card-body {
  padding: 13px 14px 14px
}

.card-body h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.01em
}

.card-body p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mut);
  font-weight: 600
}

.empty {
  background: var(--panel);
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  color: var(--mut)
}

.pager {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 26px 0 8px
}

.pg-info {
  font: 600 12px var(--mono);
  color: var(--mut);
  letter-spacing: .06em
}

.pg-nums {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center
}

.pg-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: #e6ebf7;
  font: 700 13.5px var(--mono);
  cursor: pointer;
  transition: .2s
}

.pg-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .15)
}

.pg-btn.cur {
  background: #fff;
  color: #0b0f1c;
  border-color: #fff
}

.pg-btn:disabled {
  opacity: .35;
  cursor: default
}

.pg-gap {
  color: var(--mut);
  font-weight: 700
}

/* history */
.history {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px
}

.history-head {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap
}

.history-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em
}

.history-head p {
  margin: 4px 0 0;
  color: var(--mut);
  font-size: 13px;
  flex: 1;
  min-width: 200px
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px
}

@media(max-width:900px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

.shot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden
}

.shot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  cursor: zoom-in
}

.shot div {
  padding: 10px 12px
}

.shot strong {
  font-size: 12.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.shot span {
  font: 600 11px var(--mono);
  color: var(--mut)
}

.shot-empty {
  color: var(--mut);
  font-size: 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  grid-column: 1/-1;
  text-align: center
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  margin: 30px 0 10px
}

@media(max-width:900px) {
  .about {
    grid-template-columns: 1fr
  }
}

.about h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.02em
}

.about p {
  color: #b9c1d6;
  line-height: 1.65;
  font-size: 14px
}

.about ol {
  color: #b9c1d6;
  font-size: 13.5px;
  line-height: 1.8
}

.about-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.about-card strong {
  font-size: 12px;
  letter-spacing: .14em;
  color: #ffb4ae
}

.about-card span {
  font-size: 13px;
  color: #c4cbdf;
  margin-bottom: 12px;
  line-height: 1.6
}

footer {
  text-align: center;
  color: var(--mut);
  font-size: 12.5px;
  padding: 26px;
  border-top: 1px solid var(--line)
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none
}

.modal.open {
  display: block
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, .82);
  backdrop-filter: blur(10px)
}

.modal-box {
  position: relative;
  max-width: 1020px;
  margin: 3.5svh auto;
  background: #0c1222;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  overflow: hidden;
  width: calc(100% - 28px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  animation: pop .28s cubic-bezier(.2, .9, .3, 1.15)
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.965) translateY(14px)
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent)
}

.m-title-wrap {
  min-width: 0;
  flex: 1
}

.m-area {
  display: inline-block;
  font: 700 10px var(--mono);
  letter-spacing: .18em;
  color: #0b0f1c;
  background: #fff;
  border-radius: 7px;
  padding: 4px 9px;
  margin-bottom: 8px
}

.m-area.magetan {
  background: #22c55e
}

.m-area.madiun {
  background: #f59e0b
}

.m-area.surakarta {
  background: #60a5fa
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.modal-head p {
  margin: 4px 0 0;
  color: var(--mut);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.m-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.m-x {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: .2s
}

.m-x:hover {
  background: var(--acc);
  border-color: var(--acc)
}

.modal-media {
  position: relative;
  background: #000;
  aspect-ratio: 16/8.4;
  min-height: 300px
}

.modal-media video,
.modal-media img,
.modal-media canvas,
.modal-media iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 64svh;
  background: #000;
  border: 0
}

.modal-media [hidden] {
  display: none !important
}

.m-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #c6cde1;
  font-size: 13px;
  /* opaq: menutup rapat iframe di baliknya agar halaman error bawaan
     browser (yang memuat URL sumber) tidak pernah terlihat */
  background: #080b14
}

.m-loading[hidden] {
  display: none
}

.m-loading em {
  font-style: normal;
  font-weight: 600
}

.spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  animation: sp 0.8s linear infinite
}

@keyframes sp {
  to {
    transform: rotate(360deg)
  }
}

.m-err {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: #080b14;
  text-align: center;
  padding: 20px
}

.m-err[hidden] {
  display: none
}

.m-err strong {
  font-size: 15px
}

.m-err span {
  font-size: 12.5px;
  color: var(--mut)
}

.m-err a {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 10px
}

.m-err a:hover {
  background: var(--acc);
  border-color: var(--acc)
}

.m-retry {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(34, 197, 94, .5);
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer
}

.m-retry:hover {
  background: rgba(34, 197, 94, .35)
}

.m-hud {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: none
}

.m-hud .mono {
  font: 700 11.5px var(--mono);
  background: rgba(0, 0, 0, .62);
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1)
}

.m-hud .dim {
  color: #9aa3bb;
  font-weight: 500
}

.m-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: .2s
}

.modal-media:hover .m-nav {
  opacity: 1
}

.m-nav:hover {
  background: var(--acc);
  border-color: var(--acc)
}

.m-nav.prev {
  left: 12px
}

.m-nav.next {
  right: 12px
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .02)
}

.m-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px var(--mono);
  color: var(--mut)
}

.dotsep {
  opacity: .5
}

.modal-btns {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px
}

@media(max-width:640px) {
  .modal-box {
    margin: 2svh auto;
    width: calc(100% - 16px);
    border-radius: 16px
  }

  .modal-head h3 {
    white-space: normal
  }

  .modal-head p {
    white-space: normal
  }

  .m-nav {
    opacity: 1;
    width: 40px;
    height: 52px
  }
}

/* ---- mobile UI/UX ---- */
html {
  -webkit-text-size-adjust: 100%
}

body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent
}

img,
video {
  user-select: none;
  -webkit-user-select: none
}

#wall {
  scroll-margin-top: 76px
}

@media(hover:none) {
  .playhint {
    opacity: 1;
    font-size: 12px;
    padding: 9px 15px
  }

  .card:hover {
    transform: none
  }

  .card:hover .thumb img {
    transform: none
  }

  .m-nav {
    opacity: 1
  }
}

@media(prefers-reduced-motion:reduce) {
  .card {
    animation: none
  }

  html {
    scroll-behavior: auto
  }
}

@media(max-width:820px) {
  .topbar-inner {
    padding: 10px 14px;
    gap: 14px
  }

  .hero {
    /* di mobile tinggi konten lebih besar dari rasio 16:9 → biarkan auto
       agar judul tidak terpotong/tertutup header */
    aspect-ratio: auto;
    min-height: auto
  }

  .hero-inner {
    /* ruang atas ekstra agar judul hero tidak menempel/tertutup header */
    padding: 76px 16px 26px
  }

  .hero h1 {
    font-size: clamp(32px, 9.5vw, 52px)
  }

  .hero .sub {
    font-size: 14px;
    line-height: 1.55
  }

  .stats {
    gap: 22px;
    margin-top: 20px;
    padding-top: 16px
  }

  .stats strong {
    font-size: 22px
  }

  .wrap {
    padding: 14px 14px 20px
  }

  .toolbar {
    position: sticky;
    top: 57px;
    z-index: 40;
    margin: 0 -14px 12px;
    padding: 10px 14px;
    background: rgba(8, 11, 20, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
  }

  .filter-chain {
    flex-wrap: nowrap;
    gap: 10px
  }

  .fc-field {
    flex: 1 1 0;
    max-width: none
  }

  .fc-select select {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 34px 10px 12px
  }

  .shot-grid {
    gap: 12px
  }
}

@media(max-width:520px) {
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px
  }

  .brand-text strong {
    font-size: 16px
  }

  .brand-text em {
    font-size: 9px
  }

  .clock {
    display: none
  }

  .live-pill {
    padding: 6px 10px
  }

  .grid {
    gap: 12px
  }

  .card {
    border-radius: 14px
  }

  .card-body {
    padding: 12px 13px
  }

  .card-body h3 {
    font-size: 13.5px
  }

  .pg-btn {
    min-width: 44px;
    height: 44px;
    font-size: 14px
  }

  .btn-primary,
  .btn-ghost {
    min-height: 44px
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    max-width: none
  }

  footer {
    padding-bottom: calc(26px + env(safe-area-inset-bottom))
  }

  /* bottom-sheet viewer */
  .modal.open {
    display: flex;
    align-items: flex-end;
    justify-content: center
  }

  .modal-box {
    margin: 0;
    width: 100%;
    max-height: 94dvh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    animation: sheetup .3s cubic-bezier(.2, .9, .3, 1)
  }

  @keyframes sheetup {
    from {
      opacity: .6;
      transform: translateY(40px)
    }
  }

  .modal-box::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .28);
    margin: 8px auto 0
  }

  .modal-media {
    aspect-ratio: 16/10;
    min-height: 220px
  }

  .modal-media video,
  .modal-media img,
  .modal-media canvas,
  .modal-media iframe {
    max-height: 44dvh
  }

  .m-nav {
    width: 40px;
    height: 56px
  }

  .m-nav.prev {
    left: 8px
  }

  .m-nav.next {
    right: 8px
  }

  /* tombol aksi di bottom-sheet: Capture satu baris penuh,
     sisanya grid 2 kolom agar label panjang tidak terpotong */
  .modal-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom))
  }

  .m-meta {
    width: 100%
  }

  .modal-btns {
    margin-left: 0;
    width: 100%;
    display: grid;
    /* 2 kolom agar 4 tombol fitur tersusun rapi 2x2 tanpa sisa */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .modal-btns button {
    width: 100%;
    min-width: 0;
    flex: initial;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    white-space: normal
  }

  /* aksi media (Capture & Fullscreen) satu baris penuh,
     tombol fitur terkunci mengisi sisa grid secara merata */
  .modal-btns .btn-primary,
  .modal-btns .btn-ghost:not(.small) {
    grid-column: 1 / -1
  }

  .topbar-inner,
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right))
  }
}

/* lock modal (proteksi fitur) */
.lock {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px
}

.lock.open {
  display: flex
}

.lock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, .82);
  backdrop-filter: blur(10px)
}

.lock-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #0c1222;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  animation: pop .28s cubic-bezier(.2, .9, .3, 1.15)
}

.lock-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 12px
}

.lock-box h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.01em
}

.lock-sub {
  margin: 8px 0 18px;
  color: var(--mut);
  font-size: 13px;
  font-weight: 600
}

.lock-field input {
  width: 100%;
  background: #0b1120;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: 0;
  transition: .2s
}

.lock-field input:focus {
  border-color: var(--acc)
}

.lock-err {
  margin: 12px 0 0;
  color: #ff6b6b;
  font-size: 12.5px;
  font-weight: 600
}

.lock-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px
}

.lock-actions button {
  flex: 1
}

/* toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #101828;
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 13px 18px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 200;
  max-width: min(92vw, 480px);
  text-align: center
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0)
}

.toast.ok {
  border-color: rgba(34, 197, 94, .5)
}

/* transisi antar halaman SPA */
.fade-enter-active,
.fade-leave-active {
  transition: opacity .18s ease
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0
}