.admin-edit-container {
  margin-bottom: 40px;
}

.matches-altshot-results-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 0;
  margin-bottom: 100px;
}

.matches-altshot-results-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.matches-altshot-results-title {
  font-size: 32px;
  color: var(--main-color);
  margin: 0;
  text-align: center;
}

/* Highland Cup Team Points Summary */
.highland-cup-wins-summary {
  margin-bottom: 50px;
  text-align: center;
}

.team-wins-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 30px;
  margin-bottom: 60px;
  border-collapse: collapse;
  background-color: #eaeff2;
  border-radius: 48px;
  padding: 40px 80px;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
}

.team-win-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.team-wins-flag {
  width: 100px;
  height: 100px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  object-fit: cover;
}

.team-wins-count {
  font-size: 24px;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
}

.team-wins-label {
  font-size: 16px;
  font-weight: 600;
  color: #3f3f3f;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--main-color);
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.matches-altshot-results-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  border-radius: 50px;
  margin-left: 40px;
}

.matchup-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1em;
  padding: 15px 20px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 50px 50px;
  width: calc(100% + 50px);
  margin-left: -40px;
  box-shadow: 5px 8px 18px rgb(0 0 0 / 11%);
}

.matchup-filter:hover {
  background: #f5f5f5;
}

.matchup-filter.active {
  background: var(--main-color);
  color: white;
  z-index: 9999 !important;
}

.matchup-filter img {
  width: 22px;
  height: 22px;
  display: block;
}

.matchup-filter:not(.active) {
  border: 1px solid #d1dbe1;
}

.matchup-filter[data-matchup="italian-world"] {
  z-index: 4;
}

/* Add specific styling for each team combination */

.matchup-filter[data-matchup="irish-world"] {
  z-index: 3;
}

.matchup-filter[data-matchup="irish-italian"] {
  z-index: 2;
}

.matches-altshot-results-grid {
  background-color: #f0f3f5;
  padding: 45px;
  border-radius: 48px;
}

.matches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: auto;
  margin-bottom: 20px;
  padding: 0 20px;
}

.team-header-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.match-header-label {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  padding: 0 20px;
}

.matches-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(960px, 1fr));
  gap: 1px;
  max-width: 1000px;
  margin: auto;
}

.match-card {
  background: white;
  /* border-radius: 12px; */
  overflow: hidden;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
  /* transition: transform 0.3s ease; */
  /* padding: 20px; */
  /* margin-bottom: 20px; */
  opacity: 1;
  max-height: 800px;
  overflow: unset;
}

.match-card:hover {
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  display: none;
}

.match-title {
  font-size: 22px;
  color: #14323d;
  margin: 0;
}

.match-tee-time {
  font-size: 16px;
  color: #666;
}

.match-content {
  display: flex;
  justify-content: space-between;
  align-items: unset;
  background-color: #fff;

  /* border-radius: 8px; */
  /* overflow: hidden; */
}

/* Team header styling */
.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  margin: 15px auto;
  border-radius: 45px;
  display: inline-flex;
  background: #fff;
  box-shadow: 5px 8px 18px rgb(0 0 0 / 11%);
}

.team-world .team-header span {
  color: var(--world-color);
}

.team-italian .team-header span {
  color: var(--italian-color);
}

.team-irish .team-header span {
  color: var(--irish-color);
}

.team-header img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.team-header span {
  font-weight: bold;
  font-size: 20px;
  color: #fff;
}

/* Match label styling */
.match-label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0;
}

.match-status-column {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background-color: #f8f9fa;
  border-right: 1px solid #eee;
  margin-left: -60px;
}

.match-status-column .status-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: none;
}

.match-status-column .status-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.3;
}
.match-status-column.status-InProgress {
  background: #00bcd4;
}
.match-status-column.status-InProgress * {
  color: #fff;
}

.match-status-column.status-FINAL {
  background: #4caf50;
}
.match-status-column.status-FINAL * {
  color: #fff;
}

.match-status-column.status-thru {
  background: #ff9800;
}
.match-status-column.status-thru * {
  color: #fff;
}
.match-status-column .status-label {
}
.match-status-column.match-status-column {
}
.team-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* padding: 15px; */
  background-color: #fff;
  justify-content: center;
}
.match-vs {
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  min-width: 80px;
  transition: background-color 0.3s ease;
  background-color: #fff;
}
.vs-text {
  color: #939598;
}
.active .vs-text {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.winner-world .team-world {
  background-color: #2957ab;
}
.winner-world .match-vs {
  background-color: #1a428a !important;
  color: #fff;
}
.winner-world .team-world a.player-name-link,
.winner-irish .team-irish a.player-name-link,
.winner-italian .team-italian a.player-name-link {
  color: #fff;
}

.winner-irish .team-irish {
  background-color: #0db559;
}

.winner-irish .match-vs {
  background-color: #089247 !important;
  color: #fff;
}

.winner-italian .team-italian {
  background-color: #f23a47;
}
.winner-italian .match-vs {
  background-color: #cf2b37 !important;
  color: #fff;
}

.match-result {
  text-align: center;
  font-size: 14px;
}

.winner-team {
  font-weight: bold;
}
.match-card.tied .match-vs {
  background-color: #d1dbe1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.match-vs {
  min-width: 150px;
  padding: 0 5px;
  align-items: unset;
  justify-content: unset;
}

/* New styles for 2-player teams */
.team-players-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 20px;
  line-height: 1.2em;
}

.player-link {
  text-decoration: none;
}

.players-names {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.player-name-link {
  font-size: 14px;
  color: #3f3f3f;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.player-name-link:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.plus-sign {
  font-size: 12px;

  font-weight: bold;
}
.players-names {
  min-width: 120px;
  justify-content: left;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.player-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.player-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy styles for backward compatibility */
.player-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.2em;
  padding-left: 20%;
}

.match-content .team-column:first-of-type a {
  padding-right: 30px;
  margin-left: -20px;
}

.player-name {
  font-size: 16px;
  color: #3f3f3f;
  font-weight: 500;
}

.hidden {
  display: none;
}

.show-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

#show-more-btn {
  background-color: var(--button-bg-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#show-more-btn:hover {
  background-color: #1a4555;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.match-progress span > span {
  display: none;
}
.match-result.tied {
  display: block;
  text-transform: uppercase;
}
.team-column.winner span.plus-sign {
  color: #fff;
}

@media (max-width: 1380px) {
  .matches-cards-container {
    grid-template-columns: 1fr;
  }

  .matches-altshot-results-filters {
    flex-direction: column;
    gap: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .matchup-filter {
    width: 100%;
    margin-left: 0;
    border-radius: 10px;
  }

  .match-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .match-status-column {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .team-column {
    width: 100%;
  }

  .match-vs {
    padding: 15px 0;
  }

  /* Mobile adjustments for 2-player teams */
  .team-players-pair {
    gap: 10px;
    padding: 10px;
  }

  .player-image {
    width: 40px;
    height: 40px;
  }

  .player-name-link {
    font-size: 12px;
  }

  .players-names {
    min-width: 100px;
    gap: 5px;
  }
}

.matches-altshot-results-filters span.team-name {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  color: #939598;
}

.matches-altshot-results-filters .active span.team-name {
  font-weight: bold;
  color: #fff;
}

.match-card .match-vs {
  position: relative;
}

.match-card.winner-world[data-matchup="italian-world"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-right: 43px solid #1a428a !important;
  position: absolute;
  left: -43px;
}

.match-card.winner-world[data-matchup="irish-world"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-left: 43px solid #1a428a !important;
  position: absolute;
  right: -43px;
}

.match-card.winner-italian[data-matchup="italian-world"] .match-vs:before,
.match-card.winner-italian[data-matchup="irish-italian"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-left: 43px solid #cf2b37 !important;
  position: absolute;
  right: -43px;
}

.match-card.winner-irish[data-matchup="irish-world"] .match-vs:before,
.match-card.winner-irish[data-matchup="irish-italian"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-right: 43px solid #089247 !important;
  position: absolute;
  left: -43px;
}

.match-card.in-progress .match-vs {
  background-color: #d1dbe1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
}

.match-progress {
  display: flex;
  font-size: 14px;
  width: 100%;
  text-transform: uppercase;
  gap: 30px;
  justify-content: center;
  position: relative;
}

.match-progress > span {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.match-progress:after {
  content: "";
  width: 2px;
  background: #0000001c;
  position: absolute;
  display: block;
  height: 70px;
  top: -19px;
  display: none;
}

.match-card.winning-world[data-matchup="italian-world"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-right: 43px solid #d1dbe1;
  position: absolute;
  left: -43px;
}

.match-card.winning-world[data-matchup="irish-world"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-left: 43px solid #d1dbe1;
  position: absolute;
  right: -43px;
}

.match-card.winning-italian[data-matchup="italian-world"] .match-vs:before,
.match-card.winning-italian[data-matchup="irish-italian"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-left: 43px solid #d1dbe1;
  position: absolute;
  right: -43px;
}

.match-card.winning-irish[data-matchup="irish-world"] .match-vs:before,
.match-card.winning-irish[data-matchup="irish-italian"] .match-vs:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 43px solid transparent;
  border-bottom: 43px solid transparent;
  border-right: 43px solid #d1dbe1;
  position: absolute;
  left: -43px;
}
.match-result {
  display: none;
}
@media (min-width: 1381px) {
  .match-progress.mobile,
  .player-name-mobile {
    display: none;
  }
}

@media (max-width: 1380px) {
  .matches-header {
    justify-content: center;
    gap: 13px;
    padding: 0;
  }

  .matches-header .match-header-label {
    display: none;
  }

  .match-status-column {
    margin: 0;
  }

  .match-content .match-vs {
    display: none !important;
  }

  .team-column {
    flex-direction: row;
    justify-content: space-between;
    background: #f0f3f5;
    padding: 8px 0;
    max-width: 95%;
    border-radius: 12px;
  }

  .match-progress {
    width: auto;
    max-width: 65px;
    width: 100%;
    align-items: center;
  }

  .match-progress:after {
    right: 0;
    top: 10px;
  }

  .team-players-pair {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    align-items: baseline;
    padding: 0;
    /* max-width: 200px; */
  }

  .matches-altshot-results-grid {
    padding-left: 15px;
    padding-right: 15px;
    padding: 0;
    background: #fff;
  }

  .match-card {
    margin-bottom: 40px;
  }

  .match-content {
    border-radius: 12px;
    overflow: hidden;
    background: #f0f3f5;
    padding-bottom: 20px;
  }

  .players-names {
    display: none;
  }

  .player-image {
    width: unset;
    height: unset;
    overflow: unset;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .player-image img {
    max-width: 40px;
  }

  .player-name-mobile {
    font-size: 14px;
    color: #3f3f3f;
  }

  .team-column.winner * {
    color: #fff;
  }

  /* Highland Cup Team Points - Mobile */
  .team-wins-container {
    gap: 20px;
    padding: 30px 40px;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .team-wins-flag {
    width: 60px;
    height: 60px;
  }

  .team-wins-count {
    font-size: 22px;
  }

  .team-wins-label {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }
}
@media (max-width: 1650px) and (min-width: 1381px) {
  .et_builder_inner_content.et_pb_gutters3 .et_pb_row.et_pb_row_1 {
    width: 100% !important;
    max-width: 95% !important;
  }
  .matches-altshot-results-container {
    max-width: 100%;
  }
}
