* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
}

.container.loading {
  overflow: hidden;
}

#content {
  overflow: hidden;
}

#content.loading {
  overflow: hidden;
}

header {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: slideDown 0.5s ease-out;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.language-selector {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(102, 126, 234, 0.2);
}

.flag {
  width: 28px;
  height: 20px;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-es {
  background-image: linear-gradient(to bottom, #c60b1e 0%, #c60b1e 33.33%, #ffc400 33.33%, #ffc400 66.66%, #c60b1e 66.66%);
}

.flag-fr {
  background-image: linear-gradient(to right, #002395 0%, #002395 33.33%, white 33.33%, white 66.66%, #ed2939 66.66%);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

.player-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid;
}

.player-name {
  font-size: 1.8em;
  font-weight: bold;
  margin-right: 15px;
}

.player-badge {
  padding: 5px 15px;
  border-radius: 20px;
  color: white;
  font-size: 0.9em;
  font-weight: 500;
}

.stats-sections {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.stats-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card.primary .stat-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.stat-card.primary .stat-value {
  color: white !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: white !important;
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
}

.chart-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  overflow: visible;
}

.chart-container:has(.contribution-calendar) {
  padding: 20px 15px;
}

.chart-container:has(.calendar-and-matches) {
  padding: 30px 15px 20px 15px;
}

.chart-container:has(.calendar-and-matches) .chart-title {
  text-align: left;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.weekday-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weekday-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weekday-label {
  width: 80px;
  font-weight: 500;
  color: #555;
}

.weekday-bar-container {
  flex: 1;
  height: 30px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.weekday-bar {
  height: 100%;
  border-radius: 15px;
  transition: width 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: white;
  font-weight: 500;
  font-size: 0.9em;
}

.matches-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 500;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
}

tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.more-matches {
  text-align: center;
  padding: 15px;
  color: #666;
  font-style: italic;
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: color 0.2s ease;
}

.more-matches:hover {
  color: #667eea;
  text-decoration: underline;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: white;
}

.loading-progress {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  color: #333;
}

.loading-progress h3 {
  color: #667eea;
  margin-bottom: 30px;
  font-size: 1.5em;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
}

.progress-item.loading {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  animation: pulse 2s infinite;
}

.progress-item.completed {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.progress-item.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.player-name-progress {
  font-weight: bold;
  font-size: 1.1em;
}

.progress-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.status-icon {
  font-size: 1.2em;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.loading-summary {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 15px;
}

.comparison-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.7s ease-out;
}

/* Resumen de estadísticas */
.comparison-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.summary-icon {
  font-size: 2.5em;
  opacity: 0.8;
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 2.2em;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.summary-label {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-header {
  text-align: center;
  margin-bottom: 40px;
}

.comparison-title {
  font-size: 2.2em;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.comparison-subtitle {
  color: #666;
  font-size: 1.1em;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.player-comparison-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
  overflow: hidden;
}

.player-comparison-card.enhanced {
  border: 2px solid;
}

.player-comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Header de la tarjeta */
.card-header {
  padding: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 25px;
}

.player-rank {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

/* Estadísticas primarias */
.primary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.primary-stat {
  text-align: center;
}

.stat-big-value {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
}

.stat-big-label {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
  font-weight: 500;
}

/* Estadísticas secundarias */
.secondary-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.secondary-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.secondary-stat-row:last-child {
  border-bottom: none;
}

.secondary-stat-label {
  color: #666;
  font-size: 0.9em;
}

.secondary-stat-value {
  font-weight: 600;
  font-size: 0.95em;
}

.comparison-player-name {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
}

.comparison-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-stat-label {
  color: #666;
  font-size: 0.9em;
}

.comparison-stat-value {
  font-weight: bold;
  font-size: 1.1em;
}

.ranking-container {
  margin-top: 40px;
}

.ranking-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.ranking-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 20px;
}

.ranking-card-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.9);
}

.ranking-position {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-right: 15px;
  font-size: 0.9em;
}

.ranking-player {
  flex: 1;
  font-weight: 500;
}

.ranking-value {
  font-weight: bold;
  font-size: 1.1em;
}

.gold {
  background: linear-gradient(135deg, #ffd700, #ffa500);
}

.silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
}

.bronze {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.other {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.map-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-row {
  display: grid;
  grid-template-columns: 1fr 120px 140px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.map-row:hover {
  background: rgba(255, 255, 255, 0.9);
}

.map-name {
  font-weight: 600;
  color: #333;
  font-size: 1.1em;
}

.map-games {
  text-align: center;
  font-size: 0.95em;
  color: #666;
}

.map-winrate {
  text-align: center;
  font-weight: bold;
  font-size: 1em;
}

.map-bar-container {
  display: flex;
  align-items: center;
}

.map-bar-bg {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.map-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.time-slot-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.time-slot-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.time-slot-label {
  width: 140px;
  font-weight: 500;
  color: #555;
  font-size: 0.95em;
}

.time-slot-bar-container {
  flex: 1;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.time-slot-bar {
  height: 100%;
  border-radius: 16px;
  transition: width 0.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: 500;
  font-size: 0.9em;
}

.peak-hours {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  color: #666;
  font-size: 0.95em;
}

.contribution-calendar {
  margin-bottom: 5px;
  padding: 5px;
  position: relative;
}

.calendar-and-matches {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: space-between;
  min-height: 400px;
}

.calendar-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.recent-matches-section {
  flex: 1;
}

.calendar-section h4,
.recent-matches-section h4 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.modal-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-content {
  overflow-y: auto;
  max-height: calc(80vh - 120px);
}

.modal-matches-table {
  overflow-x: auto;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 5px 0;
  max-width: calc(100vw - 100px);
  overflow: visible;
}

.calendar-month-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-label-left {
  font-size: 0.7em;
  color: #666;
  font-weight: 500;
  min-width: 30px;
  text-align: left;
}

.month-days {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.calendar-day {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
}

.calendar-day:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.calendar-day.level-0 {
  background: #ebedf0;
}

.calendar-day.level-1 {
  background: var(--calendar-color-1, rgba(102, 126, 234, 0.3));
}

.calendar-day.level-2 {
  background: var(--calendar-color-2, rgba(102, 126, 234, 0.5));
}

.calendar-day.level-3 {
  background: var(--calendar-color-3, rgba(102, 126, 234, 0.7));
}

.calendar-day.level-4 {
  background: var(--calendar-color-4, rgba(102, 126, 234, 0.9));
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8em;
  color: #666;
  margin-top: 10px;
}

.legend-items {
  display: flex;
  align-items: center;
  gap: 3px;
}

.legend-label {
  margin-right: 5px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .player-name {
    font-size: 1.4em;
  }
}

/* Filtros de fecha */
#filters {
  margin-bottom: 30px;
  text-align: center;
}

.preset-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.preset-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  color: #667eea;
  border: none;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.preset-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.preset-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

/* Responsive para filtros */
@media (max-width: 768px) {
  .date-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .date-input-group {
    justify-content: space-between;
  }

  .preset-buttons {
    flex-direction: column;
    align-items: center;
  }

  .preset-btn {
    width: 200px;
    text-align: center;
  }
}

/* Cache status */
.cache-status {
  margin-top: 15px;
  padding: 10px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

#cacheInfo {
  color: #555;
  font-weight: 500;
}

.clear-cache-btn {
  padding: 6px 12px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-cache-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  transform: translateY(-1px);
}

.cache-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.cache-indicator.fresh {
  background: #28a745;
}

.cache-indicator.stale {
  background: #ffc107;
}

.cache-indicator.none {
  background: #dc3545;
}

/* Players Grid Layout */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Missing comparison styles */
.ranking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.rank-item.first {
  border-left-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.rank-item.second {
  border-left-color: #c0c0c0;
  background: rgba(192, 192, 192, 0.1);
}

.rank-item.third {
  border-left-color: #cd7f32;
  background: rgba(205, 127, 50, 0.1);
}

.rank-number {
  font-weight: bold;
  font-size: 1.1em;
  min-width: 25px;
  text-align: center;
  margin-right: 12px;
}

.rank-name {
  flex: 1;
  font-weight: 500;
}

.rank-value {
  font-weight: bold;
  color: #667eea;
}

.comparison-category {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-category h3 {
  margin-bottom: 15px;
  color: #667eea;
  font-size: 1.2em;
}

/* Modal styles */
.modal-matches-list {
  max-height: 400px;
  overflow-y: auto;
}

.modal-match-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border-left: 4px solid;
}

.modal-match-item.win {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.modal-match-item.loss {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.modal-result-indicator {
  font-weight: bold;
  font-size: 1.1em;
  margin-right: 15px;
  min-width: 20px;
}

.modal-match-details {
  flex: 1;
}

.modal-match-map {
  font-weight: 500;
  margin-bottom: 4px;
}

.modal-match-date {
  font-size: 0.9em;
  color: #666;
}

/* Button styles */
.show-all-matches {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 15px;
  transition: transform 0.2s ease;
}

.show-all-matches:hover {
  transform: translateY(-2px);
}

/* Utility classes */
.positive {
  color: #28a745;
  font-weight: 500;
}

.negative {
  color: #dc3545;
  font-weight: 500;
}

.neutral {
  color: #6c757d;
  font-weight: 500;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 20px;
  transition: opacity 0.3s ease;
}

.container.loading ~ .app-footer {
  display: none;
}

.footer-content {
  color: white;
  font-size: 0.9em;
  font-weight: 400;
}

.footer-content a {
  color: white !important;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.footer-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.heart {
  color: #e91e63;
  font-size: 1.1em;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

.twitch-link {
  color: #9146ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.twitch-link:hover {
  color: #772ce8;
  background: rgba(145, 70, 255, 0.1);
  transform: translateY(-1px);
}
