/* =====================================================================
   HOMEPAGE — Rocket Livescore
   Palette: yellow + red + black + white 
   ===================================================================== */
.lx-page {
    /* Default values — can be overridden via inline style on .lx-page (admin-controlled). */
    --bg:          #F4F5F7;       /* subtle gray body */
    --surface:     #FFFFFF;       /* card surface */
    --surface-2:   #F8F9FB;       /* hover/stripe */
    --ink:         #0F1315;       /* near-black */
    --ink-2:       #44474B;
    --ink-3:       #8B9097;
    --line:        #E4E7EB;
    --line-soft:   #EEF0F3;
    --red:         #E61B23;       /* Laju red — for live indicators only */
    --red-deep:    #AE0A11;
    --red-soft:    #FDECEC;
    --yellow:      #F7C800;       /* accent highlight (rank 1, etc) */
    --yellow-deep: #C59B00;
    --yellow-soft: #FFF8CC;
    --black:       #9A3412;       /* dark orange — reserved for masthead + rank 3 */
    --black-ink:   #0F1315;       /* real near-black for text on yellow */

    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 1.5rem 0 4rem;
}
.lx-container { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }

/* ========== Masthead ========== */
.lx-masthead {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--black);
    color: #fff;
    border-radius: 3px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.lx-masthead::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 50%, var(--red) 50%, var(--red) 100%);
}
.lx-masthead__mark {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-left: .75rem;
}
.lx-masthead__mark-box {
    width: 34px;
    height: 34px;
    background: var(--red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: grid;
    place-items: center;
    letter-spacing: .04em;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(230, 27, 35, .35);
}
.lx-masthead__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}
.lx-masthead__title-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: .6875rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-top: .3rem;
    display: block;
}
.lx-masthead__spacer { flex: 1; }
.lx-masthead__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.lx-masthead__meta-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.lx-masthead__meta-value {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .lx-masthead { flex-wrap: wrap; }
    .lx-masthead__title { font-size: 1.3rem; }
    .lx-masthead__meta { align-items: flex-start; margin-left: auto; }
}

/* ========== Stat bar ========== */
.lx-statbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 5px;
    background: #fff;
    overflow: hidden;
}
/* Billboard ad antara statbar dan grid — hilangkan margin default my-4 */
.lx-statbar + .ad-slot { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ========== Klasemen panel filter select ========== */
.lx-standings-panel .lx-panel__head {
    gap: .65rem;
    flex-wrap: wrap;
}
.lx-standings__filter {
    margin: 0;
    flex: 1;
    min-width: 0;
    max-width: 180px;
}
.lx-standings__select {
    width: 100%;
    min-width: 0;
    padding: .35rem 1.65rem .35rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230F1315' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .4rem center;
    transition: border-color .15s ease, box-shadow .15s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.lx-standings__select:hover { border-color: var(--ink-3); }
.lx-standings__select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 27, 35, .18);
}
.lx-standings__table-wrap { overflow-x: auto; }

/* ========== Promosi panel (right aside — di atas Berita Terbaru) ========== */
.lx-promo__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .65rem .75rem;
    background: #fff;
}
.lx-promo__item { margin: 0; }
.lx-promo__link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.lx-promo__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 15, 44, .08);
}
.lx-promo__img {
    margin: 0;
    aspect-ratio: 970 / 250;
    background: var(--row-alt);
    overflow: hidden;
}
.lx-promo__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lx-promo__title {
    display: block;
    padding: .55rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.lx-promo__link:hover .lx-promo__title { color: var(--red); }
.lx-promo__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--ink-3);
    font-size: .85rem;
}

/* ========== Blog panel (right aside) ========== */
.lx-blog__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.lx-blog__item {
    border-bottom: 1px solid var(--line-soft);
}
.lx-blog__item:last-child { border-bottom: 0; }
.lx-blog__link {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: .7rem;
    padding: .65rem .75rem;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .15s ease;
}
.lx-blog__link:hover { background: var(--row-alt); }
.lx-blog__thumb {
    margin: 0;
    width: 80px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--line-soft);
    flex-shrink: 0;
}
.lx-blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lx-blog__thumb-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--line-soft) 0%, var(--line) 100%);
}
.lx-blog__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    justify-content: center;
}
.lx-blog__title {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lx-blog__link:hover .lx-blog__title { color: var(--red); }
.lx-blog__meta {
    margin: 0;
    font-size: .72rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}
.lx-blog__more {
    font-size: .7rem !important;
    font-weight: 700 !important;
    color: var(--red) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: opacity .15s ease;
}
.lx-blog__more:hover { opacity: .75; }
.lx-blog__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--ink-3);
    font-size: .85rem;
}
.lx-statbar__item {
    padding: .9rem 1.1rem;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.lx-statbar__item:last-child { border-right: 0; }
.lx-statbar__label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.lx-statbar__label::before {
    content: '';
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--ink-3);
}
.lx-statbar__item--live .lx-statbar__label { color: var(--red); }
.lx-statbar__item--live .lx-statbar__label::before {
    background: var(--red);
    animation: pulse 1.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.lx-statbar__value {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.65rem;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.lx-statbar__item--live .lx-statbar__value { color: var(--red); }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(230, 27, 35, .55); }
    100% { box-shadow: 0 0 0 6px rgba(230, 27, 35, 0); }
}

@media (max-width: 720px) {
    .lx-statbar { grid-template-columns: repeat(2, 1fr); }
    .lx-statbar__item:nth-child(2) { border-right: 0; }
    .lx-statbar__item { border-bottom: 1px solid var(--line); }
    .lx-statbar__item:nth-child(n+3) { border-bottom: 0; }
    .lx-statbar__value { font-size: 1.4rem; }
}

/* ========== Grid layout ========== */
.lx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
}
@media (min-width: 1024px) {
    .lx-grid {
        grid-template-columns: 224px minmax(0, 1fr) 296px;
        gap: 1rem;
        margin-top: 0;
    }
}
/* Hilangkan gap bawaan ad-banner my-4 untuk ad skyscraper di kolom kiri */
.lx-leagues-panel > .ad-slot { margin-top: 0 !important; }

/* =====================================================================
   MOBILE-FIRST OVERRIDES (< 1024px)
   
   ===================================================================== */
@media (max-width: 1023px) {
    .lx-leagues-panel { display: none !important; }
    .lx-grid { gap: .75rem; }
    main#matches-panel { order: 0; }
    .lx-grid > aside { order: 1; }
}
@media (max-width: 767px) {
    /* Hide the 970×250 desktop leaderboard entirely under 768; admin can supply mobile-sized slot separately. */
    main.lx-main > .ad-slot[data-slot="billboard_970x250"],
    main.lx-main > [class*="billboard_970x250"] { display: none; }
    .lx-wrap { padding-inline: .75rem; }
    .lx-panel__head { padding: .7rem .85rem; }
    .lx-panel__title { font-size: .82rem; }
    .lx-masthead { padding-block: .75rem; }
}
@media (max-width: 480px) {
    .lx-wrap { padding-inline: .5rem; }
}

/* ========== Panel ========== */
.lx-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
}
.lx-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 1rem;
    background: var(--surface);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.lx-panel__head::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--red);
}
.lx-panel__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--ink);
}
.lx-panel__sub {
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 700;
}

/* ========== Left sidebar: leagues ========== */
.lx-leagues {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 680px;
    overflow-y: auto;
}
.lx-leagues::-webkit-scrollbar { width: 6px; }
.lx-leagues::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.lx-leagues__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    font-size: .85rem;
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
    white-space: nowrap;
}
.lx-leagues__item:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.lx-leagues__item.is-active {
    background: var(--red-soft);
    color: var(--red-deep);
    font-weight: 600;
    border-left: 3px solid var(--red);
    padding-left: calc(.9rem - 3px);
}
.lx-leagues__mark {
    width: 4px;
    height: 16px;
    background: var(--ink-3);
    flex-shrink: 0;
    border-radius: 1px;
}
.lx-leagues__item.is-active .lx-leagues__mark { background: var(--red); }
.lx-leagues__item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Tabs (main content) ========== */
.lx-tabs-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.lx-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 3px solid var(--yellow);
}
.lx-tabs::-webkit-scrollbar { display: none; }
.lx-tabs { border-bottom: 1px solid var(--line); }
.lx-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.2rem;
    background: transparent;
    border: 0;
    color: var(--ink-3);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
    position: relative;
}
.lx-tab:hover { color: var(--ink); background: var(--surface-2); }
.lx-tab.is-active {
    color: var(--ink);
    background: transparent;
    font-weight: 700;
}
.lx-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--red);
}
.lx-tab__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    padding: 0 .4rem;
    height: 20px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: 'Inter', sans-serif;
    font-size: .6875rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--line);
}
.lx-tab.is-active .lx-tab__count { background: var(--red); color: #fff; border-color: transparent; }

/* ========== League group ========== */
.lx-group { margin-bottom: 1rem; }
.lx-group:last-child { margin-bottom: 0; }
.lx-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .9rem;
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 3px 3px 0 0;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.lx-group__name {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}
.lx-group__flag {
    width: 22px;
    height: 16px;
    flex: 0 0 auto;
    background: var(--ink);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .6875rem;
    letter-spacing: .02em;
    border-radius: 2px;
}
.lx-group__title {
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lx-group__meta {
    font-size: .6875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.lx-group__body {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

/* ========== Match row ========== */
.lx-match {
    display: grid;
    grid-template-columns: 68px 1fr 70px 1fr 28px;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color .15s ease;
    text-decoration: none;
    color: inherit;
}
.lx-match:last-child { border-bottom: 0; }
.lx-match:hover { background: var(--surface); }
.lx-match--live {
    background: var(--red-soft);
    border-left: 3px solid var(--red);
    padding-left: calc(1rem - 3px);
}
.lx-match--live:hover { background: #FBDDDC; }

.lx-match__status {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    line-height: 1;
}
.lx-match__status-primary {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}
.lx-match__status--live .lx-match__status-primary { color: var(--red); }
.lx-match__status--fin .lx-match__status-primary { color: var(--ink-3); }
.lx-match__status-secondary {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.lx-match__status--live .lx-match__status-secondary {
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.lx-match__status--live .lx-match__status-secondary::before {
    content: '';
    width: 5px; height: 5px; border-radius: 999px;
    background: var(--red);
    animation: pulse 1.4s infinite;
}

.lx-match__team {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
}
.lx-match__team--home { justify-content: flex-end; text-align: right; }
.lx-match__team--away { justify-content: flex-start; }
.lx-match__team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.lx-match__logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    object-fit: contain;
}
.lx-match__logo--placeholder {
    background: var(--line-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lx-match__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    padding: .3rem 0;
    min-width: 70px;
}
.lx-match__score--live { color: var(--red); }
.lx-match__score--pending {
    font-family: 'Inter', sans-serif;
    color: var(--ink-3);
    font-size: .82rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: none;
}
.lx-match__score-sep {
    color: var(--ink-3);
    font-weight: 400;
    font-size: 1rem;
}

.lx-match__action {
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, transform .15s ease;
}
.lx-match:hover .lx-match__action {
    color: var(--red);
    transform: translateX(2px);
}

@media (max-width: 720px) {
    .lx-match {
        grid-template-columns: 50px 1fr 58px 1fr;
        gap: .55rem;
        padding: .65rem .75rem;
    }
    .lx-match--live { padding-left: calc(.75rem - 3px); }
    .lx-match__action { display: none; }
    .lx-match__team { font-size: .82rem; gap: .4rem; }
    .lx-match__logo { width: 18px; height: 18px; }
    .lx-match__score { min-width: 58px; font-size: 1.05rem; }
    .lx-match__status-primary { font-size: .9rem; }
    .lx-match__status-secondary { font-size: .6875rem; letter-spacing: .12em; }
}

/* ========== Empty state ========== */
.lx-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--ink-3);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 3px;
}
.lx-empty__glyph {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: .6rem;
    font-weight: 600;
    letter-spacing: .06em;
}
.lx-empty__text { font-size: .88rem; color: var(--ink-2); max-width: 40ch; margin: 0 auto; line-height: 1.55; }

/* ========== Right sidebar tables ========== */
.lx-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lx-table th {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-3);
    font-family: 'Inter', sans-serif;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
}
.lx-table th.num { text-align: right; }
.lx-table td {
    padding: .55rem .6rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.lx-table td.num { text-align: right; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: .9rem; color: var(--ink); }
.lx-table td.pts { color: var(--red); font-weight: 700; font-size: .95rem; }
.lx-table tr:last-child td { border-bottom: 0; }
.lx-table tr:hover td { background: var(--surface-2); }

.lx-standings__pos {
    display: inline-grid;
    place-items: center;
    width: 24px; height: 24px;
    background: var(--line-soft);
    color: var(--ink-2);
    font-family: 'Oswald', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 2px;
}
.lx-standings__pos--top { background: var(--red); color: #fff; }
.lx-standings__pos--champion { background: var(--yellow); color: var(--black-ink); }
.lx-standings__team {
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

/* Top teams */
.lx-topteam {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--line-soft);
}
.lx-topteam:last-child { border-bottom: 0; }
.lx-topteam:hover { background: var(--surface-2); }
.lx-topteam__rank {
    display: inline-grid;
    place-items: center;
    width: 30px; height: 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    background: var(--line-soft);
    color: var(--ink-2);
    border-radius: 2px;
    flex-shrink: 0;
}
.lx-topteam__rank--1 { background: var(--yellow); color: var(--black-ink); box-shadow: 0 4px 12px rgba(247, 200, 0, .35); }
.lx-topteam__rank--2 { background: var(--red); color: #fff; }
.lx-topteam__rank--3 { background: var(--black); color: #fff; }
.lx-topteam__body { flex: 1; min-width: 0; }
.lx-topteam__name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lx-topteam__stat {
    margin-top: .2rem;
    font-size: .7rem;
    color: var(--ink-3);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.lx-topteam__stat b {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--red);
    font-size: .82rem;
}

/* Ad banner frame fit */
.lx-page .ad-slot {
    border: 1px solid var(--line);
    border-radius: 3px;
    margin: 1rem auto;
    background: var(--surface);
}

/* Sticky sidebar left on desktop */
@media (min-width: 1024px) {
    .lx-leagues-panel { position: sticky; top: 1rem; align-self: start; }
}

/* Mobile: hide ad-only left aside and tighten spacing before control bar */
@media (max-width: 1023px) {
    .lx-leagues-panel { display: none; }
    .lx-grid { gap: .75rem; margin-top: 0; }
}
@media (max-width: 639px) {
    .lx-page { padding: .75rem 0 2.5rem; }
    .lx-container { padding: 0 .75rem; }
    .lx-statbar { margin-bottom: 5px; }
    .lx-grid { gap: .5rem; margin-top: 0; }
}
