.leaderboard-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-family: system-ui, -apple-system, sans-serif;
}

.table-header {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: white;
}

.table-header th {
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.table-header th:last-child {
  border-right: none;
}

.table-header th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.table-body {
  background: white;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.loading-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.table-container {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.table-container::-webkit-scrollbar {
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.table-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.filter-form {
  display: none;
  margin-bottom: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-input,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: #374151;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.form-input:hover,
.form-select:hover {
  border-color: #cbd5e1;
}

.submit-btn {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
  transform: translateY(0);
}

.leaderboard-row {
  background: white;
  transition: all 0.2s ease;
  border-bottom: 1px solid #e2e8f0;
}

.leaderboard-row:hover {
  background: #f8fafc;
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rank-1 { background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%); }
.rank-3 { background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%); }
.rank-other { background: linear-gradient(135deg, #475569 0%, #334155 100%); }

.username-cell {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem;
}

.listens-cell {
  color: #059669;
  font-weight: 600;
  font-size: 1rem;
}

.earnings-cell {
  color: #7c3aed;
  font-weight: 700;
  font-size: 1.1rem;
}

.table-cell {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  text-align: center;
}

.current-user-row {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 2px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
