:root {
  color-scheme: light;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #1d4ed8 0, transparent 38rem),
    #0f172a;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #93c5fd;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 56px);
}

.reload-button,
.tab {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.reload-button {
  padding: 12px 18px;
  background: #3b82f6;
  color: white;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 12px 18px;
  background: #1e293b;
  color: #cbd5e1;
}

.tab.active {
  background: #f8fafc;
  color: #0f172a;
}

.season-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.season-panel label {
  font-weight: 700;
}

select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #475569;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font: inherit;
}

.status {
  margin: 16px 0;
  color: #cbd5e1;
}

.status.error {
  color: #fca5a5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #93c5fd;
  background: #1e293b;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #1e293b;
}

.rank {
  width: 56px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 960px);
    padding-top: 24px;
  }

  .header {
    align-items: center;
  }

  .season-panel {
    align-items: stretch;
    flex-direction: column;
  }

  select {
    width: 100%;
  }

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