.agenda-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  color: #242424;
}

.hero-compacto {
  min-height: 245px;
  display: grid;
  place-items: center;
}

.hero-compacto .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 35px auto;
}

.marca-site {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: 2px 2px 2px #000000;
  text-transform: uppercase;
}

.marca-site:focus-visible,
.breadcrumb a:focus-visible,
.partida-transmissao a:focus-visible {
  outline: 3px solid #ffca28;
  outline-offset: 4px;
}

.agenda-container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 60px;
  flex: 1;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #666666;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: #880000;
  font-weight: 600;
  text-decoration: none;
}

.agenda-cabecalho {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: flex-end;
  padding-bottom: 24px;
  border-bottom: 4px solid #880000;
}

.agenda-sobretitulo {
  margin: 0 0 6px;
  color: #a30000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agenda-cabecalho h1 {
  margin: 0;
  color: #1d1d1d;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.agenda-introducao {
  max-width: 670px;
  margin: 12px 0 0;
  color: #5f5f5f;
}

.filtro-competicao {
  display: grid;
  gap: 7px;
  min-width: 235px;
  color: #444444;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filtro-competicao select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #ffffff;
  color: #242424;
  font: inherit;
  font-size: 0.85rem;
  text-transform: none;
}

.filtro-competicao select:focus {
  border-color: #880000;
  outline: 3px solid rgba(136, 0, 0, 0.16);
}

.filtros-resultados {
  display: flex;
  gap: 12px;
}

.filtros-resultados .filtro-competicao {
  min-width: 180px;
}

.navegacao-agenda {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  border-bottom: 1px solid #d6d6d6;
}

.navegacao-agenda a {
  position: relative;
  padding: 11px 16px;
  color: #5a5a5a;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.navegacao-agenda a:hover {
  color: #880000;
}

.navegacao-agenda a[aria-current="page"] {
  color: #880000;
}

.navegacao-agenda a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #880000;
}

.navegacao-agenda a:focus-visible {
  outline: 3px solid rgba(136, 0, 0, 0.25);
  outline-offset: 2px;
}

.agenda-status {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #5f5f5f;
  text-align: center;
}

.agenda-status.erro {
  border-color: #e7b1b1;
  background: #fff6f6;
  color: #880000;
}

.grupo-mes {
  margin-top: 38px;
}

.grupo-mes h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  color: #880000;
  font-size: 1.35rem;
}

.grupo-mes h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d6d6d6;
}

.grupo-partidas {
  display: grid;
  gap: 14px;
}

.partida-agenda {
  overflow: hidden;
  border: 1px solid #dedede;
  border-left: 5px solid #880000;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.partida-agenda.ao-vivo {
  border-left-color: #e00000;
  box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.08);
}

.partida-agenda.resultado {
  border-left-color: #575757;
}

.partida-topo {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #eeeeee;
  background: #fafafa;
}

.partida-competicao {
  margin: 0;
  color: #555555;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partida-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #d00000;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.partida-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(208, 0, 0, 0.12);
}

.resultado-status {
  color: #696969;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.partida-conteudo {
  display: grid;
  grid-template-columns: 145px minmax(330px, 1fr) minmax(200px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
}

.partida-data {
  padding-right: 20px;
  border-right: 1px solid #e4e4e4;
  text-align: center;
}

.partida-dia-semana {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.partida-dia {
  margin: 3px 0 0;
  color: #242424;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.partida-hora {
  margin: 5px 0 0;
  color: #880000;
  font-size: 1rem;
  font-weight: 700;
}

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

.partida-equipe {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.partida-equipe img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.partida-equipe strong {
  max-width: 145px;
  font-size: 0.84rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.partida-versus {
  color: #777777;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.partida-placar {
  color: #880000;
  font-size: 1.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.resultado-placar-area {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.resultado-penaltis {
  color: #656565;
  font-size: 0.65rem;
  white-space: nowrap;
}

.partida-detalhes {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  border-left: 1px solid #e4e4e4;
  color: #555555;
  font-size: 0.82rem;
}

.partida-detalhes p {
  margin: 0;
}

.partida-detalhes strong {
  color: #242424;
}

.partida-transmissao {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.partida-transmissao a,
.partida-transmissao span {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f0e2e2;
  color: #880000;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.resultado-video {
  width: fit-content;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: #e00000;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.resultado-video:hover {
  background: #880000;
}

.resultado-video:focus-visible {
  outline: 3px solid rgba(136, 0, 0, 0.3);
  outline-offset: 3px;
}

.partida-link {
  width: fit-content;
  color: #880000;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.partida-link:hover {
  text-decoration: underline;
}

.partida-link-agenda {
  padding: 6px 8px;
  border: 1px solid #880000;
  border-radius: 5px;
  text-decoration: none;
}

.partida-link-agenda:hover {
  background: #880000;
  color: #ffffff;
  text-decoration: none;
}

.partida-link:focus-visible {
  outline: 3px solid rgba(136, 0, 0, 0.3);
  outline-offset: 3px;
}

.agenda-footer {
  position: relative;
  margin-top: 0;
}

.calendario-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.calendario-resumo div {
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #ffffff;
}

.calendario-resumo strong {
  color: #880000;
  font-size: 1.75rem;
}

.calendario-resumo span {
  color: #606060;
  font-size: 0.78rem;
}

.calendario-proxima {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 20px 22px;
  border-left: 5px solid #880000;
  border-radius: 8px;
  background: #fff7f7;
}

.calendario-proxima div {
  display: grid;
  gap: 4px;
}

.calendario-proxima span {
  color: #880000;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendario-proxima strong {
  font-size: 1.1rem;
}

.calendario-proxima p {
  margin: 0;
  color: #5e5e5e;
  font-size: 0.82rem;
}

.calendario-proxima a,
.calendario-temporadas a {
  color: #880000;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.calendario-proxima a:hover,
.calendario-temporadas a:hover {
  text-decoration: underline;
}

.calendario-temporadas {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #d6d6d6;
}

.calendario-editorial {
  max-width: 820px;
  margin: 46px auto 0;
  padding: 30px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #ffffff;
}

.calendario-editorial h2,
.calendario-editorial h3 {
  color: #242424;
}

.calendario-editorial h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.calendario-editorial h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.calendario-editorial p {
  margin: 0;
  color: #5a5a5a;
  line-height: 1.75;
}

@media (max-width: 850px) {
  .agenda-cabecalho {
    align-items: stretch;
    flex-direction: column;
  }

  .filtro-competicao {
    min-width: 0;
    max-width: 360px;
  }

  .filtros-resultados {
    flex-wrap: wrap;
  }

  .partida-conteudo {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .partida-detalhes {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    border-top: 1px solid #e4e4e4;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-compacto {
    min-height: 190px;
  }

  .agenda-container {
    width: min(100% - 24px, 1080px);
    padding-top: 22px;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .agenda-cabecalho {
    gap: 24px;
  }

  .filtros-resultados {
    display: grid;
  }

  .navegacao-agenda a {
    flex: 1;
    padding-inline: 8px;
    text-align: center;
  }

  .partida-topo {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .partida-conteudo {
    display: block;
    padding: 20px 16px;
  }

  .partida-data {
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: baseline;
    padding: 0 0 18px;
    border-right: 0;
  }

  .partida-dia {
    font-size: 1.3rem;
  }

  .partida-equipes {
    gap: 10px;
  }

  .partida-equipe img {
    width: 62px;
    height: 62px;
  }

  .partida-equipe strong {
    font-size: 0.7rem;
  }

  .partida-placar {
    font-size: 1.3rem;
  }

  .partida-detalhes {
    margin-top: 18px;
  }

  .calendario-resumo {
    grid-template-columns: 1fr;
  }

  .calendario-proxima {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendario-editorial {
    padding: 22px 18px;
  }
}
