body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 10px;
  text-align: center;
  color: white;
}

.header h1 {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

.content {
  padding: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.stat-value {
  font-size: 1.8em;
  font-weight: bold;
  margin: 8px 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 5px;
}

.section {
  background: white;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header h2 {
  margin: 0;
  color: #444;
  font-size: 1.3em;
  font-weight: 500;
}

.section-content {
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

th {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 500;
  font-size: 0.9em;
  text-align:center;
}

td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  font-size: 0.9em;
  text-align:center;
}

tr:hover td {
  background-color: #f8f9ff;
}

tr:last-child td {
  border-bottom: none;
}

.victory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.victory-item {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  margin: 8px 0;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
}

.victory-item:hover {
  transform: translateX(3px);
}

.horse-name {
  font-weight: 500;
  color: #444;
  font-size: 0.9em;
}

.victory-count {
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  color: #666;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.emoji {
  font-size: 1.2em;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .container {
    margin: 10px;
    border-radius: 15px;
  }

  .header, .content {
    padding: 20px;
  }

  .section-content {
    padding: 20px;
  }

  table {
    font-size: 0.9em;
  }

  th, td {
    padding: 10px 8px;
  }
}
