:root {
  color-scheme: dark;
  --page: #0b1220;
  --panel: rgba(18, 26, 43, 0.86);
  --panel-strong: #121a2b;
  --text: #f8fbff;
  --muted: #b8c5d8;
  --line: rgba(255, 255, 255, 0.16);
  --gold: #f4c95d;
  --red: #db4455;
  --teal: #2fb7a3;
  --blue: #4e8df5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(219, 68, 85, 0.38), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(47, 183, 163, 0.28), transparent 26rem),
    linear-gradient(135deg, #10192c 0%, #0b1220 48%, #15101f 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.live-stage {
  width: min(1120px, 100%);
  min-height: calc(100svh - 36px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
}

.stream-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.event-kicker,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.96;
  text-align: center;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.phone-frame {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.stream-mount {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(rgba(11, 18, 32, 0.2), rgba(11, 18, 32, 0.64)),
    repeating-linear-gradient(135deg, rgba(244, 201, 93, 0.22) 0 10px, transparent 10px 24px),
    linear-gradient(145deg, rgba(219, 68, 85, 0.72), rgba(47, 183, 163, 0.58) 54%, rgba(78, 141, 245, 0.72));
}

.stream-mount iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.stream-placeholder {
  position: absolute;
  inset: auto 24px 28px;
}

.placeholder-title {
  margin: 8px 0;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 900;
  line-height: 0.95;
}

.placeholder-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.45;
}

.stream-actions {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action,
.secondary-action,
.map-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  color: #16110a;
}

.secondary-action,
.map-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.event-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-card,
.detail-group,
.detail-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.status-card {
  padding: 18px;
}

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 183, 163, 0.18);
  color: #9ff4e8;
  padding: 0 12px;
  font-weight: 900;
}

.countdown {
  margin: 16px 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 0.98;
}

.detail-group {
  padding: 22px;
}

.detail-group p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.detail-grid > div {
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid > div:nth-child(2n) {
  border-right: 0;
}

.detail-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-grid p:last-child {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.map-link {
  align-self: flex-start;
  padding: 0 20px;
}

@media (max-width: 780px) {
  .page-shell {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .live-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  h1 {
    max-width: 9ch;
  }

  .phone-frame {
    width: min(100%, 390px);
    border-radius: 28px;
  }

  .event-panel {
    width: min(100%, 390px);
    margin: 0 auto;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > div,
  .detail-grid > div:nth-child(2n),
  .detail-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-grid > div:last-child {
    border-bottom: 0;
  }

  .map-link {
    width: 100%;
  }
}

@media (max-height: 760px) and (orientation: portrait) {
  h1 {
    font-size: 2.1rem;
  }

  .phone-frame {
    width: min(100%, 320px);
  }

  .stream-actions {
    width: min(100%, 320px);
  }
}
