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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f7;
}

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

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 2px solid #007aff;
}

header h1 {
  font-size: 2.5rem;
  color: #007aff;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  color: #666;
}

.controls {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.search-section {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007aff;
}

.language-filters h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.1rem;
}

.language-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.language-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  border: 2px solid transparent;
}

.language-radio:hover {
  background: #e9ecef;
}

.language-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.language-radio.selected {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #1976d2;
}

.language-radio.selected:hover {
  background: #bbdefb;
}

.flag {
  font-size: 1.2rem;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.table-container {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.table-header {
  display: flex;
  background-color: #f8f9fa;
}

.table-header > div {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #e1e1e1;
  text-align: left;
}

.table-header > div:nth-child(1) {
  width: 132px;
  flex-shrink: 0;
}

.table-header > div:nth-child(2) {
  flex-shrink: 0;
  min-width: 180px;
}

.table-header > div:nth-child(3) {
  flex-shrink: 0;
  min-width: 220px;
}

.table-header > div:nth-child(4) {
  flex-grow: 1;
  min-width: 200px;
}

.table-row {
  display: flex;
}

.table-row > div {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e1e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.table-row > div:nth-child(1) {
  width: 132px;
  flex-shrink: 0;
}

.table-row > div:nth-child(2) {
  flex-shrink: 0;
  min-width: 180px;
}

.table-row > div:nth-child(3) {
  flex-shrink: 0;
  min-width: 220px;
}

.table-row > div:nth-child(4) {
  flex-grow: 1;
  min-width: 200px;
}

.table-row:last-child > div {
  border-bottom: none;
}

.hidden {
  display: none;
}

.runner-image {
  width: 100px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

#pageInfo {
  font-weight: 500;
  color: #333;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  header h1 {
    font-size: 2rem;
  }

  .language-radios {
    flex-direction: column;
    gap: 10px;
  }

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

  .table-row > div {
    padding: 8px 12px;
    font-size: 14px;
  }

  .stats {
    flex-direction: column;
    gap: 5px;
  }
}
