html, body {
  margin: 0;
  background: black;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
}

/* VIDEO */
video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: black;
}

/* ================= MARKET CLOSED FULLSCREEN OVERLAY ================= */

.market-closed {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 90px);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  z-index: 50;
}

/* overlay text styling */
.market-closed h1 {
  color: #cd9a09;
  margin-bottom: 8px;
  text-align: center;
  font-size: 42px;
}

.market-closed p {
  font-size: 16px;
  text-align: center;
  color: #ffffff;
  line-height: 1.35;
}

.closed-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: none;
}

.closed-brand {
  color: #cd9a09;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.closed-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.overlay {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 30;
  pointer-events: none;
}

.badge,
.live,
.disclaimer {
  pointer-events: auto;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* BADGES */
.badge {
  background: rgba(0, 0, 0, 0.72);
  color: #cd9a09;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
}

.live {
  background: rgba(205, 154, 9, 0.95);
  color: black;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
}

/* DISCLAIMER */
.disclaimer {
  background: rgba(0, 0, 0, 0.72);
  color: #d6d6d6;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 420px;
  margin-left: 4px;
  line-height: 1.2;
  pointer-events: auto;
}

/* DONATE */
.bottom-bar {
  position: absolute;
  bottom: 18px;
  right: 18px;
}

.donate {
  pointer-events: auto;
  background: #cd9a09;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.donate:hover {
  background: #e6b11a;
}

/* page container */
.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 22px 26px;
}

.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.site-nav-wrap {
  width: 100%;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 200, 60, 0.35));
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav-links a {
  color: rgba(232, 232, 234, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8e8ea;
  white-space: nowrap;
}

.site-btn-ghost {
  background: transparent;
}

.site-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 980px) {
  .site-nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav-links {
    width: 100%;
    justify-content: center;
  }

  .site-logo-img {
    height: 42px;
  }

  .page {
    padding: 14px 14px 20px;
  }

  .overlay {
    top: 28px;
    left: 14px;
    right: 14px;
  }

  .top-bar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .badge {
    font-size: 14px;
    padding: 7px 12px;
  }

  .live {
    font-size: 12px;
    padding: 6px 12px;
  }

  .disclaimer {
    font-size: 11px;
    max-width: 100%;
    margin-left: 0;
  }

  video {
    max-height: calc(100vh - 170px);
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .topbar {
    padding: 18px 14px 10px;
  }

  .page {
    padding: 14px 14px 20px;
  }

  .title {
    font-size: 32px;
  }

  .search {
    width: 220px;
  }
}

.player-wrap {
  position: relative;
  width: 100%;
}