/* =========================================================
   24直播网 - 联赛频道 v2
   =========================================================

   设计目标：
   1. PC / 平板 / 手机同一 URL
   2. 只控制 .qmw-league-v2
   3. 不修改 Header / Footer
   4. 不修改 body
   5. 不依赖 Bootstrap CSS
   6. PC 双栏，移动端单栏
   ========================================================= */


/* =========================================================
   01. 基础变量
   ========================================================= */

.qmw-league-v2 {
    --lc-red: #e53935;
    --lc-red-dark: #d72f2c;
    --lc-text: #20252a;
    --lc-sub: #858d95;
    --lc-muted: #a4abb2;
    --lc-border: #e9edf0;
    --lc-bg: #f5f6f8;
    --lc-white: #ffffff;

    width: 100%;
    box-sizing: border-box;
    background: var(--lc-bg);
}

.qmw-league-v2 *,
.qmw-league-v2 *::before,
.qmw-league-v2 *::after {
    box-sizing: border-box;
}


/* =========================================================
   02. 外层容器
   ========================================================= */

.qmw-league-v2__container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 40px;
}


/* =========================================================
   03. 面包屑
   ========================================================= */

.qmw-league-v2__crumb {
    display: flex;
    align-items: center;
    gap: 7px;

    min-height: 24px;
    margin-bottom: 12px;

    color: #9aa1a8;
    font-size: 13px;
    line-height: 24px;
}

.qmw-league-v2__crumb a {
    color: #858d95;
    text-decoration: none;

    transition: color .18s ease;
}

.qmw-league-v2__crumb a:hover {
    color: var(--lc-red);
}

.qmw-league-v2__crumb span {
    color: #c3c8cd;
}

.qmw-league-v2__crumb strong {
    color: #555e66;
    font-weight: 400;
}


/* =========================================================
   04. 联赛头部
   ========================================================= */

.qmw-league-v2__hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    min-height: 82px;
    margin-bottom: 18px;

    background: var(--lc-white);
    border: 1px solid var(--lc-border);
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 2px 10px rgba(25, 35, 45, .025);
}


/* 联赛身份 */

.qmw-league-v2__identity {
    min-width: 0;

    padding: 14px 20px;

    display: flex;
    align-items: center;
}

.qmw-league-v2__logo {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    border-radius: 50%;
    background: #f6f7f8;

    overflow: hidden;
}

.qmw-league-v2__logo img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.qmw-league-v2__name {
    min-width: 0;
}

.qmw-league-v2__name h1 {
    margin: 0;

    color: var(--lc-text);
    font-size: 21px;
    font-weight: 600;
    line-height: 30px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qmw-league-v2__name p {
    margin: 2px 0 0;

    color: #a0a7ae;
    font-size: 12px;
    line-height: 20px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   05. 联赛导航
   ========================================================= */

.qmw-league-v2__nav {
    display: flex;
    align-items: stretch;

    margin-right: 20px;
}

.qmw-league-v2__nav a {
    position: relative;

    min-width: 62px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #69727b;
    font-size: 14px;
    text-decoration: none;

    transition: color .18s ease;
}

.qmw-league-v2__nav a:hover {
    color: var(--lc-red);
}

.qmw-league-v2__nav a.is-active {
    color: var(--lc-red);
    font-weight: 600;
}

.qmw-league-v2__nav a.is-active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 30px;
    height: 3px;

    transform: translateX(-50%);

    border-radius: 3px 3px 0 0;
    background: var(--lc-red);
}


/* =========================================================
   06. PC 主体布局
   ========================================================= */

.qmw-league-v2__layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 20px;

    align-items: start;
}


/* =========================================================
   07. 左侧赛事区域
   ========================================================= */

.qmw-league-v2__main {
    min-width: 0;
}


/* =========================================================
   08. 赛事标题
   ========================================================= */

.qmw-league-v2__section-head {
    height: 42px;

    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qmw-league-v2__section-title {
    display: flex;
    align-items: center;
}

.qmw-league-v2__section-title i {
    width: 4px;
    height: 20px;

    margin-right: 9px;

    display: block;

    border-radius: 3px;
    background: var(--lc-red);
}

.qmw-league-v2__section-title h2 {
    margin: 0;

    color: var(--lc-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 28px;
}

.qmw-league-v2__more {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #9aa1a8;
    font-size: 12px;
    text-decoration: none;

    transition: color .18s ease;
}

.qmw-league-v2__more span {
    font-size: 17px;
    line-height: 12px;
}

.qmw-league-v2__more:hover {
    color: var(--lc-red);
}


/* =========================================================
   09. 比赛列表
   ========================================================= */

.qmw-league-v2__matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   10. 比赛卡片
   ========================================================= */

.qmw-league-v2__match {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 116px;

    background: var(--lc-white);
    border: 1px solid var(--lc-border);
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.qmw-league-v2__match:hover {
    border-color: #e1e5e8;
    box-shadow: 0 5px 18px rgba(25, 35, 45, .055);
    transform: translateY(-1px);
}


/* =========================================================
   11. 比赛顶部信息
   ========================================================= */

.qmw-league-v2__match-top {
    grid-column: 1;

    height: 35px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.qmw-league-v2__status {
    flex: 0 0 auto;
}

.qmw-league-v2__status span {
    min-width: 48px;
    height: 22px;
    padding: 0 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    font-size: 11px;
    line-height: 22px;
    white-space: nowrap;
}

.qmw-league-v2__status .is-ended,
.qmw-league-v2__status .is-upcoming {
    color: #899199;
    background: #f3f5f7;
}

.qmw-league-v2__status .is-live {
    color: #fff;
    background: var(--lc-red);
}

.qmw-league-v2__status .is-live b {
    width: 5px;
    height: 5px;

    margin-right: 5px;

    border-radius: 50%;
    background: #fff;
}

.qmw-league-v2__match-top time {
    flex: 0 0 auto;

    color: #555e67;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
}

.qmw-league-v2__competition {
    min-width: 0;

    color: #a0a7ae;
    font-size: 11px;
    line-height: 22px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   12. 比赛主体
   ========================================================= */

.qmw-league-v2__match-body {
    grid-column: 1;

    min-width: 0;
    min-height: 70px;

    padding: 7px 18px 14px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        74px
        minmax(0, 1fr);

    align-items: center;

    text-decoration: none;
    color: inherit;
}


/* =========================================================
   13. 球队
   ========================================================= */

.qmw-league-v2__team {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.qmw-league-v2__team--home {
    justify-content: flex-end;
}

.qmw-league-v2__team--away {
    justify-content: flex-start;
}

.qmw-league-v2__team-name {
    min-width: 0;

    color: #272d32;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qmw-league-v2__team--home .qmw-league-v2__team-name {
    text-align: right;
}

.qmw-league-v2__team-logo {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.qmw-league-v2__team-logo img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}


/* =========================================================
   14. 比分
   ========================================================= */

.qmw-league-v2__score {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qmw-league-v2__score strong {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #252b30;

    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.qmw-league-v2__score strong em {
    margin: 0 7px;

    color: #aab0b6;

    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.qmw-league-v2__score strong.is-not-start em {
    margin: 0;

    color: #a0a7ae;
    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   15. 观看区域
   ========================================================= */

.qmw-league-v2__watch {
    grid-column: 2;
    grid-row: 1 / span 2;

    min-height: 105px;

    padding: 0 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-left: 1px solid #f0f2f4;
}

.qmw-league-v2__watch > span {
    margin-bottom: 7px;

    color: #a0a7ae;
    font-size: 11px;
    line-height: 18px;
}

.qmw-league-v2__watch > a {
    width: 78px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #f0d0cf;
    border-radius: 5px;

    background: #fff8f7;

    color: var(--lc-red);

    font-size: 12px;
    line-height: 28px;
    text-decoration: none;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.qmw-league-v2__watch > a:hover {
    border-color: var(--lc-red);
    background: var(--lc-red);
    color: #fff;
}


/* =========================================================
   16. 右侧卡片
   ========================================================= */

.qmw-league-v2__sidebar {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qmw-league-v2__side-card {
    background: var(--lc-white);
    border: 1px solid var(--lc-border);
    border-radius: 9px;

    overflow: hidden;
}


/* =========================================================
   17. 右侧标题
   ========================================================= */

.qmw-league-v2__side-head {
    height: 52px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #f0f2f4;
}

.qmw-league-v2__side-head h2 {
    position: relative;

    margin: 0;
    padding-left: 11px;

    color: #292f34;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.qmw-league-v2__side-head h2 i {
    position: absolute;

    left: 0;
    top: 3px;

    width: 3px;
    height: 18px;

    border-radius: 2px;
    background: var(--lc-red);
}

.qmw-league-v2__side-head > a {
    color: #a0a7ae;
    font-size: 12px;
    text-decoration: none;
}

.qmw-league-v2__side-head > a:hover {
    color: var(--lc-red);
}


/* =========================================================
   18. 推荐资讯
   ========================================================= */

.qmw-league-v2__news-list {
    padding: 8px 16px 12px;
}

.qmw-league-v2__news-list a {
    min-width: 0;
    height: 38px;

    display: flex;
    align-items: center;

    color: #596169;
    font-size: 13px;
    line-height: 38px;
    text-decoration: none;
}

.qmw-league-v2__news-list a > span {
    width: 4px;
    height: 4px;

    flex: 0 0 4px;

    margin-right: 8px;

    border-radius: 50%;
    background: #c8ced3;

    transition: background .18s ease;
}

.qmw-league-v2__news-list a em {
    min-width: 0;

    font-style: normal;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: color .18s ease;
}

.qmw-league-v2__news-list a:hover em {
    color: var(--lc-red);
}

.qmw-league-v2__news-list a:hover > span {
    background: var(--lc-red);
}


/* =========================================================
   19. 相关视频
   ========================================================= */

.qmw-league-v2__video-list {
    padding: 7px 16px 12px;
}

.qmw-league-v2__video-list a {
    min-width: 0;
    min-height: 40px;

    display: flex;
    align-items: center;

    color: #596169;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.qmw-league-v2__video-list a:hover {
    color: var(--lc-red);
}

.qmw-league-v2__video-list a em {
    min-width: 0;

    font-style: normal;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.qmw-league-v2__video-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    margin-right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f5f6f8;

    color: #9ca3aa;

    font-size: 8px;
    line-height: 22px;

    transition:
        color .18s ease,
        background .18s ease;
}

.qmw-league-v2__video-list a:hover .qmw-league-v2__video-icon {
    background: #fff0ef;
    color: var(--lc-red);
}


/* =========================================================
   20. 1100 以下
   ========================================================= */

@media (max-width: 1100px) {

    .qmw-league-v2__container {
        width: calc(100% - 24px);
    }

    .qmw-league-v2__layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 16px;
    }

    .qmw-league-v2__watch {
        padding-left: 8px;
        padding-right: 8px;
    }

    .qmw-league-v2__match-top {
        padding-left: 14px;
        padding-right: 14px;
    }

    .qmw-league-v2__match-body {
        padding-left: 14px;
        padding-right: 14px;
    }

}


/* =========================================================
   21. 850 以下：开始取消右栏
   ========================================================= */

@media (max-width: 850px) {

    .qmw-league-v2__layout {
        grid-template-columns: 1fr;
    }

    .qmw-league-v2__sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


/* =========================================================
   22. 680 以下：手机
   ========================================================= */

@media (max-width: 680px) {

    .qmw-league-v2__container {
        width: calc(100% - 20px);
        padding-top: 10px;
        padding-bottom: 26px;
    }


    /* 面包屑 */

    .qmw-league-v2__crumb {
        margin-bottom: 9px;

        font-size: 12px;
        line-height: 20px;
    }


    /* 联赛头部 */

    .qmw-league-v2__hero {
        display: block;

        min-height: 0;
        margin-bottom: 14px;
    }

    .qmw-league-v2__identity {
        padding: 13px 14px;
    }

    .qmw-league-v2__logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;

        margin-right: 10px;
    }

    .qmw-league-v2__logo img {
        width: 37px;
        height: 37px;
    }

    .qmw-league-v2__name h1 {
        font-size: 18px;
        line-height: 25px;
    }

    .qmw-league-v2__name p {
        margin-top: 1px;

        font-size: 11px;
        line-height: 18px;
    }


    /* 手机导航 */

    .qmw-league-v2__nav {
        height: 45px;

        margin: 0;

        border-top: 1px solid #f0f2f4;
    }

    .qmw-league-v2__nav a {
        flex: 1;

        min-width: 0;
        height: 45px;

        font-size: 13px;
    }

    .qmw-league-v2__nav a.is-active::after {
        width: 26px;
        height: 2px;
    }


    /* 标题 */

    .qmw-league-v2__section-head {
        height: 38px;
        margin-bottom: 8px;
    }

    .qmw-league-v2__section-title i {
        width: 3px;
        height: 18px;
        margin-right: 7px;
    }

    .qmw-league-v2__section-title h2 {
        font-size: 17px;
        line-height: 24px;
    }

    .qmw-league-v2__more {
        font-size: 11px;
    }


    /* 比赛卡片 */

    .qmw-league-v2__matches {
        gap: 9px;
    }

    .qmw-league-v2__match {
        display: block;

        border-radius: 8px;
    }


    /* 比赛顶部 */

    .qmw-league-v2__match-top {
        height: 34px;

        padding: 0 12px;

        gap: 7px;

        border-bottom: 1px solid #f3f4f5;
    }

    .qmw-league-v2__status span {
        min-width: 43px;
        height: 21px;
        padding: 0 5px;

        font-size: 10px;
        line-height: 21px;
    }

    .qmw-league-v2__match-top time {
        font-size: 11px;
    }

    .qmw-league-v2__competition {
        font-size: 10px;
    }


    /* 比赛主体 */

    .qmw-league-v2__match-body {
        min-height: 90px;

        padding: 11px 10px;

        grid-template-columns:
            minmax(0, 1fr)
            55px
            minmax(0, 1fr);
    }

    .qmw-league-v2__team {
        gap: 7px;
    }

    .qmw-league-v2__team-name {
        font-size: 12px;
        line-height: 20px;
    }

    .qmw-league-v2__team-logo {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .qmw-league-v2__team-logo img {
        width: 29px;
        height: 29px;
    }

    .qmw-league-v2__score strong {
        font-size: 16px;
        line-height: 24px;
    }

    .qmw-league-v2__score strong em {
        margin: 0 5px;

        font-size: 11px;
    }

    .qmw-league-v2__score strong.is-not-start em {
        font-size: 11px;
    }


    /* 观看线路移动到底部 */

    .qmw-league-v2__watch {
        min-height: 43px;

        padding: 0 10px;

        display: flex;
        flex-direction: row;
        justify-content: flex-end;

        border-top: 1px solid #f1f3f4;
        border-left: 0;
    }

    .qmw-league-v2__watch > span {
        margin: 0 8px 0 0;

        font-size: 10px;
        line-height: 28px;
    }

    .qmw-league-v2__watch > a {
        width: 68px;
        height: 28px;

        font-size: 11px;
        line-height: 26px;
    }


    /* 手机侧栏 */

    .qmw-league-v2__sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;

        margin-top: 2px;
    }

    .qmw-league-v2__side-head {
        height: 47px;
        padding: 0 13px;
    }

    .qmw-league-v2__side-head h2 {
        font-size: 15px;
    }

    .qmw-league-v2__news-list {
        padding: 6px 13px 9px;
    }

    .qmw-league-v2__news-list a {
        height: 35px;

        font-size: 12px;
        line-height: 35px;
    }

    .qmw-league-v2__video-list {
        padding: 5px 13px 9px;
    }

    .qmw-league-v2__video-list a {
        min-height: 38px;

        font-size: 12px;
        line-height: 18px;
    }

}


/* =========================================================
   23. 420 以下
   ========================================================= */

@media (max-width: 420px) {

    .qmw-league-v2__container {
        width: calc(100% - 16px);
    }

    .qmw-league-v2__identity {
        padding-left: 12px;
        padding-right: 12px;
    }

    .qmw-league-v2__match-top {
        padding-left: 10px;
        padding-right: 10px;
    }

    .qmw-league-v2__match-body {
        padding-left: 7px;
        padding-right: 7px;

        grid-template-columns:
            minmax(0, 1fr)
            48px
            minmax(0, 1fr);
    }

    .qmw-league-v2__team {
        gap: 5px;
    }

    .qmw-league-v2__team-name {
        font-size: 11px;
    }

    .qmw-league-v2__team-logo {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .qmw-league-v2__team-logo img {
        width: 26px;
        height: 26px;
    }

    .qmw-league-v2__score strong {
        font-size: 15px;
    }

}