/* "Zobacz nasz projekt budowany na żywo": click-to-load live camera of the
   Nasielsk roundabout (index.html). The third-party player is only inserted
   after the visitor clicks, see assets/js/live-embed.js. */
.live-project {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 6vw;
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 56px;
  font-family: Inter, sans-serif;
}

.live-head {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.live-project .h2 {
  padding: 0;
}

.live-subtitle {
  margin: 0;
  color: var(--gray700);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4em;
  text-wrap: balance;
}

.live-grid {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  column-gap: 56px;
  align-items: center;
}

/* ---- player facade ---- */
.live-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 12px;
  border-radius: 24px;
  background-color: var(--dblue900);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
}

.live-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-start {
  --live-play: 84px;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.live-plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff4d4d;
}

/* The play button sits on the exact centre of the frame (and of the roundabout
   drawn behind it); the label hangs below it without shifting that centre. */
.live-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--live-play);
  height: var(--live-play);
  border-radius: 50%;
  background-color: #fff;
  color: var(--dblue900);
  transition: transform 0.2s ease;
}

.live-play svg {
  margin-left: 4px;
  transform: translateX(calc(var(--live-play) * -0.05));
}

.live-start:hover .live-play,
.live-start:focus-visible .live-play {
  transform: scale(1.04);
}

.live-start:focus-visible {
  outline: 3px solid var(--dblue200);
  outline-offset: -6px;
  border-radius: 24px;
}

.live-cta {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--live-play) / 2 + 16px);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.live-note {
  margin: 16px 4px 0;
  color: var(--gray700);
  font-size: 14px;
  line-height: 1.5em;
}

.live-note a {
  color: var(--dblue500);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---- "co to za rondo" ---- */
.live-info {
  display: flex;
  flex-flow: column;
  gap: 24px;
}

.live-info-title {
  margin: 0;
  color: var(--dblue700);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2em;
}

.live-lead {
  margin: 0;
  color: var(--gray800);
  font-size: 18px;
  line-height: 1.5em;
}

.live-facts {
  display: flex;
  flex-flow: column;
  margin: 0;
}

.live-fact {
  display: flex;
  flex-flow: column;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--gray300);
}

.live-fact dt {
  color: var(--gray600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-fact dd {
  margin: 0;
  color: var(--dblue700);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35em;
}

@media screen and (max-width: 991px) {
  .live-project {
    padding-top: 104px;
    padding-bottom: 104px;
  }

  .live-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    max-width: 760px;
  }
}

@media screen and (max-width: 767px) {
  .live-project {
    gap: 40px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .live-subtitle {
    font-size: 18px;
  }

  .live-start {
    --live-play: 68px;
  }

  .live-cta {
    font-size: 16px;
  }

  .live-info-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 479px) {
  .live-project {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .live-badge {
    top: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-play {
    transition: none;
  }
}
