:root {
  --bg: #0a0a0c;
  --bg-2: #121216;
  --panel: #1a1a20;
  --panel-2: #141418;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f5f5f7;
  --muted: #9a9aa8;
  --accent: #01b5a6;
  --vip: #f2c14e;
  --live: #01b5a6;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 100%;
  --pad: clamp(10px, 1.2vw, 20px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button,
.icon-btn,
.ps-btn,
.watch-like-btn,
.watch-send-btn,
.nav-back,
.nav-menu-toggle,
.site-drawer-close,
.site-drawer-auth-btn,
.clip-close,
.clip-unmute {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: 100%; padding-inline: var(--pad); margin: 0; box-sizing: border-box; max-width: 100%; overflow-x: clip; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body.is-schedule .topbar {
  transition: transform 0.15s ease-out;
  will-change: transform;
}
body.is-schedule.is-schedule-topbar-collapsed .topbar {
  transform: translateY(-100%);
  pointer-events: none;
}
.topbar.is-search-open {
  z-index: 80;
}
.topbar-inner {
  width: 100%;
  max-width: 100%;
  padding-inline: var(--pad);
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 78px;
  min-width: 0;
}
.nav-back {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  place-items: center;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav-back[hidden] { display: none !important; }
.nav-back svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nav-menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  place-items: center;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav-menu-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-menu-toggle:hover {
  color: #fff;
  border-color: rgba(1, 181, 166, 0.45);
  background: rgba(1, 181, 166, 0.12);
}

/* Mobile drawer */
.site-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.site-drawer-backdrop:not([hidden]) { display: block; }
.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: min(320px, 86vw);
  background: #0e0e14;
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 8px 0 28px rgba(0,0,0,.35);
}
body.is-drawer-open .site-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
body.is-drawer-open {
  overflow: hidden;
}
.site-drawer-top {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: #121218;
}
.site-drawer-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.site-drawer-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.site-drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-drawer-user {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-drawer-user strong {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-drawer-user span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-drawer-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}
.site-drawer-close svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.site-drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.site-drawer-auth-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
}
.site-drawer-auth-btn .g-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.site-drawer-auth-btn.is-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.site-drawer-auth-btn[hidden] { display: none !important; }
.site-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.site-drawer-nav .navlink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  background: transparent;
}
.site-drawer-nav .navlink:hover {
  color: #fff;
  background: transparent;
}
.site-drawer-nav .navlink span { display: inline !important; }
.site-drawer-nav .navlink svg { color: inherit; flex-shrink: 0; }
.site-drawer-nav .navlink.is-active {
  color: var(--accent);
  background: transparent;
}
.site-drawer-nav .navlink.is-active::after { display: none; }
.site-drawer-foot {
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.site-drawer-sports {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-footer .brand-logo { height: 42px; }

.mainnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  flex-wrap: nowrap;
}
.navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.navlink svg { flex-shrink: 0; opacity: .9; }
.navlink-icon-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.navlink.has-gc-alert .navlink-icon-wrap::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 1.5px var(--bg, #0d0d12);
}
.navlink:hover { color: var(--ink); }
.navlink.is-active { color: var(--accent); }
.navlink.is-active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px;
  border-radius: 3px; background: var(--accent);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  margin-left: 12px;
  margin-right: 12px;
}
/* Desktop visual order: brand · nav · search(center) · sports · account */
.nav-menu-toggle { order: 0; }
.nav-back { order: 0; }
.brand { order: 1; }
.mainnav { order: 2; }
.topbar-tools { order: 3; }
.btn-sports { order: 4; flex: 0 0 auto; }
.btn-login { order: 5; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #121218;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  width: min(520px, 100%);
  min-width: min(320px, 100%);
  max-width: 100%;
  transition: border-color .15s ease;
  flex: 1 1 auto;
}
.search:focus-within { border-color: rgba(1, 181, 166, 0.55); color: #fff; }
.search input {
  border: 0; background: transparent; outline: none;
  color: var(--ink); font: inherit; font-size: 13px; width: 100%;
}
.search input::placeholder { color: #7d7d8c; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: #121218;
  color: var(--muted);
  padding: 0;
  display: grid; place-items: center; cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon-btn:hover {
  color: #fff;
  border-color: rgba(1, 181, 166, 0.45);
  background: rgba(1, 181, 166, 0.12);
}
.btn-sports {
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.btn-sports:hover { filter: brightness(1.08); }
.btn-sports-short { display: none; }
.btn-sports-icon {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: visible;
  border: 0;
  background: transparent;
  line-height: 0;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.btn-sports-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: transparent;
}
.search-toggle { display: none; }
.search-float {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 78px;
  z-index: 60;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(8, 8, 10, 0.98);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}
.search-float:not([hidden]) { display: flex; }
.search-float-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #121218;
  border: 1px solid rgba(1, 181, 166, 0.45);
  border-radius: 999px;
  padding: 10px 12px 10px 14px;
  color: var(--muted);
}
.search-float-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.search-float-bar input::placeholder { color: #7d7d8c; }
.search-float-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-float-close:hover { background: rgba(1,181,166,.2); }
.btn-login {
  border: 0; cursor: pointer;
  background: var(--accent);
  color: #fff; font: inherit; font-weight: 800; font-size: 13px;
  padding: 9px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
  max-width: min(220px, 46vw);
  flex: 0 0 auto;
  min-width: 0;
  order: 5;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.btn-login svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-login:hover { filter: brightness(1.08); }
.btn-login:active { transform: translateY(1px); }
.btn-login.is-logged-in {
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: none;
}
.btn-login.is-logged-in span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-bar {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #0d0d12;
}
.league-bar[hidden] { display: none !important; }
.league-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  appearance: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: #16161d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  transition: background .15s ease, border-color .15s ease;
}
.league-arrow:hover {
  background: #26262f;
  border-color: rgba(255,255,255,.3);
}
.league-arrow svg { display: block; }
.league-arrow-prev { left: 10px; }
.league-arrow-next { right: 10px; }
@media (min-width: 769px) {
  .league-arrow.is-visible { display: inline-flex; }
}
.league-bar-inner {
  width: 100%;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.league-bar-inner::-webkit-scrollbar { display: none; }
.league-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  margin-right: 4px;
}
.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: #1c1c24;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.league-chip[hidden] { display: none !important; }
.league-chip-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 3px;
}
.league-chip:hover {
  color: #fff;
  background: #26262f;
}
.league-chip.is-active {
  color: #fff;
  background: var(--accent);
}
.league-chip.is-live-league {
  position: relative;
  padding-right: 26px;
}
.league-chip.is-live-league:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.55);
  color: #f2f2f5;
}
.league-chip.is-live-league::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: #e63946;
  transform: translateY(-50%);
  pointer-events: none;
  animation: livePulseDot 1.4s ease-in-out infinite;
}
@keyframes livePulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- HERO 1920×670 desktop / 1920×730 mobile ---------- */
.hero {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1920 / 670;
  background: var(--panel);
}
@media (max-width: 819px) {
  .hero { aspect-ratio: 1920 / 730; }
}
.hero-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.hero-slide {
  min-width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center;
  padding: 0;
  color: #fff;
  overflow: hidden;
}
.hero-slide .hero-bg,
.hero-slide picture,
.hero-slide picture img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slide picture { display: block; }
.hero-slide .hero-content { display: none; }
.hero-slide::after { display: none; }
.hero-slide a.hero-link,
.hero-slide .hero-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-cta {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 40px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #041816;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.22);
  cursor: pointer; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; line-height: 0; font-size: 0;
}
.hero-arrow svg { display: block; width: 20px; height: 20px; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-arrow:hover { background: rgba(0,0,0,.65); }

/* ---------- RAILS ---------- */
.rail { margin-top: 34px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rail-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.more { color: var(--muted); font-weight: 700; font-size: 14px; }
.more:hover { color: var(--accent); }

.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, calc((100% - 98px) / 7));
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 8px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

.rail-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
}
.rail-arrow svg { display: block; width: 20px; height: 20px; }
.rail-prev { left: 6px; }
.rail-next { right: 6px; }
.rail-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.rail-arrow[hidden] { display: none !important; }
.rail[hidden] { display: none !important; }

/* CARD Highlights / Klip — isi penuh lebar */
.card { cursor: pointer; width: 100%; min-width: 0; scroll-snap-align: start; }
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 255 / 324;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb::after { display: none; }
.card-brandtag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; color: #fff; opacity: .95;
  display: flex; align-items: center; gap: 5px;
}
.card-brandtag .dot {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent); display: inline-block;
}
.vip {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: var(--vip);
  color: #3a2600; font-weight: 800; font-size: 10px;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .5px;
}
.card-overlay {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 3;
  font-weight: 800; line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.card-overlay .type { font-size: 15px; letter-spacing: .5px; }
.card-title {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #e8e8ee;
  line-height: 1.35;
  text-align: center;
}
.card-sub { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }

/* REPLAY score card */
.score-box {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12px;
}
.score-box .rep { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.score-line { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 30px; }
.score-line .vs { font-size: 13px; color: var(--muted); }
.flags { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.flags img { width: 34px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* LIVE cards — thumb 1920×1080 (16:9) */
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.live-card { cursor: pointer; }
.live-thumb {
  position: relative;
  aspect-ratio: 1920 / 1080;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 0;
}
.live-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.live-meta {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.live-league {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.live-league-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.live-league-row img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.live-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}
.more[hidden] { display: none !important; }

/* PROMO 1840×200 — dynamic carousel */
.promo-banner {
  margin-top: 34px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  line-height: 0;
  position: relative;
}
.promo-banner[hidden] { display: none !important; }
.promo-track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.promo-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}
.promo-banner img,
.promo-slide img,
.promo-slide picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1840 / 200;
  object-fit: cover;
  object-position: center;
  display: block;
}
.promo-slide picture {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
@media (max-width: 819px) {
  .promo-banner img,
  .promo-slide img,
  .promo-slide picture img {
    aspect-ratio: 1840 / 300;
  }
}
.promo-slide a { display: block; width: 100%; }
.promo-cta {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #041816;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  pointer-events: auto;
}
.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.promo-arrow svg { display: block; width: 18px; height: 18px; }
.promo-prev { left: 10px; }
.promo-next { right: 10px; }
.promo-arrow:hover { background: rgba(0,0,0,.72); }
.promo-arrow[hidden] { display: none !important; }

.hero[hidden] { display: none !important; }
.hero-arrow[hidden] { display: none !important; }

/* Sticky footer banner — full-bleed 2000×200 desktop / 1840×300 mobile */
.footer-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  box-sizing: border-box;
}
.footer-ad-bar[hidden] { display: none !important; }
.footer-ad-track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 -6px 24px rgba(0,0,0,.4);
  pointer-events: auto;
  background: #0c0c10;
}
.footer-ad-slide {
  flex: 0 0 100%;
  min-width: 100%;
  line-height: 0;
}
.footer-ad-link,
.footer-ad-slide > div {
  display: block;
  width: 100%;
}
.footer-ad-bar picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.footer-ad-bar img,
.footer-ad-bar picture img {
  width: 100%;
  height: calc(100vw * 200 / 2000);
  max-height: 200px;
  aspect-ratio: 2000 / 200;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 2000px) {
  .footer-ad-bar img,
  .footer-ad-bar picture img {
    height: 200px;
  }
}
@media (max-width: 819px) {
  .footer-ad-bar img,
  .footer-ad-bar picture img {
    height: calc(100vw * 300 / 1840);
    max-height: 300px;
    aspect-ratio: 1840 / 300;
  }
}
body.has-footer-ad {
  padding-bottom: min(200px, calc(100vw * 200 / 2000));
}
@media (max-width: 819px) {
  body.has-footer-ad {
    padding-bottom: min(300px, calc(100vw * 300 / 1840));
  }
}
body.is-clip .footer-ad-bar {
  display: none !important;
}
body.is-clip.has-footer-ad {
  padding-bottom: 0;
}
/* Sembunyikan footer ad saat player live masuk fullscreen */
body.is-watch-fs .footer-ad-bar,
:fullscreen .footer-ad-bar,
:-webkit-full-screen .footer-ad-bar {
  display: none !important;
}
body.is-watch-fs.has-footer-ad {
  padding-bottom: 0;
}

.watch-view[hidden] { display: none !important; }
.watch-view {
  padding: 18px var(--pad) 28px;
  background: var(--bg);
}
.watch-more {
  margin-top: 18px;
  padding-bottom: 8px;
}
.watch-promo {
  margin: 0 0 8px;
}
.watch-more .rail { margin-top: 28px; }
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 16px;
  align-items: start;
}
.watch-player-card,
.watch-chat-card {
  border: 1px solid var(--line);
  background: #101015;
  border-radius: 16px;
  overflow: hidden;
}
.watch-player-card {
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3);
  border: 0;
  background: #000;
  border-radius: 12px;
}
.watch-back {
  margin: 12px 12px 0;
  border: 1px solid rgba(255,255,255,.1);
  background: #17171e;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.watch-back:hover { color: #fff; border-color: rgba(1,181,166,.45); }
.watch-stage {
  position: relative;
  margin-top: 0;
  aspect-ratio: 16 / 9;
  background: #050508;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}
.watch-stage:fullscreen,
.watch-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  background: #000;
}
.watch-stage:fullscreen .watch-video,
.watch-stage:-webkit-full-screen .watch-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.watch-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
  display: none;
}
.watch-stage.is-playing .watch-video { display: block; }
.watch-stage.is-playing .watch-video-placeholder { display: none; }
.watch-stage.is-ended .watch-video { display: none; }
.watch-stage.is-ended .watch-video-placeholder { display: flex; z-index: 3; }
.watch-stage.is-ended .ps-player { display: none; }
.watch-stage.is-waiting .watch-video { display: none; }
.watch-stage.is-waiting .watch-video-placeholder { display: flex; z-index: 3; }
.watch-stage.is-waiting .ps-player { display: none; }
.watch-video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--accent);
  z-index: 2;
  overflow: hidden;
}
.watch-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1;
  max-width: min(92%, 720px);
  padding: 12px;
}
.watch-stage.has-coming-soon .watch-video-placeholder {
  display: block;
}
.watch-coming-soon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}
.watch-coming-soon[hidden] { display: none !important; }
.watch-stage.has-coming-soon .watch-placeholder-inner { display: none; }
.watch-video-placeholder p {
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.45;
}
.watch-stage.is-ended .watch-video-placeholder p,
.watch-stage.is-waiting .watch-video-placeholder p {
  white-space: nowrap;
  max-width: none;
  font-size: clamp(14px, 2vw, 20px);
  padding: 8px 12px;
}

/* —— Prabu custom player —— */
.ps-live-meta {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.watch-stage.is-playing .ps-live-meta { display: inline-flex; }
.watch-stage.is-ended .ps-live-meta,
.watch-stage.is-waiting .ps-live-meta { display: none; }
.ps-live-meta[hidden] { display: none !important; }
.ps-player {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 28%, transparent 62%, rgba(0,0,0,.72) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.watch-stage.is-playing:hover .ps-player,
.watch-stage.is-playing.is-controls .ps-player,
.watch-stage.is-playing.is-paused .ps-player {
  opacity: 1;
}
.ps-player-top,
.ps-player-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.ps-player-top {
  justify-content: flex-start;
  min-height: 40px; /* reserve space so bar layout stays stable; LIVE lives in .ps-live-meta */
}
.ps-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 3px;
}
.ps-live-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: ps-pulse 1.4s infinite;
}
@keyframes ps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ps-live-pill.is-off {
  background: #3a3f48;
  animation: none;
}
.ps-live-pill.is-berlangsung {
  background: #e11d48;
  font-size: 9px;
  letter-spacing: 0.03em;
  padding: 4px 7px;
  max-width: calc(100% - 8px);
}
.ps-live-pill.is-berlangsung i {
  background: #fff;
  animation: ps-pulse 1.4s infinite;
}
.ps-center-play {
  pointer-events: auto;
  align-self: center;
  width: 64px; height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgba(1,181,166,.95);
  color: #06120f;
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.watch-stage.is-paused .ps-center-play,
.watch-stage.is-playing.is-paused .ps-center-play {
  display: grid;
}
.ps-center-play[hidden] { display: none !important; }
.ps-center-play:hover { background: #00c9b4; }
.ps-player-bar {
  background: linear-gradient(180deg, transparent, rgba(5,5,8,.55));
}
.ps-btn {
  border: 0;
  background: rgba(12,14,18,.55);
  color: #fff;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, transform .12s ease;
}
.ps-btn:hover { background: rgba(1,181,166,.45); }
.ps-btn:active { transform: scale(.96); }
.ps-btn svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
/* Class-based icon swap — reliable on iOS Safari (unlike SVG [hidden]) */
#psPlayBtn .ps-ico-pause,
#psMuteBtn .ps-ico-vol {
  display: none !important;
}
#psPlayBtn.is-playing .ps-ico-play {
  display: none !important;
}
#psPlayBtn.is-playing .ps-ico-pause {
  display: block !important;
}
#psMuteBtn.is-unmuted .ps-ico-mute {
  display: none !important;
}
#psMuteBtn.is-unmuted .ps-ico-vol {
  display: block !important;
}
#psMuteBtn.is-unmuted {
  background: rgba(1,181,166,.88);
  color: #06120f;
}
.ps-quality-btn {
  width: auto;
  min-width: 52px;
  padding: 0 12px;
  gap: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ps-time {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: .9;
}
.ps-spacer { flex: 1; }
.ps-quality { position: relative; }
.ps-quality-menu {
  position: absolute;
  right: 0; bottom: calc(100% + 8px);
  min-width: 112px;
  background: #14141b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  z-index: 6;
}
.ps-quality-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #cfd3da;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}
.ps-quality-menu button:hover,
.ps-quality-menu button.is-active {
  background: rgba(1,181,166,.16);
  color: #fff;
}
.watch-viewers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.65);
  pointer-events: none;
  position: static;
}
.watch-viewers strong {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.watch-viewers span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2d55;
  box-shadow: 0 0 8px rgba(255, 45, 85, .75);
  flex-shrink: 0;
}
.watch-match-header {
  padding: 18px 14px 16px;
  background: #101015;
}
.watch-kicker {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
}
.watch-scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}
.watch-team {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  font-size: 14px;
}
.watch-team img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
}
.watch-score-num {
  justify-self: center;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.watch-vs {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 700;
}
.watch-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.watch-meta-kickoff {
  color: var(--muted);
  text-align: center;
}
.watch-meta-league {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.watch-league-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.watch-league-icon[hidden] { display: none !important; }
.watch-stats-card {
  border-top: 1px solid var(--line);
  background: #0f0f14;
}
.watch-stats-toggle {
  width: 100%;
  border: 0;
  background: #14141b;
  color: #fff;
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.watch-stats-toggle svg { transition: transform .2s ease; }
.watch-stats-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.watch-stats-list[hidden] { display: none !important; }
.watch-stat-row {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.watch-stat-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}
.watch-stat-name {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.watch-stat-right { text-align: right; }
.watch-stat-track {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.watch-stat-left-bar,
.watch-stat-right-bar {
  height: 100%;
  min-width: 0;
}
.watch-stat-left-bar {
  justify-self: end;
  background: #fff;
  border-radius: 999px 0 0 999px;
}
.watch-stat-right-bar {
  justify-self: start;
  background: var(--accent);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 12px rgba(1,181,166,.45);
}
.watch-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.watch-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  height: 100%;
  background: #0f0f0f;
  position: relative;
  overflow: hidden;
}
.watch-hearts {
  position: absolute;
  right: 48px;
  left: auto;
  bottom: 62px;
  top: 56px;
  width: 72px;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
}
.watch-float-heart {
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: auto;
  margin-left: calc(var(--heart-size, 26px) / -2);
  width: var(--heart-size, 26px);
  height: var(--heart-size, 26px);
  color: #ff2d55;
  animation: watch-float-heart var(--heart-dur, 1.85s) ease-out forwards;
  filter: drop-shadow(0 2px 5px rgba(255, 45, 85, 0.4));
  will-change: transform, opacity;
  transform-origin: center bottom;
}
.watch-float-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes watch-float-heart {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.45) rotate(-10deg);
  }
  14% {
    opacity: 1;
    transform: translate3d(calc(var(--dx, 0px) * 0.25), -28px, 0) scale(1) rotate(-4deg);
  }
  62% {
    opacity: 0.96;
    transform: translate3d(calc(var(--dx, 0px) * 0.75), calc(var(--heart-rise, -220px) * 0.62), 0) scale(1.08) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 0px), var(--heart-rise, -220px), 0) scale(1.12) rotate(14deg);
  }
}
.watch-chat-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 14px 14px;
  text-align: center;
  background: transparent;
  flex: 0 0 auto;
}
.watch-chat-gate[hidden] { display: none !important; }
.watch-chat-gate p {
  margin: 0;
  color: #cfd3da;
  font-size: 13px;
  line-height: 1.35;
  max-width: none;
  white-space: nowrap;
}
.watch-chat-login {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  padding: 0 14px;
  min-height: 42px;
  height: 42px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.watch-chat-form.is-guest .watch-chat-login {
  display: inline-flex;
}
.watch-chat-form.is-guest input,
.watch-chat-form.is-guest .watch-send-btn {
  display: none !important;
}
.watch-chat-login:hover {
  background: #f7f7f7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}
.watch-chat-login:active {
  transform: translateY(1px);
}
.watch-chat-login-g {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.watch-chat-login span {
  display: inline !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-chat-empty {
  color: #8b919a;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.45;
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 120px;
}
.watch-chat-empty span { display: block; }
.watch-chat-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
}
.watch-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #272727;
  flex: 0 0 auto;
}
.watch-chat-head strong { font-size: 14px; }
.watch-chat-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.watch-chat-icon {
  color: var(--accent);
  flex: 0 0 auto;
}
.watch-chat-head > #watchChatUser {
  color: var(--muted);
  font-size: 12px;
}
.watch-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.watch-chat-title .watch-like-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a7a7b1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.watch-like-total svg {
  color: #ff2d55;
  flex: 0 0 auto;
  transform-origin: center;
}
.watch-like-total.is-live svg {
  animation: watch-like-pulse .48s ease;
}
.watch-like-total.is-live b {
  color: #ff2d55;
}
@keyframes watch-like-pulse {
  0% { transform: scale(.8); }
  45% { transform: scale(1.38); filter: drop-shadow(0 0 7px rgba(255,45,85,.8)); }
  100% { transform: scale(1); }
}
.watch-chat-messages {
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge */
}
.watch-chat-messages > .watch-chat-msg:first-child {
  margin-top: auto;
}
.watch-chat-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome, Safari, mobile WebKit */
}
.watch-chat-messages:has(> .watch-chat-empty:only-child) {
  justify-content: center;
  align-items: center;
}
.watch-chat-msg {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
}
.watch-chat-msg.is-entering {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.watch-chat-msg:hover { background: rgba(255,255,255,.04); }
.watch-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c2c34;
  color: #cfd0d8;
  font-size: 11px;
  font-weight: 800;
  align-self: center;
}
.watch-chat-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
}
.watch-chat-user {
  color: #aaa;
  font-weight: 700;
  margin-right: 0;
  line-height: 1.35;
}
.watch-chat-text {
  color: #f1f1f1;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.watch-chat-text.is-deleted,
.watch-chat-msg.is-deleted .watch-chat-text {
  color: #8b919a;
  font-style: italic;
}
.watch-chat-text.is-system {
  color: #f0a0a0;
  font-weight: 700;
  font-style: italic;
}
.watch-chat-mod {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  padding-left: 6px;
  align-self: center;
}
.watch-chat-msg:hover .watch-chat-mod,
.watch-chat-msg.is-mod-open .watch-chat-mod,
.watch-chat-msg:focus-within .watch-chat-mod {
  display: flex;
}
.watch-chat-msg.is-modifiable {
  cursor: pointer;
}
.watch-chat-mod-btn {
  border: 0;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #cfd3dc;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.watch-chat-mod-btn:hover { background: rgba(1,181,166,.25); color: #fff; }
.watch-chat-mod-btn.is-ban:hover { background: rgba(221,75,57,.35); color: #fff; }

/* Login popup (#daftar) */
.ps-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ps-login-overlay[hidden] { display: none !important; }
.ps-login-card {
  position: relative;
  width: min(380px, 100%);
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 22px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
  overflow: visible;
}
.ps-login-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid #8f1a1a;
  border-radius: 999px;
  background: linear-gradient(180deg, #e53935 0%, #c62828 52%, #a31515 100%);
  color: #fff;
  padding: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 2px 0 #7a1414,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background .15s ease, transform .12s ease, box-shadow .12s ease;
}
.ps-login-close svg {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
}
.ps-login-close:hover {
  background: linear-gradient(180deg, #ef5350 0%, #d32f2f 52%, #b71c1c 100%);
}
.ps-login-close:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 #7a1414,
    0 2px 5px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ps-login-brand {
  display: flex;
  justify-content: center;
  margin: 0;
}
.ps-login-brand img {
  width: min(200px, 72vw);
  height: auto;
}
.ps-login-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
}
.ps-login-google {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #d8d8dc;
  color: #2b2b30;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 16px;
  min-height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, transform .12s ease;
}
.ps-login-google:hover {
  background: #cfcfd4;
  box-shadow: none;
}
.ps-login-google:active {
  transform: translateY(1px);
  background: #c5c5ca;
}
.ps-login-google-g {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.ps-login-gacor {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #a07818;
  background: linear-gradient(180deg, #e8c84a 0%, #cfa028 100%);
  color: #2a2107;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background .15s ease, transform .12s ease;
}
.ps-login-gacor:hover {
  background: linear-gradient(180deg, #edd05a 0%, #d4a830 100%);
  box-shadow: none;
}
.ps-login-gacor:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #d9b840 0%, #b89020 100%);
}
.ps-login-wa {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid #157a42;
  background: linear-gradient(180deg, #2fbf67 0%, #229653 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
  transition: background .15s ease, transform .12s ease;
}
.ps-login-wa-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.ps-login-wa:hover {
  background: linear-gradient(180deg, #36c86f 0%, #27a35b 100%);
  box-shadow: none;
}
.ps-login-wa:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #28a85a 0%, #1d8448 100%);
}
body.is-login-open {
  overflow: hidden;
}

/* Lightweight confirm popup (public watch) */
.ps-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ps-confirm-overlay[hidden] { display: none !important; }
.ps-confirm-card {
  width: min(360px, 100%);
  background: #1a1a20;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.ps-confirm-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.ps-confirm-card p {
  margin: 0 0 16px;
  color: #cfd3dc;
  font-size: 14px;
  line-height: 1.45;
}
.ps-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ps-confirm-actions button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
}
.ps-confirm-cancel {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.ps-confirm-ok {
  background: var(--accent);
  color: #fff;
}
.ps-confirm-ok.is-danger {
  background: #dd4b39;
}
.watch-chat-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #272727;
  flex: 0 0 auto;
}
.watch-chat-form.is-guest {
  grid-template-columns: 1fr auto;
}
.watch-chat-form[hidden] { display: none !important; }
.watch-chat-form input {
  width: 100%;
  border: 1px solid transparent;
  background: #212121;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  font: inherit;
  font-size: 16px;
}
.watch-chat-form input:focus { border-color: rgba(1,181,166,.55); }
.watch-send-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.watch-send-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.watch-like-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.watch-like-btn:active { transform: scale(0.88); }
.watch-like-btn.is-hot svg path {
  fill: var(--accent);
  stroke: var(--accent);
}

/* FOOTER SEO */
.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding: 36px 0 22px;
  background: var(--panel-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-about {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 360px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.footer-col a:hover { color: var(--accent); }
.footer-seo-note { display: none; }
.footer-bottom { padding-top: 18px; }
.footer-note { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.footer-disclaimer {
  margin: 0;
  color: #6f6f7c;
  font-size: 12px;
  line-height: 1.55;
  max-width: 980px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .search { min-width: 220px; }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hscroll { grid-auto-columns: minmax(150px, calc((100% - 56px) / 5)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .navlink > span:not(.navlink-icon-wrap) { display: none; }
  .navlink { padding: 8px 10px; }
  .watch-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .watch-player-card,
  .watch-side { display: contents; }
  .watch-back { order: 0; }
  .watch-stage { order: 1; }
  .watch-match-header { order: 2; }
  .watch-chat-card { order: 3; min-height: min(58vh, 560px); height: min(58vh, 560px); max-height: min(58vh, 560px); }
  .watch-stats-card { order: 4; }
}
@media (max-width: 900px) {
  .mainnav { display: none; }
  .topbar-inner {
    position: relative;
    height: 68px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-menu-toggle {
    display: inline-flex;
    order: 0;
    position: relative;
    z-index: 2;
  }
  .nav-back {
    order: 1;
    position: relative;
    z-index: 2;
  }
  .btn-login {
    display: none !important;
  }
  .topbar .brand {
    order: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: auto;
  }
  .brand-logo { height: 28px; }
  .site-footer .brand-logo { height: 34px; }
  .btn-sports { display: none !important; }
  .btn-sports-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    margin: -7px 0;
  }
  .topbar-tools {
    order: 2;
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .search-desktop { display: none !important; }
  .search-toggle { display: grid; }
  .search-float { height: 68px; }
  body.is-watch .nav-back:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.is-watch .topbar-inner { gap: 6px; }
  body.is-watch .watch-back { display: none !important; }
  .hscroll { grid-auto-columns: minmax(140px, 42vw); }
  .rail-arrow { display: none; }
  .rail { margin-top: 24px; }
  .rail-head h2 { font-size: 17px; }
  .league-label span,
  .league-label { font-size: 11px; }
  .league-bar { max-width: 100%; overflow: hidden; }
  body.is-watch .league-bar { display: none; }
  .watch-view {
    padding: 0 0 calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    max-width: 100%;
  }
  .watch-layout,
  .watch-more {
    max-width: 100%;
    overflow-x: hidden;
  }
  .watch-back,
  .watch-stage,
  .watch-player-card,
  .watch-match-header,
  .watch-chat-card,
  .watch-stats-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    max-width: 100%;
  }
  .watch-back {
    margin: 10px 12px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
  }
  .watch-back span { display: none; }
  .watch-stage {
    margin-top: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(56vw, 42vh);
  }
  .watch-video-placeholder svg { width: 52px; height: 52px; }
  .watch-video-placeholder p { font-size: clamp(15px, 4.2vw, 22px); padding: 0 16px; }
  .watch-video-placeholder span { font-size: 12px; }
  .watch-viewers { font-size: 11px; }
  .ps-live-meta { top: 8px; left: 10px; gap: 8px; }
  .live-thumb-meta { top: 8px; left: 10px; gap: 8px; }
  .live-thumb-meta .watch-viewers { font-size: 11px; }
  .ps-player-bar { padding: 8px 10px; gap: 6px; }
  .ps-btn { width: 34px; height: 34px; }
  .watch-match-header { padding: 14px 12px 12px; }
  .watch-kicker {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .1em;
  }
  .watch-scoreboard {
    grid-template-columns: minmax(0, 1fr) 1fr auto 1fr minmax(0, 1fr);
    gap: 6px;
    max-width: none;
  }
  .watch-team { font-size: 13px; gap: 6px; }
  .watch-team img { width: 48px; height: 48px; }
  .watch-score-num { font-size: clamp(24px, 7vw, 36px); }
  .watch-vs { font-size: 11px; }
  .watch-meta {
    margin-top: 10px;
    gap: 6px;
    font-size: 11px;
  }
  .watch-meta-league { font-size: 12px; gap: 6px; }
  .watch-league-icon { width: 16px; height: 16px; }
  .watch-chat-card {
    min-height: clamp(380px, 56dvh, 620px);
    height: clamp(380px, 56dvh, 620px);
    max-height: clamp(380px, 56dvh, 620px);
    border-radius: 0;
    border-top: 1px solid var(--line);
  }
  .watch-chat-messages {
    padding: 8px 10px;
    overscroll-behavior-y: contain;
  }
  .watch-hearts { bottom: 64px; }
  .watch-chat-gate {
    padding: 10px 12px 12px;
  }
  .watch-chat-gate p {
    font-size: 12px;
    white-space: nowrap;
    max-width: 100%;
  }
  .watch-chat-login {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    gap: 7px;
  }
  .watch-stats-toggle { padding: 12px 14px; font-size: 13px; }
  .watch-stat-row { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .topbar-tools .icon-btn:not(.search-toggle) { display: none; }
  .brand-logo { height: 25px; }
  .site-footer .brand-logo { height: 30px; }
  .live-grid { grid-template-columns: 1fr; gap: 12px; }
  .hscroll {
    grid-auto-columns: minmax(42vw, 160px);
    margin-inline: 0;
    padding-inline: 2px;
  }
  .hero-arrow { width: 34px; height: 34px; font-size: 20px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    padding-bottom: 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-brand .brand {
    display: inline-flex;
    justify-content: flex-start;
  }
  .footer-about {
    margin: 10px 0 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }
  .footer-col h3 {
    margin: 0 0 8px;
    font-size: 13px;
  }
  .footer-col li { margin-bottom: 5px; }
  .footer-col a { font-size: 12px; }
  /* Menu & Informasi agak masuk ke tengah, jangan nempel tepi */
  .footer-col:nth-child(2) {
    padding-left: 18px;
    justify-self: start;
  }
  .footer-col:nth-child(3) {
    text-align: right;
    padding-right: 18px;
    justify-self: end;
  }
  .footer-col:nth-child(3) ul {
    display: inline-block;
    text-align: right;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-bottom {
    text-align: center;
    padding-top: 12px;
  }
  .footer-note { font-size: 12px; }
  .league-label { display: none; }
  .watch-stage {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  .watch-team strong {
    font-size: 12px;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .watch-chat-card {
    min-height: clamp(360px, 54dvh, 560px);
    height: clamp(360px, 54dvh, 560px);
    max-height: clamp(360px, 54dvh, 560px);
  }
  .watch-stat-top { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .site-footer { margin-top: 18px; padding-top: 22px; }
}


/* —— Jadwal & Skor —— */
.schedule-view {
  padding: 0 0 48px;
}
.schedule-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}
.schedule-ad-slot.has-creative {
  padding: 0;
  background: transparent;
  border: 0;
}
.schedule-ad-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.schedule-ad-mobile-wrap .schedule-ad-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
/* Banner fixed — mengikuti bawah navbar; naik ke top:0 saat navbar scroll hilang */
body.is-schedule .schedule-ad-top:not([hidden]) {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--schedule-ad-top, 78px);
  z-index: 74;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #0d0d10;
  border: 0;
  pointer-events: none;
  box-sizing: border-box;
  transition: top 0.15s ease-out;
}
.schedule-ad-top[hidden] { display: none !important; }
.schedule-ad-top-inner,
.schedule-ad-mobile-wrap,
.schedule-ad-track,
.schedule-ad-slide,
.schedule-ad-slot {
  pointer-events: auto;
}
.schedule-ad-desktop-inner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  height: 120px;
  overflow: hidden;
}
.schedule-ad-top.is-mobile-single .schedule-ad-desktop-inner {
  display: none !important;
}
.schedule-ad-desktop-inner .schedule-ad-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.schedule-ad-slide--desktop-pair {
  display: flex;
  flex: 0 0 100%;
  min-width: 100%;
  height: 120px;
  line-height: 0;
}
.schedule-ad-slot--empty {
  background: transparent;
  pointer-events: none;
}
.schedule-ad-mobile-wrap {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 80;
  overflow: hidden;
  position: relative;
  background: transparent;
  border: 0;
}
.schedule-ad-top.is-mobile-single .schedule-ad-mobile-wrap:not([hidden]) {
  display: block;
}
.schedule-ad-mobile-wrap .schedule-ad-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.schedule-ad-mobile-wrap .schedule-ad-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  line-height: 0;
}
.schedule-ad-slide .schedule-ad-slot--mobile-top,
.schedule-ad-slide a.schedule-ad-slot--mobile-top {
  display: block;
  width: 100%;
  height: 100%;
}
.schedule-ad-slot--half {
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  height: 120px;
}
body.is-schedule.has-schedule-top-ad-mobile .schedule-layout {
  padding-top: calc(100vw * 80 / 800);
}
body.is-schedule.has-schedule-top-ad-desktop .schedule-layout {
  padding-top: 120px;
}
@media (min-width: 820px) {
  body.is-schedule .schedule-ad-top:not([hidden]) {
    top: var(--schedule-ad-top, 78px);
  }
}
body.is-watch .schedule-ad-top,
body.is-live .schedule-ad-top,
body.is-clips .schedule-ad-top {
  display: none !important;
}
.schedule-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  column-gap: 24px;
  width: fit-content;
  max-width: calc(100% - (var(--pad) * 2));
  margin: 0 auto;
  padding: 12px var(--pad) 0;
  box-sizing: border-box;
  align-items: start;
  --schedule-content-offset: 22px;
}
.schedule-league-sidebar {
  grid-column: 1;
  width: 260px;
  min-width: 0;
  align-self: start;
  margin-top: var(--schedule-content-offset);
  position: sticky;
  top: calc(var(--schedule-ad-top, 78px) + var(--schedule-content-offset));
  max-height: calc(100vh - var(--schedule-ad-top, 78px) - var(--schedule-content-offset) - 12px);
  overflow: auto;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 6px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: #2a2a34 transparent;
}
.schedule-league-filters {
  display: flex;
  flex-direction: column;
}
.schedule-league-sidebar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8b919a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.schedule-league-sidebar-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: inherit;
}
.schedule-league-sidebar-label-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.schedule-league-nav {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0;
}
.schedule-league-nav-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  width: 100% !important;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: #c2c7d0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  padding: 9px 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}
.schedule-league-nav-item:hover {
  color: #fff;
}
.schedule-league-nav-item.is-active {
  background: transparent;
  color: var(--accent);
}
.schedule-league-nav-item.is-active:hover {
  color: var(--accent);
}
.schedule-league-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 3px;
}
.schedule-league-nav-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.schedule-league-nav-svg svg {
  width: 20px;
  height: 20px;
  display: block;
}
.schedule-league-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-league-nav-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ff4d4d;
  line-height: 1;
}
.schedule-league-nav-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: livePulseDot 1.4s ease-in-out infinite;
}
.schedule-wrap {
  grid-column: 2;
  min-width: 0;
  max-width: 720px;
  width: 100%;
  margin: 0;
  padding: 0;
  align-self: start;
}
.schedule-list > .schedule-day:first-child {
  margin-top: var(--schedule-content-offset, 22px);
}
@media (min-width: 820px) {
  .schedule-layout {
    padding-top: 16px;
    padding-right: var(--pad);
  }
}
@media (max-width: 899px) {
  .schedule-layout {
    display: grid;
    grid-template-columns: minmax(112px, 34vw) minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px var(--pad) 0;
    box-sizing: border-box;
    align-items: start;
    --schedule-content-offset: 12px;
  }
  .schedule-league-sidebar {
    display: block !important;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    margin-top: var(--schedule-content-offset);
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--schedule-ad-top, 56px) + var(--schedule-content-offset));
    max-height: calc(100vh - var(--schedule-ad-top, 56px) - var(--schedule-content-offset) - 12px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-league-filters {
    flex-direction: column;
    border-bottom: 0;
  }
  .schedule-league-filters .schedule-league-nav-item {
    flex: none;
    width: 100% !important;
    padding: 8px 10px;
    font-size: 11px;
    justify-content: flex-start !important;
    text-align: left;
  }
  .schedule-league-filters .schedule-league-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    line-height: 1.25;
  }
  .schedule-league-filters .schedule-league-nav-live {
    display: inline-flex;
    font-size: 8px;
  }
  .schedule-league-sidebar-label {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 10px 4px;
    font-size: 10px;
  }
  .schedule-league-nav-item {
    gap: 7px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .schedule-league-nav-icon,
  .schedule-league-nav-svg svg {
    width: 16px;
    height: 16px;
  }
  .schedule-league-nav {
    max-height: none;
    overflow: visible;
  }
  .schedule-wrap {
    grid-column: 2;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }
  .schedule-list > .schedule-day:first-child {
    margin-top: var(--schedule-content-offset);
  }
}
.schedule-more {
  margin-top: 20px;
  text-align: center;
}
.schedule-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 4px;
}
.schedule-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.schedule-nav-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: #17171e;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.schedule-nav-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(1,181,166,.45);
}
.schedule-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.schedule-back-btn { margin-top: 2px; }
.schedule-pager-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
}
.schedule-day {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schedule-day::before,
.schedule-day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.schedule-league {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
}
.schedule-league-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
  background: rgba(255,255,255,.04);
}
.schedule-league-meta { min-width: 0; }
.schedule-league-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}
.schedule-league-sub {
  margin: 1px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.schedule-match {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 0 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: default;
  transition: border-color .15s ease, background .15s ease;
}
.schedule-match.is-live {
  cursor: pointer;
}
.schedule-match.is-live:hover {
  background: #1a1a22;
}
.schedule-match.has-stats { cursor: pointer; }
.schedule-match.has-stats:hover { background: #1a1a22; }
.schedule-match.is-open {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  border-bottom-color: transparent;
}
.schedule-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.schedule-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.schedule-toggle svg { transition: transform .2s ease; display: block; }
.schedule-match.is-open .schedule-toggle svg { transform: rotate(90deg); }
.schedule-match.is-open .schedule-toggle { color: var(--accent); }
.schedule-stats {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
}
.schedule-stats.is-open { display: block; }
.schedule-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #121218;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.schedule-sb-team {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.schedule-sb-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.schedule-sb-team .schedule-team-fallback {
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.schedule-sb-team strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schedule-sb-score {
  color: #fff;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  justify-self: center;
  min-width: 1.4em;
  text-align: center;
}
.schedule-sb-vs {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  justify-self: center;
  min-width: 28px;
  text-align: center;
}
.schedule-stat-row {
  padding: 10px 14px 8px;
}
.schedule-stat-top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.schedule-stat-name {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}
.schedule-stat-right { text-align: right; }
.schedule-stat-track {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  height: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
.schedule-stat-left-bar,
.schedule-stat-right-bar { height: 100%; min-width: 0; }
.schedule-stat-left-bar { justify-self: end; background: #fff; }
.schedule-stat-right-bar { justify-self: start; background: var(--accent); }
.schedule-stats-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.schedule-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 40px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.schedule-time .live-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff4d4d;
}
.schedule-time .ft-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.schedule-time-date {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.1;
}
.schedule-time-date-compact {
  display: none;
}
.schedule-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.schedule-team {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 18px;
}
.schedule-team-flag,
.schedule-team img {
  width: 22px;
  height: 14px;
  flex: 0 0 22px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
}
.schedule-team-fallback {
  width: 22px;
  height: 14px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.schedule-team-fallback[hidden] {
  display: none !important;
}
.schedule-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.schedule-scores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
}
.schedule-scores span { line-height: 22px; }
.schedule-match-wrap.is-upcoming {
  position: relative;
  padding-top: 18px;
  margin-bottom: 8px;
}
.schedule-match-wrap + .schedule-match-wrap.is-upcoming {
  margin-top: 12px;
}
.schedule-league + .schedule-match-wrap.is-upcoming {
  margin-top: 6px;
}
.schedule-match-wrap.is-upcoming .schedule-match {
  margin-bottom: 0;
}
.schedule-upcoming-pill {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}
.schedule-starting-pill {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.schedule-match-wrap.is-starting {
  position: relative;
  padding-top: 18px;
  margin-bottom: 8px;
}
.schedule-match-wrap.is-starting .schedule-match {
  margin-bottom: 0;
}
.schedule-match-wrap.is-live-status {
  position: relative;
  padding-top: 18px;
  margin-bottom: 8px;
}
.schedule-match-wrap + .schedule-match-wrap.is-live-status {
  margin-top: 12px;
}
.schedule-league + .schedule-match-wrap.is-live-status {
  margin-top: 6px;
}
.schedule-match-wrap.is-live-status .schedule-match {
  margin-bottom: 0;
}
.schedule-live-pill {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ff4d4d;
  line-height: 1;
  white-space: nowrap;
}
.schedule-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: ps-pulse 1.4s infinite;
  flex-shrink: 0;
}
.schedule-scores.is-upcoming {
  color: var(--muted, #8b919a);
  font-weight: 600;
}
@media (min-width: 820px) {
  .schedule-league-name {
    font-size: 1rem;
  }
  .schedule-team span {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .schedule-team {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    min-height: 20px;
  }
  .schedule-team-flag,
  .schedule-team img {
    width: 24px;
    height: 15px;
    flex: 0 0 24px;
  }
  .schedule-team-fallback {
    width: 24px;
    height: 15px;
    flex: 0 0 24px;
    font-size: 8px;
  }
  .schedule-scores {
    font-size: 0.95rem;
  }
  .schedule-scores span {
    line-height: 20px;
  }
}
.schedule-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
  margin: 0;
}
@media (max-width: 819px) {
  .schedule-layout {
    max-width: none;
    padding: 10px var(--pad) 0;
  }
  .schedule-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }
  .schedule-match-wrap {
    width: 100%;
  }
  .schedule-match {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 0 8px;
    padding: 8px 8px 8px 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .schedule-match:not(.has-stats) {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
  }
  .schedule-match:not(.has-stats) .schedule-toggle {
    display: none;
  }
  .schedule-time {
    min-height: 0;
    gap: 2px;
    min-width: 0;
    width: 100%;
    padding: 0 6px 0 2px;
    font-size: 0.54rem;
    overflow: visible;
    box-sizing: border-box;
  }
  .schedule-time-date-full {
    display: none !important;
  }
  .schedule-time-date-compact {
    display: block;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    width: 100%;
    max-width: none;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
  .schedule-time .ft-pill,
  .schedule-time .live-pill {
    font-size: 0.48rem;
  }
  .schedule-teams {
    gap: 6px;
    min-width: 0;
    padding-left: 6px;
  }
  .schedule-team {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    min-height: 16px;
  }
  .schedule-team span {
    font-size: 0.52rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .schedule-team-flag,
  .schedule-team img {
    width: 20px;
    height: 12px;
    flex: 0 0 20px;
  }
  .schedule-team-fallback {
    width: 20px;
    height: 12px;
    flex: 0 0 20px;
    font-size: 6px;
  }
  .schedule-scores {
    justify-self: end;
    font-size: 0.64rem;
    min-width: 10px;
    gap: 2px;
    padding-left: 2px;
    text-align: right;
  }
  .schedule-scores.is-upcoming {
    min-width: 18px;
    font-size: 0.58rem;
    color: var(--muted);
  }
  .schedule-match-wrap.is-upcoming {
    padding-top: 16px;
  }
  .schedule-match-wrap + .schedule-match-wrap.is-upcoming {
    margin-top: 10px;
  }
  .schedule-upcoming-pill {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }
  .schedule-scores span {
    line-height: 1.2;
  }
  .schedule-toggle {
    justify-self: end;
    width: 14px;
    height: 14px;
  }
  .schedule-toggle svg {
    width: 14px;
    height: 14px;
  }
  .schedule-league {
    gap: 6px;
    margin: 10px 0 5px;
  }
  .schedule-league-icon {
    width: 18px;
    height: 18px;
  }
  .schedule-league-name {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
  .schedule-scoreboard {
    gap: 4px 6px;
    padding: 10px 6px 8px;
  }
  .schedule-sb-team {
    gap: 4px;
  }
  .schedule-sb-team img,
  .schedule-sb-team .schedule-team-fallback {
    width: 30px;
    height: 30px;
  }
  .schedule-sb-team .schedule-team-fallback {
    font-size: 10px;
  }
  .schedule-sb-team strong {
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
    max-width: 78px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: keep-all;
  }
  .schedule-sb-score {
    font-size: 20px;
    min-width: 1.1em;
  }
  .schedule-sb-vs {
    font-size: 8px;
    min-width: 18px;
    letter-spacing: 0.08em;
  }
  .schedule-day {
    margin: 12px 0 6px;
    font-size: 0.62rem;
    gap: 6px;
  }
}
body.is-schedule .home-view { display: none; }
body.is-schedule .schedule-view:not([hidden]) { display: block; }
body.is-schedule .league-bar { display: none; }
body.is-clips .home-view { display: none; }
body.is-clips .clips-view:not([hidden]) { display: block; }
body.is-clips .league-bar { display: none; }
body.is-clips .schedule-view { display: none; }
body.is-live .home-view { display: none; }
body.is-live .league-bar:not(.live-league-bar) { display: none; }
body.is-live .schedule-view { display: none; }
body.is-live .clips-view { display: none; }
body.is-live .live-view:not([hidden]) { display: block; }

/* —— Clip demo 9:16 (TikTok-style layer) —— */
.clip-view[hidden] { display: none !important; }
.clip-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: transparent;
}
body.is-clip .clip-view:not([hidden]) { display: block; }
body.is-clip {
  overflow: hidden;
}
.clip-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px) brightness(0.82) saturate(0.95);
  -webkit-backdrop-filter: blur(10px) brightness(0.82) saturate(0.95);
  overflow: hidden;
}
.clip-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(0.95) brightness(0.7);
  transform: scale(1.12);
  opacity: 0.28;
}
.clip-phone {
  position: relative;
  z-index: 1;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: min(100dvh, calc(100vw * 16 / 9));
  max-width: 420px;
  max-height: 100dvh;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 24px 80px rgba(0,0,0,0.45);
}
.clip-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 1;
}
.clip-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  z-index: 0;
  pointer-events: none;
}
.clip-poster[hidden] { display: none !important; }
.clip-phone.is-playing .clip-poster { opacity: 0; }
.clip-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 72%, rgba(0,0,0,.55) 100%);
  z-index: 2;
}
.clip-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px 10px;
  pointer-events: none;
}
.clip-viewer-pill,
.clip-close {
  pointer-events: auto;
}
.clip-viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.clip-viewer-pill strong { font-weight: 800; letter-spacing: 0.02em; }
.clip-close {
  appearance: none;
  border: 1px solid rgba(1, 181, 166, 0.55);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(1, 181, 166, 0.92);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(1, 181, 166, 0.28);
}
.clip-close:hover {
  background: #01c9b8;
  border-color: rgba(1, 181, 166, 0.95);
}
.clip-unmute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  appearance: none;
  border: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.clip-unmute[hidden] { display: none !important; }
.clip-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 4;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  pointer-events: none;
}

/* Desktop: popup transparan di atas halaman (beranda tetap di belakang) */
@media (min-width: 820px) {
  body.is-clip .topbar,
  body.is-clip .league-bar,
  body.is-clip .site-footer,
  body.is-clip .home-view,
  body.is-clip .schedule-view,
  body.is-clip .clips-view,
  body.is-clip .live-view,
  body.is-clip .watch-view {
    display: revert !important;
  }
  body.is-clip .home-view[hidden],
  body.is-clip .schedule-view[hidden],
  body.is-clip .clips-view[hidden],
  body.is-clip .live-view[hidden],
  body.is-clip .watch-view[hidden] {
    display: none !important;
  }
  .clip-stage {
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
  }
  .clip-phone {
    width: min(420px, calc(min(92dvh, 860px) * 9 / 16));
    height: auto;
    max-width: 420px;
    max-height: min(92dvh, 860px);
    aspect-ratio: 9 / 16;
    border-radius: 18px;
  }
}

/* Mobile: full-bleed hitam, sembunyikan chrome situs */
@media (max-width: 819px) {
  body.is-clip .topbar,
  body.is-clip .league-bar,
  body.is-clip .site-footer,
  body.is-clip .home-view,
  body.is-clip .schedule-view,
  body.is-clip .clips-view,
  body.is-clip .live-view,
  body.is-clip .watch-view { display: none !important; }
  .clip-view { background: #000; }
  .clip-stage {
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    place-items: stretch;
  }
  .clip-phone {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
}

.live-view {
  display: none;
  padding: 0 0 48px;
  min-height: 60vh;
}
.live-view[hidden] { display: none !important; }
.live-view-wrap { max-width: 100%; margin: 0 auto; }
.live-view .live-league-bar {
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 20px;
}
.live-view-grid { margin-top: 4px; }
.live-thumb-meta {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.live-thumb-meta .ps-live-pill {
  text-shadow: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.live-thumb-meta .watch-viewers {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.schedule-view[hidden],
.clips-view[hidden],
.schedule-footer[hidden],
.schedule-pager[hidden] { display: none !important; }
.clips-view {
  padding: 12px 0 48px;
  min-height: 60vh;
  display: none;
}
.clips-wrap { max-width: 100%; margin: 0 auto; }
.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  padding: 2px 4px 8px;
}
@media (min-width: 901px) {
  .clips-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.clips-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
  margin: 0;
}
@media (max-width: 560px) {
  .clips-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 560px) {
  .schedule-match { padding: 7px 6px; border-radius: 8px; }
  .schedule-match.is-open { border-radius: 7px 7px 0 0; }
  .schedule-stats { border-radius: 0 0 7px 7px; }
  .schedule-scoreboard { gap: 6px; padding: 14px 12px 10px; }
  .schedule-sb-team img,
  .schedule-sb-team .schedule-team-fallback { width: 40px; height: 40px; }
  .schedule-sb-score { font-size: 24px; }
  .schedule-stat-top { grid-template-columns: 48px minmax(0, 1fr) 48px; }
}

/* —— Group Chat (Telegram-style) —— */
.groupchat-view[hidden] { display: none !important; }
.groupchat-view {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
body.is-groupchat .groupchat-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  width: 100%;
  background: #121216;
}
body.is-groupchat .home-view,
body.is-groupchat .schedule-view,
body.is-groupchat .clips-view,
body.is-groupchat .live-view,
body.is-groupchat .watch-view,
body.is-groupchat .league-bar,
body.is-groupchat .site-footer,
body.is-groupchat .footer-ad-bar { display: none !important; }
body.is-groupchat.has-footer-ad { padding-bottom: 0 !important; }
body.is-groupchat {
  overflow: hidden;
  background: #121216;
}
html.is-groupchat {
  overflow: hidden;
  background: #121216;
}
body.is-groupchat #beranda {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 78px);
  min-height: calc(100dvh - 78px);
  max-height: calc(100dvh - 78px);
  overflow: hidden;
  background: #121216;
}

.groupchat-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  position: relative;
  background: #121216;
}
.gc-pin-bar {
  position: sticky;
  top: 0;
  z-index: 42;
  flex: 0 0 auto;
  order: -2;
  padding: 0 0 8px;
  margin: 0;
  background: none !important;
  border: none;
  box-shadow: none;
}
.gc-pin-bar[hidden] { display: none !important; }
.gc-pin-head,
.gc-pin-body {
  background: none !important;
  border: none;
  box-shadow: none;
}
.gc-pin-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.gc-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}
.gc-pin-label-icon {
  opacity: 0.9;
  color: #7dd9cf;
}
.gc-pin-body {
  display: flex;
  justify-content: center;
  width: 100%;
}
.gc-pin-body .gc-msg--pinned {
  margin-left: 0;
  margin-right: 0;
  align-self: center;
  pointer-events: auto;
  max-width: 100%;
  cursor: pointer;
}
.gc-pin-body .gc-msg--pinned:focus-visible {
  outline: 2px solid rgba(0, 194, 160, 0.55);
  outline-offset: 2px;
}
.gc-pin-body .gc-bubble--pin-preview {
  min-width: 0;
  max-width: min(88vw, 380px);
}
.gc-pin-body .gc-pin-snippet {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.gc-pin-body .gc-msg--pinned.is-mine {
  margin-left: 0;
  flex-direction: row-reverse;
}
.gc-pin-body .gc-action-btns {
  justify-content: center;
}
.groupchat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: auto;
  padding: 12px clamp(16px, 4vw, 48px) 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #121216;
}
.groupchat-messages::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gc-ctx-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}
body.is-gc-ctx-open {
  overflow: hidden;
}
body.is-gc-ctx-open .topbar {
  z-index: 150;
}
body.is-gc-ctx-open .groupchat-messages {
  overflow: hidden;
  touch-action: none;
  position: relative;
  z-index: 101;
}
body.is-gc-ctx-open .groupchat-messages .gc-msg:not(.is-ctx-focus) {
  filter: blur(7px);
  opacity: 0.45;
  pointer-events: none;
  transition: filter 0.18s ease, opacity 0.18s ease;
}
body.is-gc-ctx-open .groupchat-compose-wrap {
  z-index: 50;
  filter: blur(7px);
  opacity: 0.45;
  pointer-events: none;
}
body.is-gc-ctx-open .gc-ctx-menu {
  z-index: 140;
}
.gc-ctx-backdrop[hidden] { display: none !important; }
.gc-msg.is-ctx-focus {
  position: relative;
  z-index: 105;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.gc-msg.is-gc-alert-target .gc-bubble {
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.75);
}
.gc-msg.is-reply-highlight {
  position: relative;
  z-index: 115;
  transform: scale(1.03);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.42));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.groupchat-messages::-webkit-scrollbar-thumb {
  display: none;
}

.gc-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: min(88%, 380px);
}
.gc-msg:not(.is-mine) {
  align-self: flex-start;
}
.gc-msg.is-mine {
  margin-left: auto;
  flex-direction: row-reverse;
  align-self: flex-end;
}
.gc-msg.is-mine .gc-avatar { flex-shrink: 0; }
.gc-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.gc-msg.is-mine .gc-stack {
  align-items: flex-end;
}
.gc-msg.is-mine .gc-bubble {
  background: var(--accent);
  border-color: var(--accent);
}

.gc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c2c34;
  color: #d5d6de;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.gc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gc-bubble {
  background: #3a3a44;
  border: none;
  border-radius: 14px 14px 14px 4px;
  padding: 9px 12px 7px;
  width: fit-content;
  max-width: min(280px, 72vw);
}
.gc-msg:not(.is-mine) .gc-bubble {
  background: #3a3a44;
}
.gc-msg:not(.is-mine) .gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview):not(.gc-reply-quote--themed) {
  background: #3a3a44;
}
.gc-msg.is-mine .gc-bubble {
  border-radius: 14px 14px 4px 14px;
}
.gc-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #9a9aa3;
  margin-bottom: 3px;
  line-height: 1.2;
}
.gc-msg.is-mine .gc-name {
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.gc-name-text {
  min-width: 0;
}
.gc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #ececef;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.gc-msg.is-mine .gc-text {
  color: #fff;
}
.gc-time {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #727883;
  text-align: right;
}
.gc-msg.is-mine .gc-time {
  color: rgba(255, 255, 255, 0.72);
}
.gc-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
}
.gc-meta-row .gc-time {
  margin-top: 0;
}
.gc-view-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}
.gc-view-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.gc-view-count {
  font-variant-numeric: tabular-nums;
}
.gc-msg--typing {
  opacity: 0.9;
  pointer-events: none;
}
.gc-msg--typing .gc-bubble--typing {
  min-width: 72px;
}
.gc-msg.is-mine.gc-msg--typing .gc-bubble--typing {
  background: var(--accent);
  border-color: var(--accent);
}
.gc-msg.is-mine.gc-msg--typing .gc-name {
  color: rgba(255, 255, 255, 0.92);
}
.gc-msg--typing .gc-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  height: 14px;
}
.gc-msg--typing .gc-typing-dots span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  animation: gc-typing-dot 1.15s ease-in-out infinite;
}
.gc-msg--typing .gc-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.gc-msg--typing .gc-typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes gc-typing-dot {
  0%, 60%, 100% { opacity: 0.22; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.gc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #ececef;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.gc-rich b, .gc-rich strong { font-weight: 800; }
.gc-rich a {
  color: #7dd9cf;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
}
.gc-msg.is-mine .gc-rich a {
  color: #fff;
  text-decoration: underline;
}
.gc-rich mark.gc-hl, .gc-rich span.gc-hl, .gc-rich .gc-hl {
  padding: 0 2px;
  border-radius: 3px;
}
.gc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  max-width: min(280px, 72vw);
}
.gc-action-btn-ico { flex-shrink: 0; opacity: 0.92; }
.gc-bubble.gc-has-action {
  position: relative;
  padding-bottom: 14px;
}
.gc-btn-hint {
  position: absolute;
  left: 10px;
  bottom: 5px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.gc-msg:not(.is-mine) .gc-btn-hint {
  color: rgba(255, 255, 255, 0.5);
}
.gc-action-btn:hover { filter: brightness(1.08); }

.groupchat-compose-wrap {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 40;
  max-width: 560px;
  width: min(560px, 100%);
  margin: 0;
  padding: 0 12px max(14px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: transparent;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  transition: filter 0.15s ease;
}
.groupchat-compose-wrap.is-drag-over {
  filter: brightness(1.08);
}
.groupchat-compose-wrap.is-drag-over .groupchat-attach {
  background: #01b5a6;
  color: #fff;
}
.groupchat-compose-wrap > * {
  pointer-events: auto;
}
.groupchat-toolbar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0 0 8px;
  box-sizing: border-box;
}
.groupchat-toolbar[hidden] { display: none !important; }
.groupchat-compose {
  display: contents;
}
.groupchat-pending-btns {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 0 0 8px;
  box-sizing: border-box;
}
.groupchat-pending-btns[hidden] { display: none !important; }
.gc-pending-btn {
  position: relative;
  min-width: 0;
}
.gc-pending-btn-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.gc-pending-btn-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.gc-pending-btn-remove:hover { background: #c62828; }
.groupchat-compose .gc-input {
  grid-column: 1;
  grid-row: 5;
}
.groupchat-compose .groupchat-attach {
  grid-column: 2;
  grid-row: 5;
}
.groupchat-compose .groupchat-send {
  grid-column: 3;
  grid-row: 5;
}
.groupchat-alert-stack {
  grid-column: 3;
  grid-row: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 46px;
  pointer-events: none;
  z-index: 45;
}
.groupchat-alert-stack .groupchat-alert-jump {
  pointer-events: auto;
  margin-left: 50px;
  position: relative;
}
.groupchat-latest-jump {
  display: grid;
  place-items: center;
  padding: 0;
}
.groupchat-latest-jump::after {
  display: none;
}
.gc-latest-jump-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.groupchat-alert-stack .groupchat-alert-jump::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 1.5px #2c2c34;
}
.groupchat-alert-jump {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #3a3a44;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  transition: filter .15s ease, transform .15s ease;
}
.groupchat-alert-jump:hover { filter: brightness(1.1); }
.groupchat-alert-jump:active { transform: scale(.96); }
.groupchat-alert-jump[hidden] { display: none !important; }
.gc-typing-indicator {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: 118px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
.gc-typing-indicator[hidden] { display: none !important; }
.gc-typing-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}
.gc-typing-dots {
  display: inline-block;
  letter-spacing: 2px;
  animation: gc-load-dots 1.1s ease-in-out infinite;
}
@media (min-width: 900px) {
  .gc-typing-indicator {
    left: 200px;
  }
}
.groupchat-reply-preview {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 0;
  margin: 0;
  align-self: end;
  box-sizing: border-box;
}
.groupchat-reply-preview[hidden] { display: none !important; }
.groupchat-media-preview {
  grid-column: 1 / -1;
  grid-row: 4;
  padding: 6px 0 8px;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.groupchat-media-preview[hidden] { display: none !important; }
.gc-media-preview-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 72px;
  padding: 6px 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gc-media-preview-list::-webkit-scrollbar { display: none; }
.gc-media-preview-item {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin-top: 2px;
}
.gc-media-preview-item-inner {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #2c2c34;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gc-media-preview-item-inner img,
.gc-media-preview-item-inner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-media-preview-item-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 3;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}
.gc-media-preview-item-remove:hover { background: #c62828; }
.gc-reply-preview-box {
  position: relative;
  width: 100%;
}
.gc-reply-preview-close {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.gc-reply-preview-close:hover { background: #c62828; }
.gc-reply-quote--preview {
  width: 100%;
  min-width: 0;
  max-height: 52px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: 0;
  border-bottom: 0;
}
body.is-gc-replying .groupchat-compose .gc-input {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.gc-reply-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  padding: 7px 12px 6px;
  margin: 0;
  box-sizing: border-box;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  background: #3a3a44;
  color: #ececf1;
}
.gc-reply-unit {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: fit-content;
  max-width: min(280px, 72vw);
  align-items: stretch;
  overflow: hidden;
  border-radius: 14px 14px 14px 4px;
}
.gc-msg.is-mine .gc-reply-unit {
  border-radius: 14px 14px 4px 14px;
}
.gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview) {
  border-radius: 0;
  border-bottom: 0;
}
.gc-reply-unit > .gc-bubble.gc-has-reply {
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* Reply ke pesan orang lain / diri sendiri — netral, tanpa accent tema */
.gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview):not(.gc-reply-quote--themed) {
  background: #3a3a44;
  border-left-color: rgba(255, 255, 255, 0.1);
}
.gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview):not(.gc-reply-quote--themed) .gc-reply-quote-name {
  color: rgba(255, 255, 255, 0.72);
}
.gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview):not(.gc-reply-quote--themed) .gc-reply-quote-text {
  color: rgba(255, 255, 255, 0.78);
}
/* Orang reply pesan saya — full color tema */
.gc-reply-quote.gc-reply-quote--themed:not(.gc-reply-quote--preview) {
  background: var(--accent, #01b5a6);
  border-left: 0;
  padding-left: 12px;
}
.gc-reply-quote.gc-reply-quote--themed .gc-reply-quote-name {
  color: rgba(255, 255, 255, 0.98);
}
.gc-reply-quote.gc-reply-quote--themed .gc-reply-quote-text {
  color: rgba(255, 255, 255, 0.9);
}
/* Reply pesan orang lain dari akun sendiri — quote abu seperti bubble kiri */
.gc-msg.is-mine .gc-reply-unit > .gc-reply-quote:not(.gc-reply-quote--preview):not(.gc-reply-quote--themed) {
  background: #3a3a44;
  border-left: 0;
  padding-left: 12px;
}
/* Reply pesan sendiri — quote teal lebih gelap */
.gc-msg.is-mine .gc-reply-unit > .gc-reply-quote.gc-reply-quote--themed:not(.gc-reply-quote--preview) {
  background: #019688;
  border-left: 0;
  padding-left: 12px;
}
.gc-msg.is-mine .gc-reply-unit > .gc-reply-quote.gc-reply-quote--themed .gc-reply-quote-name {
  color: rgba(255, 255, 255, 0.98);
}
.gc-msg.is-mine .gc-reply-unit > .gc-reply-quote.gc-reply-quote--themed .gc-reply-quote-text {
  color: rgba(255, 255, 255, 0.88);
}
.gc-msg.is-mine .gc-reply-unit > .gc-bubble.gc-has-reply {
  background: var(--accent, #01b5a6);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.gc-reply-quote--link {
  cursor: pointer;
  transition: filter 0.15s ease;
}
.gc-reply-quote--link:hover {
  filter: brightness(1.06);
}
.gc-reply-quote-name {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
}
.gc-reply-quote-text {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-stack.gc-has-reply-quote {
  gap: 6px;
  width: fit-content;
  max-width: min(280px, 72vw);
}
.gc-bubble.gc-bubble--media.gc-has-reply .gc-name {
  padding-top: 9px;
}
.gc-ctx-menu {
  position: fixed;
  z-index: 140;
  min-width: 196px;
  max-width: min(260px, 88vw);
  padding: 3px 0;
  border-radius: 12px;
  background: #3a3a44;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  overflow: hidden;
}
.gc-ctx-menu[hidden] { display: none !important; }
.gc-ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 10px 13px;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
.gc-ctx-item:last-child {
  border-bottom: 0;
}
.gc-ctx-label {
  flex: 1 1 auto;
  min-width: 0;
}
.gc-ctx-item svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  opacity: 0.85;
  margin-left: auto;
}
.gc-ctx-item:hover,
.gc-ctx-item:focus-visible {
  background: rgba(0, 0, 0, 0.22);
  outline: none;
  box-shadow: none;
}
.gc-ctx-item.is-danger { color: #ff8a80; }
.gc-ctx-item.is-danger svg { opacity: 1; }
.gc-ctx-head {
  padding: 10px 13px 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gc-avatar--staff-target {
  cursor: pointer;
}
.gc-avatar--staff-target:hover {
  filter: brightness(1.08);
}
.gc-gift-title {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.gc-msg.is-mine .gc-gift-title {
  margin-left: 0;
  order: -1;
}
.gc-load-more {
  align-self: center;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1;
  background: none;
  border: none;
  flex-shrink: 0;
}
.gc-load-more[hidden] { display: none !important; }
.gc-load-more-dots {
  display: inline-block;
  animation: gc-load-dots 1.1s ease-in-out infinite;
}
@keyframes gc-load-dots {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.95; }
}
.gc-msg--system {
  align-self: center !important;
  max-width: min(92%, 420px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  flex-direction: column !important;
}
.gc-msg--system .gc-system {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  border-radius: 0;
  padding: 4px 12px;
  line-height: 1.35;
}
.gc-staff-notice {
  margin: 0 12px 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(1, 181, 166, 0.16);
  border: 1px solid rgba(1, 181, 166, 0.35);
  color: #b8fff4;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.gc-staff-notice[hidden] { display: none !important; }
.gc-closed-banner {
  margin: 0 12px 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 138, 128, 0.12);
  border: 1px solid rgba(255, 138, 128, 0.28);
  color: #ffc9c3;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.gc-closed-banner[hidden] { display: none !important; }
body.is-gc-closed .groupchat-compose-wrap:not(.is-staff-compose) .groupchat-send:disabled,
body.is-gc-closed .groupchat-attach.is-disabled,
body.is-gc-closed .groupchat-attach[aria-disabled="true"] {
  opacity: 0.45;
}
body.is-gc-has-media-preview .groupchat-messages {
  padding-bottom: 190px;
}
body.is-gc-command-mode .groupchat-toolbar {
  display: none !important;
}
.gc-compose-blocked {
  grid-column: 1 / -1;
  grid-row: 5;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
}
.groupchat-compose-wrap.is-compose-blocked .groupchat-alert-stack,
.groupchat-compose-wrap.is-compose-blocked .groupchat-reply-preview,
.groupchat-compose-wrap.is-compose-blocked .groupchat-media-preview,
.groupchat-compose-wrap.is-compose-blocked .groupchat-pending-btns,
.groupchat-compose-wrap.is-compose-blocked .groupchat-toolbar {
  display: none !important;
}
.gc-compose-blocked[hidden],
.groupchat-compose[hidden] {
  display: none !important;
}
.gc-mention-suggest {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin-bottom: 2px;
  border-radius: 12px;
  background: #3a3a44;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.gc-mention-suggest::-webkit-scrollbar {
  width: 5px;
}
.gc-mention-suggest::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.gc-mention-suggest::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.gc-mention-suggest::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.gc-mention-suggest[hidden] { display: none !important; }
.gc-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.gc-mention-item:last-child { border-bottom: 0; }
.gc-mention-item.is-active,
.gc-mention-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.gc-mention-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--accent, #01b5a6);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.gc-mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gc-mention-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-mention-match {
  color: #7cf7ea;
  font-weight: 800;
}
.gc-ctx-confirm {
  padding: 12px 13px;
}
.gc-ctx-confirm-text {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  text-align: center;
}
.gc-ctx-confirm-actions {
  display: flex;
  gap: 8px;
}
.gc-ctx-btn {
  flex: 1 1 0;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
.gc-ctx-btn-ya {
  background: var(--accent, #14b8a6);
  color: #fff;
}
.gc-ctx-btn-tidak {
  background: #5a5a64;
  color: #fff;
}
.gc-ctx-btn:hover,
.gc-ctx-btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.gc-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 3px;
  margin-top: 0;
  max-width: min(280px, 72vw);
  align-self: flex-start;
  align-items: flex-end;
}
.gc-msg.is-mine .gc-reactions {
  align-self: flex-start;
}
.gc-reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  font-family: inherit;
  color: inherit;
  min-width: 0;
}
.gc-reaction-chip:hover,
.gc-reaction-chip:focus-visible {
  transform: scale(1.08);
  outline: none;
}
.gc-reaction-emoji {
  display: inline;
  line-height: 1;
  font-size: 18px;
}
.gc-reaction-count {
  display: inline !important;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  letter-spacing: -0.02em;
}
.gc-reaction-bar {
  position: fixed;
  z-index: 145;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #3a3a44;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.gc-reaction-bar[hidden] { display: none !important; }
.gc-reaction-pick {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
.gc-reaction-pick:hover,
.gc-reaction-pick:focus-visible {
  background: rgba(0, 0, 0, 0.22);
  outline: none;
}
body.is-gc-ctx-open .gc-reaction-bar {
  z-index: 145;
}
.gc-color-picker-panel {
  width: min(220px, 100%);
  margin: 0 auto 6px;
  padding: 8px;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.gc-color-picker-panel[hidden] { display: none !important; }
.gc-cp-sv {
  position: relative;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.gc-cp-sv-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, #ffd65a);
}
.gc-cp-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.gc-cp-hue {
  width: 100%;
  height: 12px;
  margin: 10px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  outline: none;
  cursor: pointer;
}
.gc-cp-hue::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.gc-cp-hue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.gc-mark-swatch-btn {
  width: auto;
  min-width: 34px;
  height: auto;
  padding: 3px 5px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gc-mark-swatch-btn.is-active {
  /* tanpa highlight putih transparan */
}
.gc-mark-swatch-btn.is-active .gc-mark-swatch {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}
.gc-mark-swatch-btn:hover { background: rgba(255, 255, 255, 0.08); }
.gc-mark-swatch {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.gc-mark-swatch-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1;
}
.gc-toolbar-bar {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: min-width 0.15s ease, padding 0.15s ease;
  margin: 0 auto;
}
.gc-toolbar-bar.is-mark-mode {
  padding: 0;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.gc-toolbar-fmt,
.gc-toolbar-url,
.gc-toolbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.gc-toolbar-fmt[hidden],
.gc-toolbar-url[hidden],
.gc-toolbar-mark[hidden] {
  display: none !important;
}
.gc-toolbar-url {
  gap: 6px;
  width: auto;
  min-width: min(280px, 100%);
}
.gc-toolbar-bar.is-link-mode {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px 8px 4px 4px;
}
.gc-toolbar-mark {
  gap: 8px;
  width: auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px 4px 4px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.gc-toolbar-btn {
  gap: 6px;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 6px 4px 4px;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.gc-toolbar-btn[hidden] { display: none !important; }
.gc-btn-label-input,
.gc-btn-url-input {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  min-width: 0;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.gc-btn-label-input {
  width: 88px;
  flex: 0 1 88px;
}
.gc-btn-url-input {
  width: 120px;
  flex: 1 1 120px;
}
.gc-btn-label-input::placeholder,
.gc-btn-url-input::placeholder {
  color: rgba(0, 0, 0, 0.42);
  font-weight: 500;
}
.gc-btn-apply {
  margin-left: auto;
  margin-right: 4px;
  padding: 5px 12px;
  flex: 0 0 auto;
}
.gc-toolbar-bar.is-btn-mode {
  padding: 0;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.gc-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}
.gc-action-btns .gc-action-btn {
  flex: 0 1 calc(50% - 4px);
  max-width: calc(50% - 4px);
  min-width: 120px;
}
@media (max-width: 360px) {
  .gc-action-btns .gc-action-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.gc-mark-apply {
  margin-left: auto;
  margin-right: 4px;
  padding: 5px 12px;
}
.gc-url-icon {
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
  opacity: 0.92;
}
.gc-url-input {
  flex: 1 1 auto;
  min-width: 120px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.gc-url-input::placeholder { color: rgba(255, 255, 255, 0.65); }
.gc-url-apply {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.gc-url-apply:hover { background: #f2f2f2; }
.gc-tool-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.12s ease, color 0.12s ease;
}
.gc-tool-btn:hover,
.gc-tool-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  outline: none;
}
.gc-tool-btn:active {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
}
.gc-tool-btn svg { display: block; }
.gc-tool-letter {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1;
  user-select: none;
}
.gc-tool-bold { font-weight: 800; }
.gc-tool-btn[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 8px;
  border-radius: 6px;
  background: #0e1016;
  border: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  z-index: 2;
}
.gc-tool-btn[data-tip]:hover::before,
.gc-tool-btn[data-tip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.groupchat-attach {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #2c2c34;
  color: #e8e8ec;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, filter .15s ease;
}
.groupchat-attach:hover {
  background: #3a3a44;
  color: #fff;
}
.groupchat-attach:disabled,
.groupchat-attach.is-disabled,
.groupchat-attach[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.groupchat-compose .gc-input {
  resize: none;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 40px;
  max-height: 100px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: #121218;
  color: #f3f3f5;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
}
.groupchat-compose .gc-input:empty::before {
  content: attr(data-placeholder);
  color: #7a7d88;
  pointer-events: none;
}
.groupchat-compose .gc-input:focus {
  border-color: rgba(255,255,255,.08);
  outline: none;
}
.groupchat-compose .gc-input::-webkit-scrollbar { display: none; }
.groupchat-compose .gc-input b,
.groupchat-compose .gc-input strong { font-weight: 800; }
.groupchat-compose .gc-input mark.gc-hl,
.groupchat-compose .gc-input span.gc-hl {
  padding: 0 2px;
  border-radius: 3px;
}
.groupchat-compose .gc-input a {
  color: #7dd9cf;
  text-decoration: underline;
  cursor: text;
}
.groupchat-compose .gc-input a::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 3px;
  vertical-align: -2px;
  background: currentColor;
  opacity: 0.85;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}
.groupchat-compose textarea {
  resize: none;
  overflow: hidden;
  scrollbar-width: none;
  min-height: 40px;
  max-height: 100px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: #121218;
  color: #f3f3f5;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}
.groupchat-compose textarea::-webkit-scrollbar {
  display: none;
}
.groupchat-compose textarea:focus {
  outline: none;
  border-color: rgba(1,181,166,.5);
}
.groupchat-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal, #01b5a6);
  color: #fff;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.groupchat-send:hover { filter: brightness(1.08); }
.groupchat-send:active { transform: scale(.96); }
.groupchat-send:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.gc-bubble.gc-bubble--media {
  padding: 0;
  overflow: hidden;
  width: min(320px, 78vw);
  max-width: min(320px, 78vw);
  min-width: 0;
}
.gc-bubble.gc-bubble--media .gc-name {
  padding: 9px 12px 6px;
  margin: 0;
}
.gc-bubble.gc-bubble--media .gc-text {
  padding: 6px 12px 8px;
}
.gc-bubble.gc-bubble--media.gc-has-action {
  padding-bottom: 0;
}
.gc-bubble.gc-bubble--media .gc-btn-hint {
  left: 12px;
  bottom: 8px;
}

.gc-media-stack {
  position: relative;
  width: 100%;
  line-height: 0;
}
.gc-media-grid {
  display: grid;
  gap: 2px;
  background: rgba(0, 0, 0, 0.14);
}
.gc-media-grid--2 {
  grid-template-columns: 1fr 1fr;
}
.gc-media-grid--3 {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.gc-media-grid--3 .gc-media-cell--main {
  grid-row: 1 / span 2;
  min-height: 168px;
}
.gc-media-grid-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  min-height: 168px;
}
.gc-media-grid--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gc-media-open,
.gc-media-cell {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
}
.gc-media-cell {
  min-height: 82px;
}
.gc-media-open > img,
.gc-media-open > video,
.gc-media-cell img,
.gc-media-cell video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 82px;
  max-height: 200px;
  object-fit: cover;
  vertical-align: top;
  background: rgba(0, 0, 0, 0.18);
}
.gc-media-grid--3 .gc-media-cell--main img,
.gc-media-grid--3 .gc-media-cell--main video {
  min-height: 168px;
  max-height: 168px;
}
.gc-media-stack:not(.gc-media-grid) .gc-media-open > img,
.gc-media-stack:not(.gc-media-grid) .gc-media-open > video {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 320px;
}
.gc-media-open video { cursor: pointer; }
.gc-media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.gc-time--media {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.3;
  pointer-events: none;
}
.gc-media-meta {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.gc-media-meta .gc-time--media {
  position: static;
  right: auto;
  bottom: auto;
}
.gc-media-meta .gc-view-meta {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}
.gc-msg.is-mine .gc-time--media {
  color: rgba(255, 255, 255, 0.92);
}

.gc-media {
  margin: 4px 0 6px;
  border-radius: 10px;
  overflow: hidden;
  max-width: min(100%, 360px);
}
.gc-media img,
.gc-media video {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: rgba(0,0,0,.25);
}
.gc-media video { cursor: pointer; }

.gc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
}
.gc-lightbox[hidden] { display: none !important; }
.gc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.88);
}
.gc-lightbox-stage {
  position: relative;
  z-index: 2;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}
.gc-lightbox-stage img:not([hidden]),
.gc-lightbox-stage video:not([hidden]) {
  display: block;
  max-width: 96vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
  user-select: none;
  pointer-events: auto;
}
.gc-lightbox-stage img[hidden],
.gc-lightbox-stage video[hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.gc-lightbox-close,
.gc-lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 0;
  background: #2c2c34;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  opacity: 1;
  box-shadow: none;
  outline: none;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.gc-lightbox-close:hover,
.gc-lightbox-nav:hover {
  background: #3a3a44;
}
.gc-lightbox-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
.gc-lightbox-close::before {
  content: none !important;
  display: none !important;
}
.gc-lightbox-close svg,
.gc-lightbox-nav svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  pointer-events: none;
}
.gc-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}
.gc-lightbox-nav::before,
.gc-lightbox-prev::before,
.gc-lightbox-next::before {
  content: none !important;
  display: none !important;
}
.gc-lightbox-prev { left: 12px; }
.gc-lightbox-next { right: 12px; }
.gc-lightbox-nav[hidden] { display: none !important; }
.gc-lightbox-zoom {
  position: absolute;
  z-index: 3;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}
.gc-lightbox-zoom:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gc-lightbox-toolbar {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.gc-lightbox-zoom {
  position: static;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: 700;
}

.gc-msg.is-pending-upload .gc-bubble {
  opacity: 0.92;
}
.gc-media-grid .gc-time--media {
  z-index: 4;
}
.gc-msg.is-pending-upload .gc-media-cell img,
.gc-msg.is-pending-upload .gc-media-cell video,
.gc-msg.is-pending-upload .gc-media-open > img,
.gc-msg.is-pending-upload .gc-media-open > video {
  max-height: 320px;
  opacity: 0.88;
}
body.is-gc-lightbox-open {
  overflow: hidden;
}
body.is-gc-lightbox-open .groupchat-messages {
  overflow: hidden !important;
  overscroll-behavior: contain;
  touch-action: none;
}
.gc-upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  align-self: flex-start;
  min-width: 88px;
  max-width: min(200px, 72vw);
}
.gc-msg.is-mine .gc-upload-status {
  align-self: flex-start;
}
.gc-upload-spinner {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent, #01b5a6);
  border-radius: 50%;
  animation: gc-upload-spin 0.7s linear infinite;
}
.gc-upload-bar {
  flex: 1 1 auto;
  height: 3px;
  min-width: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.gc-upload-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 100%;
  background: var(--accent, #01b5a6);
  border-radius: 999px;
  animation: gc-upload-indeterminate 1.1s ease-in-out infinite;
}
@keyframes gc-upload-spin {
  to { transform: rotate(360deg); }
}
@keyframes gc-upload-indeterminate {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

@media (max-width: 899px) {
  .groupchat-shell { width: 100%; max-width: 100%; }
  .gc-msg { max-width: 100%; }
  .groupchat-messages .gc-msg,
  .groupchat-messages .gc-msg * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .groupchat-messages .gc-msg.is-gc-holding,
  .groupchat-messages .gc-msg.is-gc-holding * {
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  .groupchat-compose .gc-input {
    font-size: 16px;
    touch-action: manipulation;
  }
  body.is-groupchat #beranda {
    height: calc(100dvh - 68px);
    min-height: calc(100dvh - 68px);
    max-height: calc(100dvh - 68px);
    background: #121216;
  }
  body.is-groupchat .groupchat-view:not([hidden]),
  body.is-groupchat .groupchat-shell,
  body.is-groupchat .groupchat-messages {
    background: #121216;
  }
  .gc-msg:not(.is-mine) .gc-bubble,
  .gc-msg:not(.is-mine) .gc-reply-unit > .gc-bubble.gc-has-reply {
    background: #3a3a44;
  }
}
@media (min-width: 900px) {
  body.is-groupchat .groupchat-messages {
    padding-left: 200px;
    padding-right: clamp(16px, 4vw, 48px);
  }
  body.is-groupchat .groupchat-messages .gc-msg.is-mine {
    margin-right: 70px;
  }
  .groupchat-compose-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 100%);
    max-width: 560px;
  }
  .gc-msg {
    max-width: min(42vw, 420px);
  }
}
