.gpro-live-screen {
  --gpro-primary: #0066ff;
  --gpro-bg: #0f1115;
  --gpro-surface: #181b22;
  --gpro-text: #ffffff;
  --gpro-accent: #00d4ff;
  --gpro-location-title: #ffffff;
  --gpro-partners-height: 96px;
  min-height: 100vh;
  color: var(--gpro-text);
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.15), transparent 45%), var(--gpro-bg);
  background-image: var(--gpro-bg-image, none);
  background-size: cover;
  background-position: center;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.gpro-live-header {
  position: relative;
  min-height: 56px;
}

.gpro-live-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding-right: 120px;
}

.gpro-live-screen.gpro-logo-align-center .gpro-live-brand {
  justify-content: center;
}

.gpro-live-screen.gpro-logo-align-right .gpro-live-brand {
  justify-content: flex-end;
}

.gpro-live-fullscreen-btn {
  position: absolute;
  right: 0;
  top: 0;
}

.gpro-live-brand img {
  max-height: var(--gpro-location-logo-size);
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem;
}

.gpro-live-btn,
.gpro-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gpro-text);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
}

.gpro-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gpro-remote-count-1 .gpro-live-grid {
  grid-template-columns: minmax(0, 1fr);
}

.gpro-video-card {
  background: color-mix(in srgb, var(--gpro-surface), transparent 5%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gpro-video-head {
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gpro-video-head h3 {
  margin: 0;
  color: var(--gpro-location-title);
}

.gpro-video-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  background: #0b0d11;
  overflow: hidden;
}

.gpro-live-iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.gpro-video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gpro-video-placeholder img {
  max-width: 55%;
  max-height: 75%;
  object-fit: contain;
  opacity: 0.9;
}

.gpro-live-debug {
  display: grid;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
}

.gpro-local-pip {
  position: absolute;
  width: min(27vw, 320px);
  min-width: 180px;
  background: rgba(20, 24, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.gpro-local-pip strong {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gpro-location-title);
}

.gpro-local-pip-frame {
  aspect-ratio: 16 / 9;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.gpro-pip-bottom-left .gpro-local-pip,
.gpro-pip-auto .gpro-local-pip {
  bottom: 4.8rem;
  left: 1rem;
}

.gpro-pip-bottom-right .gpro-local-pip {
  bottom: 4.8rem;
  right: 1rem;
}

.gpro-live-screen.gpro-has-partners.gpro-pip-bottom-left .gpro-local-pip,
.gpro-live-screen.gpro-has-partners.gpro-pip-bottom-right .gpro-local-pip,
.gpro-live-screen.gpro-has-partners.gpro-pip-auto .gpro-local-pip {
  bottom: calc(var(--gpro-partners-height) + 24px);
}

.gpro-pip-top-left .gpro-local-pip {
  top: 5.3rem;
  left: 1rem;
}

.gpro-pip-top-right .gpro-local-pip {
  top: 5.3rem;
  right: 1rem;
}

.gpro-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.6rem;
  align-items: center;
  justify-items: center;
}

.gpro-live-screen.gpro-partner-align-left .gpro-partners {
  justify-items: start;
}

.gpro-live-screen.gpro-partner-align-right .gpro-partners {
  justify-items: end;
}

.gpro-partners-band {
  grid-template-columns: repeat(auto-fit, minmax(90px, max-content));
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.gpro-partner-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-height: var(--gpro-partner-logo-size);
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.gpro-partner-item img {
  max-width: 100%;
  max-height: var(--gpro-partner-logo-size);
  object-fit: contain;
}

@media (min-width: 900px) {
  .gpro-live-screen {
    padding: 1.25rem;
  }

  .gpro-remote-count-3 .gpro-live-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
      "a b"
      "a c";
  }

  .gpro-remote-count-3 .gpro-live-grid .gpro-video-card:nth-child(1) {
    grid-area: a;
  }

  .gpro-remote-count-3 .gpro-live-grid .gpro-video-card:nth-child(2) {
    grid-area: b;
  }

  .gpro-remote-count-3 .gpro-live-grid .gpro-video-card:nth-child(3) {
    grid-area: c;
  }
}
