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

body {
  font-family: 'Barlow', sans-serif;
  background: #111318;
  color: #e5e7eb;
  padding: 30px 20px;
  min-height: 100vh;
}

.app {
  max-width: 600px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 28px;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: #12c92a;
  letter-spacing: 4px;
  line-height: 1;
}

.subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6b7280;
  margin-top: 6px;
}

.card {
  background: #1c1f26;
  border: 1px solid #2a2d35;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b7280;
  margin-bottom: 14px;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input,
.input-row select {
  flex: 1;
  background: #13151a;
  border: 1px solid #2a2d35;
  border-radius: 10px;
  color: #e5e7eb;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  outline: none;
}

.input-row select {
  flex: 0 0 120px;
}

.input-row input:focus,
.input-row select:focus {
  border-color: #12c92a;
}

.btn-primary {
  background: #12c92a;
  color: #0a1a0e;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-primary:active {
  transform: scale(0.97);
}

#error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  min-height: 20px;
  margin-top: 10px;
}

#player-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #13151a;
  border-radius: 10px;
  padding: 10px 14px;
  border-left: 3px solid transparent;
}

#player-list li.strong { border-left-color: #12c92a; }
#player-list li.medium { border-left-color: #f0c040; }
#player-list li.weak   { border-left-color: #e74c3c; }

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
}

.player-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-strong { background: #0d3a15; color: #12c92a; }
.badge-medium { background: #3a2e05; color: #f0c040; }
.badge-weak   { background: #3a0d0d; color: #e74c3c; }

.remove-btn {
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: #e74c3c;
}

.split-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.split-row input:focus {
  border-color: #12c92a;
}

.split-row .btn-primary {
  flex: 1;
}

#teams-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.team-card {
  background: #1c1f26;
  border: 1px solid #2a2d35;
  border-radius: 14px;
  padding: 16px;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2d35;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #12c92a;
}

.team-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.team-score-label {
  font-size: 0.72rem;
  color: #6b7280;
  text-align: right;
  margin-bottom: 4px;
}

.score-bar {
  width: 80px;
  height: 3px;
  background: #2a2d35;
  border-radius: 2px;
}

.score-fill {
  height: 3px;
  background: #12c92a;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.team-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #1a1d24;
}

.team-player:last-child {
  border-bottom: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-strong { background: #12c92a; }
.dot-medium { background: #f0c040; }
.dot-weak   { background: #e74c3c; }

.team-player-name {
  font-size: 0.9rem;
  color: #d1d5db;
}

.btn-reset {
  width: 100%;
  background: transparent;
  border: 1px solid #2a2d35;
  color: #6b7280;
  border-radius: 10px;
  padding: 11px;
  font-size: 0.85rem;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-reset:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.split-row input {
  width: 80px;
  background: #13151a;
  border: 1px solid #2a2d35;
  border-radius: 10px;
  color: #e5e7eb;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  text-align: center;
  outline: none;
  color-scheme: dark;
}