.mdp-week-block {
  margin-bottom: 3em;
  background: #f0f4fc;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.page-id-315 .content-shell-inner {
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.mdp-match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.mdp-match-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1em;
  min-width: 320px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mdp-match-card h3 {
  font-size: clamp(1rem, 1.2vw, 1.1em);
  margin-bottom: 1em;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdp-results-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95em;
}

.mdp-results-table td {
  padding: 0.3em 0.4em;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: 0.88em;
}

/* Averages, names, and score layout */
.mdp-results-table td:nth-child(1) {
  width: 3.2em;
  text-align: right;
  font-weight: bold;
  color: #444;
}

.mdp-results-table td:nth-child(2) {
  max-width: 170px;
  padding-left: 0.3em;
  text-align: left;
  font-style: italic;
  color: #555;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.mdp-results-table td:nth-child(3) {
  width: 3.2em;
  text-align: center;
  font-weight: bold;
  font-size: 1.05em;
}

.mdp-results-table td:nth-child(4) {
  max-width: 170px;
  padding-right: 0.3em;
  text-align: right;
  font-style: italic;
  color: #555;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.mdp-results-table td:nth-child(5) {
  width: 3.2em;
  text-align: left;
  font-weight: bold;
  color: #444;
}

.mdp-awarded-line td {
  background-color: #fff3cd;
  font-weight: bold;
  color: #856404;
  text-align: center !important;
  font-style: italic;
  padding: 0.8em 0;
}

.mdp-week-block h2 {
  text-align: center;
  font-size: 1.8em;
  margin-top: 0.1em;
  margin-bottom: 0.5em;
  color: #333;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
}

.mdp-reserve-line td {
  background-color: #eef3f9;
  font-style: italic;
  color: #555;
}

/* 🎖 Best of the Week - Trophy Cabinet Style */
.mdp-best-of-week {
  background: 
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url('https://test.merseysidedarts.co.uk/wp-content/uploads/2025/08/New-Project-6.png');
  background-size: cover;
  background-position: center;
  border: 3px solid #ffc107;
  color: white;
  padding: 2em;
  margin: 3em auto;
  max-width: 800px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1em;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}


.mdp-best-of-week h3 {
  font-size: 1.6em;
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 0.4em;
  margin-bottom: 1em;
}

.mdp-best-of-week strong,
.mdp-best-of-week em {
  color: #fff;
  font-weight: bold;
  font-style: normal;
}

.mdp-best-of-week ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1em;
}

.mdp-best-of-week > ul > li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  margin: 0.5em 0;
  font-size: 1.05em;
  line-height: 1.4em;
  position: relative;
}

/* Only add medal to top-level list items */
.mdp-best-of-week > ul > li::before {
  content: "🏅";
  display: inline-block;
  font-size: 1.2em;
}

/* Remove medal from nested li (e.g. under 180s Hit) */
.mdp-best-of-week ul ul li::before {
  content: none;
}

/* Mobile layout fallback */
@media (max-width: 800px) {
  .mdp-match-card {
    flex: 1 1 100%;
  }
}
