/* 视图控制与列表视图 */
.view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  flex-basis: 100%;
  margin-top: 0.5rem;
  justify-content: space-between;
}

.sort-select {
  padding: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.list-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.clothes-grid.list-view {
  display: block;
}

.clothes-list-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clothes-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.4);
}

.clothes-list-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.clothes-list-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.clothes-list-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.clothes-list-right {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.clothes-list-right .wear-count {
  padding: 0.2rem 0.5rem;
}

/* 统计 - 排行榜与图表 */
.stats-section {
  margin-top: 1rem;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #B8860B 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
}

.leaderboard-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: normal;
  overflow-wrap: anywhere;
}

.leaderboard-right {
  flex-shrink: 0;
}

.leaderboard-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 215, 0, 0.8);
  font-size: 14px;
}

.bars-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar-label {
  width: 80px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.bar {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.8), rgba(255, 215, 0, 0.6));
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.tiny-bars-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0.5rem 0;
  min-height: 60px;
}

.tiny-bar {
  width: 6px;
  background: linear-gradient(180deg, #FFD700, #B8860B);
  border-radius: 2px;
  opacity: 0.85;
}
