:root {
  --live-comment-height: 56px;
}

/* ===============================
   LIVE COMMENT WRAPPER
================================ */
.live-comment-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 12000;

  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,.22);

  display: flex;
  flex-direction: column;

  min-height: 56px;
  max-height: 45vh;

  padding-bottom: env(safe-area-inset-bottom);

  transition: max-height .25s ease;

  /* 🔥 KUNCI MOBILE */
  touch-action: pan-y;
  pointer-events: auto;
}

/* ===============================
   HEADER (HANDLE / CLICK)
================================ */
/* HEADER HARUS BOLEH TAP */
.live-header {
  padding: 10px 14px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 8px;

  touch-action: manipulation;
  pointer-events: auto !important;
}



/* ===============================
   LIVE DOT (FIX ANDROID)
================================ */
.live-dot {
  position: relative;
  z-index: 9999;

  width: 10px;
  height: 10px;
  border-radius: 50%;

  /* 🔴 MERAH LIVE */
  background: #dc2626; /* red-500 */
  opacity: 1 !important;
  visibility: visible !important;
  flex-shrink: 0;

  box-shadow:
    0 0 0 2px rgba(0,0,0,.45),
    0 0 8px rgba(239,68,68,.9);

  animation: livePulseRed 1.6s infinite;
}

@keyframes livePulseRed {
  0% {
    box-shadow:
      0 0 0 2px rgba(0,0,0,.45),
      0 0 0 0 rgba(239,68,68,.7);
  }
  70% {
    box-shadow:
      0 0 0 2px rgba(0,0,0,.45),
      0 0 0 8px rgba(239,68,68,0);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(0,0,0,.45),
      0 0 0 0 rgba(239,68,68,0);
  }
}

/* ===============================
   BODY KOMENTAR
================================ */
.live-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px;
}

/* ===============================
   INPUT
================================ */
.live-input {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.06);
}

.live-input input {
  flex: 1;
}

/* ===============================
   SEO CONTENT
================================ */
#seo-map-content {
  transition: opacity .25s ease, transform .25s ease;
}

body.focus-live #seo-map-content {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ===============================
   NAVBAR
================================ */
.navbar-collapse {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 11000;
  background: #212529;
}

/* ===============================
   COMMENT ITEM
================================ */
.live-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.like-btn {
  background: transparent;
  border: none;
  color: #ff4d6d;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}

.like-btn.liked {
  color: #dc2626;
  font-weight: 600;
}

/* ===============================
   MOBILE FIX (WAJIB)
   ANDROID BLUR BUG
================================ */
@media (max-width: 768px) {
  .live-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0,0,0,.55);
  }
}

.live-comment-wrapper.min {
  max-height: 56px;
}

.live-comment-wrapper.max {
  max-height: 45vh;
}
