:root {
  --ink: #07111a;
  --muted: #5a6570;
  --line: #dde3e8;
  --soft: #f5f7f9;
  --white: #ffffff;
  --red: #d30d18;
  --red-dark: #a60912;
  --green: #009739;
  --yellow: #ffdf00;
  --blue: #002776;
  --shadow: 0 18px 45px rgba(7, 17, 26, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  gap: 10px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand img {
  width: min(270px, 28vw);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--red);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--green);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: 660px;
  padding: 84px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(0, 39, 118, .96), rgba(0, 151, 57, .82)),
    radial-gradient(circle at 78% 20%, rgba(255, 223, 0, .62), transparent 31%),
    radial-gradient(circle at 86% 75%, rgba(255, 255, 255, .24), transparent 24%),
    linear-gradient(135deg, #002776, #009739);
  color: var(--white);
}

.professional-site .hero {
  background:
    linear-gradient(110deg, rgba(7, 17, 26, .96), rgba(7, 17, 26, .78)),
    radial-gradient(circle at 78% 22%, rgba(211, 13, 24, .35), transparent 34%),
    linear-gradient(135deg, #111820, #07111a);
}

.professional-site .hero .eyebrow {
  color: #ff5962;
  background: rgba(255, 255, 255, .08);
}

.professional-site .button.primary,
.professional-site .metric,
.professional-site .nav-cta {
  background: var(--red);
}

.professional-site .button.primary:hover {
  background: var(--red-dark);
}

.copa-site .copa-hero {
  min-height: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  color: #08220f;
  background: var(--yellow);
  border-radius: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 680px;
  color: #dbe2e7;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover {
  background: #007f30;
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .34);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-panel div {
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-panel p {
  margin: 0;
  color: #dbe2e7;
}

.metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.services,
.audience,
.live-games,
.stream-section {
  padding: 82px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card:hover {
  border-color: rgba(211, 13, 24, .45);
  box-shadow: 0 16px 35px rgba(7, 17, 26, .08);
}

.service-card p,
.feature-list p,
.contact p {
  color: var(--muted);
}

.service-icon {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .16em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 82px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.audience-grid span {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.live-games {
  background:
    linear-gradient(180deg, rgba(0, 151, 57, .09), rgba(255, 255, 255, 0) 58%),
    var(--white);
  padding-block: 22px;
}

.header-live-games {
  flex: 1 1 420px;
  min-width: 320px;
  padding: 0;
  background: transparent;
}

.live-games-heading {
  width: min(50%, 620px);
  margin-bottom: 12px;
}

.live-games-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.scores-panel {
  width: min(50%, 620px);
  max-height: 215px;
  padding: 16px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(7, 17, 26, .08);
}

.header-live-games .scores-panel {
  width: 100%;
  max-height: 142px;
  padding: 8px 10px;
  box-shadow: none;
}

.scores-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.header-live-games .scores-toolbar {
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.scores-toolbar strong,
.scores-toolbar span {
  display: block;
}

.scores-toolbar strong {
  font-size: 17px;
}

.header-live-games .scores-toolbar strong {
  font-size: 14px;
}

.scores-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.header-live-games .scores-toolbar span {
  font-size: 11px;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.score-actions button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.header-live-games .score-actions button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}

.score-actions button:hover,
.score-actions button:focus {
  border-color: rgba(0, 151, 57, .45);
  color: var(--green);
}

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

.header-live-games .scores-list {
  gap: 6px;
}

.score-message {
  padding: 18px;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.header-live-games .score-message {
  padding: 10px;
}

.score-message strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.header-live-games .score-message strong {
  font-size: 13px;
}

.score-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.header-live-games .score-message p {
  font-size: 11px;
}

.score-message code {
  padding: 2px 5px;
  background: rgba(7, 17, 26, .08);
  border-radius: 4px;
}

.score-card {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.header-live-games .score-card {
  padding: 8px 10px;
}

.score-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.header-live-games .score-card-top {
  margin-bottom: 6px;
  font-size: 10px;
}

.score-card-top strong {
  color: var(--green);
}

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

.header-live-games .score-match {
  gap: 8px;
}

.score-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
}

.header-live-games .score-team {
  gap: 6px;
  font-size: 12px;
}

.score-team-away {
  justify-content: flex-end;
  text-align: right;
}

.score-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-live-games .score-team img {
  width: 20px;
  height: 20px;
}

.score-team-flag {
  display: inline-grid;
  width: 28px;
  height: 20px;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.score-team-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-live-games .score-team-flag {
  width: 22px;
  height: 16px;
  font-size: 8px;
}

.header-live-games .score-team-flag img {
  width: 100%;
  height: 100%;
}

.score-team span {
  overflow-wrap: anywhere;
}

.score-value {
  min-width: 72px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
}

.header-live-games .score-value {
  min-width: 54px;
  padding: 4px 7px;
  font-size: 14px;
}

.score-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-live-games .score-card p {
  margin-top: 6px;
  font-size: 10px;
}

.frame-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stream-section {
  background: var(--soft);
}

.stream-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.stream-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.youtube-access-box {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(7, 17, 26, .08);
}

.youtube-access-box strong {
  font-size: 22px;
}

.youtube-access-box p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.youtube-access-box .button {
  width: fit-content;
}

.client-area {
  display: grid;
  gap: 22px;
  margin: 0 clamp(20px, 5vw, 72px) 72px;
  padding: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-area-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.client-area h2 {
  margin-bottom: 8px;
}

.client-area p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.client-access-box {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-access-box strong {
  font-size: 20px;
}

.client-access-box p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.client-access-box .button {
  width: fit-content;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px) 72px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 39, 118, .94), rgba(7, 17, 26, .98)),
    var(--ink);
  border-radius: 8px;
}

.contact .eyebrow {
  color: #ff5962;
}

.contact p {
  margin-bottom: 0;
  color: #dbe2e7;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}

.contact-card a:not(.button),
.contact-card span {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  word-break: break-word;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 260px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .header-main,
  .main-nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-live-games {
    width: 100%;
    min-width: 0;
  }

  .main-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .client-area-heading,
  .live-games-heading,
  .stream-heading {
    grid-template-columns: 1fr;
  }

  .live-games-heading,
  .scores-panel {
    width: 100%;
  }

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

  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .brand img {
    width: 100%;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .nav-cta {
    padding: 8px 12px !important;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: 40px;
  }

  .service-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .audience,
  .live-games,
  .stream-section {
    padding-block: 58px;
  }

  .scores-panel {
    max-height: 360px;
    padding: 16px;
  }

  .scores-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-actions {
    justify-content: flex-start;
  }

  .score-match {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .score-team-away {
    justify-content: flex-start;
    text-align: left;
  }

  .score-value {
    width: 100%;
  }

  .contact {
    margin-bottom: 40px;
    padding: 28px;
  }
}
