/* League Explorer pages */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.season-grid {
  grid-template-columns: repeat(3, 1fr);
}

.season-card {
  text-decoration: none;
  color: inherit;
}

.season-card p {
  color: var(--text-secondary);
}

.quick-browse {
  margin: 1.1rem 0 0.35rem;
}

.quick-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
}

.quick-browse-head .block-title {
  margin: 0;
}

.quick-browse-head .text-muted {
  margin: 0;
  font-size: 0.8rem;
}

.quick-browse-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.quick-browse-box {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--surface-elevated);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 8px 18px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.quick-browse-box:hover {
  border-color: rgba(45, 212, 122, 0.45);
  background:
    linear-gradient(180deg, rgba(45, 212, 122, 0.1), transparent 50%),
    var(--surface-hover);
  box-shadow:
    0 0 0 1px rgba(45, 212, 122, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.quick-browse-country {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-browse-league {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-browse-meta {
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .quick-browse-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quick-browse-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    gap: 0.75rem;
  }

  .quick-browse-box {
    flex: 0 0 10.5rem;
  }
}

.empty-panel,
.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-panel {
  padding: 1.5rem;
}

.code-block {
  display: block;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: var(--accent);
  font-size: 0.9rem;
}

.text-muted {
  color: var(--text-muted);
}

.league-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.5rem;
}

.block-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.team-list,
.match-list,
.plain-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.team-list li,
.match-list li {
  border-bottom: 1px solid var(--border);
}

.team-list a,
.match-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.15rem;
  color: var(--text-primary);
}

.match-list small {
  color: var(--text-muted);
}

.is-focus {
  color: var(--accent);
  font-weight: 600;
}

.match-hero {
  margin-bottom: 1.5rem;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0.75rem 0;
}

.scoreboard .side {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
}

.scoreboard .side:last-child {
  text-align: right;
}

.scoreboard .score {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
}

.match-stats {
  margin-bottom: 1.25rem;
}

.match-stat-compare {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--surface);
}

.match-stat-compare-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.msc-team {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

.msc-team.msc-home {
  text-align: left;
}

.msc-team.msc-away {
  text-align: right;
}

.msc-vs {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.msc-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
}

.msc-row + .msc-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.msc-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.msc-val.msc-home {
  text-align: left;
}

.msc-val.msc-away {
  text-align: right;
}

.msc-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.msc-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.msc-bar {
  display: flex;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  gap: 2px;
}

.msc-bar-home,
.msc-bar-away {
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
}

.msc-bar-home {
  flex: var(--home, 0) 1 0;
  background: var(--accent);
  justify-self: end;
}

.msc-bar-away {
  flex: var(--away, 0) 1 0;
  background: rgba(148, 163, 184, 0.85);
}

.msc-bar-poss .msc-bar-home {
  background: var(--accent);
}

.msc-cards {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.msc-away.msc-cards {
  justify-content: flex-end;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

.card-chip.card-yellow {
  background: #f5c542;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.card-chip.card-red {
  background: #e5484d;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .match-stat-compare {
    padding: 0.85rem 0.8rem 0.7rem;
  }

  .msc-row {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    gap: 0.5rem;
  }

  .msc-val {
    font-size: 1.02rem;
  }

  .msc-team {
    font-size: 0.75rem;
  }
}

.match-meta {
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
}

/* Event icons (goals / cards / subs) */
.ev-ico {
  display: inline-block;
  width: 0.72rem;
  height: 0.92rem;
  border-radius: 0.12rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.ev-ico.goal {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 70% 35%, #fff 0 14%, transparent 15%),
    #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ev-ico.own_goal {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #b91c1c;
  box-shadow: inset 0 0 0 2px #fff;
}

.ev-ico.yellow {
  background: #f5c542;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.ev-ico.red {
  background: #e5484d;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.ev-ico.sub_on,
.ev-ico.sub_off {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-left: 0.38rem solid transparent;
  border-right: 0.38rem solid transparent;
}

.ev-ico.sub_on {
  border-bottom: 0.55rem solid #22c55e;
}

.ev-ico.sub_off {
  border-top: 0.55rem solid #ef4444;
}

.ev-ico.info {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.ev-min {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

.scorer-list-icons li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
}

.side-away .scorer-list-icons li {
  justify-content: flex-end;
}

.scorer-min {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ev-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.og-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fecaca;
  background: rgba(185, 28, 28, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.lineup-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
}

.lineup-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Pitch formations intentionally omitted — FootyStats match payloads have no formation slots. */


.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.plain-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.muted-list {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.error-text {
  color: var(--danger);
}

.ok-text {
  color: var(--accent);
}

@media (max-width: 900px) {
  .season-grid,
  .league-layout,
  .lineup-grid,
  .scoreboard,
  .catalog-picker {
    grid-template-columns: 1fr;
  }

  .scoreboard .side:last-child {
    text-align: left;
  }
}

.catalog-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem 1.35rem 1rem;
  margin-bottom: 2rem;
}

.catalog-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr auto;
  gap: 0.85rem 1rem;
  align-items: end;
}

.catalog-picker .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.catalog-picker .field span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.catalog-picker select,
.catalog-picker input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated, var(--bg));
  color: var(--text-primary);
}

.field-grow {
  min-width: 0;
}

.field-action .btn {
  width: 100%;
}

.catalog-meta {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.fixtures-table a {
  color: var(--text-primary);
  text-decoration: none;
}

.fixtures-table a:hover {
  color: var(--accent);
}

.data-table td.pts {
  font-weight: 700;
  color: var(--accent);
}

.data-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.data-table th.is-sortable:hover {
  color: var(--accent);
}

.data-table th.is-sortable::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  margin-left: 0.28rem;
  opacity: 0.35;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.32rem solid currentColor;
  vertical-align: middle;
}

.data-table th.is-sorted-asc::after,
.data-table th.is-sorted-desc::after {
  opacity: 1;
  color: var(--accent);
}

.data-table th.is-sorted-asc::after {
  border-top: 0;
  border-bottom: 0.32rem solid currentColor;
}

.fixtures-toggle-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.fixtures-panel {
  margin-top: 1rem;
}

.fixtures-panel[hidden] {
  display: none !important;
}

.standings-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.standings-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.standings-toolbar .block-title {
  margin: 0;
}

.view-mode-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.view-mode-btn:hover {
  color: var(--text-primary);
}

.view-mode-btn.is-active {
  background: var(--accent);
  color: #04140c;
}

.standings-cols-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 0.85rem;
}

.standings-cols-form .ms-field {
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 520px;
  margin: 0;
}

.standings-cols-form .bf-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.standings-api-note {
  margin: 0;
  font-size: 0.78rem;
}

.data-table th.has-tip {
  position: relative;
}

.data-table th.has-tip .th-label {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.data-table th.has-tip .stat-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 20;
  width: max-content;
  max-width: 16rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.data-table th.has-tip:hover .stat-tip,
.data-table th.has-tip:focus-within .stat-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Heroku match detail — home | timeline | away */

.match-detail-page .match-scoreboard {
  align-items: start;
}

.match-detail-page .side-home {
  text-align: left;
}

.match-detail-page .side-away {
  text-align: right;
}

.scorer-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.side-away .scorer-list {
  text-align: right;
}

.match-detail-page .score small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.match-detail-meta {
  margin-bottom: 1.5rem;
}

.match-details-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.match-details-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-note {
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.85;
}

.match-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.team-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem 1.1rem;
}

.panel-subtitle {
  margin: 1rem 0 0.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lineup-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-panel-away .lineup-list li {
  flex-direction: row-reverse;
  text-align: right;
}

.lineup-list .shirt {
  display: inline-flex;
  min-width: 1.6rem;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mini-event {
  font-size: 0.78rem;
  color: var(--accent);
}

.timeline-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem 1.1rem 1.25rem;
}

.match-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.match-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border);
}

.timeline-item {
  display: flex;
  margin: 0.65rem 0;
}

.timeline-home {
  justify-content: flex-start;
  padding-right: 52%;
}

.timeline-away {
  justify-content: flex-end;
  padding-left: 52%;
}

.timeline-neutral {
  justify-content: center;
}

.timeline-bubble {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.timeline-home .timeline-bubble {
  border-color: rgba(56, 189, 120, 0.25);
}

.timeline-away .timeline-bubble {
  border-color: rgba(96, 165, 250, 0.25);
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-neutral .timeline-bubble {
  background: var(--surface);
}

.timeline-minute {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2.2rem;
}

.timeline-icon {
  font-size: 1rem;
  line-height: 1;
}

.timeline-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.timeline-copy strong {
  font-size: 0.92rem;
}

.timeline-copy span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-goal .timeline-icon {
  filter: none;
}

.trends-list li {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .match-detail-layout {
    grid-template-columns: 1fr;
  }

  .match-timeline::before {
    left: 0.75rem;
    transform: none;
  }

  .timeline-home,
  .timeline-away,
  .timeline-neutral {
    padding: 0 0 0 1.5rem;
    justify-content: flex-start;
  }

  .timeline-away .timeline-bubble {
    flex-direction: row;
    text-align: left;
  }

  .team-panel-away .lineup-list li {
    flex-direction: row;
    text-align: left;
  }
}

.person-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

.match-officials {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.match-officials p {
  margin: 0.35rem 0;
}

.profile-header {
  margin-bottom: 1rem;
}

.player-profile-page .profile-section {
  margin-bottom: 2rem;
}

.profile-section-lead {
  margin: -0.35rem 0 1rem;
}

.profile-filters {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto auto;
  gap: 0.85rem 1rem;
  align-items: end;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-filters .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-filters .field span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-filters select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated, var(--bg));
  color: var(--text-primary);
}

.profile-filters .btn {
  width: 100%;
}

.player-history-table tr.is-selected {
  background: rgba(56, 189, 120, 0.08);
}

.team-profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(56, 189, 120, 0.08), transparent 42%),
    var(--surface);
}

.team-crest {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border);
  padding: 0.35rem;
}

.team-profile-main {
  min-width: 0;
  flex: 1;
}

.team-profile-main h1 {
  margin: 0.15rem 0 0.35rem;
}

.team-aka {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
}

.team-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem 1.1rem;
  margin: 0;
}

.team-meta > div {
  min-width: 0;
}

.team-meta dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.team-meta dd {
  margin: 0.15rem 0 0;
  color: var(--text-primary);
  font-weight: 600;
}

.team-seasons-toolbar {
  margin-bottom: 0.85rem;
}

.team-seasons-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.team-seasons-more {
  margin: 0.75rem 0 1.5rem;
}

.team-history-filters {
  align-items: end;
}

.player-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
}

.player-history-filters .filter-select {
  min-width: 11rem;
  width: auto;
  min-height: 2.15rem;
  padding: 0.4rem 2rem 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #e8e8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 0.7rem center / 0.95rem no-repeat;
  color: #111;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.player-history-filters .filter-select:hover,
.player-history-filters .filter-select:focus {
  background-color: #f0f0f0;
  outline: none;
}

.player-history-filters .filter-select option {
  background: #fff;
  color: #111;
}

.season-current-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
  background: rgba(56, 189, 120, 0.18);
}

.data-table tr.is-current-season {
  background: rgba(56, 189, 120, 0.06);
}

.players-table-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.players-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.players-table-page .filter-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .profile-filters {
    grid-template-columns: 1fr;
  }

  .team-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-meta {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}


