/* ================================
   League Table
================================ */

#league-table {
    width: 100%;
    box-sizing: border-box;

    display: block;

    padding: 0 16px;
    margin-top: 24px;

    overflow-x: hidden;
}

#league-table-page {
    padding-bottom: 24px;
}

.lc-league-table-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    background-image:
        linear-gradient(
            188.32deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.099) 100.43%
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(59, 130, 246, 0.05) 100%
        );

    border-radius: 8px;

    border: 1px solid rgba(59, 130, 246, 0.32);

    box-shadow:
        0 4px 16px rgba(30, 60, 180, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* Header */

.lc-league-table-header {
    position: relative;
    width: 100%;
    height: 17px;
    direction: ltr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.lc-league-table-header::after {
    content: "";
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: -8px;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 15%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.045) 85%,
        transparent 100%
    );
}

.lc-league-table-stats {
    width: 193px;
    height: 17px;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;

    direction: ltr;
}

.lc-league-table-stats span,
.lc-league-table-team-header span {
    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
    color: #F8FAFC;
    white-space: nowrap;
}

.lc-league-table-team-header {
    width: 41px;
    height: 17px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    direction: ltr;
}


/* Rows */

.lc-league-table-rows {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.lc-league-table-row {
    position: relative;
    width: 100%;
    height: 40px;
    direction: ltr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 8px 0;

}

/* Elegant League Table Separator */

.lc-league-table-row + .lc-league-table-row::before {
    content: "";
    position: absolute;

    top: 0;
    left: 12px;
    right: 12px;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 15%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.045) 85%,
        transparent 100%
    );
}

/* Statistics */

.lc-league-table-values {
    width: 193px;
    height: 17px;

    display: grid;
    grid-template-columns: 27px 27px 37px 15px 21px;
    column-gap: 12px;

    align-items: center;
    direction: ltr;
}

.lc-league-table-values span {
    min-width: 15px;

    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
    color: #f8fafc;
    text-align: center;
}


/* Team */

.lc-league-table-team {
    width: 91px;
    height: 20px;
    gap: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    direction: rtl;
}

.lc-league-table-team-name {
    width: 65px;
    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #F8FAFC;
    text-align: right;
    white-space: nowrap;
}

.lc-league-table-team img {
    width: 16px;
    height: 16px;

    object-fit: contain;
    flex: 0 0 16px;
}

.lc-league-table-rank {
    width: 9px;

    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
    color: #F8FAFC;

    text-align: center;
}


/* Legend */

.lc-league-table-legend {
    width: 239px;
    height: 17px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;

    direction: rtl;
}

.lc-league-table-legend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;

    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
    color: #F8FAFC;
    white-space: nowrap;
}

.lc-league-table-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.lc-league-table-dot.is-relegation {
    background: #9c0000;
}

.lc-league-table-dot.is-europa {
    background: #ff804a;
}

.lc-league-table-dot.is-champions {
    background: #3871ce;
}

.lc-league-table-title {
    box-sizing: border-box;
    width: fit-content;
    min-width: 151px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 8px;
    gap: 8px;

    border: 1px solid rgba(59, 130, 246, 0.32);

    box-shadow:
        0 4px 16px rgba(30, 60, 180, 0.08);
    border-radius: 8px;

    margin: 0 0 12px auto;
}

.lc-league-table-title h2 {
    width: auto;
    min-width: 0;
    height: 26px;

    font-family: "Modam", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;

    color: #F8FAFC;
    text-align: center;
    white-space: nowrap;
}

/* ---------- League Table Page Title ---------- */

#league-table-page .lc-logo-box__title {
    width: 100%;
    height: 31px;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;

    gap: 4px;
    direction: ltr;

    padding-right: 16px;
     margin: 0 0 24px 0;
}

#league-table-page .lc-logo-box__title-text {
    width: auto;
    height: 22px;

    margin: 0;
    padding: 0;

    font-family: "Modam", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 23px;

    color: #F8FAFC;
    text-align: right;
    white-space: nowrap;
}

#league-table-page .lc-logo-box__title-icon {
    width: 36px;
    height: 32px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   World Cup Stage Buttons - Final
========================================= */

/* =========================================
   World Cup Stage Switcher — Final Override
========================================= */

#dynamic-content-target .worldcup-stage-switcher {
    width: calc(100% - 32px) !important;
    height: 57px !important;

    margin: 24px 16px 0 !important;
    padding: 0 8px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    direction: rtl !important;

    border: 1px solid rgba(59, 130, 246, 0.18) !important;
    border-radius: 8px !important;

    background:
        radial-gradient(
            ellipse at 85% 50%,
            rgba(59, 130, 246, 0.10) 0%,
            rgba(59, 130, 246, 0.035) 35%,
            transparent 70%
        ),
        linear-gradient(
            212.16deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.0988) 100.43%
        ),
        rgba(59, 130, 246, 0.05) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(59, 130, 246, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.32) !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none !important;
}

#dynamic-content-target .worldcup-stage-switcher::-webkit-scrollbar {
    display: none !important;
}

.worldcup-stage-btn {
    box-sizing: border-box !important;

    width: 123px !important;
    min-width: 123px !important;
    max-width: 123px !important;
    height: 38px !important;

    flex: 0 0 123px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 8px 10px !important;
    margin: 0 !important;

    border: 1px solid #525252 !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: #f8fafc !important;

    font-family: "Modam", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;

    white-space: nowrap !important;
    direction: rtl !important;
    text-decoration: none !important;
}

/* فاصله بین دکمه‌ها */
.worldcup-stage-btn + .worldcup-stage-btn {
    margin-right: 6px !important;
}

/* دکمه چهارم مثل نمونه: 91px */
.worldcup-stage-btn:nth-child(4) {
    width: 91px !important;
    min-width: 91px !important;
    max-width: 91px !important;
    flex-basis: 91px !important;
}

/* Active */
.worldcup-stage-btn.active {
    background:
        linear-gradient(
            95.65deg,
            rgba(59, 130, 246, 0) 36.98%,
            rgba(59, 130, 246, 0.49) 88.43%
        ),
        rgba(59, 130, 246, 0.32) !important;

    border-color: #525252 !important;
}

/* ================================
   Group Tables Container
================================ */

.lc-league-group {
    width: 100%;
    display: flow-root;
    margin-top: 24px;
    box-sizing: border-box;
    clear: both;
}

.lc-league-group:first-child {
    margin-top: 0;
}

/* =========================================
   Match Card
========================================= */

.match-card {
    display: block;
    width: 100%;
    margin-bottom: 12px;

    text-decoration: none;
    color: inherit;
}

.match-card:last-child {
    margin-bottom: 0;
}

.match-modern {
    width: 100%;
    height: 87px;
    box-sizing: border-box;

    padding: 10px 24px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            212.16deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.0988) 100.43%
        ),
        rgba(59, 130, 246, 0.05);

    border-bottom: 1px solid #252d3d;
    border-radius: 8px;

    direction: rtl;
}

/* =========================================
   Date + Time
========================================= */

.fixture-time {
    position: relative;
    width: 89px;
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    flex: 0 0 89px;

    direction: rtl;

    box-sizing: border-box;
    padding-left: 4px;
    padding-right: 2px;
}

.fixture-time::before {
    content: "";
    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 0;

    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.045) 15%,
        rgba(255, 255, 255, 0.09) 75%,
        rgba(255, 255, 255, 0.045) 85%,
        transparent 100%
    );
}

.fixture-date,
.fixture-hour {
    color: #f8fafc;

    font-family: "Modam", sans-serif;

    white-space: nowrap;
    text-align: center;
}

.fixture-date {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.fixture-hour {
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
}

/* =========================================
   Teams
========================================= */

.teams-wrap {
    flex: 1;

    height: 66px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 8px;

    gap: 8px;

    direction: rtl;
}


/* =========================================
   Team Row
========================================= */

.team-line {
    width: 100%;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: rtl;
}


/* =========================================
   Team Info
========================================= */

.team-info {
    height: 29px;

    display: flex;
    align-items: center;

    gap: 4px;

    direction: rtl;

    flex-shrink: 0;
}


/* =========================================
   Team Logo
========================================= */

.team-logo-modern {
    width: 22px;
    height: 22px;

    display: block;

    flex: 0 0 22px;

    object-fit: contain;
}

/* =========================================
   Team Name
========================================= */

.team-modern-name {
    color: #f8fafc;

    font-family: "Modam", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;

    white-space: nowrap;
}


/* =========================================
   Score
========================================= */

.team-score {
    width: 40px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    color: #f8fafc;

    font-family: "Modam", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;

    white-space: nowrap;

    direction: ltr;
}


.penalty-score {
    color: #f8fafc;
}