* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #0a0a0a;
  --surface: #1a1a1a;
  --surface-hover: #252525;
  --border: #2a2a2a;
  --foreground: #ffffff;
  --foreground-muted: #a0a0a0;
  --accent: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Added user section styles */
.user-section {
  position: relative;
  flex-shrink: 0;
}

.sign-in-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.sign-in-btn:hover {
  background-color: #0ea472;
  transform: translateY(-1px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-profile:hover {
  background-color: var(--surface-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  font-size: 0.9375rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.user-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-menu-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-menu-name {
  font-weight: 600;
  font-size: 1rem;
}

.user-menu-email {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-divider {
  height: 1px;
  background-color: var(--border);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.2s;
}

.user-menu-item:hover {
  background-color: var(--surface-hover);
}

.user-menu-item:last-child {
  border-radius: 0 0 12px 12px;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--foreground-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
}

.search-input::placeholder {
  color: var(--foreground-muted);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--foreground-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-clear:hover {
  background-color: var(--surface-hover);
  color: var(--foreground);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  z-index: 99;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-results-content {
  padding: 1rem 0;
}

.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--foreground-muted);
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.search-category {
  margin-bottom: 1rem;
}

.search-category-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground-muted);
  padding: 0.5rem 1.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: var(--surface-hover);
}

.search-result-logo,
.player-photo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.player-photo {
  border-radius: 50%;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.search-result-meta {
  font-size: 0.8125rem;
  color: var(--foreground-muted);
}

.search-result-arrow {
  color: var(--foreground-muted);
  flex-shrink: 0;
}

.search-no-results,
.search-error {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--foreground-muted);
}

.search-error {
  color: var(--accent-red);
}

.nav {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--foreground-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.main {
  padding: 2rem 0;
  min-height: calc(100vh - 80px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.live-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground-muted);
}

.matches-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.league-section {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.league-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.league-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.league-name {
  font-size: 1rem;
  font-weight: 600;
}

.league-country {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin-left: auto;
}

.matches-list {
  display: flex;
  flex-direction: column;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
  cursor: pointer;
}

.match-card:last-child {
  border-bottom: none;
}

.match-card:hover {
  background-color: var(--surface-hover);
}

.match-status {
  min-width: 60px;
}

.match-time {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--foreground-muted);
}

.match-time.live {
  background-color: var(--accent-red);
  color: white;
}

.match-time.halftime {
  background-color: var(--accent-orange);
  color: white;
}

.match-time.finished {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--foreground-muted);
}

.match-time.scheduled {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.home-team {
  justify-content: flex-end;
}

.away-team {
  justify-content: flex-start;
}

.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 100px;
  justify-content: center;
}

.score {
  font-size: 1.5rem;
  font-weight: 700;
}

.score-separator {
  color: var(--foreground-muted);
  font-weight: 400;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.no-matches,
.error,
.prompt-message,
.premium-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}

.no-matches-icon {
  width: 64px;
  height: 64px;
  color: var(--foreground-muted);
}

.no-matches h3,
.error h3,
.prompt-message h3,
.premium-prompt h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.error h3 {
  color: var(--accent-red);
}

.no-matches p,
.error p,
.prompt-message p,
.premium-prompt p {
  color: var(--foreground-muted);
}

.date-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.date-btn {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-btn:hover {
  background-color: var(--surface-hover);
}

.current-date {
  font-size: 1.125rem;
  font-weight: 600;
  min-width: 150px;
  text-align: center;
}

.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.league-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.league-card:hover {
  background-color: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.league-card-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.league-card-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.league-card-country {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin: 0;
}

.league-card-type {
  font-size: 0.75rem;
  color: var(--foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.team-matches-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.team-matches-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.team-matches-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.highlight-match-section,
.other-matches-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.match-card-detailed {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.match-card-detailed:hover {
  background-color: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.match-card-detailed.highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.match-league-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--foreground-muted);
  font-size: 0.875rem;
}

.match-league-info img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.match-league-name {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  font-weight: 500;
}

.match-date {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.match-teams-detailed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-detailed {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.team-logo-large {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-name-large {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
}

.team-score-large {
  font-size: 2rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.vs-separator {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground-muted);
  padding: 0.5rem 0;
}

.match-venue {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--foreground-muted);
  text-align: center;
}

.matches-list-simple {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.more-menu {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.more-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s;
}

.more-menu-item:hover {
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

.more-menu-item.premium {
  position: relative;
}

.premium-badge {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.premium-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}

.premium-button:hover {
  transform: translateY(-2px);
}

.league-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.league-select {
  padding: 0.75rem 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 300px;
  transition: all 0.2s;
}

.league-select:hover {
  background-color: var(--surface-hover);
}

.league-select:focus {
  outline: none;
  border-color: var(--accent);
}

.standings-card,
.scorers-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.standings-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.standings-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.standings-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.standings-header p {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin: 0;
}

.standings-group-title {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.standings-table {
  display: flex;
  flex-direction: column;
}

.standings-row {
  display: grid;
  grid-template-columns: 50px 1fr repeat(6, 60px) 80px;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.standings-row:last-child {
  border-bottom: none;
}

.standings-row:hover:not(.standings-header-row) {
  background-color: var(--surface-hover);
}

.standings-header-row {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.02);
}

.standings-rank {
  font-weight: 700;
  text-align: center;
}

.standings-rank.rank-champions {
  color: var(--accent);
}

.standings-rank.rank-europa {
  color: #f59e0b;
}

.standings-rank.rank-relegation {
  color: var(--accent-red);
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.standings-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.standings-stat {
  text-align: center;
  font-size: 0.9375rem;
}

.standings-points {
  font-weight: 700;
  font-size: 1.125rem;
}

.scorer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.scorer-row:last-child {
  border-bottom: none;
}

.scorer-row:hover {
  background-color: var(--surface-hover);
}

.scorer-rank {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.scorer-rank.rank-gold {
  color: #fbbf24;
}

.scorer-rank.rank-silver {
  color: #d1d5db;
}

.scorer-rank.rank-bronze {
  color: #cd7f32;
}

.scorer-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.scorer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scorer-name {
  font-size: 1rem;
  font-weight: 600;
}

.scorer-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.scorer-team img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.scorer-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

/* Completing scorer styles and adding all missing CSS */
.scorer-goals,
.scorer-assists {
  font-size: 1.5rem;
  font-weight: 700;
}

.scorer-label {
  font-size: 0.75rem;
  color: var(--foreground-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--foreground-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--surface-hover);
  color: var(--foreground);
}

.modal-match-header {
  margin-bottom: 2rem;
}

.modal-league-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.modal-league-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-league-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-league-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.modal-league-round {
  font-size: 0.8125rem;
  color: var(--foreground-muted);
}

.modal-teams-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-team-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.modal-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-team-info {
  flex: 1;
}

.modal-team-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.modal-team-score {
  font-size: 2rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.modal-score-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.modal-status-badge {
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.modal-venue-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.modal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--foreground-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.modal-tab:hover {
  color: var(--foreground);
}

.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal-tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.match-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.overview-card {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.overview-label {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin-bottom: 0.5rem;
}

.overview-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.events-timeline-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item-mobile {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.event-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 60px;
}

.event-icon-mobile {
  font-size: 1.5rem;
}

.event-time-mobile {
  font-weight: 700;
  font-size: 0.875rem;
}

.event-content-mobile {
  flex: 1;
}

.event-player-mobile {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.event-type-mobile {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.event-assist-mobile {
  font-size: 0.8125rem;
  color: var(--foreground-muted);
  margin-top: 0.25rem;
}

.event-goal {
  border-left: 3px solid var(--accent);
}

.event-yellow {
  border-left: 3px solid var(--accent-orange);
}

.event-red {
  border-left: 3px solid var(--accent-red);
}

.event-sub {
  border-left: 3px solid #60a5fa;
}

.stats-grid-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card-mobile {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.stat-label-mobile {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  text-align: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.stat-values-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-value-home {
  color: var(--accent);
}

.stat-value-away {
  color: var(--accent-red);
}

.stat-separator {
  color: var(--foreground-muted);
}

.stat-bar-mobile {
  display: flex;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill-mobile {
  height: 100%;
  transition: width 0.3s;
}

.stat-bar-fill-mobile.home {
  background-color: var(--accent);
}

.stat-bar-fill-mobile.away {
  background-color: var(--accent-red);
}

.no-data-message {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--foreground-muted);
}

.player-details {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.player-photo-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.player-info {
  flex: 1;
}

.player-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.player-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

/* Profile Modal Styles */
.profile-modal-content {
  max-width: 600px;
  width: 100%;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.profile-email {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.profile-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--foreground-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  position: relative;
}

.profile-tab:hover {
  color: var(--foreground);
  background-color: rgba(255, 255, 255, 0.02);
}

.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.profile-tab-content {
  min-height: 400px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-pane {
  display: none;
}

.profile-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.favorites-section {
  margin-bottom: 2rem;
}

.favorites-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.favorites-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.add-favorite-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.add-favorite-btn:hover {
  background-color: #0ea472;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.add-favorite-btn:active {
  transform: translateY(0);
}

.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.favorites-list::-webkit-scrollbar {
  width: 6px;
}

.favorites-list::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 10px;
}

.favorites-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
  background: var(--foreground-muted);
}

.empty-favorites {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--foreground-muted);
}

.empty-favorites svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-favorites p {
  margin: 0.25rem 0;
  font-size: 1rem;
}

.empty-subtitle {
  font-size: 0.875rem;
  opacity: 0.7;
}

.favorite-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.favorite-card:hover {
  background-color: var(--surface-hover);
  transform: translateX(4px);
  border-color: var(--accent);
}

.favorite-card:active {
  transform: translateX(2px);
}

.favorite-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.favorite-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.favorite-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-meta {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.favorite-remove-btn {
  background: none;
  border: none;
  color: var(--foreground-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.favorite-remove-btn:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.favorite-remove-btn:active {
  transform: scale(0.95);
}

.preferences-section {
  margin-bottom: 2rem;
}

.preferences-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.preference-item:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
}

.preference-info {
  flex: 1;
  min-width: 0;
}

.preference-info label {
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.preference-description {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  margin: 0;
}

.preference-select {
  padding: 0.625rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.preference-select:hover {
  border-color: var(--accent);
}

.preference-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-switch:hover .toggle-slider {
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Add Modal Styles */
.add-modal-content {
  max-width: 500px;
  width: 100%;
}

.add-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.add-modal-search {
  margin-bottom: 1.5rem;
}

.add-modal-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.2s;
}

.add-modal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.add-modal-input::placeholder {
  color: var(--foreground-muted);
}

.add-modal-results,
.add-modal-leagues {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.add-modal-results::-webkit-scrollbar,
.add-modal-leagues::-webkit-scrollbar {
  width: 6px;
}

.add-modal-results::-webkit-scrollbar-track,
.add-modal-leagues::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 10px;
}

.add-modal-results::-webkit-scrollbar-thumb,
.add-modal-leagues::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.add-modal-results::-webkit-scrollbar-thumb:hover,
.add-modal-leagues::-webkit-scrollbar-thumb:hover {
  background: var(--foreground-muted);
}

.league-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.league-option:hover:not(.disabled) {
  background-color: var(--surface-hover);
  transform: translateX(4px);
  border-color: var(--accent);
}

.league-option:active:not(.disabled) {
  transform: translateX(2px);
}

.league-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.league-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-option > div {
  flex: 1;
  min-width: 0;
}

.league-option-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-option-country {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.already-favorite {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.add-modal-loading,
.add-modal-empty,
.add-modal-error {
  padding: 2rem;
  text-align: center;
  color: var(--foreground-muted);
  font-size: 0.9375rem;
}

.add-modal-error {
  color: #ef4444;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .logo {
    font-size: 1.5rem;
    text-align: center;
  }

  .search-container {
    order: 2;
    max-width: none;
    width: 100%;
  }

  .user-section {
    order: 1;
    align-self: flex-end;
  }

  .nav {
    order: 3;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    padding: 0.625rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
  }

  .nav-link.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
  }

  /* Full-screen modal on mobile for better UX */
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    max-width: 100%;
    width: 100%;
    padding: 1.5rem;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  /* Enhanced profile modal for mobile */
  .profile-modal-content {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .profile-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .profile-avatar-large {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 1.25rem;
  }

  .profile-email {
    font-size: 0.8125rem;
  }

  .profile-tabs {
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 10;
    padding-top: 0.5rem;
  }

  .profile-tab {
    padding: 0.875rem 0.5rem;
    font-size: 0.875rem;
  }

  .profile-tab-content {
    min-height: 300px;
  }

  .favorites-header {
    flex-direction: row;
    align-items: center;
  }

  .favorites-header h3 {
    font-size: 1rem;
  }

  .add-favorite-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .add-favorite-btn svg {
    width: 16px;
    height: 16px;
  }

  .favorites-list {
    max-height: 300px;
  }

  .favorite-card {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .favorite-card:hover {
    transform: none;
  }

  .favorite-card:active {
    transform: scale(0.98);
  }

  .favorite-logo {
    width: 40px;
    height: 40px;
  }

  .favorite-name {
    font-size: 0.9375rem;
  }

  .favorite-meta {
    font-size: 0.8125rem;
  }

  .favorite-remove-btn {
    padding: 0.375rem;
  }

  .favorite-remove-btn svg {
    width: 18px;
    height: 18px;
  }

  .preference-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .preference-info label {
    font-size: 0.9375rem;
  }

  .preference-description {
    font-size: 0.8125rem;
  }

  .preference-select {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .toggle-switch {
    align-self: flex-end;
  }

  /* Full-screen add modals on mobile */
  .add-modal-content {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .add-modal-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .add-modal-search {
    margin-bottom: 1.25rem;
  }

  .add-modal-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .add-modal-results,
  .add-modal-leagues {
    max-height: 350px;
  }

  .league-option {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .league-option:hover:not(.disabled) {
    transform: none;
  }

  .league-option:active:not(.disabled) {
    transform: scale(0.98);
  }

  .league-option img {
    width: 36px;
    height: 36px;
  }

  .league-option-name {
    font-size: 0.9375rem;
  }

  .league-option-country {
    font-size: 0.8125rem;
  }

  .already-favorite {
    font-size: 0.8125rem;
  }

  .empty-favorites {
    padding: 2rem 1rem;
  }

  .empty-favorites svg {
    width: 40px;
    height: 40px;
  }

  .empty-favorites p {
    font-size: 0.9375rem;
  }

  .empty-subtitle {
    font-size: 0.8125rem;
  }

  /* Enhanced match modal for mobile */
  .modal-team-row {
    padding: 0.75rem;
  }

  .modal-team-logo {
    width: 40px;
    height: 40px;
  }

  .modal-team-name {
    font-size: 1rem;
  }

  .modal-team-score {
    font-size: 1.5rem;
  }

  .modal-tabs {
    gap: 0.25rem;
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 10;
    padding-top: 0.5rem;
  }

  .modal-tab {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .player-header {
    flex-direction: column;
    text-align: center;
  }

  .player-name {
    font-size: 1.5rem;
  }

  .player-meta {
    justify-content: center;
  }

  .player-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .profile-avatar-large {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 1.125rem;
  }

  .profile-tab {
    padding: 0.75rem 0.375rem;
    font-size: 0.8125rem;
  }

  .add-favorite-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .favorite-card {
    padding: 0.75rem;
  }

  .favorite-logo {
    width: 36px;
    height: 36px;
  }

  .favorite-name {
    font-size: 0.875rem;
  }

  .league-option {
    padding: 0.75rem;
  }

  .league-option img {
    width: 32px;
    height: 32px;
  }
}
