/* /league/team/<id>/ — макет Figma node 0:3 (моя команда) */
.page-team-detail {
  --td-frame: 1345px;
  --td-col-about: 379px;
  --td-col-ach: 380px;
}

.page-team-detail .lhd-main {
  padding: 0 clamp(16px, 2vw, 32px);
}

.page-team-detail .lhd-page {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  box-sizing: border-box;
  align-self: center;
}

.page-team-detail .td-wrap.prof-inner {
  padding-top: 24px;
  padding-bottom: 80px;
}

/* —— Шапка как в профиле —— */
.team-league-page .td-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.team-league-page .td-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-league-page .td-format-badge {
  border-color: #02b122;
  color: #02b122;
}

.team-league-page .td-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.team-league-page .td-head-aside .td-head-stats {
  order: 1;
}

.team-league-page .td-head-aside .td-head-actions {
  order: 2;
}

.team-league-page .td-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.team-league-page .td-head-stats {
  flex-direction: row;
  align-items: flex-end;
  gap: 48px;
  margin-left: 0;
  padding-top: 0;
}

.team-league-page .td-btn-invite,
.team-league-page .td-btn-share {
  transform: none;
}

.team-league-page .prof-head-rule {
  display: none;
}

/* Вкладки — Figma node 24:30: линия под рядом, ~12px до блока состава */
.team-league-page .prof-head {
  padding-bottom: 20px;
}

.team-league-page.profile-league-page .prof-tabs,
.team-league-page .td-tabs--team {
  margin-top: 8px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #424242;
  width: 100%;
}

.team-league-page .td-tabs--team .td-tab {
  position: relative;
  padding: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #424242;
  border-bottom: none;
  margin-bottom: 0;
}

.team-league-page .td-tabs--team .td-tab:hover {
  color: #bebebe;
}

.team-league-page .td-tabs--team .td-tab.active {
  color: #fff;
  border-bottom-color: transparent;
}

.team-league-page .td-tabs--team .td-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  min-width: 48px;
  max-width: 120px;
  height: 2px;
  background: #007315;
  z-index: 1;
}

.page-team-detail .td-btn-invite,
.page-team-detail .td-btn-share {
  min-width: 140px;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-team-detail .td-btn-invite {
  border: 1px solid #424242;
  background: transparent;
  color: #BEBEBE;
}

.page-team-detail .td-btn-invite:hover {
  background: rgba(66, 66, 66, 0.25);
}

.page-team-detail .td-btn-invite.td-muted,
.page-team-detail .td-btn-invite[disabled] {
  border-color: #424242;
  color: #6c6c6c;
  cursor: default;
  opacity: 0.85;
}

.page-team-detail .td-btn-share {
  border: 1px solid #007315;
  background: transparent;
  color: #BEBEBE;
}

.page-team-detail .td-btn-share:hover {
  background: rgba(0, 115, 21, 0.15);
}

/* —— Tabs —— */
.page-team-detail .td-tabs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.page-team-detail .td-tab {
  background: none;
  border: none;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
}

.page-team-detail .td-panels {
  margin-top: 12px;
}

.page-team-detail .td-panel {
  display: none;
}

.page-team-detail .td-panel.is-active {
  display: block;
}

/* —— Roster strip —— */
.page-team-detail .td-roster {
  position: relative;
  border: none;
  border-radius: 12px;
  width: 100%;
  max-width: var(--td-frame);
  min-height: 256px;
  padding: 24px 28px 20px;
  margin-bottom: 17px;
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

.page-team-detail .td-roster__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-team-detail .td-roster__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.92;
}

.page-team-detail .td-roster__track {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  min-height: 200px;
  padding-bottom: 4px;
}

.page-team-detail .td-roster__track--center {
  justify-content: center;
}

.page-team-detail .td-roster__track--captain {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #424242 transparent;
}

.page-team-detail .td-roster__group {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-shrink: 0;
}

.page-team-detail .td-roster__group--left {
  justify-content: flex-end;
}

.page-team-detail .td-roster__group--center,
.page-team-detail .td-roster__group--center-all {
  justify-content: center;
  flex-shrink: 0;
}

.page-team-detail .td-roster__group--right {
  justify-content: flex-start;
}

.page-team-detail .td-roster__group--center-all {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.page-team-detail .td-roster__card {
  width: 135px;
  flex-shrink: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.page-team-detail .td-roster__photo {
  width: 135px;
  height: 135px;
  border: 2px solid #424242;
  border-radius: 12px;
  background: #141414;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-team-detail .td-roster__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.page-team-detail .td-roster__name {
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #bebebe;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-team-detail .td-roster__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 81px;
  height: 29px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  box-sizing: border-box;
}

/* Role colors — league-role-colors.css */

.page-team-detail .td-roster__empty {
  position: relative;
  z-index: 1;
  color: #424242;
  font-size: 14px;
  text-align: center;
  padding: 40px 16px;
}

/* —— Three columns (Figma: 379 | ~546 stats | ~380 achievements) —— */
.page-team-detail .td-grid-3 {
  display: grid;
  grid-template-columns: var(--td-col-about) minmax(0, 1fr) var(--td-col-ach);
  gap: 17px;
  margin-bottom: 17px;
  width: 100%;
  max-width: var(--td-frame);
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .page-team-detail .td-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .page-team-detail .td-panel-card--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .page-team-detail .td-grid-3 {
    grid-template-columns: 1fr;
  }
}

.page-team-detail .td-panel-card {
  border: 1px solid #424242;
  border-radius: 15px;
  background: transparent;
  padding: 22px 24px 20px;
  min-height: 363px;
  box-sizing: border-box;
  min-width: 0;
}

.page-team-detail .td-panel-card__title {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #424242;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-team-detail .td-about-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
}

.page-team-detail .td-about-row span:first-child {
  color: #424242;
  flex-shrink: 0;
}

.page-team-detail .td-about-row span:last-child {
  color: #bebebe;
  text-align: right;
}

/* Stats grid — макет Figma (3×2) */
.page-team-detail .td-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.page-team-detail .td-stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #424242;
  border-radius: 5px;
  background: transparent;
  min-height: 79px;
  padding: 12px 14px;
  box-sizing: border-box;
  min-width: 0;
}

.page-team-detail .td-stat-box__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-team-detail .td-stat-box__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.page-team-detail .td-stat-box__body {
  min-width: 0;
  flex: 1;
}

.page-team-detail .td-stat-box__icon--glyph {
  font-size: 22px;
  font-weight: 600;
  color: #424242;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-team-detail .td-stat-box__icon--wl {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-team-detail .td-stat-box__label {
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #424242;
  line-height: 1.2;
  margin-bottom: 4px;
}

.page-team-detail .td-stat-box__value {
  font-family: 'Exo 2', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

/* Achievements */
.page-team-detail .td-ach {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #424242;
}

.page-team-detail .td-ach:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.page-team-detail .td-ach__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.page-team-detail .td-ach__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-team-detail .td-ach__place {
  font-size: 18px;
  font-weight: 600;
  color: #bebebe;
  line-height: 1.2;
}

.page-team-detail .td-ach__tour {
  font-size: 14px;
  font-weight: 600;
  color: #424242;
  margin-top: 4px;
  text-transform: uppercase;
  line-height: 1.25;
  word-break: break-word;
}

.page-team-detail .td-ach-empty {
  color: #424242;
  font-size: 14px;
}

/* —— Matches table —— */
.page-team-detail .td-matches-card {
  border: 1px solid #424242;
  border-radius: 12px;
  padding: 20px 24px 16px;
  background: rgba(7, 7, 7, 0);
  width: 100%;
  max-width: var(--td-frame);
  box-sizing: border-box;
}

.page-team-detail .td-matches-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-team-detail .td-matches-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #bebebe;
  text-transform: uppercase;
}

.page-team-detail .td-matches-all {
  font-size: 15px;
  font-weight: 600;
  color: #02b122;
  text-decoration: none;
  text-transform: lowercase;
}

.page-team-detail .td-matches-all:hover {
  text-decoration: underline;
}

.page-team-detail .td-matches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-weight: 600;
}

.page-team-detail .td-matches-table thead th {
  text-align: left;
  color: #424242;
  font-weight: 600;
  padding: 0 12px 14px 0;
  text-transform: uppercase;
  font-size: 14px;
}

.page-team-detail .td-matches-table tbody tr {
  border-top: 1px solid #424242;
}

.page-team-detail .td-matches-table tbody td {
  padding: 14px 12px 14px 0;
  color: #bebebe;
  vertical-align: middle;
}

.page-team-detail .td-matches-table a {
  color: #bebebe;
  text-decoration: none;
}

.page-team-detail .td-matches-table a:hover {
  color: #02b122;
}

.page-team-detail .td-opp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-team-detail .td-opp__logo {
  width: 27px;
  height: 28px;
  background: #424242;
  flex-shrink: 0;
  overflow: hidden;
}

.page-team-detail .td-opp__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-team-detail .td-result-score {
  font-size: 20px;
  font-weight: 600;
}

.page-team-detail .td-result-label {
  font-size: 15px;
  font-weight: 600;
  margin-left: 10px;
}

.page-team-detail .td-result-label.win {
  color: #02b122;
}

.page-team-detail .td-result-label.loss {
  color: #ff5555;
}

.page-team-detail .td-result-label.pending {
  color: #424242;
}

/* Legacy tabs panels */
.page-team-detail .td-card {
  background: #000;
  border: 1px solid #424242;
  border-radius: 10px;
  padding: 14px 16px 12px;
}

.page-team-detail .td-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #bebebe;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-team-detail .td-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #424242;
}

.page-team-detail .td-player-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.page-team-detail .td-player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.page-team-detail .td-pav {
  width: 32px;
  height: 32px;
  background: #424242;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.page-team-detail .td-pav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-team-detail .td-pname {
  font-size: 14px;
  font-weight: 600;
  color: #bebebe;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.page-team-detail .td-pname:hover {
  color: #007315;
}

.page-team-detail .td-prole[class*='role-'] {
  border-width: 2px !important;
  border-style: solid !important;
}

.page-team-detail .td-match-row {
  border-top: 1px solid #424242;
}

.page-team-detail .td-match-row:first-of-type {
  border-top: none;
}

.page-team-detail .td-match-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}

.page-team-detail .td-match-link:hover {
  background: rgba(0, 115, 21, 0.08);
}

.page-team-detail .td-match-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.page-team-detail .td-match-vs {
  font-size: 14px;
  font-weight: 600;
  color: #bebebe;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-team-detail .td-match-tour {
  font-size: 14px;
  color: #424242;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-team-detail .td-match-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-team-detail .td-match-res {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-team-detail .td-match-res.win {
  color: #007315;
}

.page-team-detail .td-match-res.loss {
  color: #ff5555;
}

.page-team-detail .td-match-score {
  font-size: 11px;
  font-weight: 800;
  color: #bebebe;
  font-variant-numeric: tabular-nums;
}

.page-team-detail .td-match-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.page-team-detail .td-btn-manage-roster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #007315;
  background: rgba(0, 115, 21, 0.12);
  color: #bebebe;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  text-decoration: none;
}

.page-team-detail .td-set-row {
  margin-bottom: 14px;
}

.page-team-detail .td-set-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #424242;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.page-team-detail .td-settings-logo-preview {
  display: block;
  max-width: 80px;
  margin-bottom: 8px;
  border: 1px solid #424242;
}

.page-team-detail .td-settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-team-detail .td-btn-save,
.page-team-detail .td-btn-cancel {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
}

.page-team-detail .td-btn-save {
  border: none;
  background: #007315;
  color: #BEBEBE;
}

.page-team-detail .td-btn-cancel {
  border: 1px solid #424242;
  background: transparent;
  color: #bebebe;
}

.page-team-detail .td-invite-label {
  font-size: 14px;
  color: #424242;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-team-detail .td-code {
  font-family: ui-monospace, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #bebebe;
}

.page-team-detail .td-invite-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #424242;
  line-height: 1.45;
}

.page-team-detail .td-settings-form input[type='text'],
.page-team-detail .td-settings-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #424242;
  background: #000;
  color: #bebebe;
  font-size: 12px;
  font-family: 'Exo 2', sans-serif;
}

.page-team-detail .td-invite-code-box {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #424242;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}

.page-team-detail .toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  pointer-events: none;
}

.page-team-detail .toast {
  background: #000;
  border: 1px solid #007315;
  color: #bebebe;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Exo 2', sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.page-team-detail .toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-team-detail .td-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-team-detail .td-invite-modal[hidden] {
  display: none !important;
}

.page-team-detail .td-invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.page-team-detail .td-invite-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: #000;
  border: 1px solid #424242;
  border-radius: 10px;
  padding: 22px 20px 18px;
}

.page-team-detail .td-invite-modal__title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #424242;
  text-align: center;
}

.page-team-detail .td-invite-modal__code {
  margin: 0 0 18px;
  font-family: ui-monospace, monospace;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #bebebe;
  text-align: center;
}

.page-team-detail .td-invite-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-team-detail .td-invite-modal__btn-copy,
.page-team-detail .td-invite-modal__btn-close {
  min-height: 38px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  cursor: pointer;
}

.page-team-detail .td-invite-modal__btn-copy {
  border: 1px solid #007315;
  background: transparent;
  color: #bebebe;
}

.page-team-detail .td-invite-modal__btn-close {
  border: none;
  background: #007315;
  color: #bebebe;
}

.page-team-detail .td-team-desc {
  margin-top: 24px;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.55;
  max-width: 900px;
}

@media (max-width: 720px) {
  .team-league-page .prof-avatar.td-team-logo {
    width: 100px;
    height: 100px;
  }

  .team-league-page .prof-head-stats {
    width: 100%;
    justify-content: flex-start;
    gap: 32px;
  }

  .team-league-page .td-head-actions {
    justify-content: flex-start;
  }

  .team-league-page .td-tabs--team {
    margin-top: 0;
  }

  .page-team-detail .td-matches-table thead {
    display: none;
  }

  .page-team-detail .td-matches-table tbody tr {
    display: block;
    padding: 12px 0;
  }

  .page-team-detail .td-matches-table tbody td {
    display: block;
    padding: 4px 0;
  }
}

/* —— Управление составом (/team/<id>/manage/) —— */
.page-team-manage .tm-wrap {
  padding-top: 24px;
}

.page-team-manage .tm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-team-manage .tm-head__main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.page-team-manage .tm-head__logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #424242;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
}

.page-team-manage .tm-head__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-team-manage .tm-head__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #424242;
}

.page-team-manage .tm-head__title {
  margin: 0 0 6px;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #bebebe;
}

.page-team-manage .tm-head__meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #424242;
}

.page-team-manage .tm-head__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #007315;
  background: rgba(0, 115, 21, 0.08);
  color: #bebebe;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-team-manage .tm-head__back:hover {
  background: rgba(0, 115, 21, 0.16);
}

.page-team-manage .tm-invite {
  margin-bottom: 22px;
}

.page-team-manage .tm-invite__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #bebebe;
  margin: 4px 0 10px;
}

.page-team-manage .tm-invite__hint,
.page-team-manage .tm-roster__lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #424242;
}

.page-team-manage .tm-roster__head {
  margin-bottom: 14px;
}

.page-team-manage .tm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-team-manage .tm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.page-team-manage .tm-row__player {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-team-manage .tm-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #424242;
  background: #111;
}

.page-team-manage .tm-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-team-manage .tm-row__name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #bebebe;
  text-decoration: none;
}

.page-team-manage .tm-row__name:hover {
  color: #17e105;
}

.page-team-manage .tm-row__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 115, 21, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007315;
}

.page-team-manage .tm-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-team-manage .tm-role-form,
.page-team-manage .tm-kick-form {
  margin: 0;
}

.page-team-manage .tm-select {
  min-width: 150px;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #424242;
  background: #000;
  color: #bebebe;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.page-team-manage .tm-select:focus {
  outline: none;
  border-color: #007315;
}

.page-team-manage .tm-kick {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 85, 85, 0.45);
  background: rgba(255, 85, 85, 0.08);
  color: #ff8888;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-team-manage .tm-kick:hover {
  background: rgba(255, 85, 85, 0.15);
}

.page-team-manage .tm-leave {
  margin-top: 24px;
}

.page-team-manage .tm-leave__hint {
  margin: 0 0 16px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.5;
}

.page-team-manage .tm-leave__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}

.page-team-manage .tm-leave__label {
  display: block;
  width: 100%;
  margin-bottom: -4px;
  color: #bebebe;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-team-manage .tm-leave__select {
  min-width: 220px;
}

.page-team-manage .tm-leave__btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 85, 85, 0.45);
  background: rgba(255, 85, 85, 0.08);
  color: #ff8888;
  font-family: 'Exo 2', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-team-manage .tm-leave__btn:hover {
  background: rgba(255, 85, 85, 0.15);
}

.page-team-manage .tm-empty {
  padding: 28px 20px;
  text-align: center;
  color: #424242;
  font-size: 13px;
  line-height: 1.5;
}

.page-team-manage .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .page-team-manage .tm-head {
    flex-direction: column;
  }

  .page-team-manage .tm-row {
    align-items: flex-start;
  }

  .page-team-manage .tm-row__actions {
    width: 100%;
  }

  .page-team-manage .tm-select {
    width: 100%;
  }
}
