*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #06120c;
  --surface: #0f1712;
  --line: rgba(142, 194, 157, 0.16);
  --text: #f1f5f8;
  --muted: #94a2b0;
  --accent: #00e868;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(56, 111, 72, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 111, 72, 0.13) 1px, transparent 1px);
  background-size: 40px 40px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 53px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #164529;
  background: rgba(4, 11, 7, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 17px;
  font-weight: 850;
}

.brand span {
  color: var(--accent);
}

.back-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.back-link:hover {
  color: var(--accent);
}

.main {
  padding: 32px 0 52px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  margin-bottom: 34px;
}

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(215, 228, 238, 0.18);
  border-radius: 16px;
  background: #050607;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07090c;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.1;
}

.match-list {
  display: grid;
  gap: 10px;
}

.time-group {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
}

.time-label {
  padding-top: 17px;
  color: #71808d;
  font-size: 12px;
  font-weight: 800;
}

.match-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.match-card-link {
  display: block;
  min-width: 0;
}

.match-card-link:hover .match-card,
.match-card-link:focus-visible .match-card {
  border-color: rgba(0, 232, 104, 0.6);
  background: #142219;
}

.match-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 16px;
}

.match-card-top {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.match-time {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.match-status,
.match-context,
.source-count {
  color: var(--muted);
  font-size: 11px;
}

.match-status {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.match-league {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.match-line strong {
  font-size: 14px;
}

.match-vs {
  color: #90a197;
  font-weight: 500;
}

.match-context {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.context-dot {
  width: 3px;
  height: 3px;
  align-self: center;
  border-radius: 50%;
  background: #71808d;
}

.match-extra {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-arrow {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.empty-state {
  padding: 40px 20px;
  border: 1px dashed rgba(215, 228, 238, 0.18);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 26px 20px;
  border-top: 1px solid #164529;
  color: var(--muted);
  background: #040b07;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 680px) {
  .main {
    padding-top: 25px;
  }

  .container {
    width: min(100% - 24px, 990px);
  }

  .player-shell {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .match-card {
    padding: 12px 10px;
  }

  .match-card-top {
    grid-template-columns: 51px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .match-time {
    font-size: 16px;
  }

  .match-line strong,
  .match-league {
    font-size: 12px;
  }

  .source-count {
    display: none;
  }
}
