.module-sport-v2-teams {
  box-sizing: border-box;
  min-width: 0;
  color: var(--r2k-text);
}

.module-sport-v2-teams *,
.module-sport-v2-teams *::before,
.module-sport-v2-teams *::after {
  box-sizing: border-box;
  min-width: 0;
}

.module-sport-v2-teams .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.module-sport-v2-teams .ms2t-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.module-sport-v2-teams .ms2t-header h1 {
  position: static;
  margin: 4px 0 6px;
  padding: 0;
  color: var(--r2k-brand);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.module-sport-v2-teams .ms2t-header h1::after,
.module-sport-v2-teams .ms2t-panel h2::after,
.module-sport-v2-teams .ms2t-team h3::after {
  content: none;
  display: none;
}

.module-sport-v2-teams .ms2t-header p,
.module-sport-v2-teams .ms2t-panel-head p {
  margin: 0;
  color: var(--r2k-muted);
}

.module-sport-v2-teams .ms2t-kicker {
  color: var(--r2k-brand-bright);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-sport-v2-teams .ms2t-header-actions,
.module-sport-v2-teams .ms2t-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.module-sport-v2-teams .ms2t-header-actions {
  flex: 0 0 auto;
}

.module-sport-v2-teams .ms2t-header-actions > * {
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding-block: 0;
}

.module-sport-v2-teams .ms2t-header-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.module-sport-v2 .ms2-manage,
.module-sport-v2-teams .ms2t-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--r2k-surface);
  background: var(--r2k-brand);
  border: 1px solid var(--r2k-brand);
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.module-sport-v2 .ms2-manage:hover,
.module-sport-v2-teams .ms2t-back:hover {
  color: var(--r2k-surface);
  background: var(--r2k-brand-deep);
  border-color: var(--r2k-brand-deep);
}

.module-sport-v2-teams .ms2t-notice {
  margin-bottom: 16px;
  padding: 11px 14px;
  color: var(--r2k-brand-deep);
  background: var(--r2k-brand-soft);
  border-left: 4px solid var(--r2k-brand-bright);
  border-radius: var(--r2k-radius-sm);
}

.module-sport-v2-teams .ms2t-notice[data-state="error"] {
  color: var(--r2k-action-dark);
  border-left-color: var(--r2k-action);
}

.module-sport-v2-teams .ms2t-territory-alert {
  margin-bottom: 16px;
  padding: 10px 13px;
  color: var(--r2k-action-dark);
  background: color-mix(in srgb, var(--r2k-surface) 88%, var(--r2k-action));
  border-left: 4px solid var(--r2k-action);
  border-radius: var(--r2k-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.module-sport-v2-teams .ms2t-territory-alert[hidden],
.module-sport-v2-teams .ms2t-add-panel[hidden] {
  display: none;
}

.module-sport-v2-teams .ms2t-panel {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--r2k-surface);
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius-lg);
  box-shadow: var(--r2k-shadow);
}

.module-sport-v2-teams .ms2t-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.module-sport-v2-teams .ms2t-panel h2 {
  position: static;
  margin: 0 0 4px;
  padding: 0;
  color: var(--r2k-brand-deep);
  font-size: 1.22rem;
}

.module-sport-v2-teams .ms2t-panel-head p {
  font-size: 0.88rem;
  line-height: 1.4;
}

.module-sport-v2-teams .ms2t-followed-count {
  color: var(--r2k-muted);
  font-size: 0.9em;
  font-weight: 700;
  white-space: nowrap;
}

.module-sport-v2-teams .ms2t-list-actions {
  flex: 0 1 610px;
}

.module-sport-v2-teams .ms2t-team-filter {
  flex: 1 1 360px;
}

.module-sport-v2-teams .ms2t-team-filter input {
  min-width: 260px;
}

.module-sport-v2-teams button.ms2t-reload.secondary {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--r2k-brand);
  background: var(--r2k-surface);
  border: 1px solid var(--r2k-line);
  border-radius: 999px;
}

.module-sport-v2-teams button.ms2t-reload.secondary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-sport-v2-teams .ms2t-add-panel {
  border-color: color-mix(in srgb, var(--r2k-line) 60%, var(--r2k-brand));
}

.module-sport-v2-teams button,
.module-sport-v2-teams input,
.module-sport-v2-teams select {
  font: inherit;
}

.module-sport-v2-teams button {
  min-height: 40px;
}

.module-sport-v2-teams input,
.module-sport-v2-teams select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--r2k-text);
  background: var(--r2k-surface);
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius-sm);
}

.module-sport-v2-teams input:focus-visible,
.module-sport-v2-teams select:focus-visible,
.module-sport-v2-teams button:focus-visible,
.module-sport-v2-teams a:focus-visible {
  outline: 3px solid var(--r2k-brand-bright);
  outline-offset: 3px;
}

.module-sport-v2-teams .ms2t-list {
  display: grid;
  gap: 20px;
}

.module-sport-v2-teams .ms2t-sport-filters {
  margin: 0 0 18px;
}

.module-sport-v2-teams .ms2t-sport-group,
.module-sport-v2-teams .ms2t-sport-teams {
  display: grid;
  gap: 10px;
}

.module-sport-v2-teams .ms2t-sport-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 7px;
  border-bottom: 2px solid var(--r2k-brand-soft);
}

.module-sport-v2-teams .ms2t-sport-head h3 {
  position: static;
  margin: 0;
  padding: 0;
  color: var(--r2k-brand);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-sport-v2-teams .ms2t-sport-head h3::after {
  content: none;
}

.module-sport-v2-teams .ms2t-sport-head span {
  color: var(--r2k-muted);
  font-size: 0.78rem;
}

.module-sport-v2-teams .ms2t-team {
  padding: 16px;
  background: color-mix(in srgb, var(--r2k-surface) 94%, var(--r2k-brand-soft));
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius);
}

.module-sport-v2-teams .ms2t-team-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.module-sport-v2-teams .ms2t-logo-stack {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.module-sport-v2-teams .ms2t-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  color: var(--r2k-brand);
  background: var(--r2k-brand-soft);
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius);
  font-weight: 850;
}

.module-sport-v2-teams .ms2t-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-sport-v2-teams .ms2t-logo.has-logo {
  background: transparent;
  border-color: transparent;
}

.module-sport-v2-teams .ms2t-logo.has-logo span {
  display: none;
}

.module-sport-v2-teams .ms2t-team h3 {
  position: static;
  margin: 0 0 4px;
  padding: 0;
  overflow-wrap: anywhere;
  color: var(--r2k-brand-deep);
  font-size: 1.08rem;
  line-height: 1.2;
}

.module-sport-v2-teams .ms2t-team-meta,
.module-sport-v2-teams .ms2t-refresh {
  margin: 0;
  color: var(--r2k-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.module-sport-v2-teams .ms2t-territory-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--r2k-brand);
  background: var(--r2k-brand-soft);
  border: 1px solid var(--r2k-line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.module-sport-v2-teams .ms2t-territory-state.is-ambiguous,
.module-sport-v2-teams .ms2t-territory-state.is-out-of-scope {
  color: var(--r2k-action-dark);
  background: color-mix(in srgb, var(--r2k-surface) 85%, var(--r2k-action));
  border-color: color-mix(in srgb, var(--r2k-line) 55%, var(--r2k-action));
}

.module-sport-v2-teams .ms2t-team-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.module-sport-v2-teams button.ms2t-unfollow.secondary {
  min-height: 28px;
  padding: 3px 7px;
  color: var(--r2k-muted);
  background: transparent;
  border: 0;
  border-radius: var(--r2k-radius-sm);
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.module-sport-v2-teams button.ms2t-unfollow.secondary:hover:not(:disabled) {
  color: var(--r2k-action-dark);
  background: color-mix(in srgb, var(--r2k-surface) 92%, var(--r2k-action));
  border: 0;
  text-decoration-color: currentColor;
}

.module-sport-v2-teams .ms2t-team-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.55fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--r2k-line);
}

.module-sport-v2-teams .ms2t-team-form button[type="submit"] {
  min-height: 42px;
  align-self: end;
  margin: 0;
}

.module-sport-v2-teams .ms2t-team-form button[type="submit"]:disabled {
  color: var(--r2k-muted);
  background: var(--r2k-canvas);
  border-color: var(--r2k-line);
  cursor: default;
  opacity: 1;
}

.module-sport-v2-teams label {
  display: grid;
  gap: 5px;
  color: var(--r2k-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.module-sport-v2-teams .ms2t-logo-control {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.module-sport-v2-teams .ms2t-logo-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.module-sport-v2-teams .ms2t-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  color: var(--r2k-brand);
  background: var(--r2k-surface);
  border: 1px solid var(--r2k-brand);
  border-radius: var(--r2k-radius-sm);
  cursor: pointer;
  font-size: 0.72rem;
}

.module-sport-v2-teams .ms2t-file-help {
  color: var(--r2k-muted);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.module-sport-v2-teams .ms2t-connector-error {
  margin: 10px 0 0;
  padding: 7px 9px;
  color: var(--r2k-action-dark);
  background: color-mix(in srgb, var(--r2k-surface) 90%, var(--r2k-action));
  border-left: 3px solid var(--r2k-action);
  border-radius: var(--r2k-radius-sm);
  font-size: 0.78rem;
}

.module-sport-v2-teams .ms2t-calendar-publication {
  margin: 10px 0 0;
  padding: 8px 10px;
  color: var(--r2k-brand-deep);
  background: color-mix(in srgb, var(--r2k-brand-soft) 72%, var(--r2k-surface));
  border-left: 3px solid var(--r2k-brand-bright);
  border-radius: var(--r2k-radius-sm);
  font-size: 0.78rem;
  line-height: 1.4;
}

.module-sport-v2-teams .ms2t-search {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) minmax(160px, 0.55fr) auto;
  align-items: end;
  gap: 10px;
}

.module-sport-v2-teams .ms2t-search label {
  margin: 0;
}

.module-sport-v2-teams .ms2t-search button[type="submit"] {
  align-self: end;
  min-height: 42px;
  margin: 0;
}

.module-sport-v2-teams .ms2t-search-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--r2k-muted);
  font-size: 0.82rem;
}

.module-sport-v2-teams .ms2t-search-status[data-state="error"] {
  color: var(--r2k-action-dark);
}

.module-sport-v2-teams .ms2t-search-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.module-sport-v2-teams .ms2t-search-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: var(--r2k-canvas);
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius-sm);
}

.module-sport-v2-teams .ms2t-search-team strong,
.module-sport-v2-teams .ms2t-search-team span {
  display: block;
}

.module-sport-v2-teams .ms2t-search-team span {
  margin-top: 3px;
  color: var(--r2k-muted);
  font-size: 0.78rem;
}

.module-sport-v2-teams .ms2t-widget {
  display: grid;
  gap: 1px;
  overflow: hidden;
  color: inherit;
  background: color-mix(in srgb, var(--r2k-brand-soft) 82%, var(--r2k-line));
  border: 1px solid var(--r2k-line);
  border-radius: var(--r2k-radius);
}

.module-sport-v2-teams .ms2t-widget-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 8px 11px;
  color: inherit;
  background: color-mix(in srgb, var(--r2k-brand-soft) 48%, var(--r2k-surface));
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.module-sport-v2-teams .ms2t-widget-item:hover,
.module-sport-v2-teams .ms2t-widget-item:focus-visible {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--r2k-brand-soft) 74%, var(--r2k-surface));
  box-shadow: inset 3px 0 var(--r2k-brand-bright);
  outline: none;
}

.module-sport-v2-teams .ms2t-widget-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  color: var(--r2k-brand);
  background: var(--r2k-brand-soft);
  border-radius: var(--r2k-radius-sm);
  font-size: 0.78rem;
  font-weight: 850;
}

.module-sport-v2-teams .ms2t-widget-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--r2k-surface);
}

.module-sport-v2-teams .ms2t-widget-copy strong,
.module-sport-v2-teams .ms2t-widget-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.module-sport-v2-teams .ms2t-widget-copy .ms2t-widget-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  margin: 0 5px 0 0;
  padding: 1px 5px;
  color: var(--r2k-brand);
  background: color-mix(in srgb, var(--r2k-brand-soft) 82%, var(--r2k-surface));
  border: 1px solid color-mix(in srgb, var(--r2k-brand) 18%, transparent);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.3;
}

.module-sport-v2-teams .ms2t-widget-copy strong {
  color: var(--r2k-brand-deep);
  line-height: 1.25;
}

.module-sport-v2-teams .ms2t-widget-copy span {
  margin-top: 3px;
  color: var(--r2k-muted);
  font-size: 0.78rem;
}

.module-sport-v2-teams .ms2t-widget-score {
  color: var(--r2k-brand);
  font-weight: 850;
  white-space: nowrap;
}

.module-sport-v2-teams .ms2t-state {
  margin: 0;
  padding: 16px;
  color: var(--r2k-muted);
  background: var(--r2k-canvas);
  border-radius: var(--r2k-radius-sm);
}

@media (max-width: 899px) {
  .module-sport-v2-teams .ms2t-header,
  .module-sport-v2-teams .ms2t-panel-head {
    flex-direction: column;
  }

  .module-sport-v2-teams .ms2t-header-actions,
  .module-sport-v2-teams .ms2t-list-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .module-sport-v2-teams .ms2t-list-actions {
    flex: 0 1 auto;
  }

  .module-sport-v2-teams .ms2t-team-form,
  .module-sport-v2-teams .ms2t-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-sport-v2-teams .ms2t-team-filter {
    flex: 1 1 auto;
  }

  .module-sport-v2-teams .ms2t-sport-filters {
    flex-wrap: nowrap;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .module-sport-v2-teams .ms2t-sport-filters .ms2-filter {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .module-sport-v2-teams .ms2t-panel {
    padding: 14px;
  }

  .module-sport-v2-teams .ms2t-team {
    padding: 13px;
  }

  .module-sport-v2-teams .ms2t-team-head {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  .module-sport-v2-teams .ms2t-logo {
    width: 72px;
    height: 72px;
  }

  .module-sport-v2-teams .ms2t-team-status {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
  }

  .module-sport-v2-teams .ms2t-search-team {
    align-items: stretch;
    flex-direction: column;
  }

  .module-sport-v2-teams .ms2t-file-help {
    display: none;
  }

  .module-sport-v2-teams .ms2t-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .module-sport-v2-teams .ms2t-header-actions > * {
    width: 100%;
  }

  .module-sport-v2-teams .ms2t-list-actions {
    align-items: stretch;
  }

  .module-sport-v2-teams .ms2t-team-filter input {
    min-width: 0;
  }

  .module-sport-v2-teams .ms2t-widget-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .module-sport-v2-teams .ms2t-widget-logo {
    width: 44px;
    height: 44px;
  }
}
