body {
  background-color: #0d1117;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  padding-bottom: 100px;
}
.match-card {
  background: linear-gradient(145deg, #1c1f26, #0f1117);
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease-in-out;
}
.match-card:hover {
  transform: translateY(-3px);
  background: #161b22;
}
.star-btn {
  font-size: 20px;
  cursor: pointer;
  color: gold;
  transition: transform 0.2s;
}
.star-btn:hover {
  transform: scale(1.2);
}
.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #fff;
  margin-right: 6px;
}
.score-box {
  font-size: 2rem;
  font-weight: bold;
  background: #1f6feb;
  color: white;
  padding: 6px 18px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(31,111,235,0.5);
}
.stat-table th, .stat-table td {
  padding: 0.6rem;
}
.team-logo {
width: 32px;
height: 32px;
object-fit: contain;
background-color: #fff;
border-radius: 6px;
}
.match-card:hover {
transform: translateY(-2px);
transition: all 0.2s ease-in-out;
box-shadow: 0 0 16px rgba(31, 111, 235, 0.25);
}
.stat-table td, .stat-table th {
font-size: 0.85rem;
}
.fancy-match-card {
background: #1e1e2f;
transition: all 0.3s ease;
}
.fancy-match-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 14px rgba(0, 119, 255, 0.2);
}
.team-img {
width: 48px;
height: 48px;
border-radius: 50%;
background-color: #fff;
object-fit: contain;
}
.btn-statistik {
background-color: #5b21b6;
color: white;
font-weight: bold;
border-radius: 25px;
padding: 6px 18px;
border: none;
transition: 0.2s ease-in-out;
}
.btn-statistik:hover {
background-color: #7c3aed;
}









.lapangan-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 13.5;
  margin: 0 auto;
  position: relative;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  padding: 0;
}

.lapangan {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 2% 1.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.line, .gk {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  flex: 1;
  gap: 0.8vw;
}
.player-card {
  text-align: center;
  width: 12vw;
  max-width: 80px;
}

.circle {
  width: 8vw;
  height: 8vw;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  background: gray;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.nama {
  font-size: 0.75rem;
  color: #ccc;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.formation-top-right,
.formation-bottom-right {
  position: absolute;
  right: 8px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding: 4px 6px;
  border-radius: 6px;
  z-index: 3;
}

.formation-top-right { top: 6px; }
.formation-bottom-right { bottom: 6px; }
.scroll-wrapper {
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
}




#infoMatchBody {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
}
.tab-pane {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
}
#infoMatchBody::-webkit-scrollbar {
  width: 6px;
}
#infoMatchBody::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}
#infoMatchBody::-webkit-scrollbar-track {
  background-color: transparent;
}





.nav-tabs .nav-link {
  color: #bbb;
  border: none;
  font-weight: 500;
}
.nav-tabs .nav-link:hover {
  color: #fff;
}
.nav-tabs .nav-link.active {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
}
.nav-wrapper {
  background-color: #1e1e1e;
  border-bottom: 1px solid #444;
}
.nav-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.score-display {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

  .baseball-stats-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .baseball-stats-container.show {
    max-height: 500px;
  }
  .hockey-score-line {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
  }