:root {
  --copa-blue: #0073be;
  --copa-blue-600: #0b73be;
  --copa-blue-700: #0d79c0;
  --copa-blue-800: #095a96;
  --copa-navy: #03365e;
  --copa-navy-700: #073a5a;
  --copa-text: #111111;
  --copa-muted: #555555;
  --copa-border: #e0e0e0;
  --copa-border-soft: #eeeeee;
  --copa-bg: #f8f9fa;
  --copa-card-bg: #f7f7f7;
  --copa-error: #b91c1c;
  --copa-selector: #8dbde0;
  --copa-content: 1240px;
}

html,
body.copa-card-page {
  overflow-x: hidden;
}

body.copa-card-page {
  background-color: #f5f6f8;
  margin: 0;
}

.mw-area {
  display: grid;
  gap: 24px;
  grid-auto-rows: minmax(1px, auto);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 24px auto;
  max-width: var(--copa-content);
  padding: 0 20px;
  &:has(.copa-hero) {
    all: unset;
  }
}

@media (max-width: 768px) {
  .mw-area {
    grid-template-columns: 1fr;
  }
}

.instrucao {
  color: #333333;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.copa-header-main {
  background-color: var(--copa-blue-700);
  color: #ffffff;
}

.copa-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--copa-content);
  padding: 20px;
}

.copa-footer-main {
  align-items: center;
  background-color: var(--copa-blue-700);
  color: #ffffff;
  display: flex;
  font-size: 16px;
  justify-content: center;
  padding: 23px;
  text-align: center;
}

.copa-header-main h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.copa-header-main h1 small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 2px;
}

.copa-header-logo,
.copa-header-logo picture,
.copa-header-logo img {
  display: block;
}

.copa-header-logo img {
  height: auto;
  width: 166px;
}

.copa-header-main nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.copa-header-main nav a {
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.copa-header-main nav a:hover,
.copa-header-main nav a.active {
  opacity: 0.8;
}

.copa-state {
  background-color: #ffffff;
  border: 1px solid var(--copa-border);
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  padding: 24px;
  text-align: center;
}

.copa-state-error {
  color: var(--copa-error);
}

.copa-widget {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
}

.copa-container > footer {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--copa-border);
  border-top: none;
  color: var(--copa-blue);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  max-width: var(--copa-content);
  min-height: 60px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.copa-container > footer::after,
.copa-home-teams-link::after {
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.copa-container > footer::after {
  height: 10px;
  width: 10px;
}

.copa-container {
  margin: 0 auto;
  max-width: var(--copa-content);
}

.copa-container > h2 {
  color: var(--copa-text);
  font-size: 36px;
  font-weight: 100;
  margin-bottom: 27px;
  text-align: center;
  text-transform: uppercase;
}

.copa-phase-selector {
  align-items: center;
  display: flex;
  font-size: 20px;
  font-weight: 600;
  justify-content: space-between;
  margin-bottom: 30px;
}

.copa-phase-selector button,
.copa-group-card > header button,
.copa-fixtures > header button {
  border: none;
  cursor: pointer;
}

.copa-phase-selector button {
  background-color: var(--copa-blue-700);
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  height: 35px;
  width: 35px;
}

.copa-phase-selector button:hover {
  filter: brightness(0.9);
}

.copa-phase-selector button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.copa-groups-root {
  background-color: #ffffff;
  min-height: 296px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

#copa-groups-root .copa-group-card > header button,
#copa-groups-root .splide__pagination,
#copa-groups-root .splide__arrows {
  display: none;
}

.copa-groups-splide,
.copa-fixtures-splide {
  min-width: 0;
  width: 100%;
}

.copa-groups-splide .splide__track,
.copa-fixtures-splide .splide__track {
  min-width: 0;
  overflow: hidden;
}

.copa-groups-splide .splide__slide,
.copa-fixtures-splide .splide__slide {
  min-width: 0;
}

.copa-groups-splide .splide__list,
.copa-fixtures-splide .splide__list {
  list-style: none;
}

.copa-groups-splide .copa-group-card {
  margin-bottom: 0;
}

.copa-group-card {
  background: #ffffff;
  border: 1px solid var(--copa-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.copa-group-card > header {
  align-items: center;
  background-color: var(--copa-blue-700);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
}

.copa-group-card > header h3 {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.copa-group-card > header button,
.copa-fixtures > header button {
  background: none;
}

.copa-group-card > header button {
  color: #ffffff;
  font-size: 18px;
}

.copa-group-card button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.copa-group-card > main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  min-width: 0;
}

.copa-standings {
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--copa-blue-700) #e5e7eb;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.copa-standings::-webkit-scrollbar {
  height: 4px;
}

.copa-standings::-webkit-scrollbar-track {
  background: #e5e7eb;
}

.copa-standings::-webkit-scrollbar-thumb {
  background: var(--copa-blue-700);
}

.copa-standings table {
  border-collapse: collapse;
  min-width: 690px;
  text-align: center;
  width: 100%;
}

.copa-standings th,
.copa-standings td {
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 10px;
  text-align: center;
  vertical-align: middle;
}

.copa-standings th {
  color: #000000;
  font-size: 14px;
  font-weight: 700;
}

.copa-standings td {
  color: #333333;
  font-size: 13px;
}

.copa-standings td:nth-child(2) {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 25px;
  min-width: 210px;
  text-align: left;
}

.copa-standings td:nth-child(2) img,
.copa-fixtures article img {
  border: 1px solid var(--copa-border-soft);
  border-radius: 50%;
  object-fit: cover;
}

.copa-standings td:nth-child(2) img {
  height: 24px;
  width: 24px;
}

.copa-standings tr:last-child td {
  border-bottom: none;
}

.copa-fixtures {
  border-left: 1px solid var(--copa-border);
  max-width: 486px;
  min-width: 0;
  width: 100%;
}

.copa-fixtures > header {
  align-items: center;
  border-bottom: 1px solid var(--copa-border);
  color: #000000;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 13px 22px;
}

.copa-fixtures > header button {
  color: var(--copa-selector);
  font-size: 16px;
}

.copa-fixtures-splide .splide__slide {
  display: flex;
  flex-direction: column;
  min-height: 182px;
}

.copa-fixtures article {
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 91px;
  padding: 24px;
}

.copa-fixtures article:last-child {
  border-bottom: none;
}

.copa-fixtures time {
  color: #000000;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.copa-fixtures article > div {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.copa-fixtures article span {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copa-fixtures article span:first-child {
  text-align: right;
}

.copa-fixtures article span:last-child {
  text-align: left;
}

.copa-fixtures article img {
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  width: 36px;
}

.copa-fixtures article img:first-of-type {
  margin-right: 12px;
}

.copa-fixtures article img:last-of-type {
  margin-left: 12px;
}

.copa-fixtures article strong {
  font-size: 14px;
  font-weight: 600;
}

.copa-fixtures article i {
  color: #cccccc;
  font-size: 22px;
  font-style: normal;
  line-height: 24px;
}

.copa-knockout-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.copa-knockout-card {
  background-color: #ffffff;
  border: 1px solid var(--copa-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  width: 100%;
}

.copa-knockout-card > header {
  align-items: center;
  background-color: var(--copa-blue-700);
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  text-transform: uppercase;
}

.copa-knockout-card > main {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 118px;
  padding: 20px 24px 26px;
}

.copa-knockout-card time {
  color: #000000;
  font-size: 12px;
  letter-spacing: 0.5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.copa-knockout-scoreboard {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(180px, 1fr) 18px 24px 18px minmax(180px, 1fr);
  justify-content: center;
  max-width: 620px;
  width: 100%;
}

.copa-knockout-team {
  align-items: center;
  display: flex;
  gap: 20px;
  min-width: 0;
}

.copa-knockout-team-home {
  justify-content: flex-end;
  text-align: right;
}

.copa-knockout-team-away {
  justify-content: flex-start;
  text-align: left;
}

.copa-knockout-team > span:not(.copa-team-placeholder) {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.copa-knockout-card img,
.copa-team-placeholder {
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  height: 50px;
  width: 50px;
}

.copa-knockout-card img {
  border: 1px solid var(--copa-border-soft);
  object-fit: cover;
}

.copa-team-placeholder {
  background-color: var(--copa-navy);
}

.copa-knockout-scoreboard strong {
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.copa-knockout-scoreboard i {
  color: #cccccc;
  font-size: 24px;
  font-style: normal;
  line-height: 24px;
  text-align: center;
}

.copa-fixtures-empty {
  justify-content: center;
  min-height: 120px;
}

.copa-fixtures-empty div {
  color: var(--copa-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.copa-layout {
  background-color: #ffffff;
}

.copa-content {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

.copa-content > h1 {
  color: var(--copa-text);
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 30px;
  text-align: center;
}

.copa-filters {
  border-bottom: 1px solid var(--copa-border-soft);
  display: flex;
  gap: 30px;
  justify-content: center;
  list-style: none;
  margin-bottom: 50px;
}

.copa-filters li {
  color: var(--copa-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  transition: color 0.2s;
  user-select: none;
}

.copa-filters li:hover,
.copa-filters li.active {
  color: var(--copa-blue-700);
}

.copa-filters li.active::after {
  background-color: #3598db;
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 100%;
}

.copa-section {
  margin-bottom: 50px;
}

.copa-section > h2 {
  color: var(--copa-text);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.copa-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.copa-grid .copa-state {
  grid-column: 1 / -1;
}

.copa-card {
  background-color: var(--copa-card-bg);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
}

.copa-card[data-team-code] {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.copa-card[data-team-code]:hover {
  border-color: var(--copa-blue);
  box-shadow: 0 8px 24px rgba(0, 115, 190, 0.14);
  transform: translateY(-2px);
}

.copa-card[data-team-code]:focus-visible {
  border-color: var(--copa-blue);
  outline: 2px solid var(--copa-blue);
  outline-offset: 3px;
}

.copa-card header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.copa-card header img {
  border: 1px solid #dddddd;
  height: auto;
  min-height: 32px;
  min-width: 40px;
  width: 40px;
}

.copa-card header span {
  color: #333333;
  font-size: 10px;
  font-weight: 600;
}

.copa-card h3 {
  color: #000000;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: auto;
}

.copa-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin-top: 30px;
}

.copa-card li {
  color: #333333;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.copa-card li strong {
  font-weight: 700;
}

.copa-home-teams {
  grid-column: 1 / -1;
  background-color: #ffffff;
  min-height: auto;
}

.copa-home-teams .copa-content {
  padding-top: 0;
}

.copa-home-teams .copa-section {
  margin-bottom: 0;
}

.copa-home-teams .copa-section > h2 {
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 36px;
}

.copa-home-teams-link {
  align-items: center;
  background-color: var(--copa-blue);
  color: #ffffff;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 18px;
  justify-content: center;
  margin: 36px auto 0;
  min-height: 42px;
  padding: 0 26px;
  text-transform: uppercase;
  width: max-content;
}

.copa-home-teams-link::after {
  height: 14px;
  width: 14px;
}

@media (max-width: 1024px) {
  .copa-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .copa-widget {
    padding-bottom: 32px;
  }

  .copa-container {
    max-width: 100%;
    overflow: hidden;
    padding: 24px 0;
  }

  .copa-container > h2,
  .copa-phase-selector {
    padding-inline: 16px;
  }

  .copa-container > h2 {
    font-size: 22px;
  }

  .copa-group-card {
    border-left: none;
    border-right: none;
    margin-bottom: 24px;
  }

  .copa-group-card > header {
    min-height: 44px;
    padding: 10px 22px;
  }

  .copa-group-card > main {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .copa-standings {
    border-bottom: 2px solid var(--copa-blue-700);
    width: 100%;
  }

  .copa-standings table {
    min-width: 680px;
  }

  .copa-standings th,
  .copa-standings td {
    padding: 15px 12px;
    white-space: nowrap;
  }

  .copa-fixtures {
    border-left: none;
    max-width: none;
  }

  .copa-fixtures > header {
    min-height: 56px;
    padding: 13px 22px;
  }

  .copa-fixtures-splide .splide__slide {
    min-height: 248px;
  }

  .copa-fixtures article {
    min-height: 124px;
    padding: 24px 20px;
  }

  .copa-knockout-list {
    gap: 24px;
  }

  .copa-knockout-card {
    border-left: none;
    border-right: none;
  }

  .copa-knockout-scoreboard {
    gap: 14px;
    grid-template-columns: minmax(82px, 1fr) 18px 20px 18px minmax(82px, 1fr);
  }

  .copa-knockout-team {
    gap: 10px;
  }

  .copa-knockout-card img,
  .copa-team-placeholder {
    height: 44px;
    width: 44px;
  }

  .copa-header-inner {
    flex-direction: column;
    gap: 24px;
    padding: 26px 20px 16px;
  }

  .copa-header-logo img {
    max-width: calc(100vw - 36px);
    width: 250px;
  }

  .copa-header-main nav {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .copa-header-main nav::after {
    background: linear-gradient(
      to right,
      rgba(13, 121, 192, 0),
      var(--copa-blue-700)
    );
    bottom: 0;
    content: "";
    pointer-events: none;
    position: absolute;
    right: -1px;
    top: 0;
    width: 60px;
    z-index: 1;
  }

  .copa-header-main nav ul {
    -webkit-overflow-scrolling: touch;
    gap: 22px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .copa-header-main nav ul::-webkit-scrollbar {
    display: none;
  }

  .copa-header-main nav li {
    flex: 0 0 auto;
  }

  .copa-header-main nav a.active {
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 1px 8px 2px;
  }

  .copa-container > footer {
    border-left: none;
    border-right: none;
    width: 100%;
  }

  .copa-home-teams {
    margin-top: 48px;
  }
}

@media (max-width: 768px) {
  .copa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copa-filters {
    -webkit-mask-image: linear-gradient(
      to right,
      #000000 calc(100% - 36px),
      transparent
    );
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: flex-start;
    mask-image: linear-gradient(
      to right,
      #000000 calc(100% - 36px),
      transparent
    );
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 40px;
    scrollbar-width: none;
  }

  .copa-filters::-webkit-scrollbar {
    display: none;
  }

  .copa-filters li {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .copa-container {
    padding-top: 0;
  }

  .copa-standings table {
    min-width: 650px;
  }

  .copa-standings th,
  .copa-standings td {
    padding: 15px 10px;
  }

  .copa-standings td:nth-child(2) {
    gap: 22px;
    min-width: 190px;
  }

  .copa-fixtures article > div {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(34px, 0.7fr) 48px 20px 18px 20px 48px minmax(
        34px,
        0.7fr
      );
  }

  .copa-fixtures article span,
  .copa-fixtures article span:first-child,
  .copa-fixtures article span:last-child {
    text-align: center;
  }

  .copa-fixtures article img,
  .copa-fixtures article img:first-of-type,
  .copa-fixtures article img:last-of-type {
    height: 48px;
    margin: 0;
    min-height: 48px;
    min-width: 48px;
    width: 48px;
  }

  .copa-knockout-card > main {
    min-height: 134px;
    padding: 20px 14px 24px;
  }

  .copa-knockout-card time {
    font-size: 11px;
  }

  .copa-knockout-scoreboard {
    gap: 8px;
    grid-template-columns: minmax(62px, 1fr) 16px 16px 16px minmax(62px, 1fr);
  }

  .copa-knockout-team {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .copa-knockout-team-home,
  .copa-knockout-team-away {
    justify-content: center;
  }

  .copa-knockout-team-home .copa-team-placeholder,
  .copa-knockout-team-home img {
    order: -1;
  }

  .copa-knockout-team > span:not(.copa-team-placeholder) {
    font-size: 11px;
    max-width: 100%;
  }

  .copa-knockout-card img,
  .copa-team-placeholder {
    height: 42px;
    width: 42px;
  }

  .copa-home-teams {
    margin-top: 40px;
  }

  .copa-home-teams .copa-section > h2 {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .copa-home-teams-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .copa-grid {
    gap: 12px;
  }

  .copa-card {
    min-height: 180px;
    padding: 14px;
  }

  .copa-card header {
    margin-bottom: 10px;
  }

  .copa-card header img {
    min-height: 24px;
    min-width: 32px;
    width: 32px;
  }

  .copa-card h3 {
    font-size: 20px;
    line-height: 1.1;
  }

  .copa-card ul {
    gap: 6px;
    margin-top: 24px;
  }

  .copa-card li {
    font-size: 10px;
    gap: 8px;
  }
}
