.fdt-champ-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.fdt-champ-logo img {
  max-width: 80px;
  height: auto;
}

.fdt-champ-title {
  margin: 0 0 8px;
  font-size: 1.5em;
}

.fdt-season-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fdt-season-link {
  padding: 2px 8px;
  border: 1px solid var(--fdt-border, #ccc);
  border-radius: var(--fdt-radius-sm, 4px);
  font-size: 0.85em;
  text-decoration: none;
  color: inherit;
}
.fdt-season-link.fdt-active {
  background: var(--fdt-primary, #007cba);
  color: #fff;
  border-color: var(--fdt-primary, #007cba);
}

.fdt-stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.fdt-stage-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--fdt-border, #ccc);
  border-radius: var(--fdt-radius-sm, 4px);
  color: var(--fdt-text, #1E293B);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.fdt-stage-nav button:hover {
  background: var(--fdt-bg-alt, #f3f3f3);
}
.fdt-stage-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.fdt-stage-nav button:disabled:hover {
  background: none;
}

.fdt-stage-selector {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.fdt-stage-select,
.fdt-round-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748B' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  max-width: 100%;
  height: unset;
}

.fdt-stage-select {
  font-size: 1.1em;
  font-weight: 600;
  padding: 4px 22px 4px 0;
}

.fdt-round-select {
  font-size: 1em;
  font-weight: 600;
  padding: 4px 20px 4px 0;
}

.fdt-stage-panel {
  display: none;
}
.fdt-stage-panel.fdt-active {
  display: block;
}

.fdt-stage-group {
  margin-bottom: 32px;
}
.fdt-stage-group:last-child {
  margin-bottom: 0;
}

.fdt-stage-group-title {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 12px;
}

.fdt-standings-rounds-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .fdt-standings-rounds-row {
    grid-template-columns: 1fr;
  }
}

.fdt-standings-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  position: relative;
}

.fdt-standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9em;
}
.fdt-standings-table th,
.fdt-standings-table td {
  box-sizing: border-box;
  padding: 6px 8px;
  border-bottom: 1px solid var(--fdt-border, #eee);
  text-align: center;
  white-space: nowrap;
}
.fdt-standings-table td {
  font-variant-numeric: tabular-nums;
}
.fdt-standings-table .fdt-st-pos {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--fdt-bg, #fff);
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  padding-left: 6px;
  padding-right: 2px;
}
.fdt-standings-table .fdt-st-team {
  text-align: left;
  min-width: 140px;
  font-variant-numeric: normal;
  position: sticky;
  left: 32px;
  z-index: 2;
  background: var(--fdt-bg, #fff);
  box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
}
.fdt-standings-table thead th {
  background: var(--fdt-primary, #2c3e50);
  color: #fff;
  font-weight: 600;
}
.fdt-standings-table thead th.fdt-st-pos, .fdt-standings-table thead th.fdt-st-team {
  background: var(--fdt-primary, #2c3e50);
  z-index: 3;
}
.fdt-standings-table tbody tr:hover {
  background: var(--fdt-bg-alt, #f8f8f8);
}
.fdt-standings-table tbody tr td.fdt-st-pos {
  border-left: 3px solid var(--zone-color, transparent);
}
.fdt-standings-table .fdt-st-form {
  min-width: 60px;
}

.fdt-st-team {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.fdt-st-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.fdt-st-team-logo--placeholder {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--fdt-border, #ddd);
  border-radius: 50%;
}

.fdt-st-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fdt-live, #DC3545);
  flex-shrink: 0;
  animation: fdt-pulse 1.4s ease-in-out infinite;
}

.fdt-form-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 1px;
}

.fdt-form-w {
  background: var(--fdt-success, #27ae60);
}

.fdt-form-d {
  background: var(--fdt-text-light, #94A3B8);
}

.fdt-form-l {
  background: var(--fdt-danger, #e74c3c);
}

.fdt-standings-legend {
  margin-top: 12px;
  font-size: 0.8em;
  color: var(--fdt-text-muted, #555);
}

.fdt-legend-zones {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fdt-legend-zones li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fdt-legend-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.fdt-round-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.fdt-round-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--fdt-border, #ccc);
  border-radius: var(--fdt-radius-sm, 4px);
  color: var(--fdt-text, #1E293B);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.fdt-round-nav button:hover {
  background: var(--fdt-bg-alt, #f3f3f3);
}
.fdt-round-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.fdt-round-nav button:disabled:hover {
  background: none;
}

.fdt-round-selector {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.fdt-round-games--loading {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.fdt-round-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  text-align: center;
  color: var(--fdt-text-muted, #555);
}

.fdt-round-error-icon {
  font-size: 1.5em;
}

.fdt-round-error-retry {
  background: none;
  border: 1px solid var(--fdt-border, #ccc);
  border-radius: var(--fdt-radius-sm, 4px);
  cursor: pointer;
  padding: 6px 14px;
}
.fdt-round-error-retry:hover {
  background: var(--fdt-bg-alt, #f3f3f3);
}

.fdt-round-games {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fdt-champ-game-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--fdt-border, #E2E8F0);
  border-radius: var(--fdt-radius, 6px);
  background: var(--fdt-bg-alt, #F8FAFC);
  text-decoration: none;
  color: var(--fdt-text, #1E293B);
}
.fdt-champ-game-card.fdt-live {
  background: var(--fdt-live-bg, #FEF2F2);
  border-color: #F3C6C9;
}

.fdt-champ-venue {
  text-align: center;
  font-size: 9px;
  color: var(--fdt-text-muted, #64748B);
}

.fdt-champ-game-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fdt-champ-team {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.fdt-champ-team.fdt-away {
  flex-direction: row-reverse;
}
.fdt-champ-team.fdt-tbd .fdt-champ-nickname {
  font-weight: 600;
  font-style: italic;
  color: var(--fdt-text-muted, #64748B);
}

.fdt-champ-shield {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dfe6ee;
  flex-shrink: 0;
  object-fit: contain;
}

.fdt-champ-nickname {
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  text-align: right;
  no-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fdt-champ-team.fdt-away .fdt-champ-nickname {
  text-align: left;
}

.fdt-champ-result {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 38px;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.fdt-champ-x {
  font-size: 11px;
  color: var(--fdt-text-muted, #64748B);
  font-weight: 400;
}

.fdt-champ-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fdt-champ-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
}
.fdt-champ-badge--live {
  background: var(--fdt-live, #DC3545);
  animation: fdt-pulse 1.4s ease-in-out infinite;
}
.fdt-champ-badge--finished {
  background: var(--fdt-text-light, #94A3B8);
}

.fdt-champ-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--fdt-text-muted, #64748B);
}

@keyframes fdt-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.fdt-keys-matchups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fdt-keys-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--fdt-text-muted, #64748B);
  margin: 0 0 8px;
}

.fdt-keys-matchup-pair,
.fdt-keys-matchup-single {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 600px) {
  .fdt-keys-matchup-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .fdt-keys-matchup-single {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
