.cg-agenda {
  --cg-navy: #07182d;
  --cg-blue: #075a9c;
  --cg-red: #e31d2b;
  --cg-line: #dce3ea;
  display: block;
  width: 100%;
  margin: 12px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: 8px;
  box-shadow: 0 9px 28px rgba(7, 24, 45, .07);
  font-family: inherit;
}
.cg-agenda[hidden] { display: none !important; }
.cg-agenda__header {
  min-height: 58px;
  padding: 9px 20px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
}
.cg-agenda__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--cg-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}
.cg-agenda__header h2 {
  margin: 0 !important;
  color: var(--cg-navy);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1;
}
.cg-agenda__days {
  display: flex;
  border-bottom: 1px solid var(--cg-line);
}
.cg-agenda__days button {
  position: relative;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #687786;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cg-agenda__days button.is-active { color: var(--cg-navy); }
.cg-agenda__days button.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--cg-red);
}
.cg-agenda__all {
  justify-self: end;
  color: var(--cg-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.cg-agenda__viewport {
  position: relative;
  border-top: 1px solid var(--cg-line);
}
.cg-agenda__rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cg-agenda__rail::-webkit-scrollbar { display: none; }
.cg-agenda__match {
  min-width: 300px;
  flex: 1 0 300px;
  padding: 9px 16px 10px;
  border-right: 1px solid var(--cg-line);
  scroll-snap-align: start;
}
.cg-agenda__match[hidden] { display: none !important; }
.cg-agenda__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  color: #657483;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.cg-agenda__meta strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #657483;
  font-size: 9px;
}
.cg-agenda__match.is-live .cg-agenda__meta strong { color: var(--cg-red); }
.cg-agenda__meta strong i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cg-red);
  box-shadow: 0 0 0 3px rgba(227, 29, 43, .13);
  animation: cg-agenda-pulse 1.6s infinite;
}
.cg-agenda__teams {
  display: grid;
  grid-template-columns: 1fr 74px 1fr;
  align-items: start;
  gap: 7px;
  text-align: center;
}
.cg-agenda__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.cg-agenda__team > span:last-child {
  width: 100%;
  overflow: hidden;
  color: #263747;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cg-agenda__crest {
  width: 38px;
  height: 40px;
  display: grid;
  place-items: center;
}
.cg-agenda__crest img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.cg-agenda__crest--fallback {
  clip-path: polygon(50% 0, 92% 16%, 86% 72%, 50% 100%, 14% 72%, 8% 16%);
  background: linear-gradient(145deg, #1486bd, var(--cg-navy));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.cg-agenda__score { padding-top: 5px; }
.cg-agenda__score strong {
  display: block;
  color: var(--cg-navy);
  font-size: 18px;
  line-height: 1.1;
}
.cg-agenda__score small {
  display: block;
  margin-top: 4px;
  color: #84919c;
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cg-agenda__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 30px;
  height: 54px;
  border: 1px solid #d8dfe5;
  background: rgba(255, 255, 255, .97);
  color: var(--cg-navy);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.cg-agenda__arrow--prev { left: 0; border-radius: 0 6px 6px 0; }
.cg-agenda__arrow--next { right: 0; border-radius: 6px 0 0 6px; }
.cg-agenda:not(.has-overflow) .cg-agenda__arrow { display: none; }
.cg-agenda__arrow:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}
.cg-agenda__footer {
  min-height: 25px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fb;
  color: #748391;
  font-size: 9px;
}
.cg-agenda__footer span { display: inline-flex; align-items: center; gap: 6px; }
.cg-agenda__footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12a75c;
  box-shadow: 0 0 0 3px rgba(18, 167, 92, .12);
}
.cg-agenda.has-no-games .cg-agenda__rail::after {
  content: "Nenhum jogo selecionado para este dia.";
  padding: 35px 24px;
  color: #647383;
  font-size: 13px;
}
@keyframes cg-agenda-pulse { 50% { opacity: .35; } }
@media (max-width: 720px) {
  .cg-agenda { margin: 10px 0; border-radius: 6px; }
  .cg-agenda__header {
    padding: 8px 12px 6px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .cg-agenda__header h2 { font-size: 21px; }
  .cg-agenda__all { font-size: 10px; }
  .cg-agenda__days {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }
  .cg-agenda__days button { flex: 1; }
  .cg-agenda__match { min-width: 282px; flex-basis: 282px; }
  .cg-agenda__viewport { overflow: hidden; }
  .cg-agenda__arrow {
    display: block;
    width: 24px;
    height: 40px;
    border-color: rgba(255,255,255,.28);
    background: rgba(7,24,45,.82);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(0,0,0,.16);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .cg-agenda__arrow--prev { left: 0; border-radius: 0 6px 6px 0; }
  .cg-agenda__arrow--next { right: 0; border-radius: 6px 0 0 6px; }
  .cg-agenda__arrow:not(:disabled) { opacity: .96; }
  .cg-agenda__arrow:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
  .cg-agenda__footer { min-height: 23px; padding: 4px 12px; }
  .cg-agenda__footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-agenda * { scroll-behavior: auto !important; animation: none !important; }
}
