:root {
  --bg: #fafcfb;
  --surface: #ffffff;
  --surface-soft: #eef7f3;
  --surface-line: #f5f8f7;
  --text: #0b1f1a;
  --muted: #5f6f68;
  --border: #d9e2de;
  --green: #007a53;
  --green-dark: #006b4a;
  --green-ink: #064534;
  --beige: #fff7e6;
  --gold: #dfae2b;
  --shadow: 0 8px 24px rgba(11, 31, 26, 0.045);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(250, 252, 251, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

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

.brand {
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-size: 12px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

main {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.tool-shell {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  row-gap: 12px;
  padding: clamp(48px, 6vw, 64px) 0 10px;
}

.tool-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.tool-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 3.7vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.search-panel,
.result-card,
.games-today,
.recommendations,
.trust-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-panel {
  width: 100%;
  justify-self: center;
  padding: 16px;
  box-shadow: none;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 122, 83, 0.12);
}

button,
.primary-button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  white-space: normal;
  text-align: center;
}

.secondary-button {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  color: var(--green-ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.secondary-button:hover {
  border-color: var(--green);
}

button,
.primary-button {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--green);
}

button:hover,
.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button,
.secondary-button:hover {
  color: var(--green-ink);
  background: #fff;
}

.microcopy {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-card {
  width: 100%;
  justify-self: center;
  margin-top: 0;
  padding: clamp(26px, 3.4vw, 38px);
  border: 2px solid #64bd91;
  background: linear-gradient(180deg, #f1fbf6 0%, #ffffff 100%);
  box-shadow: 0 22px 55px rgba(11, 31, 26, 0.13);
}

.match-main {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 18px;
  align-items: center;
}

.team-badge {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #101010 0 45%, #c92020 45% 100%);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(11, 31, 26, 0.11);
  font-size: 17px;
  font-weight: 900;
}

.match-main h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.08;
}

.match-main p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.competition-line {
  width: fit-content;
  margin-top: 8px !important;
  padding: 4px 9px;
  color: var(--green-ink) !important;
  background: var(--surface-soft);
  border: 1px solid #cfe3db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800 !important;
}

.watch-summary {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.section-label {
  display: block;
  margin-bottom: 0;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.watch-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.watch-option {
  display: grid;
  gap: 5px;
  min-height: 100px;
  padding: 12px;
  grid-template-rows: auto 1fr auto;
  background: #f8fbfa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.watch-option:hover {
  border-color: #b9d8cd;
}

.watch-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.watch-option strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
}

.watch-option small {
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 800;
}

.watch-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: #f3faf7;
  border: 1px solid #cfe3db;
  border-radius: var(--radius);
}

.watch-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.games-today,
.recommendations,
.trust-note,
.championships,
.competition-table {
  width: 100%;
  margin: 14px auto;
  padding: clamp(14px, 2vw, 20px);
}

.games-today {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.games-today h2,
.recommendations h2,
.championships h2,
.competition-table h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.08;
}

.games-today p,
.recommendations p,
.trust-note p,
.championships p,
.competition-table p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--green-ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.game-list {
  grid-column: 1 / -1;
  display: grid;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

.game-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.game-list-item strong {
  display: block;
  font-size: 17px;
}

.game-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.game-list-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.game-list-item:hover strong {
  color: var(--green-dark);
}

.small-action {
  min-height: 36px;
  padding: 0 13px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.inline-game-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: var(--surface-line);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.inline-game-detail[hidden] {
  display: none;
}

.inline-game-detail a {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.inline-game-detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-game-detail strong {
  font-size: 15px;
}

.inline-game-detail small {
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 800;
}

.championships {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.championship-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.championship-cloud a {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 11px;
  color: var(--green-ink);
  background: var(--surface-soft);
  border: 1px solid #cfe3db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.championship-cloud a:hover {
  border-color: var(--green);
}

.competition-table {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.upcoming-table {
  display: grid;
  border-top: 1px solid var(--border);
}

.upcoming-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1fr;
  gap: 16px;
  min-height: auto;
  padding: 14px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  text-align: left;
}

.upcoming-row:hover {
  color: var(--green-dark);
  background: transparent;
}

.upcoming-row span {
  color: var(--muted);
  font-weight: 700;
}

.ad-slot {
  display: grid;
  min-height: 76px;
  margin: 18px 0;
  place-items: center;
  color: #7b8984;
  background: #f1f4f3;
  border: 1px dashed #c9d3cf;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.recommendations {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.affiliate-grid a {
  min-height: 104px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.affiliate-grid a:hover {
  border-color: #bcd8ce;
  box-shadow: 0 8px 18px rgba(11, 31, 26, 0.045);
  transform: translateY(-1px);
}

.affiliate-grid span {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.affiliate-grid strong,
.affiliate-grid small {
  display: block;
}

.affiliate-grid strong {
  margin-top: 12px;
}

.affiliate-grid small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.trust-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  background: transparent;
  font-size: 14px;
}

.trust-note strong {
  color: var(--green-ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px) 38px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

@media (max-width: 920px) {
  .games-today,
  .recommendations,
  .championships,
  .competition-table,
  .trust-note {
    grid-template-columns: 1fr;
  }

  .affiliate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body * {
    max-width: 100%;
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
  }

  .tool-shell {
    gap: 16px;
    padding-top: 34px;
    overflow: hidden;
  }

  .tool-copy h1 {
    font-size: clamp(27px, 7.4vw, 32px);
    line-height: 1.08;
    max-width: 310px;
    overflow-wrap: anywhere;
  }

  .tool-copy p {
    font-size: 16px;
    max-width: 320px;
    overflow-wrap: break-word;
  }

  .search-row,
  .watch-row,
  .game-list-item,
  .upcoming-row {
    grid-template-columns: 1fr;
  }

  .inline-game-detail {
    grid-template-columns: 1fr;
  }

  .small-action {
    width: 100%;
  }

  .match-main {
    grid-template-columns: 58px 1fr;
    gap: 13px;
  }

  .watch-summary {
    align-items: start;
  }

  .watch-row {
    overflow: hidden;
  }

  .watch-row p {
    margin-top: 10px;
    max-width: 300px;
    overflow-wrap: break-word;
  }

  .microcopy {
    max-width: 315px;
    overflow-wrap: break-word;
  }

  button,
  .primary-button {
    width: 100%;
    min-width: 0;
  }

  .team-badge {
    width: 60px;
    height: 60px;
    font-size: 15px;
  }

  .match-main h2 {
    font-size: 24px;
  }

  .watch-summary {
    margin-top: 18px;
  }

  .watch-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .watch-option {
    min-height: 76px;
    grid-template-columns: 110px 1fr;
    align-items: center;
  }

  .watch-option small {
    grid-column: 2;
  }

  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .filter-chip {
    flex: 0 0 auto;
    width: auto;
  }

  .affiliate-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
