.highland-live-scoreboard {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  background-color: #eaeff2;
  border-radius: 48px;
  margin-bottom: 60px;
  margin-top: 40px;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
}

.scoreboard-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;

  color: var(--main-color);
}
a.button.btn.center {
  margin-bottom: 30px !important;
}
.scoreboard-container {
  overflow: hidden;
  max-width: 560px;
  margin: auto;
  margin-top: 40px;
}

.scoreboard-last-updated {
  max-width: max-content;
  color: var(--main-color);
  background: #bdcdd5;
  padding: 8px 16px;
  border-radius: 50px;
  margin: 20px auto;
  margin-top: 0;
  margin-bottom: 0px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.fullscreen-button-container {
  text-align: center;
  margin-bottom: 20px;
}

.fullscreen-button {
  color: var(--main-color);
  text-decoration: underline;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.fullscreen-button:hover {
  opacity: 0.7;
}

.header-cell.format-label .admin-edit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-cell.format-label .admin-edit-button a {
  display: inline-block;
  background: var(--main-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-cell.format-label .admin-edit-button a:hover {
  background: var(--irish-color);
}

.scoreboard-header {
  display: flex;
}

.header-cell {
  flex: 1;
  padding: 0px 10px;
  text-align: center;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.header-cell .team-flag {
  padding: 8px 18px;
  text-align: center;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 100px;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
  font-size: 15px;
}
.header-cell .team-flag span {
  font-weight: bold;
}
.header-cell img {
  width: 24px;
  height: auto;
}

.format-label {
  flex: 1.5;
  text-align: left;
  padding-left: 20px;
  font-weight: 500;
}

.team-irish span {
  color: var(--irish-color);
}

.team-world span {
  color: var(--world-color);
}

.team-italian span {
  color: var(--italian-color);
}

.scoreboard-row {
  display: flex;
  border-bottom: 1px solid hsl(0deg 0% 45.1% / 30%);
  /* font-size: 17px; */
}

.scoreboard-row:nth-child(odd) {
}

.scoreboard-row.total-row,
.projected-total-row {
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background: hsl(0deg 0% 100% / 60%);
  display: flex;
  align-items: center;
}
.scoreboard-row.total-row .score-cell {
  padding: 40px 10px;
}
.score-cell {
  flex: 1;
  padding: 20px 10px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.format-label {
  flex: 1.5;
  padding: 0px 20px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  line-height: 1.2em;
  font-size: 18px;
  font-weight: bold;
  justify-content: center;
}

.format-subtitle {
  font-size: 12px;
  font-weight: normal;
  color: #666;
}

.irish-score {
  color: var(--irish-color);
}

.world-score {
  color: var(--world-color);
}

.italian-score {
  color: var(--italian-color);
}

.total-score {
  font-size: 24px;
  font-weight: 700;
}

.scoreboard-edit-link {
  text-align: center;
  margin-bottom: 15px;
  margin: auto;
}

.scoreboard-last-updated {
  font-size: 14px;
  line-height: 1.2em;
  text-align: right;
}

.score-animate {
  animation: fadeIn 0.5s ease-in-out;
}

.total-row.highlight {
  animation: highlightRow 1s ease-in-out;
}
.header-cell.team-world,
.score-cell.world-score {
  border-left: 1px solid hsl(0deg 0% 45.1% / 30%);
  border-right: 1px solid hsl(0deg 0% 45.1% / 30%);
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlightRow {
  0% {
    background-color: rgba(255, 255, 255, 0.5);
  }
  50% {
    background-color: rgb(255, 255, 255);
  }
  100% {
    background-color: #fff;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .highland-live-scoreboard {
    padding: 10px;
  }

  .scoreboard-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .score-cell {
    font-size: 16px;
    padding: 12px 5px;
  }

  .format-label {
    padding: 12px 10px;
  }

  .total-score {
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .score-cell {
    font-size: 14px;
    padding: 10px 5px;
    max-width: 80px;
  }

  .format-label {
    padding: 10px;
    font-size: 11px;
    /* max-width: 80px; */
  }

  .format-subtitle {
    font-size: 10px;
  }

  .total-score {
    font-size: 17px;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .format-label {
    min-width: 125px;
  }
  .header-cell {
    padding: 0%;
  }
  .header-cell img {
    width: 20px;
  }

  .header-cell span {
    font-size: 14px;
  }
}

/* Singles Matches Layout */
.scoreboard-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.scoreboard-container {
  flex: 1;
  min-width: 0;
}

.singles-matches-section {
  flex: 1.5;
  min-width: 0;
}

.singles-matches-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  line-height: 1em;
}

.singles-matches-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--main-color);
  text-transform: uppercase;
}

.singles-matches-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
  flex: 1;
  min-width: 0;
}

.singles-matches-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.tee-time-header {
  width: 80px;
  padding: 16px 12px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  color: var(--main-color);
  background: #f0f3f5;
  border-right: 1px solid #dee2e6;
}

.main-column-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-right: 1px solid #dee2e6;
}

.main-column-header:last-child {
  border-right: none;
}

.main-title {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  padding: 10px 10px;
  background: var(--main-color);
  border-bottom: 1px solid #dee2e6;
}

.world-main-header .main-title {
  background: var(--world-color);
}

.irish-main-header .main-title {
  background: var(--irish-color);
}

.italian-main-header .main-title {
  background: var(--italian-color);
}

.sub-headers {
  display: flex;
  height: 100%;
}

.sub-team {
  flex: 1;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 4px;
  border-right: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.sub-team:last-child {
  border-right: none;
}

.sub-team.irish {
  color: var(--irish-color);
  background: rgba(var(--irish-color), 0.05);
}

.sub-team.world {
  color: var(--world-color);
  background: rgba(var(--world-color-rgb), 0.05);
}

.sub-team.italian {
  color: var(--italian-color);
  background: rgba(var(--italian-color-rgb), 0.05);
}

.singles-match-row {
  display: flex;
  border-bottom: 1px solid #d9d9d9;
  min-height: 60px;
  background: #ffffff;
}

.singles-match-row:last-child {
  border-bottom: none;
}

.singles-match-row:nth-child(even) {
  background: #f8f9fa;
}

.tee-time-cell {
  width: 80px;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: var(--main-color);
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dee2e6;
}

.match-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dee2e6;
}

.match-group:last-child {
  border-right: none;
}

.player-name-cell {
  width: 100%;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #fafafa; */
}

.score-row {
  display: flex;
  flex: 1;
}

.player-name-cell.world-player {
  color: var(--world-color);
}

.player-name-cell.irish-player {
  color: var(--irish-color);
}

.player-name-cell.italian-player {
  color: var(--italian-color);
}

.score-status-cell {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  border-right: 1px solid #f0f0f0;
}

.score-status-cell:last-child {
  border-right: none;
}

.score-status-cell.positive-score {
  color: #fff !important;
  border-radius: 4px;
  margin: 2px;
}

.score-status-cell.world-score-cell.positive-score {
  background: var(--world-color);
}

.score-status-cell.irish-score-cell.positive-score {
  background: var(--irish-color);
}

.score-status-cell.italian-score-cell.positive-score {
  background: var(--italian-color);
}

/* Responsive adjustments for singles matches */
@media screen and (max-width: 1400px) {
  .singles-matches-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .singles-matches-wrapper {
    flex-direction: column;
  }
  .singles-matches-container {
    width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .scoreboard-layout {
    flex-direction: column;
    gap: 20px;
  }

  .singles-matches-section {
    flex: none;
    width: 100%;
  }
  .scoreboard-container {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .matchup-title {
    font-size: 14px;
  }

  .team-name {
    font-size: 12px;
    padding: 2px 6px;
  }

  .player-name-cell {
    font-size: 12px;
    padding: 8px 4px;
  }

  .score-status-cell {
    font-size: 11px;
    padding: 6px 2px;
  }

  .tee-time-cell,
  .tee-time-header {
    width: 60px;
    font-size: 12px;
    padding: 8px 4px;
  }
}

@media screen and (max-width: 768px) {
  .versus-teams {
    flex-direction: column;
    gap: 4px;
  }

  .match-header {
    padding: 8px 4px;
  }

  .matchup-title {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .team-name {
    font-size: 11px;
  }

  .singles-matches-container * {
    font-size: 12px;
  }

  .header-cell.team-irish {
    padding: 0;
  }

  .header-cell .team-flag {
    padding: 0;
    background: transparent;
  }

  .header-cell .team-flag span {
    display: none;
  }

  .header-cell {
    max-width: 80px;
  }

  .header-cell.format-label {
    width: 100%;
    flex: 1;
    flex-grow: 1;
    max-width: unset;
  }
  .sub-team {
    font-size: 8px;
  }

  .main-title {
    font-size: 10px;
  }

  .tee-time-cell,
  .tee-time-header {
    width: 35px;
  }

  .tee-time-header {
    font-size: 10px;
  }

  .tee-time-cell {
    font-size: 10px;
  }

  .player-name-cell {
    line-height: 1.2em;
    min-height: 50px;
    font-size: 11px;
  }
}
