.week-wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 60px 20px;
  box-sizing: border-box;
  width: 100%;
}

.week-title {
  text-align: center;
  font-size: 38px;
  color: white;
  margin-bottom: 40px;
  text-shadow: 0 0 14px rgba(0,255,255,0.6);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  width: 100%;        /* ensures grid fills parent */
  box-sizing: border-box;
}

.matchup-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14),
    rgba(0,0,0,0.45)
  );
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 0 28px rgba(0,255,255,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  min-width: 250px;
  max-width: 100%;
}

.matchup-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0,255,255,0.45);
}

/* Header */
.matchup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.matchup-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matchup-team img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

.matchup-wins {
  font-size: 26px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255,215,0,0.8);
}

/* Bars */
.matchup-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scorebar {
  position: relative;
  height: 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #111;
  letter-spacing: 2px;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.35);
  transition: transform .25s ease;
}

.scorebar span {
  z-index: 2;
}

/* Winning gradients */
.blue-win {
  background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.red-win {
  background: linear-gradient(135deg, #cb2d3e, #ef473a);
}

.green-win {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.orange-win {
  background: linear-gradient(135deg, #ff8008, #ffc837);
}

.purple-win {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}

.yellow-win {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.matchup-card:hover .scorebar {
  transform: scale(1.02);
}
.weekly-bg {
  position: relative;
  padding: 90px 20px 70px;

  background: linear-gradient(270deg, #0f2027, #203a43, #2c5364);
  background-size: 600% 600%;
  animation: playoffGradient 15s ease infinite;

  /* Oval top shape */
  border-top-left-radius: 100% 160px;
  border-top-right-radius: 100% 160px;

  overflow: hidden;
}


@media (max-width: 900px) {
  .week-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .week-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .matchup-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transform: none; /* prevents cumulative scale issues */
  }
}
