:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: rgba(11, 22, 40, 0.86);
  --panel-strong: rgba(12, 28, 52, 0.92);
  --ink: #ffffff;
  --muted: #9fb3c8;
  --soft: #d6e2f0;
  --line: rgba(255, 255, 255, 0.06);
  --blue: #0057b7;
  --blue-deep: #004b87;
  --blue-soft: rgba(0, 87, 183, 0.25);
  --red: #d7141a;
  --red-deep: #c8102e;
  --red-soft: rgba(220, 20, 60, 0.16);
  --white: #ffffff;
  --ad-bg: rgba(7, 17, 31, 0.7);
  --ad-line: rgba(214, 226, 240, 0.16);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  --hero-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 87, 183, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 75, 135, 0.26), transparent 340px),
    radial-gradient(circle at 92% 88%, rgba(200, 16, 46, 0.055), transparent 300px),
    linear-gradient(180deg, #050b14 0%, #07111f 48%, #050b14 100%),
    var(--bg);
}

button,
a {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  color: var(--muted);
  border-bottom: 0;
  background: rgba(5, 11, 20, 0.92);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  opacity: 0.72;
  background: linear-gradient(90deg, #0057b7 0 33.33%, #ffffff 33.33% 66.66%, #d7141a 66.66% 100%);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

.site-header a {
  text-decoration: none;
}

.page {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 18px 14px 42px;
}

.content-column {
  width: min(780px, 100%);
  margin: 0 auto;
  min-width: 0;
}

.countdown-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: 40px 32px 38px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 44%),
    var(--panel);
  box-shadow: var(--hero-shadow);
  text-align: center;
}

.countdown-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  opacity: 0.68;
  background: linear-gradient(90deg, transparent, rgba(0, 87, 183, 0.78), rgba(255, 255, 255, 0.55), rgba(215, 20, 26, 0.5), transparent);
}

.label {
  margin: 0 0 30px;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.label span {
  background: linear-gradient(90deg, var(--white), #d6e2f0 52%, #f0a7ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timer {
  width: 100%;
  display: grid;
  grid-template-columns: 0.74fr 1.2fr 1.2fr 0.74fr;
  gap: 18px;
  min-width: 0;
}

.timer-part {
  position: relative;
  min-width: 0;
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 34%),
    linear-gradient(145deg, rgba(0, 75, 135, 0.74), rgba(7, 17, 31, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.timer-part strong {
  color: var(--white);
  font-size: 4rem;
  line-height: 0.98;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .timer-part:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 226, 240, 0.14);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 10px 22px rgba(0, 0, 0, 0.2);
  }
}

.timer-part:nth-child(2) strong,
.timer-part:nth-child(3) strong {
  font-size: 5.55rem;
}

.timer-part:nth-child(2)::after {
  content: ":";
  position: absolute;
  top: 50%;
  right: -14px;
  color: rgba(214, 226, 240, 0.36);
  font-size: 2rem;
  font-weight: 760;
  line-height: 1;
  transform: translate(50%, -55%);
}

.timer-part:nth-child(1),
.timer-part:nth-child(4) {
  opacity: 0.74;
}

.timer-part:nth-child(1) strong,
.timer-part:nth-child(4) strong {
  font-size: 3.12rem;
}

.timer-part span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-message {
  display: none;
  margin: 0;
  color: #fecaca;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(239, 51, 64, 0.36);
  text-transform: uppercase;
}

.match {
  margin: 36px 0 0;
  font-size: 2.24rem;
  font-weight: 820;
  line-height: 1.12;
}

.meta {
  margin: 9px 0 0;
  color: rgba(159, 179, 200, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.live-note:empty {
  display: none;
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  margin-bottom: 18px;
  color: rgba(214, 226, 240, 0.52);
  border: 1px dashed var(--ad-line);
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(0, 75, 135, 0.065), rgba(0, 75, 135, 0.065) 10px, rgba(255, 255, 255, 0.012) 10px, rgba(255, 255, 255, 0.012) 20px),
    var(--ad-bg);
  text-align: center;
}

.ad-wide {
  min-height: 72px;
  max-height: 72px;
}

.ad-slot ins {
  width: 100%;
  min-height: 1px;
  background: transparent;
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.72;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: 1.15rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
  min-width: 0;
}

.info-panel {
  min-width: 0;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(11, 22, 40, 0.9);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.info-panel h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.game-list li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  min-height: 66px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 15px 10px 0;
  border-radius: 12px;
  transition: background 160ms ease, border-color 160ms ease;
  min-width: 0;
}

.game-main {
  min-width: 0;
}

.game-list li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.game-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.game-list time {
  color: rgba(159, 179, 200, 0.84);
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.game-list strong {
  min-width: 0;
  color: var(--ink);
  display: block;
  font-size: 1.05rem;
  font-weight: 740;
  line-height: 1.25;
}

.game-badge {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  padding: 3px 8px 4px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.82);
  box-shadow: none;
}

.tournament-badge {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

.score-wrap {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.score-badge {
  min-width: 38px;
  color: var(--white);
  background: rgba(5, 11, 20, 0.88);
}

.overtime-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  padding: 2px 6px 3px;
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.seo-copy {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(11, 22, 40, 0.86);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.seo-copy h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.62;
  padding: 6px 2px 0;
}

.site-footer a,
.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.policy-page {
  width: min(860px, calc(100% - 28px));
  margin: 28px auto 56px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.policy-page h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 1.8rem;
}

.policy-page h2 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
}

.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.65;
}

.policy-page a {
  color: var(--ink);
}

body.is-live .timer-part {
  border-color: rgba(220, 20, 60, 0.42);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.is-live .timer {
  display: none;
}

body.is-live .live-message {
  display: block;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    display: block;
    min-height: 0;
    padding: 11px 14px 10px;
  }

  .site-header nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    font-size: 0.8rem;
  }

  .page {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    overflow: hidden;
  }

  .content-column,
  .countdown-shell,
  .ad-slot {
    max-width: 100%;
  }

  .ad-wide {
    min-height: 64px;
    max-height: 64px;
  }

  .countdown-shell {
    padding: 28px 14px 28px;
    border-radius: 18px;
  }

  .label {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 304px);
    max-width: 100%;
  }

  .timer-part {
    min-height: 112px;
    border-radius: 14px;
  }

  .timer-part strong {
    font-size: 3rem;
  }

  .timer-part:nth-child(2) strong,
  .timer-part:nth-child(3) strong {
    font-size: 3.55rem;
  }

  .timer-part:nth-child(2)::after {
    display: none;
  }

  .timer-part:nth-child(1) strong,
  .timer-part:nth-child(4) strong {
    font-size: 2.46rem;
  }

  .match {
    margin-top: 32px;
    font-size: 1.62rem;
  }

  .meta {
    max-width: 310px;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
  }

  .info-panel {
    padding: 18px 16px;
  }

  .game-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 66px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .game-list strong {
    font-size: 1.02rem;
  }

  .game-badge {
    justify-self: start;
    min-width: 30px;
    margin-top: -2px;
    padding: 3px 7px;
    font-size: 0.72rem;
  }

  .score-wrap {
    justify-self: start;
    margin-top: -2px;
  }

  .score-badge {
    min-width: 36px;
  }

  .site-footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding: 10px 12px 9px;
  }

  .site-header nav {
    font-size: 0.78rem;
  }

  .label {
    max-width: 100%;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .timer-part strong {
    font-size: 2.45rem;
  }

  .timer-part:nth-child(2) strong,
  .timer-part:nth-child(3) strong {
    font-size: 3rem;
  }

  .timer-part:nth-child(1) strong,
  .timer-part:nth-child(4) strong {
    font-size: 2.2rem;
  }

  .meta {
    overflow-wrap: anywhere;
  }
}
