/* ====================================
   BASE STYLES
   ==================================== */
.STHSIndex_GamesResult { 
  width: 100%; 
  border-collapse: collapse; 
}

.STHSIndex_GamesResult th, 
.STHSIndex_GamesResult td { 
  padding: 8px 12px; 
}

.STHSIndex_GamesResult th { 
  background: #222; 
  color: #fff; 
}

.STHSIndex_GamesResult td { 
  background: transparent; 
  color: #fff; 
}

.STHSRight { 
  text-align: right; 
  font-weight: bold; 
}

.STHSPHPIndexTeamImage { 
  height: 28px; 
  vertical-align: middle; 
  margin-right: 8px; 
}

/* ====================================
   MAIN PLAYOFFS HEADER
   ==================================== */
.playoffs-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.playoffs-main-logo {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(255, 21, 52, 0.4));
  animation: fadeInScale 1s ease-out, gentleFloat 4s ease-in-out infinite;
}

/* ====================================
   VIEW TOGGLE
   ==================================== */
.view-toggle {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #212121;
  color: #fff;
  border: 2px solid #444;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: #2a2a2a;
  border-color: #ff1534;
  transform: translateY(-2px);
}

.view-btn.active {
  background: #ff1534;
  color: #fff;
  border-color: #ff1534;
}

.view-btn svg {
  width: 20px;
  height: 20px;
}

/* ====================================
   GROUP STAGE STANDINGS
   ==================================== */
.group-standings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.group-standings-card {
  background: rgba(33, 33, 33, 0.95);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.group-standings-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 3px solid #ff1534;
}

.group-standings-title {
  text-align: center;
  margin: 0;
  font-size: 1.6em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff1534;
}

.group-standings-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.group-standings-table thead {
  background: #212121;
  border-bottom: 2px solid #ff1534;
}

.group-standings-table th {
  padding: 12px 10px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.group-standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.group-standings-table tbody tr:hover {
  background: rgba(255, 21, 52, 0.1);
}

.group-standings-table tbody tr:last-child {
  border-bottom: none;
}

.group-standings-table td {
  padding: 14px 10px;
  text-align: center;
  color: #fff;
  font-size: 1em;
  font-weight: 500;
}

.group-team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-team-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.group-team-name {
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

.group-team-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.group-team-link:hover .group-team-name {
  color: #ff1534;
}

.group-standings-table tbody tr:nth-child(-n+4) {
  background: rgba(76, 175, 80, 0.08);
}

.group-standings-table tbody tr:nth-child(-n+4) td {
  font-weight: 600;
}

.group-standings-table .pts-column {
  font-weight: bold;
  color: #ff1534;
  font-size: 1.1em;
}

.group-standings-table .stat-column {
  font-family: 'Courier New', monospace;
  color: #ccc;
}

/* ====================================
   LEADERS SECTION
   ==================================== */
#leaders-section {
  max-width: 1600px;
  margin: 40px auto;
  background: rgba(33, 33, 33, 0.95);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 40px 32px;
}

/* ====================================
   LOADING & ERROR STATES
   ==================================== */
.group-standings-loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.group-standings-loading svg circle {
  stroke: #ff1534;
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #ff6b6b;
  font-size: 1.1em;
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1200px) {
  .group-standings-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .playoffs-main-logo {
    height: 100px;
  }
  
  .view-toggle {
    flex-direction: row;
    gap: 8px;
  }
  
  .view-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85em;
  }
  
  .view-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .group-standings-card {
    padding: 20px 12px;
  }
  
  .group-standings-title {
    font-size: 1.3em;
  }
  
  .group-standings-table th,
  .group-standings-table td {
    padding: 10px 6px;
    font-size: 0.9em;
  }
  
  .group-team-cell {
    gap: 8px;
  }
  
  .group-team-logo {
    height: 28px;
    width: 28px;
  }
  
  .group-team-name {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .group-standings-table th,
  .group-standings-table td {
    padding: 8px 4px;
    font-size: 0.85em;
  }
  
  .group-team-logo {
    height: 24px;
    width: 24px;
  }
  
  .group-team-name {
    font-size: 0.85em;
  }
}