* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e85d04;
  --secondary: #f48c06;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --card-bg: #16213e;
  --card-hover: #1a2744;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --accent-lakers: #552583;
  --accent-bulls: #ce1141;
  --accent-raptors: #ce1141;
  --accent-blazers: #e03a3e;
  --accent-spurs: #c4ced4;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--darker);
  color: var(--text);
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://media1.tenor.com/m/ZHD9N9aBFasAAAAC/lebron-james.gif') center/cover no-repeat;
  opacity: 0.35;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.basketball-icon {
  display: inline-block;
}

.basketball-icon-img {
  width: 100px;
  height: 100px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero h1 {
  font-size: 3rem;
  margin-top: 20px;
  background: linear-gradient(90deg, #e85d04, #f48c06, #ffba08);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab {
  padding: 12px 30px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.tab.active {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.4);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Teams Grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.team-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--team-color);
}

.team-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--team-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--team-color-glow);
}

.team-logo {
  font-size: 60px;
  margin-bottom: 15px;
  display: block;
}

.team-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-city {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-record {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.record-stat {
  text-align: center;
}

.record-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.record-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Standings Table */
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--primary);
}

.table-wrapper {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
}

.standings-table th,
.standings-table td {
  padding: 15px 20px;
  text-align: center;
}

.standings-table th {
  background: var(--dark);
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.standings-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.standings-table tbody tr:hover {
  background: var(--card-hover);
}

.standings-table .rank {
  font-weight: 700;
  color: var(--primary);
}

.standings-table .team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.standings-table .team-cell .mini-logo {
  font-size: 24px;
}

.standings-table .team-cell .mini-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.standings-table .wins {
  color: #4ade80;
  font-weight: 600;
}

.standings-table .losses {
  color: #f87171;
  font-weight: 600;
}

.standings-table .points {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.match-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}

.match-card:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.match-card.completed {
  opacity: 0.8;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.match-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.match-team-logo {
  font-size: 36px;
}

.match-team-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.match-team-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.vs-badge {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.match-info {
  text-align: right;
  min-width: 120px;
}

.match-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.match-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}

.match-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.match-status.live {
  background: #dc2626;
  animation: pulse 1.5s infinite;
}

.match-status.upcoming {
  background: var(--primary);
}

.match-status.completed {
  background: #374151;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-team-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-team-logo {
  font-size: 80px;
  margin-bottom: 10px;
}

.modal-team-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
}

.modal-team-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-team-city {
  color: var(--text-muted);
  margin-top: 5px;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.modal-stat {
  background: var(--dark);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.modal-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 5px;
}

.modal-stars {
  text-align: center;
  margin-top: 20px;
}

.modal-stars h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.star-players {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.star-player {
  background: var(--dark);
  padding: 12px 20px;
  border-radius: 12px;
}

.star-player-name {
  font-weight: 600;
  color: var(--text);
}

.star-player-pos {
  font-size: 0.8rem;
  color: var(--primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: var(--dark);
  color: var(--text-muted);
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .basketball-icon {
    font-size: 50px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .match-card {
    flex-direction: column;
    gap: 15px;
  }

  .match-teams {
    flex-direction: column;
    gap: 10px;
  }

  .match-info {
    text-align: center;
  }
}
