  #myLeaguesV2Page,
  #leaguesListV2Page {
    background: #f7f8fa;
  }

  #myLeaguesV2Page #appCapsule,
  #leaguesListV2Page #appCapsule {
    padding-bottom: 92px;
  }

  #leaguesListV2Page #appCapsule {
    padding-right: 18px;
  }

  .leagues-v2-header {
    padding: 8px 0 2px;
  }

  #leaguesListV2Page .leagues-v2-header,
  #leaguesListV2Page .section {
    padding-right: 6px;
  }

  .leagues-v2-intro-title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #172033;
    line-height: 1.1;
  }

  .leagues-v2-intro-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .leagues-v2-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e9f0ff;
    color: #1d4ed8;
    font-size: .92rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.08);
  }

  .leagues-v2-intro-subtitle {
    margin: 8px 0 0;
    max-width: 34rem;
    color: #637089;
    font-size: .93rem;
    line-height: 1.45;
  }

  .leagues-v2-toolbar,
  .leagues-v2-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .leagues-v2-card,
  .league-shell-card,
  .leagues-v2-empty,
  .leagues-v2-loading,
  .leagues-v2-error,
  .leagues-v2-filter-card {
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  }

  .leagues-v2-filter-card {
    padding: 14px;
  }

  .leagues-v2-filter-label {
    margin-bottom: 8px;
    color: #60708b;
    font-size: .8rem;
    font-weight: 700;
  }

  .leagues-v2-filter-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(47, 109, 246, 0.14);
    background: #fbfcff;
    color: #172033;
    font-size: .92rem;
    font-weight: 700;
  }

  .leagues-v2-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .leagues-v2-segment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(47, 109, 246, 0.22);
    background: #fff;
    color: #2f6df6;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  }

  .leagues-v2-segment-btn.is-active {
    background: #2f6df6;
    border-color: #2f6df6;
    color: #fff;
    box-shadow: 0 12px 24px rgba(47, 109, 246, 0.18);
  }

  .leagues-v2-segment-btn:focus,
  .leagues-v2-segment-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
  }

  .leagues-v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .leagues-v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2554c7;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
  }

  .leagues-v2-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(37, 84, 199, 0.12);
    color: inherit;
  }

  .league-shell-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .league-shell-card::before {
    content: "";
    display: block;
    height: 5px;
    border-radius: 18px 18px 0 0;
    margin: -16px -16px 8px;
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
  }

  .league-shell-card.is-active {
    border-color: rgba(47, 109, 246, 0.18);
  }

  .league-shell-card.is-active::before {
    background: linear-gradient(90deg, #4f8cff 0%, #2f6df6 100%);
  }

  .league-shell-card.is-pending {
    border-color: rgba(255, 170, 0, 0.24);
  }

  .league-shell-card.is-pending::before {
    background: linear-gradient(90deg, #ffd36a 0%, #ff9d00 100%);
  }

  .league-shell-card.has-pending-matches {
    border-color: rgba(255, 179, 0, 0.32);
    box-shadow: 0 18px 38px rgba(255, 179, 0, 0.10);
  }

  .league-shell-card.has-pending-matches::before {
    background: linear-gradient(90deg, #ffd86a 0%, #ffb300 100%);
  }

  .league-shell-card.is-finished {
    border-color: rgba(148, 163, 184, 0.26);
  }

  .league-shell-card.is-finished::before {
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
  }

  .league-shell-card.is-private::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.02) 0%, rgba(124, 58, 237, 0) 100%);
    pointer-events: none;
  }

  .league-shell-card:hover,
  .league-shell-card:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  }

  .league-shell-clickable {
    cursor: pointer;
  }

  .league-shell-top {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .league-shell-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3ff 0%, #f7fbff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.08);
  }

  .league-shell-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .league-shell-logo-fallback {
    font-size: 1.5rem;
    color: #2f6df6;
  }

  .league-shell-badges,
  .league-shell-meta,
  .league-shell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .league-shell-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .league-shell-metrics.is-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .league-shell-badge,
  .league-shell-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1;
  }

  .league-shell-badge.is-sport {
    background: #eef3ff;
    color: #2155c6;
  }

  .league-shell-badge.is-public {
    background: #eaf9f0;
    color: #138a52;
  }

  .league-shell-badge.is-private {
    background: #f2eafe;
    color: #7c3aed;
  }

  .league-shell-status.is-active {
    background: #e9f0ff;
    color: #1d4ed8;
  }

  .league-shell-status.is-pending {
    background: #fff4dc;
    color: #b46900;
  }

  .league-shell-status.is-finished {
    background: #eef2f7;
    color: #596579;
  }

  .league-shell-status.is-registration {
    background: #eaf9f0;
    color: #138a52;
  }

  .league-shell-status.is-registration-closed {
    background: #fff4dc;
    color: #b46900;
  }

  .league-shell-league-title {
    margin: 8px 0 0;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.2;
    color: #172033;
    word-break: break-word;
  }

  .league-shell-season-title {
    margin: 4px 0 0;
    color: #627089;
    font-size: .88rem;
    line-height: 1.45;
  }

  .league-shell-season-title strong {
    color: #172033;
  }

  .league-shell-inline-label {
    display: inline-block;
    margin-right: 6px;
    color: #45556f;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .league-shell-description-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .league-shell-description-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .league-shell-name {
    margin: 8px 0 0;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.2;
    color: #172033;
    word-break: break-word;
  }

  .league-shell-location,
  .league-shell-season,
  .league-shell-copy {
    margin: 0;
    color: #627089;
    font-size: .88rem;
    line-height: 1.45;
  }

  .league-shell-copy {
    color: #6b768c;
  }

  .league-shell-season strong {
    color: #172033;
  }

  .league-shell-meta {
    gap: 10px;
    color: #718096;
    font-size: .8rem;
    font-weight: 700;
  }

  .league-shell-metric {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.10);
  }

  .league-shell-metric-label {
    display: block;
    color: #748197;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .league-shell-metric-value {
    display: block;
    margin-top: 6px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
  }

  .league-shell-metric.is-warning {
    background: #fff9e8;
    box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.34);
  }

  .league-shell-metric.is-warning .league-shell-metric-label {
    color: #9a5b00;
  }

  .league-shell-metric.is-warning .league-shell-metric-value {
    color: #b46900;
  }

  .league-shell-priority-row {
    display: block;
  }

  .league-shell-priority-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.10);
  }

  .league-shell-priority-card.is-warning {
    background: #fff9e8;
    box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.34);
  }

  .league-shell-priority-label {
    display: block;
    color: #9a5b00;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .league-shell-priority-value {
    display: block;
    color: #b46900;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
  }

  .league-shell-actions {
    margin-top: 2px;
  }

  .league-shell-actions .btn {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 700;
  }

  .league-shell-actions .btn-primary {
    box-shadow: 0 14px 24px rgba(47, 109, 246, 0.16);
  }

  .league-shell-actions .btn-outline-secondary {
    border-color: rgba(100, 116, 139, 0.22);
    color: #4a5568;
  }

  .league-shell-actions .btn-warning {
    color: #fff;
    box-shadow: 0 14px 24px rgba(255, 157, 0, 0.18);
  }

  .league-shell-hint {
    margin: -2px 0 0;
    color: #748197;
    font-size: .78rem;
    line-height: 1.4;
  }

  .leagues-v2-empty,
  .leagues-v2-loading,
  .leagues-v2-error {
    padding: 24px 18px;
    text-align: center;
  }

  .leagues-v2-empty-icon,
  .leagues-v2-loading-icon,
  .leagues-v2-error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }

  .leagues-v2-empty-icon,
  .leagues-v2-loading-icon {
    background: #eef3ff;
    color: #2f6df6;
  }

  .leagues-v2-error-icon {
    background: #ffebeb;
    color: #d13b3b;
  }

  .leagues-v2-empty h3,
  .leagues-v2-loading h3,
  .leagues-v2-error h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 1.04rem;
    font-weight: 800;
  }

  .leagues-v2-empty p,
  .leagues-v2-loading p,
  .leagues-v2-error p {
    margin: 0;
    color: #637089;
    font-size: .9rem;
    line-height: 1.45;
  }

  .leagues-v2-loading .spinner-border {
    width: 1.1rem;
    height: 1.1rem;
    border-width: .16em;
  }

  .leagues-v2-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
  }

  .leagues-v2-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f6df6;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
  }

  .leagues-v2-cta-link:hover,
  .leagues-v2-cta-link:focus {
    color: #1d4ed8;
    text-decoration: none;
  }

  .leagues-v2-drawer .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .leagues-v2-drawer .form-label {
    font-size: .82rem;
    font-weight: 700;
    color: #60708b;
  }

  .leagues-v2-drawer .form-control,
  .leagues-v2-drawer .form-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(47, 109, 246, 0.14);
    background: #fbfcff;
  }

  .leagues-v2-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
  }

  @media (min-width: 576px) {
    .leagues-v2-segmented {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .league-shell-top {
      grid-template-columns: 84px minmax(0, 1fr);
    }

    .league-shell-logo {
      width: 84px;
      height: 84px;
    }

    .league-shell-actions .btn {
      flex: 1 1 0;
    }
  }

  @media (max-width: 575.98px) {
    .league-shell-metrics,
    .league-shell-metrics.is-duo {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #leaguesListV2Page .league-shell-actions {
      flex-direction: column;
    }

    #leaguesListV2Page .league-shell-actions .btn {
      width: 100%;
      justify-content: center;
    }

    #myLeaguesV2Page .league-shell-metrics {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #leaguesListV2Page .league-shell-metrics {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #leaguesListV2Page .league-shell-metric {
      padding: 10px 8px;
      border-radius: 12px;
    }

    #leaguesListV2Page .league-shell-metric-label {
      font-size: .64rem;
      letter-spacing: .02em;
    }

    #leaguesListV2Page .league-shell-metric-value {
      margin-top: 5px;
      font-size: .95rem;
    }
  }
