/* =========================================================
   MOBILELEGENDSPEDIA - HOME
========================================================= */

.home-grid {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}

.home-left,
.home-center,
.home-right {
    min-width: 0;
    align-self: start;
}

/* =========================================================
   FEATURED
========================================================= */

.home-featured {
    position: relative;
    min-height: 235px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 15%, rgba(215,37,49,.5), transparent 34%),
        linear-gradient(135deg, #16191f, #292d35);
    color: #fff;
}

.home-featured::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -80px;
    top: -95px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,.03);
}

.featured-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 55px 22px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.92));
}

.featured-label {
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 7px;
    background: #d62531;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-content h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
}

.featured-content p {
    max-width: 590px;
    margin: 8px 0 0;
    color: #c7c9ce;
    font-size: 11px;
    line-height: 1.45;
}

/* =========================================================
   MATCHES
========================================================= */

.home-match {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e6e8;
}

.home-match:last-child {
    border-bottom: 0;
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #898c93;
    font-size: 8px;
}

.match-league {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-time {
    white-space: nowrap;
}

.match-live {
    color: #d62531;
    font-weight: 900;
}

.match-team {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-team-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
}

.match-team-info img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
}

.match-team-placeholder {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7e9;
    color: #73777e;
    font-size: 7px;
    font-weight: 900;
}

.match-team-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-score {
    min-width: 24px;
    text-align: right;
    font-size: 12px;
    font-weight: 900;
}

.match-bo {
    margin-top: 4px;
    text-align: right;
    color: #999ca2;
    font-size: 8px;
}

/* =========================================================
   RESULTS
========================================================= */

.home-result {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid #e7e8ea;
}

.home-result:last-child {
    border-bottom: 0;
}

.result-league {
    margin-bottom: 7px;
    color: #92959b;
    font-size: 8px;
}

.result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
}

.result-main > div:first-child,
.result-main > div:last-child {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.result-main > div:first-child {
    text-align: left;
}

.result-main > div:last-child {
    text-align: right;
}

.result-score {
    text-align: center;
    color: #cf2631;
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   RANKING
========================================================= */

.home-rank {
    display: grid;
    grid-template-columns: 28px 26px minmax(0,1fr) 30px;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-bottom: 1px solid #e8e9eb;
}

.home-rank:last-child {
    border-bottom: 0;
}

.rank-position {
    color: #6f737a;
    font-size: 12px;
    font-weight: 900;
}

.home-rank img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.rank-team {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 800;
}

.rank-change {
    text-align: right;
    color: #898c92;
    font-size: 8px;
}

/* =========================================================
   REGION LINKS
========================================================= */

.region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid #e8e9eb;
    font-size: 10px;
    font-weight: 800;
}

.region-link:last-child {
    border-bottom: 0;
}

.region-link:hover {
    background: #f7f7f8;
    color: #d62531;
}

/* =========================================================
   NEWS
========================================================= */

.home-news {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr);
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid #e8e9eb;
}

.home-news:last-child {
    border-bottom: 0;
}

.home-news-image {
    height: 72px;
    overflow: hidden;
    background: #25282e;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777b82;
    font-size: 8px;
    font-weight: 800;
}

.home-news-title {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.home-news-title a:hover {
    color: #d62531;
}

.home-news-meta {
    color: #8e9197;
    font-size: 9px;
}

/* =========================================================
   RIGHT COLUMN
========================================================= */

.home-right .box {
    width: 100%;
}

.home-right .box:first-of-type {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: minmax(0,1fr) 290px;
    }

    .home-left {
        display: none;
    }
}

@media (max-width: 760px) {
    .home-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .home-right {
        width: 100%;
        order: 1;
    }

    .home-center {
        width: 100%;
        order: 2;
    }

    .home-featured {
        min-height: 205px;
    }

    .featured-content {
        padding: 42px 15px 16px;
    }

    .featured-content h1 {
        font-size: 21px;
    }

    .home-news {
        grid-template-columns: 92px minmax(0,1fr);
    }

    .home-news-image {
        height: 62px;
    }

    .home-news-title {
        font-size: 12px;
    }

    .result-main {
        grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr);
        gap: 8px;
    }
}