/* LIVO Public — Veo dark, mobile-first, aligned with admin tokens */
:root {
  --livo-green: #2f9e44;
  --livo-green-soft: rgba(47, 158, 68, 0.14);
  --livo-surface: #12151c;
  --livo-elevated: #1a1f2a;
  --livo-border: rgba(255, 255, 255, 0.08);
  --livo-muted: #94a3b8;
  --livo-text: #e8edf5;
  --livo-danger: #c13850;
  --livo-live: #ef4444;
  --livo-radius: 1rem;
  --pad: clamp(0.85rem, 3vw, 1.35rem);
  --max: 1120px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Outfit", "DM Sans", sans-serif;
  --font-bug: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  /* Fallback; live player overrides --u via ResizeObserver (playerWidth/1000). */
  --u: 1px;
  --bug-h: calc(24 * var(--u));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--livo-text);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(47, 158, 68, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(30, 80, 120, 0.16), transparent 50%),
    linear-gradient(165deg, #0b0e14 0%, #12151c 45%, #0d1218 100%);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
a { color: var(--livo-green); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: calc(0.75rem + env(safe-area-inset-top)) var(--pad) 0.75rem;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  border-bottom: 1px solid var(--livo-border);
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  isolation: isolate;
}
.brand { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 0; }
.brand img {
  display: block; height: clamp(34px, 8vw, 48px); width: auto;
  max-width: min(48vw, 200px); object-fit: contain;
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.site-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 0.15rem 0.75rem;
}
.site-nav a {
  color: var(--livo-muted); font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  padding: 0.35rem 0.15rem; min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--livo-text); text-decoration: none; }
.nav-cta {
  font-weight: 650 !important;
  color: var(--livo-text) !important;
  padding-inline: 0.65rem !important;
}
.nav-cta--primary {
  background: var(--livo-green); color: #04110a !important;
  border-radius: 0.65rem; padding-inline: 0.85rem !important;
  min-height: 40px;
}
.nav-cta--primary:hover { filter: brightness(1.06); text-decoration: none; }
.nav-avatar { text-decoration: none !important; padding: 0 !important; }
.nav-avatar__circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--livo-green-soft); border: 1px solid rgba(47, 158, 68, 0.45);
  color: var(--livo-green); font-size: 0.72rem; font-weight: 700;
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--livo-border);
  border-radius: 0.65rem; background: var(--livo-elevated); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  padding: 0; position: relative; z-index: 2;
}
.nav-toggle__bar {
  display: block; width: 18px; height: 2px; background: var(--livo-text); border-radius: 1px;
}

.site-main {
  padding: var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

h1, h2, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
h1 { font-size: clamp(1.35rem, 4.5vw, 1.85rem); }
h2 { font-size: clamp(1.05rem, 3.5vw, 1.25rem); }
.muted { color: var(--livo-muted); }
.lead { color: var(--livo-muted); max-width: 36rem; margin: 0 0 1.25rem; font-size: clamp(0.92rem, 2.8vw, 1.02rem); }

.hero {
  text-align: left;
  padding: clamp(0.75rem, 3vw, 1.5rem) 0 clamp(1.1rem, 3.5vw, 1.85rem);
  animation: fadeUp 0.55s ease both;
  max-width: 40rem;
}
.hero--veo { position: relative; }
.hero__eyebrow {
  margin: 0 0 0.55rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--livo-green);
}
.hero__claim {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  line-height: 1.15; letter-spacing: -0.03em;
  margin: 0 0 0.65rem; font-weight: 700;
}
.hero__lead { margin-bottom: 1.15rem; }
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0.25rem;
  animation: fadeUp 0.55s ease 0.1s both;
}

.search-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.55s ease 0.08s both;
}
.search-bar input[type="search"] {
  flex: 1 1 12rem; min-height: 46px; border-radius: 0.75rem;
  border: 1px solid var(--livo-border); background: var(--livo-elevated);
  color: var(--livo-text); padding: 0.65rem 0.9rem; font: inherit;
}
.search-bar button {
  min-height: 46px; border: 0; border-radius: 0.75rem; padding: 0 1.1rem;
  background: var(--livo-green); color: #04110a; font-weight: 650; font: inherit;
  cursor: pointer;
}

.section { margin: 0 0 1.75rem; animation: fadeUp 0.5s ease both; }
.section:nth-child(2) { animation-delay: 0.06s; }
.section:nth-child(3) { animation-delay: 0.12s; }
.section:nth-child(4) { animation-delay: 0.18s; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-head a { font-size: 0.88rem; white-space: nowrap; }

.match-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .match-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .match-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.match-card {
  display: block; padding: 1rem 1.05rem;
  background: var(--livo-elevated);
  border: 1px solid var(--livo-border);
  border-radius: var(--livo-radius);
  color: inherit; text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.match-card:hover {
  border-color: rgba(47, 158, 68, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
  background: #1e2430;
}
.match-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.65rem;
  align-items: center; margin-bottom: 0.45rem;
  font-size: 0.8rem; color: var(--livo-muted);
}
.match-card__title {
  font-weight: 650; font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.35; word-break: break-word;
}
.match-card__teams {
  display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.35rem;
}
.match-card__vs {
  display: none;
}
.team-row {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
}
.team-row__name {
  font-weight: 650; font-size: clamp(0.92rem, 2.6vw, 1.02rem);
  line-height: 1.3; word-break: break-word;
}
.team-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--livo-green-soft); border: 1px solid var(--livo-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--livo-green);
  overflow: hidden; flex-shrink: 0;
}
.team-mark img { width: 100%; height: 100%; object-fit: cover; }

.filters {
  margin: 0 0 1.35rem; padding: 0.85rem 0.95rem;
  background: rgba(26, 31, 42, 0.55); border: 1px solid var(--livo-border);
  border-radius: var(--livo-radius);
  animation: fadeUp 0.45s ease both;
}
.filters__row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.filters__row + .filters__row { margin-top: 0.75rem; }
.filters__status {
  display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; margin: 0; padding: 0;
}
.filter-chip {
  display: inline-flex; align-items: center; cursor: pointer;
  min-height: 38px; padding: 0.3rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--livo-border); background: var(--livo-elevated);
  color: var(--livo-muted); font-size: 0.85rem; font-weight: 600;
}
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip.is-active, .filter-chip:has(input:checked) {
  background: var(--livo-green-soft); border-color: rgba(47, 158, 68, 0.5);
  color: var(--livo-text);
}
.filters__row--selects { gap: 0.65rem; }
.filter-select {
  display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 10rem; min-width: 0;
}
.filter-select__label { font-size: 0.75rem; color: var(--livo-muted); font-weight: 600; }
.filter-select select,
select.livo-native-select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px; border-radius: 0.65rem; border: 1px solid var(--livo-border);
  background-color: var(--livo-elevated);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%94a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.65rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  color: var(--livo-text); font: inherit;
  padding: 0.4rem 2.25rem 0.4rem 0.7rem; width: 100%;
}
.filter-select select option,
select.livo-native-select option {
  background-color: var(--livo-elevated);
  color: var(--livo-text);
}
.filter-select select option:checked,
select.livo-native-select option:checked {
  background-color: var(--livo-green);
  color: #fff;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: dark;
}
.filters__reset {
  align-self: flex-end; font-size: 0.85rem; min-height: 42px;
  display: inline-flex; align-items: center;
}

.sponsor-strip {
  margin: 0 0 1.25rem;
  border-radius: var(--livo-radius);
  overflow: hidden;
  border: 1px solid var(--livo-border);
  background: #0a0612;
  animation: fadeUp 0.45s ease both;
}
.sponsor-strip img {
  display: block; width: 100%; height: auto; max-height: 110px; object-fit: contain; object-position: center;
}

.legal { max-width: 40rem; animation: fadeUp 0.45s ease both; }
.legal h2 { margin-top: 1.25rem; }
.legal p { color: var(--livo-muted); line-height: 1.55; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge--live { background: rgba(239, 68, 68, 0.18); color: #fecaca; }
.badge--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--livo-live);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: pulse 1.4s ease infinite;
}
.badge--soon { background: rgba(56, 189, 248, 0.15); color: #bae6fd; }
.badge--done { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.badge--off { background: rgba(193, 56, 80, 0.15); color: #f9a8b4; }

.club-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.club-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  text-align: center; padding: 1.1rem 0.75rem;
  background: var(--livo-elevated); border: 1px solid var(--livo-border);
  border-radius: var(--livo-radius); color: inherit; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.club-card:hover { border-color: rgba(47, 158, 68, 0.45); transform: translateY(-2px); text-decoration: none; }
.club-card__logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--livo-green-soft); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--livo-green); overflow: hidden;
}
.club-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.club-card__name { font-weight: 600; font-size: 0.92rem; word-break: break-word; }

/* Match page layout */
.match-hero {
  display: grid; gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .match-hero { grid-template-columns: 1.55fr 1fr; align-items: start; }
}
.player {
  /*
   * TV graphics unit. JS sets --u (layout, can exceed digit size for ~30% FS width)
   * and --ov-fs (digit size ≤28px). Box height tracks --ov-fs, not a hard 36px ceiling.
   */
  --u: 1px;
  --ov-fs: clamp(11px, 2.4cqw, 28px);
  --bug-h: clamp(22px, calc(1.5 * var(--ov-fs)), 44px);
  --ov-pad: clamp(6px, calc(8 * var(--u)), 14px);
  --ov-pad-sm: clamp(5px, calc(6 * var(--u)), 12px);
  position: relative; background: #000; aspect-ratio: 16/9; width: 100%;
  max-height: min(70vh, 720px); overflow: hidden;
  border-radius: calc(var(--livo-radius) - 2px);
  border: 1px solid var(--livo-border);
  container-type: size;
  container-name: livo-player;
}
.player video, .player .hls { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-offline {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; height: 100%; min-height: 200px; padding: 1.5rem; text-align: center;
  background: linear-gradient(160deg, #0d1016, #1a1f2a);
}
/* Author display beats the UA [hidden] rule, which left this panel covering a playing video. */
.player-offline[hidden],
.player video[hidden] { display: none !important; }
.player-offline strong { font-size: clamp(1.05rem, 3.5vw, 1.35rem); }
/* Broadcast score bug — overlaid on the picture, not a strip under it. */
.broadcast-layer {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
}
.scorebug {
  position: absolute; top: var(--ov-pad); left: var(--ov-pad);
  display: flex; align-items: stretch;
  height: var(--bug-h);
  max-width: calc(100% - 88 * var(--u));
  border-radius: calc(2 * var(--u));
  /* visible so the stoppage pill is never clipped by the bug chrome */
  overflow: visible;
  font-family: var(--font-bug);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.45), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.28);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.08);
}
.scorebug__team,
.scorebug__score {
  overflow: hidden;
}
.scorebug__clock-wrap {
  position: relative;
  display: flex; align-items: stretch; flex: 0 0 auto;
  overflow: visible; /* keep +N pill fully painted */
  background: linear-gradient(180deg, #ffffff 0%, #e4e8ed 100%);
  box-shadow: inset calc(-1 * var(--u)) 0 0 rgba(0, 0, 0, 0.18);
  border-radius: calc(2 * var(--u)) 0 0 calc(2 * var(--u));
  z-index: 2;
}
.scorebug__clock {
  display: flex; align-items: center; justify-content: center;
  min-width: calc(34 * var(--u)); padding: 0 calc(5 * var(--u));
  background: transparent;
  color: #1a1c1f;
  font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(11px, calc(11 * var(--u)), 28px);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
/* TV-style announced stoppage: pill glued to the clock (red + white). */
.scorebug__stoppage {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: max(22px, calc(18 * var(--u)));
  padding: 0 max(5px, calc(4 * var(--u)));
  margin: max(2px, calc(2 * var(--u))) max(3px, calc(3 * var(--u))) max(2px, calc(2 * var(--u))) 0;
  border-radius: max(2px, calc(2 * var(--u)));
  background: linear-gradient(180deg, #e23b3b 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: var(--font-bug);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  /* Floor 11px for mobile FS; scales with --ov-fs / --u on larger players. */
  font-size: max(11px, min(calc(0.9 * var(--ov-fs, 14px)), calc(10 * var(--u)), 22px));
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.scorebug__stoppage[hidden] { display: none !important; }
.scorebug__team {
  position: relative;
  display: flex; align-items: center; gap: calc(3 * var(--u));
  background: linear-gradient(180deg, #2c3546 0%, #171d28 100%);
  color: #fff;
  font-weight: 700; letter-spacing: 0.06em;
  font-size: clamp(11px, calc(12 * var(--u)), 28px);
  padding: 0 calc(6 * var(--u)) 0 0;
  min-width: 0;
  box-shadow: inset calc(-1 * var(--u)) 0 0 rgba(255, 255, 255, 0.08);
}
.scorebug__team--away {
  padding: 0 0 0 calc(6 * var(--u));
  box-shadow: inset calc(1 * var(--u)) 0 0 rgba(255, 255, 255, 0.08);
}
.scorebug__accent { width: calc(3 * var(--u)); align-self: stretch; flex: 0 0 calc(3 * var(--u)); }
.scorebug__logo {
  width: clamp(10px, calc(12 * var(--u)), 22px); height: clamp(10px, calc(12 * var(--u)), 22px);
  border-radius: 50%; object-fit: cover;
  background: #0e1218; flex: 0 0 auto;
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255, 255, 255, 0.18);
}
.scorebug__name {
  padding-right: calc(1 * var(--u));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(34 * var(--u));
}
.scorebug.is-joined { border-bottom-left-radius: 0; }
.scorebug__score {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #141820 0%, #07090d 100%);
  color: #fff;
  font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(12px, calc(13 * var(--u)), 28px);
  letter-spacing: 0.02em;
  padding: 0 calc(1 * var(--u));
  box-shadow: inset calc(-1 * var(--u)) 0 0 rgba(255, 255, 255, 0.08), inset calc(1 * var(--u)) 0 0 rgba(255, 255, 255, 0.08);
}
.scorebug__n { min-width: calc(9.5 * var(--u)); text-align: center; line-height: 1; }
.scorebug__div { width: calc(1 * var(--u)); height: 46%; background: rgba(255, 255, 255, 0.55); margin: 0 calc(1 * var(--u)); }
.bug-tor[hidden] { display: none !important; }
.bug-tor {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #3cb85a 0%, #146b32 100%);
  color: #fff;
  font-family: var(--font-bug);
  font-weight: 700;
  font-size: clamp(11px, calc(12 * var(--u)), 28px);
  letter-spacing: 0.16em;
  line-height: 1;
  animation: torIn .4s cubic-bezier(.22, .8, .3, 1);
}
@keyframes torIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bug-cards {
  display: flex; align-items: center; gap: calc(2 * var(--u)); flex: 0 0 auto;
}
.bug-card[hidden] { display: none !important; }
.bug-card {
  min-width: max(14px, calc(7 * var(--u)));
  height: max(14px, calc(9 * var(--u)));
  padding: 0 calc(1 * var(--u));
  border-radius: calc(1 * var(--u));
  display: flex; align-items: center; justify-content: center;
  /* Readable floor: never drop below 11px in portrait fullscreen / small phones. */
  font-size: clamp(11px, calc(7 * var(--u)), 14px); font-weight: 700; line-height: 1; color: #161616;
  font-variant-numeric: tabular-nums;
}
.bug-card--y { background: #f5d90a; }
.bug-card--r { background: #d01212; color: #fff; }
.channel-bug {
  position: absolute; top: var(--ov-pad-sm); right: var(--ov-pad-sm);
  display: flex; flex-direction: column; align-items: flex-end; gap: calc(1 * var(--u));
}
.channel-bug img {
  height: clamp(10px, calc(11 * var(--u)), 22px); width: auto; display: block;
  filter: drop-shadow(0 calc(1 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, 0.7));
}
.channel-bug__live[hidden] { display: none !important; }
.channel-bug__live {
  background: #e10600; color: #fff;
  /* Readable floor: LIVE / Ende never below 11px. */
  font-size: clamp(11px, calc(8 * var(--u)), 14px); font-weight: 800; letter-spacing: 0.08em;
  line-height: 1.15; padding: 0 calc(3 * var(--u)); border-radius: calc(1 * var(--u));
}
/* Control bar: FIXED size — must not grow with fullscreen player (36–44px). */
.live-controls[hidden] { display: none !important; }
.live-controls {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 8;
  display: flex; align-items: center; gap: 4px;
  pointer-events: auto;
  height: 40px; max-height: 44px;
  padding: 4px 6px;
  box-sizing: border-box;
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1; transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
.live-controls.is-idle {
  opacity: 0; transform: translateY(6px); pointer-events: none;
}
.player.is-controls-on .live-controls.is-idle {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.live-controls__btn {
  appearance: none; border: 0; cursor: pointer;
  min-height: 32px; max-height: 36px; min-width: 32px; padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0.02em;
}
.live-controls__btn:hover { background: rgba(255, 255, 255, 0.18); }
.live-controls__btn--ton {
  background: rgba(47, 158, 68, 0.9); color: #fff;
  min-width: 32px; padding: 0 8px;
}
.live-controls__btn--ton[hidden] { display: none !important; }
.live-controls__btn--ton.is-on { background: rgba(255, 255, 255, 0.14); }
.live-controls__spacer { flex: 1; }
/* In-stream sponsor wordmark — bottom-right; near corner when bar hidden, lifts when bar shows. */
.adslot {
  position: absolute;
  right: calc(clamp(6px, calc(8 * var(--u)), 14px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(6px, calc(8 * var(--u)), 14px) + env(safe-area-inset-bottom, 0px));
  left: auto; transform: none; z-index: 7;
  width: clamp(72px, calc(110 * var(--u)), 120px);
  max-width: 14%;
  padding: 0; margin: 0;
  background: transparent !important; border: 0 !important; border-radius: 0;
  backdrop-filter: none !important; box-shadow: none !important;
  text-align: right; pointer-events: none; opacity: 0;
  transition: opacity .35s ease, bottom .25s ease;
}
.adslot.is-on { opacity: 1; }
.adslot[hidden] { display: none !important; }
.adslot img, .adslot .adslot__mark {
  display: block; width: 100%; height: auto;
  max-width: 120px; max-height: 56px;
  margin: 0 0 0 auto; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
  background: transparent !important;
}
.adslot__by {
  display: block;
  font-size: clamp(7px, calc(7 * var(--u)), 11px); font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  margin-bottom: 2px; text-align: right;
}
.player.is-controls-on .adslot {
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
.player-connecting {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.65rem; background: radial-gradient(circle at 50% 40%, #152033, #0a0d14 70%);
  color: #e8eef8; pointer-events: none;
}
.player-connecting[hidden] { display: none !important; }
.player-connecting__spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(47, 158, 68, 0.25);
  border-top-color: #2f9e44;
  animation: livoSpin .7s linear infinite;
}
.player-connecting__label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: #9bb5a4; }
@keyframes livoSpin { to { transform: rotate(360deg); } }
.player video::-webkit-media-controls { display: none !important; }
.player video::-webkit-media-controls-enclosure { display: none !important; }
.player:fullscreen,
.player:-webkit-full-screen {
  width: 100vw; height: 100vh; max-height: none;
  aspect-ratio: auto; border-radius: 0; border: 0;
  background: #000;
}
.player:fullscreen video,
.player:-webkit-full-screen video { object-fit: contain; }
html.player-pseudo-fs,
html.player-pseudo-fs body { overflow: hidden; }
/* Phone landscape immersive: full viewport, page chrome hidden, 16:9 contain. */
html.player-pseudo-fs .site-header,
html.player-pseudo-fs .site-footer,
html.player-pseudo-fs .site-main > .status-row,
html.player-pseudo-fs .site-main > h1,
html.player-pseudo-fs .side-panel,
html.player-pseudo-fs .sponsor-strip,
html.player-pseudo-fs .section,
html.player-pseudo-fs #warn {
  display: none !important;
}
html.player-pseudo-fs .site-main { padding: 0; margin: 0; max-width: none; }
html.player-pseudo-fs .match-hero { margin: 0; display: block; }
.player.is-pseudo-fs {
  position: fixed; z-index: 80; inset: 0;
  width: 100vw; width: 100dvw;
  height: 100vh; height: 100dvh;
  max-height: none; aspect-ratio: auto;
  border: 0; border-radius: 0; background: #000;
  box-sizing: border-box;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
.player.is-pseudo-fs video { width: 100%; height: 100%; object-fit: contain; }
.player.is-pseudo-fs .live-controls {
  position: absolute;
  left: calc(var(--ov-pad-sm) + env(safe-area-inset-left));
  right: calc(var(--ov-pad-sm) + env(safe-area-inset-right));
  bottom: calc(var(--ov-pad-sm) + env(safe-area-inset-bottom));
}
.player.is-pseudo-fs .scorebug {
  top: calc(var(--ov-pad) + env(safe-area-inset-top));
  left: calc(var(--ov-pad) + env(safe-area-inset-left));
}
.player.is-pseudo-fs .channel-bug {
  top: calc(var(--ov-pad-sm) + env(safe-area-inset-top));
  right: calc(var(--ov-pad-sm) + env(safe-area-inset-right));
}
.player.is-pseudo-fs .adslot {
  right: calc(8 * var(--u) + env(safe-area-inset-right));
  bottom: calc(8 * var(--u) + env(safe-area-inset-bottom));
}
.player.is-pseudo-fs.is-controls-on .adslot {
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* Event strip — same height as the score bug, glued to its lower edge. */
.lt {
  position: absolute;
  top: calc(var(--ov-pad) + var(--bug-h));
  left: var(--ov-pad);
  z-index: 5;
  display: flex;
  height: var(--bug-h);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 calc(2 * var(--u)) calc(2 * var(--u));
  font-family: var(--font-bug);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.45), 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28);
  transition: max-width .46s cubic-bezier(.22, .8, .3, 1), opacity .28s ease;
}
.lt.is-in { max-width: calc(248 * var(--u)); opacity: 1; }
.lt--sub,
.lt--substitution { height: calc(var(--bug-h) * 2); }
.lt--board.is-in { max-width: calc(280 * var(--u)); }
.lt--board { height: calc(var(--bug-h) * 2.15); }
.lt--lineup.is-in { max-width: calc(220 * var(--u)); }
.lt--lineup {
  height: auto;
  max-height: calc(340 * var(--u));
}
.lt--comment.is-in,
.lt--strip.is-in { max-width: calc(320 * var(--u)); }
.player.is-pseudo-fs .lt {
  top: calc(var(--ov-pad) + env(safe-area-inset-top) + var(--bug-h));
  left: calc(var(--ov-pad) + env(safe-area-inset-left));
}
.lt__panel {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-width: max-content;
  background: linear-gradient(180deg, #2c3546 0%, #171d28 100%);
  color: #fff;
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 calc(2 * var(--u)) calc(2 * var(--u));
}
.lt__panel--board { min-width: calc(200 * var(--u)); }
.lt__panel--lineup { height: auto; }
.lt__panel--lineup .lt__rows { overflow: hidden; }
.lt__panel--lineup .lt__row { height: clamp(20px, calc(22 * var(--u)), 28px); font-size: clamp(11px, calc(12 * var(--u)), 22px); }
.lt__panel--lineup .lt__row--head {
  height: var(--bug-h);
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(11px, calc(11 * var(--u)), 20px);
}
.lt__board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(3 * var(--u));
  padding: calc(6 * var(--u)) calc(11 * var(--u)) calc(7 * var(--u));
  min-width: calc(176 * var(--u));
}
.lt__board-title {
  font-size: clamp(11px, calc(11 * var(--u)), 22px);
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.9;
}
.lt__board-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(9 * var(--u));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(13px, calc(16 * var(--u)), 28px);
}
.lt__board-score span { opacity: 0.85; font-size: 0.78em; letter-spacing: 0.04em; }
.lt__accent { width: calc(3 * var(--u)); flex: 0 0 calc(3 * var(--u)); align-self: stretch; }
.lt__rows { display: flex; flex-direction: column; min-width: 0; }
.lt__row {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  height: var(--bug-h);
  padding: 0 calc(7 * var(--u)) 0 calc(5 * var(--u));
  font-weight: 700;
  font-size: clamp(11px, calc(13 * var(--u)), 26px);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.lt__card {
  width: calc(6 * var(--u)); height: calc(9 * var(--u)); border-radius: calc(1 * var(--u)); flex: 0 0 auto;
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(0, 0, 0, 0.35);
  transform: rotate(-8deg);
}
.lt__card--y { background: #f5d90a; }
.lt__card--r { background: #d01212; }
.lt__card--yr { background: linear-gradient(90deg, #f5d90a 50%, #d01212 50%); }
.lt__num { font-variant-numeric: tabular-nums; font-weight: 700; }
.lt__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: calc(152 * var(--u));
}
.lt__name--wide { max-width: calc(288 * var(--u)); }
.lt__tag {
  margin-left: calc(4 * var(--u));
  font-size: clamp(9px, calc(10 * var(--u)), 16px);
  letter-spacing: 0.06em;
  opacity: 0.85;
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.28);
  border-radius: calc(2 * var(--u));
  padding: calc(1 * var(--u)) calc(3.5 * var(--u));
}
.lt__min {
  margin-left: calc(2 * var(--u));
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  opacity: 0.92;
}
.lt__arrow { width: 0; height: 0; flex: 0 0 auto; }
.lt__arrow--in {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #3ddc6a;
}
.lt__arrow--out {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid #ff5c5c;
}
.lt__row--out { color: #ffd0d0; }
.lt__row--in { color: #d7ffe4; }

.side-panel {
  background: var(--livo-elevated); border: 1px solid var(--livo-border);
  border-radius: var(--livo-radius); padding: 1rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.score-big {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.score-big__team { flex: 1; text-align: center; }
.score-big__team .team-mark { width: 48px; height: 48px; margin: 0 auto 0.35rem; font-size: 0.8rem; }
.score-big__name { font-size: 0.82rem; font-weight: 600; word-break: break-word; }
.score-big__center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; min-width: 4.8rem; flex: 0 0 auto;
}
.score-big__nums {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.03em; min-width: 4.5rem; text-align: center;
  line-height: 1;
}
.score-big__center .side-clock-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.score-big__center .side-clock {
  font-family: var(--font-bug), "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--livo-text);
}
.score-big__center .side-stoppage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: #1a1c1f;
  color: #f5c518;
  font-family: var(--font-bug), "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.score-big__center .side-stoppage[hidden] { display: none !important; }
.score-big__center .badge {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.14rem 0.5rem;
  margin-top: 0.05rem;
}
/* Mobile portrait: compact score card so Ereignisse rise above the fold. */
@media (max-width: 899px) {
  .side-panel { padding: 0.65rem 0.75rem; gap: 0.45rem; }
  .score-big { gap: 0.35rem; }
  .score-big__team .team-mark { width: 28px; height: 28px; margin-bottom: 0.15rem; font-size: 0.65rem; }
  .score-big__name { font-size: 0.68rem; line-height: 1.15; }
  .score-big__nums { font-size: 1.35rem; min-width: 3.2rem; }
  .score-big__center .side-clock { font-size: 0.88rem; }
  .share-row { gap: 0.35rem; }
  .share-row .btn { min-height: 34px; padding: 0.28rem 0.65rem; font-size: 0.78rem; border-radius: 0.55rem; }
  .side-panel h2 { margin-top: 0.15rem !important; }
}
.status-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  justify-content: center;
}
.side-clock {
  font-family: var(--font-bug), "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--livo-text);
}
.countdown {
  font-variant-numeric: tabular-nums; font-weight: 650; color: #bae6fd; font-size: 0.95rem;
}
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 42px; padding: 0.45rem 0.9rem; border-radius: 0.7rem;
  border: 1px solid var(--livo-border); background: #232937; color: var(--livo-text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: rgba(47, 158, 68, 0.5); }
.btn--primary { background: var(--livo-green); color: #04110a; border-color: transparent; }
.btn--primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--livo-text);
}
.btn--ghost:hover { border-color: rgba(47, 158, 68, 0.55); text-decoration: none; }
.btn--lg {
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  border-radius: 0.8rem;
}

.tl {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-bug);
  font-variant-numeric: tabular-nums;
}
.tl__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--livo-border);
}
.tl__row:last-child { border-bottom: 0; }
.tl__min {
  width: 2.4rem;
  min-width: 2.4rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.12rem 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #2c3546 0%, #171d28 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1.2;
  justify-self: center;
}
.tl__play {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0.32rem;
  min-width: 0; overflow: hidden;
}
.tl__play--end, .tl__row.is-away .tl__play--end { justify-content: flex-end; text-align: right; }
.tl__play:empty { visibility: hidden; }
.tl__ico {
  width: 7px; height: 10px; flex: 0 0 auto; border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
}
.tl__ico--goal, .tl__ico--own_goal, .tl__ico--penalty_scored {
  width: 9px; height: 9px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, #fff 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, #f4f7fb 0 46%, #9aa3b2 72%, #2c323c 100%);
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .2);
}
.tl__ico--yellow_card { background: #f5d90a; }
.tl__ico--red_card { background: #d01212; }
.tl__ico--yellow_red { background: linear-gradient(90deg, #f5d90a 50%, #d01212 50%); }
.tl__ico--sub, .tl__ico--substitution {
  width: 8px; height: 10px; border-radius: 0; box-shadow: none;
  background:
    linear-gradient(#3ddc6a, #3ddc6a) left 1px top 0 / 6px 1.5px no-repeat,
    linear-gradient(#3ddc6a, #3ddc6a) left 3px top 1.5px / 2px 3px no-repeat,
    linear-gradient(#ff5c5c, #ff5c5c) left 1px bottom 0 / 6px 1.5px no-repeat,
    linear-gradient(#ff5c5c, #ff5c5c) left 3px bottom 1.5px / 2px 3px no-repeat;
}
.tl__who { display: flex; align-items: baseline; min-width: 0; gap: 0.28rem; overflow: hidden; }
.tl__who--sub { flex-direction: column; align-items: flex-start; gap: 0; }
.tl__row.is-away .tl__who--sub { align-items: flex-end; }
.tl__num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.75rem; flex: 0 0 auto; }
.tl__name {
  font-size: 0.8rem; font-weight: 700; line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tl__sub { display: block; font-size: 0.72rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.tl__sub--out { color: #f0a8a8; }
.tl__sub--in { color: #9be7b0; }
.lt__team-logo {
  width: 16px; height: 16px; object-fit: contain; border-radius: 50%;
  background: #0a0f1a; flex: 0 0 auto;
}
.lt__team {
  margin-left: auto; font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.78; max-width: 7rem;
  overflow: hidden; text-overflow: ellipsis;
}
.lt__pos {
  margin-left: 0.25rem; font-size: 0.58rem; letter-spacing: 0.04em;
  opacity: 0.7; text-transform: uppercase;
}
.lt__panel--lineup .lt__row--head { gap: 0.4rem; }

.club-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.club-hero .club-card__logo { width: 72px; height: 72px; font-size: 1.1rem; }
.team-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0 1rem; }
.team-chip {
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.82rem;
  background: var(--livo-green-soft); border: 1px solid var(--livo-border);
}

.empty {
  padding: 1.1rem; border-radius: var(--livo-radius);
  border: 1px dashed var(--livo-border); color: var(--livo-muted);
  background: rgba(26, 31, 42, 0.45);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem max(var(--pad), env(safe-area-inset-right)) calc(1.75rem + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  border-top: 1px solid var(--livo-border); color: var(--livo-muted);
  font-size: 0.82rem;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 18, 0.45));
}
.site-footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
.site-footer__brand-block { max-width: 28rem; }
.site-footer__logo { display: block; height: 1.3rem; width: auto; margin: 0 0 0.5rem; }
.site-footer__brand { margin: 0; line-height: 1.45; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; }
.site-footer__links a { color: var(--livo-muted); font-weight: 500; }
.site-footer__links a:hover { color: var(--livo-text); }

.match-expand { margin-top: 0.85rem; }
.match-expand__summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--livo-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--livo-text);
  font-size: 0.88rem;
  font-weight: 600;
}
.match-expand__summary::-webkit-details-marker { display: none; }
.match-expand__summary::after {
  content: '';
  width: 0.4rem; height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  opacity: 0.7;
}
.match-expand[open] > .match-expand__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.match-expand__grid { margin-top: 0.85rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.5rem var(--pad) 0.85rem;
    background: rgba(11, 14, 20, 0.97);
    border-bottom: 1px solid var(--livo-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    min-height: 48px; padding: 0.55rem 0.25rem;
    border-bottom: 1px solid var(--livo-border);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta--primary { justify-content: center; margin-top: 0.35rem; }
  .nav-avatar { justify-content: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .player { max-height: 56vh; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { position: static; }
  .player { max-height: 78vh; }
}

/* Club welcome hub — simple options */
.club-welcome {
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.5rem;
  animation: fadeUp 0.5s ease both;
}
.club-welcome__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.club-welcome h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4.8vw, 2rem);
}
.club-welcome .lead {
  margin: 0;
  max-width: 32rem;
}
.club-card__logo--lg {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.club-options {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .club-options {
    grid-template-columns: repeat(3, 1fr);
  }
}
.club-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  min-height: 5.25rem;
  border-radius: var(--livo-radius);
  border: 1px solid var(--livo-border);
  background: var(--livo-elevated);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.club-option:hover {
  border-color: rgba(47, 158, 68, 0.5);
  transform: translateY(-1px);
  text-decoration: none;
}
.club-option--live {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.12), var(--livo-elevated) 55%);
}
.club-option--muted {
  opacity: 0.72;
  cursor: default;
}
.club-option__label {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.club-option__meta {
  font-size: 0.8rem;
  color: var(--livo-muted);
  line-height: 1.35;
}
.section--quiet {
  padding-top: 0.5rem;
  border-top: 1px solid var(--livo-border);
}
.hero--platform {
  max-width: 42rem;
}

/* —— Product landing (`/`) —— */
body.page-landing .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
}
body.page-landing .site-footer { margin-top: 0; }
.lp-wrap {
  width: min(100% - 2 * var(--pad), 1120px);
  margin-inline: auto;
}
.lp-br { display: none; }
@media (min-width: 640px) {
  .lp-br { display: inline; }
}
.lp-link {
  color: var(--livo-green);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.lp-link:hover { text-decoration: underline; }

.lp-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92dvh, 860px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  animation: lpFade 0.7s ease both;
}
.lp-hero__visual {
  position: absolute; inset: 0;
  z-index: 0;
}
.lp-hero__bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transform: scale(1.04);
  animation: lpKen 18s ease-in-out infinite alternate;
}
.lp-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 10, 14, 0.94) 0%, rgba(5, 10, 14, 0.78) 38%, rgba(5, 10, 14, 0.42) 68%, rgba(5, 10, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(5, 10, 14, 0.55) 0%, transparent 32%, rgba(5, 10, 14, 0.9) 100%),
    radial-gradient(ellipse 55% 50% at 16% 28%, rgba(47, 158, 68, 0.28), transparent 68%);
  /* Kill any residual top-edge UI bleed from older cached backgrounds */
  box-shadow: inset 0 72px 64px -48px rgba(5, 10, 14, 0.85);
}
.lp-hero__stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad), 1120px);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: end;
}
@media (min-width: 960px) {
  .lp-hero__stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    padding-top: clamp(5rem, 10vw, 7rem);
  }
}
.lp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #f4f7fb;
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  animation: lpRise 0.7s ease 0.06s both;
}
.lp-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 32rem;
  color: rgba(200, 212, 228, 0.88);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.5;
  animation: lpRise 0.7s ease 0.12s both;
}
.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: lpRise 0.7s ease 0.18s both;
}
.lp-hero__ctas .btn { text-decoration: none; }
.lp-hero__live {
  align-self: center;
  color: rgba(200, 212, 228, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.lp-hero__live:hover { color: var(--livo-green); text-decoration: underline; }

.lp-hero__devices {
  position: relative;
  min-height: 12rem;
  animation: lpRise 0.8s ease 0.2s both;
}
.lp-device { margin: 0; }
.lp-device--laptop {
  width: min(100%, 520px);
  margin-left: auto;
}
.lp-device__bezel {
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  padding: 0.45rem 0.45rem 0.7rem;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(47, 158, 68, 0.12);
  overflow: hidden;
}
.lp-device__bezel::before {
  content: '';
  display: block;
  width: 2.5rem; height: 0.28rem;
  margin: 0 auto 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.lp-device__bezel img {
  display: block; width: 100%; height: auto;
  border-radius: 0.2rem;
}
.lp-device--phone {
  position: absolute;
  right: 0; bottom: -0.5rem;
  width: min(34%, 150px);
  z-index: 2;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
  animation: lpFloat 5.5s ease-in-out infinite;
}
.lp-device__bezel--phone {
  border-radius: 1rem;
  padding: 0.55rem 0.28rem;
}
.lp-device__bezel--phone::before {
  width: 1.6rem; height: 0.22rem; margin-bottom: 0.35rem;
}
@media (max-width: 640px) {
  .lp-device--phone { width: 30%; bottom: -0.25rem; }
}

.lp-strip {
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-top: 1px solid var(--livo-border);
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.9), transparent 70%);
}
.lp-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: none;
}
.lp-strip__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--livo-muted);
}
.lp-strip__label + .lp-strip__label,
.lp-strip__grid + .lp-strip__label { margin-top: 1.35rem; }
.lp-strip__pulse {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--livo-live);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: lpPulse 1.6s ease-out infinite;
}
.lp-strip__grid { margin-bottom: 0.25rem; }

.lp-section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  border-top: 1px solid var(--livo-border);
}
.lp-section__head {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  max-width: 36rem;
}
.lp-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.lp-section__head p {
  margin: 0;
  color: var(--livo-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.lp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .lp-features--visual {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-feature--wide { grid-column: 1 / -1; }
}
.lp-feature {
  display: grid;
  gap: 0.85rem;
  animation: lpRise 0.55s ease both;
}
@media (min-width: 720px) {
  .lp-feature--wide {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}
.lp-feature:nth-child(2) { animation-delay: 0.05s; }
.lp-feature:nth-child(3) { animation-delay: 0.1s; }
.lp-feature:nth-child(4) { animation-delay: 0.15s; }
.lp-feature:nth-child(5) { animation-delay: 0.2s; }
.lp-feature__media {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--livo-border);
  background: #000;
}
.lp-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.lp-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: var(--livo-green-soft);
  color: var(--livo-green);
  border: 1px solid rgba(47, 158, 68, 0.28);
}
.lp-feature__icon svg { width: 1.25rem; height: 1.25rem; }
.lp-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.lp-feature p {
  margin: 0;
  color: var(--livo-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 34rem;
}

.lp-section--steps {
  background: linear-gradient(180deg, rgba(26, 31, 42, 0.55), transparent);
}
.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.lp-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.lp-step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #04110a;
  background: var(--livo-green);
}
.lp-step h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}
.lp-step p {
  margin: 0;
  color: var(--livo-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lp-proof {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(47, 158, 68, 0.12), transparent 60%),
    rgba(18, 21, 28, 0.5);
}
.lp-proof__inner {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}
.lp-proof__logo img {
  width: 3.5rem; height: 3.5rem;
  object-fit: contain;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--livo-border);
  padding: 0.35rem;
}
.lp-proof__quote {
  margin: 0;
}
.lp-proof__quote p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f0f4fa;
}
.lp-proof__quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.92rem;
}
.lp-proof__quote strong { color: var(--livo-text); }

.lp-cta { padding-bottom: clamp(3rem, 8vw, 5rem); }
.lp-cta__box {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--livo-radius) + 0.15rem);
  border: 1px solid rgba(47, 158, 68, 0.28);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(47, 158, 68, 0.14), transparent 55%),
    var(--livo-elevated);
}
.lp-cta__box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 0.55rem;
}
.lp-cta__box > p {
  margin: 0 0 1.25rem;
  color: var(--livo-muted);
  max-width: 36rem;
  line-height: 1.5;
}

@keyframes lpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lpRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lpKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes lpPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero, .lp-hero__title, .lp-hero__lead, .lp-hero__ctas,
  .lp-hero__devices, .lp-feature, .lp-hero__bg, .lp-device--phone, .lp-strip__pulse {
    animation: none !important;
  }
}

/* Contact form */
.lp-contact {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
  margin: 1.25rem 0 0;
}
.lp-contact__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--livo-muted);
}
.lp-contact__field input,
.lp-contact__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--livo-border);
  border-radius: 0.55rem;
  background: rgba(10, 14, 20, 0.65);
  color: #f4f7fb;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 500;
}
.lp-contact__field textarea { resize: vertical; min-height: 8rem; }
.lp-contact__honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lp-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.lp-alert--ok {
  background: rgba(47, 158, 68, 0.16);
  border: 1px solid rgba(47, 158, 68, 0.4);
  color: #c8f0d1;
}
.lp-alert--err {
  background: rgba(185, 28, 28, 0.16);
  border: 1px solid rgba(185, 28, 28, 0.4);
  color: #fecaca;
  list-style: disc;
  padding-left: 1.4rem;
}
