:root {
  --bg: #f4f5f7;
  --card-bg: #0c1117;
  --text: #e7eaee;
  --muted: #8a94a3;
  --accent: #e0272d;
  --ticker-height: 64px;
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  padding: clamp(12px, 4vw, 24px);
  padding-bottom: calc(var(--ticker-height) + env(safe-area-inset-bottom) + clamp(12px, 4vw, 24px));
}

.page {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.live-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.live-card__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.sponsor {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #000;
  border-radius: 10px 10px 0 0;
  padding: 14px 18px;
}

.sponsor__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.sponsor__link {
  display: inline-block;
}

.sponsor__logo {
  height: clamp(32px, 7vw, 48px);
  width: auto;
}

.live-card__stage iframe,
.live-card__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.live-card__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--text);
}

.live-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.live-card--live .live-card__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 39, 45, 0.2);
}

.live-card__status {
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.live-card--live .live-card__status {
  color: var(--text);
}

.page-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--ticker-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border: 0;
  z-index: 10;
}

@media (max-width: 480px) {
  .live-card__bar {
    padding: 12px 14px;
  }
}

/* Desktop: fill the viewport exactly, no scrolling, no gap between the
   video card and the sponsor bar, edge to edge. Mobile keeps the
   original centered/padded/rounded card layout above. */
@media (min-width: 768px) {
  body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    padding-bottom: calc(var(--ticker-height) + env(safe-area-inset-bottom));
  }

  .page {
    max-width: none;
    height: 100%;
  }

  .live-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
  }

  .live-card__stage {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }

  .sponsor {
    border-radius: 0;
  }
}
