:root {
  --bg-deep: #1c242c;
  --bg-mid: #2a3540;
  --fog: #d7e0e7;
  --snow: #f3f6f8;
  --ink: #142028;
  --muted: rgba(243, 246, 248, 0.72);
  --accent: #7eb8a8;
  --accent-strong: #4f9a86;
  --line: rgba(243, 246, 248, 0.18);
  --panel: rgba(20, 32, 40, 0.55);
  --shadow: 0 18px 50px rgba(8, 12, 16, 0.35);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 0;
  --pad: clamp(1rem, 3vw, 2.25rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--snow);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(126, 184, 168, 0.18), transparent 55%),
    linear-gradient(165deg, #24313c 0%, #1c242c 45%, #141b22 100%);
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("../img/poster.svg") center / cover no-repeat,
    var(--bg-deep);
  filter: saturate(0.9) contrast(1.05);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 40, 0.35) 0%, rgba(20, 32, 40, 0.72) 55%, rgba(20, 32, 40, 0.92) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(20, 32, 40, 0.35);
  animation: rise 0.8s ease both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--fog);
}

.hero {
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--pad);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.hero-copy {
  max-width: 36rem;
  animation: rise 0.9s 0.08s ease both;
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.45;
}

.live-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1217;
  animation: rise 1s 0.16s ease both;
  overflow: hidden;
}

#stream-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: rgba(12, 18, 24, 0.7);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e35d5d;
  box-shadow: 0 0 0 0 rgba(227, 93, 93, 0.55);
  animation: pulse 1.8s ease infinite;
}

.live-stage iframe,
.live-stage video,
#stream-mount iframe,
#stream-mount video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #0d1217;
}

.stream-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(13, 18, 23, 0.2), rgba(13, 18, 23, 0.85)),
    url("../img/poster.svg") center / cover;
}

.stream-fallback[hidden] {
  display: none;
}

.meteo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
  animation: rise 1s 0.24s ease both;
}

.meteo-item {
  padding: 0.85rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.meteo-item .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.meteo-item .value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.meteo-item .value small {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 0.15em;
  color: var(--accent);
}

.meteo-item.updated .value {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 36rem;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.archive-controls label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.archive-controls input[type="date"] {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--snow);
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-width: min(100%, 14rem);
}

.charts {
  display: grid;
  gap: 1.25rem;
}

.chart-panel {
  border: 1px solid var(--line);
  background: rgba(12, 18, 24, 0.45);
  padding: 0.75rem 0.5rem 0.25rem;
  min-height: 240px;
}

.chart-panel h3 {
  margin: 0 0 0.25rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.visitors strong {
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-left: 0.25rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 93, 93, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(227, 93, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 93, 93, 0);
  }
}

@media (max-width: 720px) {
  .meteo-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
