@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@300;400&family=Azeret+Mono:wght@300;400&display=swap');

:root {
  --bg: #040b14;
  --panel: rgba(9, 21, 36, 0.75);
  --text: #eef6ff;
  --accent: #ff4b3e;
  --link: #88d1ff;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 30% 20%, #0d1e35 0%, var(--bg) 60%);
  color: var(--text);
}

a {
  color: var(--link);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html.stream-mode .site-footer,
html.stream-mode .consent-banner {
  display: none !important;
}

html.stream-mode .app {
  height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(5, 12, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.88);
}

/* ── Live dot ─────────────────────────────────────────── */

@keyframes pulse-out {
  0%   { transform: scale(1);   opacity: 0.75; }
  70%  { transform: scale(2.8); opacity: 0;    }
  100% { transform: scale(1);   opacity: 0;    }
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 75, 62, 0.65);
  flex-shrink: 0;
}

.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: pulse-out 2.4s ease-out infinite;
}

/* ── UTC clock ────────────────────────────────────────── */

.utc-clock {
  margin-left: auto;
  font-family: 'Azeret Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(238, 246, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

/* ── Map stage ────────────────────────────────────────── */

.stage-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#map-canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Canvas atmosphere (60fps breathing, between 1fps canvas frames) ── */

.canvas-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 62% 48%,
    rgba(240, 178, 110, 0.022) 0%,
    transparent 60%
  );
  animation: atmosphere-breathe 9s ease-in-out infinite;
}

@keyframes atmosphere-breathe {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1;    }
}

/* ── Overlay panel ────────────────────────────────────── */

.overlay {
  position: absolute;
  left: 36px;
  bottom: 36px;
  max-width: min(560px, calc(100vw - 72px));
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(4, 10, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(238, 246, 255, 0.82);
  transition: opacity 480ms ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(4, 10, 19, 0.72);
  font-size: 0.84rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(238, 246, 255, 0.68);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.ad-section {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 17, 30, 0.72);
}

.ad-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.52);
}

.disclosure-note {
  margin: 0 0 8px;
  font-size: 0.77rem;
  color: rgba(238, 246, 255, 0.74);
}

.epl-ad-slot {
  min-height: 72px;
}

.ad-status {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: rgba(238, 246, 255, 0.55);
}

.ad-status-error {
  color: #ff8b80;
}

.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 12, 22, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.consent-banner.hidden {
  display: none;
}

.consent-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.consent-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-actions button {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(14, 29, 49, 0.95);
  cursor: pointer;
}

.consent-actions button:hover {
  background: rgba(20, 38, 60, 0.95);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.page-main h1 {
  font-family: "Cormorant", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.page-main h2 {
  margin-top: 24px;
  font-size: 1.04rem;
}

.page-main p,
.page-main li {
  color: rgba(238, 246, 255, 0.86);
  line-height: 1.55;
}

.page-main ul {
  padding-left: 20px;
}

.meta {
  font-size: 0.84rem;
  color: rgba(238, 246, 255, 0.65);
}
