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

body {
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.4;
}

header {
  border-bottom: 1px solid #eee;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#filters, #display-options {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
}

.filter-group button {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.5;
  padding: 0.25rem;
  white-space: nowrap;
}

.filter-group button:hover {
  opacity: 0.7;
}

.filter-group button.active {
  opacity: 1;
}


/* Main container */
main {
  padding: 1rem;
}

/* Board View */
.board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* List View */
.list {
  column-gap: 1rem;
  display: grid;
  grid-template-columns: 4rem max-content auto auto auto auto;
  margin: 0 auto;
  max-width: 50rem;
  row-gap: 8px;
}

.list-header {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.list-row {
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  padding: 0 0.5rem;
  text-align: center;
}

.list-row img {
  border-radius: 0.25rem;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.player-card {
  aspect-ratio: 9 / 16;
  background: radial-gradient(color-mix(in srgb, var(--card-color, transparent) 50%, transparent), var(--card-color, transparent));
  border-radius: 0.5rem;
  color: #fff;
  display: flex;
  flex: 0 0 8rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.player-card img {
  height: 100%;
  inset: 0;
  mix-blend-mode: multiply;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.player-card:hover img {
  mix-blend-mode: unset;
}

.board.size-sm .player-card {
  flex: 0 0 8rem;
}

.board.size-md .player-card {
  flex: 0 0 10rem;
}

.board.size-lg .player-card {
  flex: 0 0 15rem;
}

.player-rank {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.5;
  position: relative;
}

.player-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.player-info {
  position: relative;
}

.list .player-info {
  flex: 1;
}

.player-meta {
  color: #fff8;
  font-size: 14px;
}

.rookie-badge {
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

