.leagues-page,.league-details-page{direction:rtl}
.leagues-hero{margin:8px 0 22px;padding:24px;border:1px solid var(--asp-border);border-radius:16px;background:#fff;text-align:center;box-shadow:0 8px 25px rgba(25,31,49,.05)}
.leagues-hero h1{margin:0;color:var(--asp-red);font-size:30px;line-height:1.3}
.leagues-hero p{margin:5px 0 16px;color:var(--asp-muted);font-size:13px}
.leagues-search{position:relative;display:block;width:min(430px,100%);margin:auto}
.leagues-search input{width:100%;height:44px;padding:0 44px 0 14px;border:1px solid var(--asp-border);border-radius:10px;outline:0;background:#fafbfe;color:var(--asp-text);font:500 14px Frutiger,Tahoma,sans-serif}
.leagues-search input:focus{border-color:var(--asp-red);box-shadow:0 0 0 3px color-mix(in srgb,var(--asp-red) 13%,transparent)}
.leagues-search svg{position:absolute;right:14px;top:50%;width:19px;height:19px;transform:translateY(-50%);color:var(--asp-muted)}
.leagues-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}
.league-card{min-height:128px;padding:15px 10px;border:1px solid var(--asp-border);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;transition:border-color .2s,background .2s,transform .2s,box-shadow .2s}
.league-card:hover{border-color:color-mix(in srgb,var(--asp-red) 45%,var(--asp-border));background:#fcfcff;transform:translateY(-2px);box-shadow:0 9px 24px rgba(25,31,49,.08)}
.league-card-logo{width:50px;height:50px;padding:4px;display:flex;align-items:center;justify-content:center}
.league-card-logo img{width:100%;height:100%;object-fit:contain;transition:transform .2s}
.light-white-logo-fix{filter:brightness(0) saturate(100%)}
body.dark-theme .light-white-logo-fix,html.dark-theme body .light-white-logo-fix{filter:none}
.league-card:hover img{transform:scale(1.06)}
.league-card-logo i{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef0f6;color:#687187;font:700 13px Arial,sans-serif}
.league-card strong{max-width:100%;color:var(--asp-text);font-size:12px;line-height:1.5}
.league-card-skeleton{pointer-events:none}
.league-card-skeleton i,.league-card-skeleton span{display:block;background:#eceef4;animation:league-pulse 1.2s ease-in-out infinite}
.league-card-skeleton i{width:48px;height:48px;border-radius:50%}
.league-card-skeleton span{width:76%;height:12px;border-radius:6px}
@keyframes league-pulse{50%{opacity:.45}}
.leagues-empty{margin-top:18px;padding:35px;border:1px solid var(--asp-border);border-radius:14px;background:#fff;text-align:center}
.leagues-empty strong,.leagues-empty span{display:block}.leagues-empty strong{font-size:18px}.leagues-empty span{margin-top:5px;color:var(--asp-muted)}
.league-back{display:inline-flex;align-items:center;gap:5px;margin:4px 0 14px;padding:8px 12px;border-radius:9px;color:var(--asp-muted);font-size:13px;font-weight:700}
.league-back:hover{background:color-mix(in srgb,var(--asp-red) 9%,transparent);color:var(--asp-red)}
.league-back svg{width:17px;height:17px}
.league-profile{position:relative;overflow:hidden;margin-bottom:22px;padding:24px 26px 0;border:1px solid var(--asp-border);border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(25,31,49,.05)}
.league-profile-watermark{position:absolute;inset:0;background-position:10% center;background-repeat:no-repeat;background-size:180px;filter:blur(18px) grayscale(1);opacity:.055;pointer-events:none}
.league-profile-main{position:relative;z-index:1;min-height:92px;display:flex;align-items:center;gap:16px}
.league-profile-logo{width:78px;height:78px;padding:8px;border:1px solid var(--asp-border);border-radius:50%;background:color-mix(in srgb,#fff 75%,transparent);display:flex;align-items:center;justify-content:center}
.league-profile-logo img{width:62px;height:62px;object-fit:contain}
.league-logo-skeleton{background:#eceef4;animation:league-pulse 1.2s ease-in-out infinite}
.league-profile h1{margin:0 0 3px;color:var(--asp-text);font-size:28px;line-height:1.35}
.league-profile-main span{color:var(--asp-muted);font:600 16px Arial,sans-serif;direction:ltr}
.league-tabs{position:relative;z-index:1;display:flex;gap:27px;margin-top:18px}
.league-tabs button{padding:11px 1px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--asp-muted);font:700 15px Frutiger,Tahoma,sans-serif;cursor:pointer}
.league-tabs button:hover,.league-tabs button.is-active{border-bottom-color:var(--asp-red);color:var(--asp-red)}
.league-tab-panel{display:none}.league-tab-panel.is-active{display:block}
.league-loading{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--asp-muted)}
.league-loading[hidden]{display:none!important}
.league-loading i{width:38px;height:38px;border:4px solid #e0e4ec;border-top-color:var(--asp-red);border-radius:50%;animation:league-spin .8s linear infinite}
@keyframes league-spin{to{transform:rotate(360deg)}}
.standings-block{margin-bottom:24px}
.standings-block h2{margin:0 8px 10px;color:var(--asp-text);font-size:18px}
.standings-table-wrap{overflow-x:auto;border:1px solid var(--asp-border);border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(25,31,49,.04)}
.standings-table{width:100%;min-width:650px;border-collapse:collapse;text-align:center}
.standings-table th{padding:11px 7px;border-bottom:1px solid var(--asp-border);background:#f7f8fb;color:var(--asp-muted);font-size:12px}
.standings-table td{padding:10px 7px;border-bottom:1px solid var(--asp-border);color:var(--asp-muted);font:500 13px Arial,sans-serif}
.standings-table tr:last-child td{border-bottom:0}
.standings-table tr:hover td{background:#fafbfe}
.standings-table .standing-position{width:52px;color:var(--asp-text)}
.standing-position span{display:inline-block;width:4px;height:22px;margin-left:7px;border-radius:4px;vertical-align:middle}
.standings-team{min-width:190px;text-align:right!important}
.standings-team div{display:flex;align-items:center;gap:9px}
.standings-team img{width:28px;height:28px;object-fit:contain}
.standings-team>div>span{display:flex;flex-direction:column;min-width:0}
.standings-team strong{color:var(--asp-text);font-family:Frutiger,Tahoma,sans-serif;line-height:1.35}
.standings-team small{display:block;margin-top:2px;color:#d19a12;font:700 10px/1.25 Frutiger,Tahoma,sans-serif}
.standings-points{color:var(--asp-red)!important;font-size:16px!important;font-weight:700!important}
.standings-destinations{padding:13px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 22px;border-top:1px solid var(--asp-border);background:#fafbfe}
.standings-destinations span{display:flex;align-items:center;gap:6px;color:var(--asp-muted);font-size:11px}
.standings-destinations i{width:9px;height:9px;border-radius:50%}
.league-message{padding:35px;border:1px solid var(--asp-border);border-radius:13px;background:#fff;color:var(--asp-muted);text-align:center}
.league-fixtures{display:grid;gap:9px}
.league-fixture{min-height:85px;padding:10px 16px;border:1px solid var(--asp-border);border-radius:12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr);align-items:center;gap:8px}
.fixture-team{display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;font-weight:700}
.fixture-team img,.fixture-team i{width:38px;height:38px;object-fit:contain;flex:0 0 38px}
.fixture-team i{border-radius:50%;background:#eef0f6;display:flex;align-items:center;justify-content:center;color:#687187;font-style:normal}
.fixture-time{text-align:center}.fixture-time strong,.fixture-time small{display:block}.fixture-time strong{color:var(--asp-text);font:700 14px Arial,sans-serif}.fixture-time small{margin-top:4px;color:var(--asp-red);font-size:10px}
body.dark-theme .leagues-hero,body.dark-theme .league-card,body.dark-theme .leagues-empty,body.dark-theme .league-profile,body.dark-theme .standings-table-wrap,body.dark-theme .league-fixture,body.dark-theme .league-message,
html.dark-theme body .leagues-hero,html.dark-theme body .league-card,html.dark-theme body .leagues-empty,html.dark-theme body .league-profile,html.dark-theme body .standings-table-wrap,html.dark-theme body .league-fixture,html.dark-theme body .league-message{background:#202534;border-color:#30374b}
body.dark-theme .leagues-search input,html.dark-theme body .leagues-search input{background:#171b29;border-color:#343a4f;color:#fff}
body.dark-theme .league-card strong,body.dark-theme .league-profile h1,body.dark-theme .standings-block h2,body.dark-theme .standings-team strong,body.dark-theme .fixture-time strong,
html.dark-theme body .league-card strong,html.dark-theme body .league-profile h1,html.dark-theme body .standings-block h2,html.dark-theme body .standings-team strong,html.dark-theme body .fixture-time strong{color:#f5f7fb}
body.dark-theme .standings-table th,html.dark-theme body .standings-table th{background:#252b3c;border-color:#343a4f;color:#aeb7ca}
body.dark-theme .standings-table td,html.dark-theme body .standings-table td{border-color:#30374b;color:#b7bfd0}
body.dark-theme .standings-table tr:hover td,html.dark-theme body .standings-table tr:hover td{background:#242a3a}
body.dark-theme .standings-destinations,html.dark-theme body .standings-destinations{background:#1b2030;border-color:#30374b}
@media(max-width:1050px){.leagues-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){
  .leagues-page,.league-details-page{padding-bottom:84px}
  .leagues-hero{margin-top:0;padding:18px 14px}.leagues-hero h1{font-size:24px}
  .leagues-grid{display:flex;flex-direction:column;gap:8px}
  .league-card{min-height:62px;padding:9px 13px;flex-direction:row-reverse;justify-content:space-between;text-align:right}
  .league-card-logo{width:40px;height:40px}.league-card strong{font-size:14px}
  .league-profile{padding:18px 16px 0}.league-profile-main{min-height:78px}.league-profile-logo{width:65px;height:65px}.league-profile-logo img{width:51px;height:51px}.league-profile h1{font-size:22px}
  .league-tabs{gap:20px;overflow-x:auto}.league-tabs button{white-space:nowrap;font-size:14px}
  .standings-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .standings-table{min-width:0;width:100%;table-layout:fixed}
  .standings-table th,.standings-table td{padding:9px 2px;font-size:10px}
  .standings-table .optional-column{display:table-cell!important}
  .standings-table th:first-child,.standings-table td:first-child{width:29px}
  .standings-table th:nth-child(2),.standings-table td:nth-child(2){width:145px}
  .standings-team{min-width:0;text-align:right!important}
  .standings-team div{gap:5px;justify-content:flex-start}
  .standings-team img{width:25px;height:25px}
  .standings-team strong{font-size:10px;white-space:normal}
  .standings-team small{font-size:8px;white-space:normal}
  body.dark-theme .standings-team small,html.dark-theme body .standings-team small{color:#e4b72b}
  .league-fixture{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);padding-inline:9px}.fixture-team{flex-direction:column;gap:4px;font-size:11px}.fixture-team img,.fixture-team i{width:32px;height:32px;flex-basis:32px}
}
