@charset "UTF-8";
.standings-section {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.standings-table-wrapper {
  overflow-x: auto;
}

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

.standings-table th,
.standings-table td {
  padding: 0.5rem 0.5rem;
  text-align: center;
}

.standings-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}

.standings-table .col-team {
  text-align: left;
}

.standings-table .col-pos {
  width: 50px;
}

.standings-table .col-matches .matches-container {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  position: relative;
  justify-content: center;
}

.standings-table .col-matches .matches-container .matches-row {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 24px;
  overflow: visible;
}

.standings-table .col-matches .matches-container .matches-row .match-square {
  width: 20px !important;
  height: 20px !important;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
}

.standings-table .col-matches .matches-container .matches-row .match-square:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-win {
  background: #10b981;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-loss {
  background: #ef4444;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-upcoming {
  width: 20px !important;
  height: 20px !important;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
  padding: 0 !important;
  display: block !important;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-upcoming:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-empty {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: default;
}

.standings-table .col-matches .matches-container .matches-row .match-square.match-empty:hover {
  transform: none;
  box-shadow: none;
}

.standings-table .col-matches .matches-container .matches-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  flex-shrink: 0;
}

.standings-table .col-matches .matches-container .matches-scroll-btn:hover:not(.disabled) {
  color: #1e293b;
}

.standings-table .col-matches .matches-container .matches-scroll-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.standings-table .col-matches .matches-container .matches-scroll-btn svg {
  width: 16px;
  height: 16px;
}

.standings-table .team-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.standings-table .team-row:hover {
  background: #f8fafc;
}

.standings-table .team-row:last-child {
  border-bottom: none;
}

.standings-table .empty-row td {
  padding: 3rem;
  color: #94a3b8;
  font-style: italic;
}

.position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
}

.position.ninth {
  background: #ef4444;
  color: #fff;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.team-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.team-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
  font-size: 0.875rem;
}

.team-name {
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0 0.5rem;
}

/* Mobile modal for match details */
.match-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1400;
}

.match-modal .match-modal-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 1rem;
  box-shadow: 0 -6px 20px rgba(2, 6, 23, 0.08);
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.match-modal .match-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
}

/* Reduce hover effects on touch devices */
@media (hover: none) {
  .matches-row .match-square:hover {
    transform: none;
    box-shadow: none;
  }
}
.season-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.season-selector {
  display: flex;
  align-items: center;
}

.view-all {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.match-date {
  font-weight: 500;
  color: #475569;
}

.match-venue {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.match-venue svg {
  opacity: 0.6;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.team-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-align: left;
}

.team-score {
  font-size: 1.25rem;
  font-weight: 600;
  color: #475569;
  min-width: 32px;
  text-align: center;
}

.match-separator {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 0.5rem;
  flex-shrink: 0;
}

.match-sets {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  gap: 0.5rem;
}

.sets-label {
  font-weight: 500;
}

.sets-value {
  color: #475569;
}

.cup-tab {
  padding: 1.25rem 0;
}

.no-cup-data {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #64748b;
}

.no-cup-data .no-cup-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.no-cup-data h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.no-cup-data p {
  font-size: 0.875rem;
  color: #64748b;
}

.cup-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
  text-align: center;
}

.cup-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.cup-group-table-wrapper {
  margin-bottom: 0.5rem;
}

.playoff-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.playoff-stage {
  margin-bottom: 1.75rem;
}

.playoff-stage:last-child {
  margin-bottom: 0;
}

.stage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.matches-list.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Playoff match styles moved into PlayoffMatch.vue (scoped). */
.match-square.match-upcoming {
  width: 20px !important;
  height: 20px !important;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

.match-team:last-child .team-name {
  text-align: right;
}

.championship-tab {
  padding: 1.25rem 0;
}

.no-games {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #64748b;
}

.no-games .no-games-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.no-games h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.no-games p {
  font-size: 0.875rem;
  color: #64748b;
}

.championship-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.regular-season {
  margin-bottom: 1.5rem;
}

.playoff-stage {
  margin-bottom: 2rem;
}

.playoff-stage:last-child {
  margin-bottom: 0;
}

.stage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.playoff-series {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.series {
  width: 49%;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 1rem;
}

.series-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.series-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.series-team.series-winner {
  background: #f0fdf4;
  border: 2px solid #22c55e;
}

.series-team-logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.series-team-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.series-team-logo.placeholder {
  font-size: 1.5rem;
  font-weight: 700;
  color: #cbd5e1;
  background: #f1f5f9;
}

.series-team-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

.series-score {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
}

.series-vs {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
}

.series-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-match {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.series-match:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.series-match.match-finished {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.series-match .match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.series-match .match-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.series-match .match-team-logo {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.series-match .match-team-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.series-match .match-team-logo.placeholder {
  font-size: 0.875rem;
  font-weight: 700;
  color: #cbd5e1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.standings-tab {
  padding: 1.25rem 0;
}

.results-table-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.results-table .col-pos {
  width: 50px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.team-header {
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.header-team {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-row-header {
  padding: 0.75rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: left;
}

.row-team {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-small {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.team-logo-small img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.team-logo-small.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
}

.team-name-small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.points-header {
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.result-cell {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  vertical-align: middle;
}

.result-cell.diagonal {
  background: #f1f5f9;
}

.diagonal-cell {
  color: #94a3b8;
  font-size: 0.875rem;
}

.match-results {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.match-result {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.match-result:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.match-result.result-win {
  color: #059669;
  background: #d1fae5;
}

.match-result.result-loss {
  color: #dc2626;
  background: #fee2e2;
}

.match-result.result-upcoming {
  color: #64748b;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  font-size: 0.75rem;
  font-weight: 500;
}

.match-result.result-upcoming:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.match-result.result-upcoming.no-match-data {
  cursor: default;
  opacity: 0.5;
}

.match-result.result-upcoming.no-match-data:hover {
  transform: none;
  box-shadow: none;
}

.no-match {
  color: #94a3b8;
  font-size: 0.75rem;
}

.points-cell {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
}

.points-value {
  font-size: 1rem;
  color: #1e293b;
}

.member-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.35rem;
}

.member-poster {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(39, 80, 146, 0.18);
}

.member-poster:focus-visible {
  outline: 2px solid #275092;
  outline-offset: 3px;
}

.member-poster__media {
  position: relative;
  aspect-ratio: 3/4;
  background-color: #1e293b;
  overflow: hidden;
}

.member-poster__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  display: block;
}

.member-poster__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e3a5f 0%, #275092 55%, #1e293b 100%);
}

.member-poster__placeholder {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.member-poster__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.4) 42%, rgba(15, 23, 42, 0.06) 68%, transparent 100%);
  pointer-events: none;
}

.member-poster__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.1rem 1.15rem 1.15rem;
}

.member-poster__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-poster__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-poster__logo-img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 3px;
}

.member-poster__text {
  min-width: 0;
}

.member-poster__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.member-poster__details {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.9);
}

.member-directory-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.member-directory-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.member-directory-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  align-items: center;
}

@media (max-width: 640px) {
  .member-poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}
.teams-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.team-poster {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(39, 80, 146, 0.18);
}

.team-poster:hover .team-poster__media {
  transform: scale(1.02);
}

.team-poster:focus-visible {
  outline: 2px solid #275092;
  outline-offset: 3px;
}

.team-poster__media {
  position: relative;
  aspect-ratio: 16/10;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.team-poster__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e3a5f 0%, #275092 55%, #1e293b 100%);
}

.team-poster__placeholder {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.team-poster__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.4) 42%, rgba(15, 23, 42, 0.06) 68%, transparent 100%);
  pointer-events: none;
}

.team-poster__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem 1.15rem 1.15rem;
}

.team-poster__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-poster__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-poster__logo--empty {
  background: rgba(39, 80, 146, 0.92);
}

.team-poster__logo-img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 3px;
}

.team-poster__logo-fallback {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}

.team-poster__text {
  min-width: 0;
}

.team-poster__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.team-poster__city {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.9);
}

.teams-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
}

.team-show__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.ts-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.ts-header-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ts-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

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

.ts-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  background: #e5e7eb;
}

.ts-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 140px;
}

.ts-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  text-decoration: none;
  color: #275092;
  transition: background 0.2s;
}

.ts-contact-link:hover {
  background: rgba(39, 80, 146, 0.12);
}

.ts-contact-link--text {
  width: auto;
  padding: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ts-contact-icon {
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
}

.ts-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.25rem;
  min-width: 0;
}

.ts-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.ts-city {
  font-size: 0.95rem;
  color: #64748b;
}

.ts-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

.ts-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 140px;
  padding: 0.5rem 0;
}

.ts-info-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ts-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.ts-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ts-seasons-section {
  margin-bottom: 1.75rem;
}

.ts-seasons-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.ts-seasons-header-row,
.ts-seasons-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
}

.ts-seasons-header-row {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ts-seasons-row {
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

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

.ts-seasons-row:hover {
  background: #f9fafb;
}

.ts-col--season {
  font-weight: 600;
  font-size: 0.8125rem;
}

.ts-col--name {
  color: #374151;
  min-width: 0;
}

.ts-col--places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  align-items: center;
  justify-items: center;
}

.ts-seasons-table .places-icon {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
}

.ts-seasons-table .places-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25rem;
}

.ts-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.ts-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
}

.ts-tab:hover {
  background: #f9fafb;
  color: #374151;
}

.ts-tab.active {
  background: #275092;
  color: #fff;
}

.ts-tab-content {
  margin-bottom: 1rem;
}

.ts-empty {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 1.5rem;
}

.ts-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.ts-member-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.ts-member-card:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
}

.ts-member-photo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ts-member-photo-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.ts-member-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #6b7280;
}

.ts-member-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

.ts-member-number {
  color: #64748b;
  font-weight: 500;
  margin-right: 0.2rem;
}

.ts-member-position {
  font-size: 0.75rem;
  color: #6b7280;
}

.ts-member-meta {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .teams-poster-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .team-show__toolbar {
    justify-content: stretch;
  }
  .ts-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ts-header-info {
    align-items: center;
  }
  .ts-info-grid {
    justify-content: center;
  }
  .ts-seasons-header-row,
  .ts-seasons-row {
    grid-template-columns: 90px 1fr 110px;
    padding: 0.5rem 0.65rem;
    gap: 0.35rem;
  }
  .ts-col--name {
    font-size: 0.8rem;
  }
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  flex: 1;
}

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

.filter-btn {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.filter-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.referees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.referee-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.referee-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.referee-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.referee-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: #64748b;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.referee-info {
  text-align: center;
  margin-bottom: 1rem;
}

.referee-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.referee-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.referee-region,
.referee-age {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.25rem 0;
}

.referee-contacts {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 1rem;
}

.contact-item {
  font-size: 0.875rem;
  color: #475569;
  margin: 0.5rem 0;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
}

.advanced-stats-page__count {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

.advanced-stats-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.advanced-stats-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.advanced-stats-filters__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.advanced-stats-filters__toggle {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
}

.advanced-stats-filters__toggle:hover {
  background: #e2e8f0;
}

.advanced-stats-filters__content {
  margin-top: 1rem;
}

.advanced-stats-filters__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.filter-team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.filter-team__logo {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-team__logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.filter-team__logo--placeholder {
  border-radius: 50%;
  background: #e2e8f0;
}

.matches-hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.matches-section {
  margin-top: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.matches-empty {
  padding: 0.75rem;
  text-align: center;
}

.filter-empty {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.matches-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.matches-count {
  color: #64748b;
  font-weight: 500;
}

.matches-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(480px, 45vh);
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.match-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.match-item:last-child {
  border-bottom: none;
}

.match-item.match-item-selected {
  background: #eff6ff;
}

.match-item input {
  accent-color: #275092;
}

.match-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  font-size: 0.8rem;
}

.match-date {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.match-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #334155;
  font-weight: 500;
}

.match-teams__sep {
  color: #94a3b8;
  font-weight: 400;
}

.match-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.match-team__logo {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-team__logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.match-team__logo--placeholder {
  border-radius: 50%;
  background: #e2e8f0;
}

.match-badges-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.match-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.match-badge-score {
  background: #e2e8f0;
  color: #334155;
}

.match-badge-competition {
  background: #dbeafe;
  color: #1d4ed8;
}

.match-competition-icon {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.match-stats-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.match-stats-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #275092;
  background: rgba(39, 80, 146, 0.08);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.match-stats-icon:hover {
  background: rgba(39, 80, 146, 0.16);
  color: #1e3a6e;
  box-shadow: 0 0 0 2px rgba(39, 80, 146, 0.1);
}

.match-tp-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #64748b;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.advanced-stats-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.advanced-stats-table-wrap {
  max-height: min(70vh, 100dvh - 14rem);
  min-height: 12rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.advanced-stats-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.advanced-stats-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.advanced-stats-table__group-row th {
  background: #f8fafc;
  color: #275092;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0.35rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.advanced-stats-table__sub-row th {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.45rem 0.25rem;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}

.col-player {
  min-width: 170px;
  max-width: 220px;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-right: 1px solid #cbd5e1;
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
}

.advanced-stats-table__group-row .sticky-col {
  z-index: 5;
  background: #f8fafc;
}

.col-skill-group {
  border-left: 1px solid #94a3b8;
}

.col-metric {
  min-width: 40px;
  padding: 0.45rem 0.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid #cbd5e1;
}

.col-sortable {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.col-sortable:hover {
  color: #275092;
  background: #f8fafc;
}

.col-sortable.sorted-desc, .col-sortable.sorted-asc {
  color: #275092;
  background: #eff6ff;
}

.col-sortable.sorted-desc::after {
  content: " ↓";
  font-size: 0.65rem;
}

.col-sortable.sorted-asc::after {
  content: " ↑";
  font-size: 0.65rem;
}

.col-quality {
  color: #94a3b8;
}

.col-total {
  font-weight: 600;
  color: #334155;
}

.col-eff {
  color: #64748b;
  font-size: 0.72rem;
}

.col-value {
  color: #334155;
}

.quality-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.1;
}

.quality-header-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.1;
}

.quality-header-cell__symbol {
  font-weight: 600;
  border-radius: 0.2rem;
  padding: 0 0.15rem;
}

.quality-header-cell__pct {
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 500;
  border-radius: 0.2rem;
  padding: 0 0.15rem;
}

.quality-cell__value {
  font-weight: 600;
}

.quality-cell__pct {
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 500;
}

.col-value.is-hash .quality-cell__value,
.col-quality.is-hash .quality-header-cell__symbol {
  color: #16a34a;
}

.col-value.is-error .quality-cell__value,
.col-quality.is-error .quality-header-cell__symbol {
  color: #dc2626;
}

.col-value.is-hash .quality-cell__pct {
  color: #4ade80;
}

.col-quality.is-hash .quality-header-cell__pct {
  color: #4ade80;
}

.col-value.is-error .quality-cell__pct {
  color: #f87171;
}

.col-quality.is-error .quality-header-cell__pct {
  color: #f87171;
}

.col-quality.is-hash .quality-header-cell__symbol.sorted-desc,
.col-quality.is-hash .quality-header-cell__symbol.sorted-asc {
  color: #16a34a;
}

.col-quality.is-error .quality-header-cell__symbol.sorted-desc,
.col-quality.is-error .quality-header-cell__symbol.sorted-asc {
  color: #dc2626;
}

.col-quality.is-hash .quality-header-cell__pct.sorted-desc,
.col-quality.is-hash .quality-header-cell__pct.sorted-asc {
  color: #16a34a;
}

.col-quality.is-error .quality-header-cell__pct.sorted-desc,
.col-quality.is-error .quality-header-cell__pct.sorted-asc {
  color: #dc2626;
}

.advanced-stats-table__row:nth-child(even) td {
  background: #fbfdff;
}

.advanced-stats-table__row:nth-child(even) .sticky-col {
  background: #fbfdff;
}

.player-link {
  color: #275092;
  text-decoration: none;
  font-weight: 600;
}

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

.advanced-stats-table__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .advanced-stats-table-wrap {
    max-height: 60vh;
  }
  .advanced-stats-page__header {
    flex-direction: column;
  }
  .advanced-stats-page__toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .advanced-stats-filters__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .advanced-stats-filters__toolbar .ui-control {
    width: 100%;
  }
  .advanced-stats-filters__actions {
    width: 100%;
    gap: 0.25rem;
  }
  .matches-list {
    max-height: 320px;
  }
  .match-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
