/* =========================================
   League Stats - Team
========================================= */
#league-stats-team {
    padding-bottom: 102px !important;
}

.lc-team-stats {
    width: calc(100% - 42px);

    margin-top: 24px;
    margin-left: 21px;
    margin-right: 21px;

    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Header */

.lc-team-stats__header {
    width: 100%;
    height: 38px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 0 12px;

    direction: ltr;

    background:
        linear-gradient(
            188.32deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.099) 100.43%
        ),
        rgba(59, 130, 246, 0.05);

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


/* View All */

.lc-team-stats__view-all {
    display: flex;
    align-items: center;

    padding: 0;
    margin: 0;

    background: none;
    border: 0;

    color: #F8FAFC;

    font-family: "ModamFaNum", "Modam", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.lc-team-stats__view-all svg {
    width: 24px;
    height: 24px;
}


/* Title */

.lc-team-stats__title {
    display: flex;
    align-items: center;
    gap: 3px;

    direction: rtl;
}

.lc-team-stats__title span {
    font-family: "Modam", "ModamFaNum", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    padding-right: 12px;
    color: #f8fafc;
}

.lc-team-stats__title i {
    width: 8px;
    height: 8px;

    display: block;

    border-radius: 50%;
    background: #f8fafc;
}


/* =========================================
   Teams Box
========================================= */

.lc-team-stats__box {
    width: 100%;
    height: 162px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 12px;

    background:
        linear-gradient(
            188.32deg,
            rgba(0, 0, 0, 0) 51.23%,
            rgba(59, 130, 246, 0.099) 100.43%
        ),
        rgba(59, 130, 246, 0.05);

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 0 0 8px 8px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.3);
}


/* =========================================
   Team Card
========================================= */

.lc-team-card {
    position: relative;

    width: calc((100% - 24px) / 3);
    flex: 0 0 calc((100% - 24px) / 3);
    height: 138px;

    overflow: hidden;

    border-radius: 9px;

    background: #0b1425;

    isolation: isolate;

    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}


/* Background */

.lc-team-card__background {
    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.20),
            rgba(8, 12, 22, 0.30)
        );
}


/* =========================================
   Team Card Content
========================================= */

/* =========================================
   Team Card Content
========================================= */

/* Team Logo */

.lc-team-card__logo {
    position: absolute;

    width: 62px;
    height: 62px;

    left: 50%;
    top: 40%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;

    filter:
        drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35))
        drop-shadow(0 0 8px rgba(59, 130, 246, 0.15));
}

.lc-team-card__logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* Rank */

.lc-team-card__rank {
    position: absolute;

    top: 4px;
    right: 4px;

    z-index: 4;

    font-family: "ModamFaNum", "Modam", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;

    color: #22D3EE;
}


/* Team Name */

.lc-team-card__name {
    position: absolute;

    left: 0;
    right: 0;

    bottom: 40px;

    z-index: 4;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    font-family: "Modam", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;

    color: #F8FAFC;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow:
        0 1px 0.9px rgba(0, 0, 0, 0.53);
}


/* Statistics */

.lc-team-card__stats {
    position: absolute;

    left: 0;
    right: 0;

    bottom: 6px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 0;

    z-index: 4;
}


/* Single Statistic */

.lc-team-card__stat {
    min-width: 32px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    font-family: "Modam", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;

    color: #FFFFFF;
}


/* Separator */

.lc-team-card__stat + .lc-team-card__stat {
    border-right: 0.5px solid #525252;
}


/* Number */

.lc-team-card__stat strong {
    font-weight: 500;
}


/* Decorative Lines */

.lc-team-card__line {
    position: absolute;

    z-index: 3;

    width: 1px;
    height: 80px;

    background:
        linear-gradient(
            180deg,
            rgba(96, 66, 255, 0),
            rgba(66, 255, 198, 0.35),
            rgba(96, 66, 255, 0)
        );

    pointer-events: none;
}

.lc-team-card__line--left {
    left: 45px;
    top: 4px;

    transform: rotate(35deg);
    transform-origin: top left;
}

.lc-team-card__line--right {
    left: 90px;
    top: 12px;

    transform: rotate(6deg);
    transform-origin: top left;
}


/* Highlight */

.lc-team-card::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0) 35%
        );

    z-index: 5;

    pointer-events: none;
}

.lc-team-card::before {
    content: "";
    position: absolute;
    inset: 0;

    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(circle at 15% 22%, rgba(96, 66, 255, 0.35) 0 0.7px, transparent 1px),
        radial-gradient(circle at 32% 14%, rgba(255, 255, 255, 0.22) 0 0.5px, transparent 1px),
        radial-gradient(circle at 57% 27%, rgba(96, 66, 255, 0.28) 0 0.6px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18) 0 0.5px, transparent 1px),
        radial-gradient(circle at 72% 43%, rgba(96, 66, 255, 0.30) 0 0.6px, transparent 1px),
        radial-gradient(circle at 22% 48%, rgba(255, 255, 255, 0.16) 0 0.5px, transparent 1px),
        radial-gradient(circle at 48% 58%, rgba(96, 66, 255, 0.25) 0 0.5px, transparent 1px),
        radial-gradient(circle at 88% 67%, rgba(96, 66, 255, 0.22) 0 0.6px, transparent 1px),
        radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.15) 0 0.5px, transparent 1px),
        radial-gradient(circle at 64% 82%, rgba(96, 66, 255, 0.25) 0 0.6px, transparent 1px);
}

.lc-team-card--rank-1 {
    background:
        linear-gradient(
            135deg,
            rgba(236, 184, 12, 0.424),
            rgba(8, 12, 22, 0.30)
        );
}

.lc-team-card--rank-2 {
    background:
        linear-gradient(
            135deg,
            rgba(192, 192, 192, 0.477),
            rgba(8, 12, 22, 0.30)
        );
}

.lc-team-card--rank-3 {
    background:
        linear-gradient(
            135deg,
            rgba(9, 75, 182, 0.354),
            rgba(8, 12, 22, 0.30)
        );
}

/* Final override - Team Stats container */

#league-stats-page .lc-team-stats__box {
    width: 100% !important;
    height: 162px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 12px !important;
    padding: 12px !important;

    border-radius: 0 0 8px 8px !important;
}

/* =========================================
   League Stats - Team Statistics Dropdown
========================================= */

#league-stats-page .lc-team-stats-dropdown {
    position: relative;
    width: calc(100% - 32px);
    height: 48px;
    margin-top: 20px;
    margin-left: 16px;
    margin-right: 16px;
}


/* Trigger */

#league-stats-page .lc-team-stats-dropdown__trigger {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 48px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 12px 22px;
    gap: 0;

    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);

    border: 1px solid rgba(59, 130, 246, 0.18);

    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),
        0 0 18px rgba(59, 130, 246, 0.08),
        0 0 42px rgba(59, 130, 246, 0.035);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 8px;
    direction: ltr;
    cursor: pointer;
}


/* Arrow */

#league-stats-page .lc-team-stats-dropdown__arrow {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Selected text */

#league-stats-page .lc-team-stats-dropdown__selected {
    width: 118px;
    height: 22px;

    flex: 0 0 118px;

    font-family: "ModamFaNum", "Modam", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;

    text-align: right;

    color: #F8FAFC;

    white-space: nowrap;
}


/* Menu */

#league-stats-page .lc-team-stats-dropdown__menu {
    position: absolute;

    top: 60px;
    right: 0;

    width: 100%;
    height: 474px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 0 0 16px 0;

    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: 1px solid rgba(59, 130, 246, 0.18);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;

    z-index: 10;
}

.lc-team-stats-dropdown__menu::-webkit-scrollbar {
    display: none;
}


/* Open */

#league-stats-page .lc-team-stats-dropdown.is-open
.lc-team-stats-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Arrow rotation */

#league-stats-page .lc-team-stats-dropdown.is-open
.lc-team-stats-dropdown__arrow {
    transform: rotate(180deg);
}


/* Options */

#league-stats-page .lc-team-stats-dropdown__options {
    width: 100%;
    max-width: 335px;

    display: flex;
    flex-direction: column;

    padding: 0 8px;
    gap: 10px;

    margin: 19px auto 0;

    direction: rtl;
}


/* Option */

#league-stats-page .lc-team-stats-dropdown__option {
    position: relative;
    width: 100%;
    max-width: 319px;
    height: 36px;

    flex: 0 0 36px;

    display: block;

    padding: 0 0 14px 0;

    background: transparent;
    border: 0;
    font-family: "ModamFaNum", "Modam", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;

    color: #F8FAFC;

    text-align: right;
    direction: rtl;

    white-space: nowrap;

    cursor: pointer;
}

#league-stats-page .lc-team-stats-dropdown__option::after {
    content: "";
    position: absolute;

    bottom: 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%
    );
}


/* Last option */

#league-stats-page .lc-team-stats-dropdown__option:last-child {
    height: 22px;
    flex-basis: 22px;

    padding-bottom: 0;

    border-bottom: 0;
}

