.chart-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.chart-legend-color {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

.field-error .field-error-input,
.field-error input.field-error-input,
.field-error select.field-error-input,
.field-error textarea.field-error-input {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.field-error label {
  color: #dc3545;
  font-weight: 600;
}

.field-error-input {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-section.field-error {
  border: 2px solid #dc3545;
  border-radius: 0.75rem;
  padding: 1.5rem;
  background-color: #fff5f5;
}

.form-section.field-error h2 {
  color: #dc3545;
}

.profile-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #275092;
  margin: 0;
}

.player-profile {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.player-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert.alert-info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.alert.alert-success {
  background: #d1fae5;
  border: 1px solid #86efac;
  color: #065f46;
}

.alert.alert-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.alert strong {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.alert p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.profile-form {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section:last-of-type {
  margin-bottom: 1.5rem;
}

.form-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.section-description {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group .input-with-checkbox {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.input-with-icon-field {
  padding-left: 2.5rem !important;
}

label[for],
.input-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
  display: block;
}

.required-mark {
  color: #dc2626;
  margin-left: 0.15em;
  font-weight: 700;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
  cursor: pointer;
  margin-top: 0.25rem;
}

.btn-add {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add:hover {
  background: #2563eb;
}

.seasons-flex-wrapper {
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.seasons-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb;
}

.season-col-header,
.status-col-header,
.team-col-header,
.position-col-header,
.number-col-header,
.photo-col-header,
.actions-col-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.season-col-header {
  width: 15%;
}

.season-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s;
}

.season-row:hover {
  background: #f9fafb;
}

.season-row:last-child {
  border-bottom: none;
}

.season-entries-wrapper {
  width: 85%;
  display: flex;
  flex-direction: column;
}

.season-entry-block {
  border-bottom: 1px solid #f1f5f9;
}

.season-entry-block:last-child {
  border-bottom: none;
}

.season-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.season-entry-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0 0.75rem 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.season-entry-titles-label {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.season-entry-titles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  flex: 1 1 auto;
}

.season-entry-title-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #1e293b;
  cursor: pointer;
}

.season-entry-title-item input[type=checkbox] {
  flex-shrink: 0;
}

.season-entry-title-item.is-disabled {
  opacity: 0.6;
  cursor: default;
}

.season-entry-title-label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .season-entry-titles {
    flex-direction: column;
    align-items: stretch;
  }
}
.season-col,
.status-col,
.team-col,
.position-col,
.number-col,
.photo-col,
.actions-col,
.approve-col {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.season-col {
  width: 15%;
}

.season-col .season-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
  line-height: 36px;
}

.status-col .status-select,
.status-col .team-select,
.status-col .position-select,
.team-col .status-select,
.team-col .team-select,
.team-col .position-select,
.position-col .status-select,
.position-col .team-select,
.position-col .position-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8125rem;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  height: 36px;
  box-sizing: border-box;
}

.status-col .status-select:focus,
.status-col .team-select:focus,
.status-col .position-select:focus,
.team-col .status-select:focus,
.team-col .team-select:focus,
.team-col .position-select:focus,
.position-col .status-select:focus,
.position-col .team-select:focus,
.position-col .position-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status-col .status-select.error,
.status-col .team-select.error,
.status-col .position-select.error,
.team-col .status-select.error,
.team-col .team-select.error,
.team-col .position-select.error,
.position-col .status-select.error,
.position-col .team-select.error,
.position-col .position-select.error {
  border-color: #ef4444;
}

.team-col .team-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.team-col .team-select {
  flex: 1;
  min-width: 0;
}

.team-col .team-select.has-logo {
  background-size: 20px 20px !important;
  background-position: 8px center !important;
  background-repeat: no-repeat !important;
  padding-left: 36px !important;
}

.position-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.position-select-wrapper .position-select {
  flex: 1;
  min-width: 0;
}

.season-field-required {
  flex-shrink: 0;
  margin-left: 0;
  line-height: 1;
}

.number-col .number-input {
  width: 100%;
  max-width: 80px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8125rem;
  background: #fff;
  color: #1e293b;
  text-align: center;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  height: 36px;
  box-sizing: border-box;
}

.number-col .number-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status-badge {
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove {
  padding: 0.375rem 0.75rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-remove:hover {
  background: #dc2626;
}

.season-skip {
  margin-bottom: 1rem;
}

.skip-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
}

.season-fields {
  margin-top: 1rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

.form-actions .alert {
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.form-actions .alert strong {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.form-actions .alert p {
  font-size: 0.8125rem;
  margin: 0;
}

.photo-upload-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-photo-section .profile-photo-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-photo-section .profile-photo-container {
  flex: 0 0 auto;
  min-width: 200px;
}

.profile-photo-section .profile-photo-container h2 {
  margin-bottom: 1rem;
}

.profile-photo-section .profile-data-container {
  flex: 1;
  min-width: 0;
}

.profile-photo-section .profile-data-container h2 {
  margin-bottom: 1rem;
}

.photo-preview-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.photo-preview-img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 3rem;
}

.photo-placeholder p {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.photo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-input {
  display: none;
}

.btn-upload,
.btn-remove {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-upload {
  background-color: #3b82f6;
  color: white;
}

.btn-upload:hover:not(:disabled) {
  background-color: #2563eb;
}

.btn-remove {
  background-color: #ef4444;
  color: white;
}

.btn-remove:hover:not(:disabled) {
  background-color: #dc2626;
}

.btn-upload:disabled,
.btn-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.season-photo-section {
  flex-shrink: 0;
}

.season-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  margin-bottom: 0.5rem;
}

.season-photo-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.season-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 2rem;
}

.season-photo-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-upload-small,
.btn-remove-small {
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-upload-small {
  background-color: #3b82f6;
  color: white;
}

.btn-upload-small:hover:not(:disabled) {
  background-color: #2563eb;
}

.btn-remove-small {
  background-color: #ef4444;
  color: white;
  padding: 0.375rem 0.5rem;
}

.btn-remove-small:hover:not(:disabled) {
  background-color: #dc2626;
}

.season-content {
  display: flex;
  gap: 1.5rem;
}

.profile-form.read-only {
  opacity: 0.8;
}

.form-section h2 {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: rgb(29.8390243902, 111.4024390244, 244.6609756098);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.photo-upload-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photo-cell-preview {
  width: 32px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.photo-cell-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.photo-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.photo-upload-btn img {
  width: 16px;
  height: 16px;
}

.photo-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.photo-remove-btn img {
  width: 16px;
  height: 16px;
}

.photo-file-input {
  display: none;
}

.photo-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.5rem;
}

.stats-page {
  position: relative;
}

.header-left {
  flex: 1;
}

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.25rem 0 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
}

.compare-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  transition: all 0.15s;
}

.compare-link:hover {
  background: #3b82f6;
  color: #fff;
}

.back-link {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
}

.back-link:hover {
  color: #3b82f6;
}

.subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.match-filter {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow: hidden;
}

.dropdown-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-actions button {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  background: #f1f5f9;
  border: none;
  border-radius: 5px;
  color: #475569;
  cursor: pointer;
}

.dropdown-actions button:hover {
  background: #e2e8f0;
}

.dropdown-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.match-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.1s;
}

.match-option:hover {
  background: #f8fafc;
}

.match-option input {
  width: 14px;
  height: 14px;
  accent-color: #3b82f6;
  flex-shrink: 0;
}

.match-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
}

.match-date {
  color: #64748b;
  flex-shrink: 0;
}

.match-teams {
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-score {
  color: #94a3b8;
  flex-shrink: 0;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: 12px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stats-summary {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.summary-label {
  font-size: 0.8rem;
  color: #64748b;
}

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

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.card-icon {
  font-size: 1rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.card-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.card-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.detail-item .detail-label {
  color: #64748b;
}

.detail-item .detail-value {
  font-weight: 600;
  color: #475569;
}

.detail-item.positive .detail-value {
  color: #22c55e;
}

.detail-item.negative .detail-value {
  color: #ef4444;
}

.chart-section {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-header h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.metric-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.metric-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.chart-container {
  height: 220px;
  position: relative;
}

.chart-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.player-stats-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.hero-main {
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  font-weight: 700;
  color: #275092;
}

.hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #eff6ff;
  color: #275092;
}

.hero-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

.hero-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.team-logo {
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
}

.hero-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.hero-link {
  font-size: 0.85rem;
  color: #275092;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid #275092;
  border-radius: 6px;
}

.hero-link:hover {
  background: #275092;
  color: #fff;
}

.period-filter {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.period-filter__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.period-filter__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.period-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.period-chip--active {
  background: #275092;
  border-color: #275092;
  color: #fff;
}

.period-filter__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.period-summary {
  font-size: 0.85rem;
  color: #64748b;
}

.btn-analytics {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: #275092;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-analytics:hover {
  background: #1e3d6f;
}

.position-overview {
  margin-bottom: 1.25rem;
}

.position-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.kpi-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #275092;
  line-height: 1.1;
}

.kpi-card__label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.kpi-card__hint {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.position-overview__meta {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.personal-records-highlight {
  margin-bottom: 1.25rem;
}

.personal-records-highlight__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.record-highlight-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.record-highlight-card--empty {
  color: #94a3b8;
  font-size: 0.9rem;
}

.record-highlight-card__value {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.record-value {
  font-size: 2rem;
  font-weight: 700;
  color: #275092;
  line-height: 1;
}

.record-metric-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.record-date {
  font-size: 0.8rem;
  color: #64748b;
}

.record-teams {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
}

.record-vs {
  color: #94a3b8;
}

.record-change-btn {
  margin-left: auto;
  font-size: 0.8rem;
  color: #275092;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.record-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.record-modal {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  width: 100%;
  max-width: 360px;
}

.record-modal h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.record-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.record-modal__fields label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
}

.record-modal__fields select {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.record-modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-accordion {
  margin-bottom: 1.5rem;
}

.skill-accordion__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.skill-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.skill-section__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
}

.skill-section__header--open {
  border-bottom: 1px solid #e2e8f0;
}

.skill-section__chevron {
  font-size: 0.65rem;
  color: #64748b;
  width: 1rem;
}

.skill-section__name {
  font-weight: 600;
  color: #1e293b;
}

.skill-section__main {
  margin-left: auto;
  font-weight: 700;
  color: #275092;
}

.skill-section__body {
  padding: 0.75rem 1rem 1rem;
}

.skill-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.skill-detail-row__label {
  color: #64748b;
}

.skill-detail-row__value {
  font-weight: 600;
}

.skill-detail-row__value.positive {
  color: #16a34a;
}

.skill-detail-row__value.negative {
  color: #dc2626;
}

.skill-formula-toggle {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #275092;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.skill-formula {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.skill-accordion__empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

.analytics-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1500;
}

.analytics-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 1501;
  display: flex;
  flex-direction: column;
}

.analytics-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.analytics-drawer__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.analytics-drawer__close {
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
}

.analytics-drawer__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.analytics-tab {
  flex: 1;
  min-width: -moz-max-content;
  min-width: max-content;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #64748b;
}

.analytics-tab--active {
  color: #275092;
  border-bottom-color: #275092;
  font-weight: 600;
}

.analytics-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.dvw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.75rem;
}

.dvw-legend__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dvw-legend__symbol {
  font-weight: 700;
  min-width: 1ch;
}

.dvw-legend__symbol.q-perfect {
  color: #16a34a;
}

.dvw-legend__symbol.q-error {
  color: #dc2626;
}

.match-stats-table-wrap {
  overflow-x: auto;
}

.match-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.match-stats-table th,
.match-stats-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.match-stats-table th {
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
}

.match-stats-table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.match-stats-table .col-points {
  font-weight: 600;
  color: #275092;
}

.match-stats-table__empty {
  padding: 1rem;
  color: #94a3b8;
  text-align: center;
}

.btn-primary,
.btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary {
  background: #275092;
  color: #fff;
  border: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
  .player-stats-hero {
    flex-direction: column;
  }
  .record-change-btn {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}
.back-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #1e293b;
}

.player-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.player-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #64748b;
}

.player-details h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.number-badge {
  background: #1e293b;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.position {
  color: #64748b;
  font-size: 0.9rem;
}

.stats-section,
.matches-section {
  margin-bottom: 2rem;
}

.stats-section h2,
.matches-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card.positive {
  background: #dcfce7;
}

.stat-card.positive .stat-value {
  color: #16a34a;
}

.stat-card.negative {
  background: #fee2e2;
}

.stat-card.negative .stat-value {
  color: #dc2626;
}

.matches-table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.matches-table th,
.matches-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.matches-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.matches-table td {
  color: #1e293b;
}

.matches-table td.positive {
  color: #16a34a;
  font-weight: 600;
}

.matches-table td.negative {
  color: #dc2626;
  font-weight: 600;
}

.matches-table tr:last-child td {
  border-bottom: none;
}

.guest-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  padding: 1.5rem 1rem;
}

.guest-layout-container {
  width: 100%;
  max-width: 28rem;
}

.guest-layout-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.guest-layout-card {
  overflow: hidden;
  background-color: white;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  padding: 1.5rem;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.auth-link {
  color: #3b82f6;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.form-actions {
  margin-top: 1rem;
}

.btn-primary {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background-color: #2563eb;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opacity-25 {
  opacity: 0.25;
}
