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

:root {
  --bg-dark: #0d0d14;
  --bg-card: #1a1a28;
  --bg-hover: #252538;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #666680;
  --border-color: #2a2a40;
  --accent-blue: #5BA3E5;
  --accent-purple: #9B6BD5;
  --accent-glow: rgba(91, 163, 229, 0.3);
  --purple-glow: rgba(155, 107, 213, 0.3);
  --gradient: linear-gradient(135deg, #5BA3E5, #7B7BD5, #9B6BD5);
  --gradient-subtle: linear-gradient(135deg, rgba(91, 163, 229, 0.1), rgba(155, 107, 213, 0.1));
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at top, rgba(91, 163, 229, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(155, 107, 213, 0.08) 0%, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding: 50px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-subtle);
  border-radius: 0 0 20px 20px;
  margin-bottom: 10px;
}

header img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

header img.banner-logo {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 0 20px var(--accent-glow)) drop-shadow(0 0 40px var(--purple-glow));
  border-radius: 12px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent-blue);
}

header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  flex-wrap: wrap;
}

nav a, .btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

nav a:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 163, 229, 0.3);
}

/* Back link */
.back-link {
  display: inline-block;
  color: var(--accent-blue);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Page title */
.page-title {
  font-size: 1.75rem;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Info box */
.info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* Week selector */
.week-selector {
  margin-bottom: 24px;
}

.week-selector label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.week-selector select {
  padding: 10px 16px;
  font-size: 1rem;
  background: var(--bg-card);
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
}

.week-selector select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.week-date {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Match list */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-blue);
}

.match-card .team {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.match-card .team:first-child {
  text-align: right;
}

.match-card .team:last-child {
  text-align: left;
}

.match-card .vs {
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Standings table */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.standings-table th {
  text-align: left;
  padding: 12px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-bottom: 2px solid var(--accent-blue);
}

.standings-table th:hover {
  background: var(--bg-hover);
}

.standings-table th.sorted {
  background: var(--bg-hover);
  color: var(--accent-purple);
}

.standings-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.conference-label {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.conference-label.northern {
  background: rgba(91, 163, 229, 0.2);
  color: #5BA3E5;
}

.conference-label.southern {
  background: rgba(155, 107, 213, 0.2);
  color: #9B6BD5;
}

/* Team selector */
.team-selector {
  margin-bottom: 24px;
}

.team-selector label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.team-selector select {
  padding: 10px 16px;
  font-size: 1rem;
  background: var(--bg-card);
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  min-width: 250px;
}

.team-selector select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* Team info */
.team-info {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.team-header h2 {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-record {
  display: flex;
  gap: 24px;
  color: var(--text-secondary);
}

.team-record strong {
  color: var(--text-primary);
}

/* Team schedule */
.team-schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 100px;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.schedule-row.conference-game {
  border-left: 3px solid var(--accent-blue);
}

.schedule-row.non-conference-game {
  border-left: 3px solid var(--accent-purple);
}

.schedule-week {
  font-weight: 600;
  color: var(--accent-blue);
}

.schedule-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.schedule-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-matchup .home-away {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 24px;
}

.schedule-matchup .opponent {
  font-weight: 500;
}

.schedule-type {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Team logos */
.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.team-logo-large {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-card .team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-header {
  background: var(--gradient);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.week-header:first-child {
  margin-top: 0;
}

.week-header-date {
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Home page sections */
.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.home-section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 0.5rem;
}

.section-week {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.week-date-small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.result-card,
.upcoming-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(91, 163, 229, 0.08), rgba(155, 107, 213, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.result-card:hover,
.upcoming-card:hover {
  background: linear-gradient(135deg, rgba(91, 163, 229, 0.15), rgba(155, 107, 213, 0.15));
  transform: translateX(4px);
}

.result-card .team,
.upcoming-card .team {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: 0.9rem;
}

.result-card .team:last-child,
.upcoming-card .team:last-child {
  justify-content: flex-end;
  text-align: right;
}

.result-card .score {
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
  text-align: center;
}

.result-card .winner {
  font-weight: 600;
  color: var(--accent);
}

.upcoming-card .vs {
  color: var(--text-muted);
  font-size: 0.8rem;
  min-width: 30px;
  text-align: center;
}

@media (max-width: 700px) {
  .home-sections {
    grid-template-columns: 1fr;
  }
}

.schedule-matchup .team-logo {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  nav {
    flex-direction: column;
    align-items: center;
  }
  
  nav a, .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .match-card {
    flex-direction: column;
    gap: 8px;
  }
  
  .match-card .team {
    text-align: center !important;
  }
  
  .standings-table {
    font-size: 0.85rem;
  }
  
  .standings-table th, .standings-table td {
    padding: 8px;
  }
  
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .schedule-week {
    font-size: 1rem;
  }
  
  .schedule-type {
    text-align: left;
  }
  
  .team-record {
    flex-direction: column;
    gap: 8px;
  }
}
