.Sq1-mc-cover.Sq1-mc-cover,
.Sq1-mc-cover.Sq1-mc-cover *,
.Sq1-mc-cover.Sq1-mc-cover *::before,
.Sq1-mc-cover.Sq1-mc-cover *::after {
    all: revert;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   02. 封面根节点：16:9 画布
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover {
    all: revert;
    box-sizing: border-box;

    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;

    border: 0;
    /* 想跟主题圆角对齐时，在父级或本元素上写 style="--mc-radius:8px" */
    border-radius: var(--mc-radius, 0px);
    background-color: #0a213c;
    background-image: linear-gradient(135deg, #102a43 0%, #0a213c 100%);

    color: #fff;
    font-family: var(--mc-font,
        "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", system-ui, sans-serif);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    direction: ltr;

    cursor: pointer;
    touch-action: manipulation;
    contain: layout paint;
    isolation: isolate;
    container: mc / inline-size;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* 极老浏览器没有 aspect-ratio 时，用 padding 撑出 16:9，避免高度塌成 0 */
@supports not (aspect-ratio: 1 / 1) {
    .Sq1-mc-cover.Sq1-mc-cover::before {
        content: "";
        display: block;
        padding-top: 56.25%;
    }
}

/* --------------------------------------------------------------------------
   03. 舞台：所有内容以它为定位原点，字号 = 封面宽度的 1%
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-stage {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;

    font-size: 1vw; /* 兜底：不支持容器查询时按视口宽度 */
    line-height: 1;
    color: #fff;
}

@supports (container-type: inline-size) {
    .Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-stage {
        font-size: 1cqw;
    }
}

/* 右侧斜切色块：对应原图 M670 0 H1200 V675 H510 Z */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #144f8c 0%, #102d52 100%);
    clip-path: polygon(55.833% 0, 100% 0, 100% 100%, 42.5% 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   04. 背景装饰：两个大圆环 + 中轴线（原图 opacity .08 的线稿）
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-ring {
    position: absolute;
    top: 10.37%;
    width: 41.667%;
    aspect-ratio: 1 / 1;
    border: 0.25em solid rgba(138, 199, 242, .08);
    border-radius: 50%;
    pointer-events: none;
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-ring--home { left: 2.5%; }
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-ring--away { left: 55.833%; }

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-axis {
    position: absolute;
    left: 50%;
    top: 22.22%;
    width: max(1px, 0.1667em);
    height: 54.81%;
    transform: translateX(-50%);
    background: rgba(138, 199, 242, .10);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   05. 左上角角标：比赛录像
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-badge {
    position: absolute;
    left: 4%;
    top: 5.78%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.955em;        /* 43px ÷ 22 */
    padding: 0 1.227em;     /* 27px ÷ 22 */
    border-radius: .955em;  /* 21px ÷ 22 */
    background: rgba(255, 255, 255, .086);
    color: #a9d7f3;
    font-size: max(10px, 1.833em);  /* 22px @ 1200；小卡片最低 10px */
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   06. 顶部联赛名
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-league {
    position: absolute;
    left: 50%;
    top: 8.53%;
    display: block;
    max-width: 56%;
    transform: translateX(-50%);
    color: #d3e8f8;
    font-size: max(11px, 3.333em);  /* 40px @ 1200；小卡片最低 11px */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   07. 两侧队徽：白色圆底 + 84% 内嵌 logo
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-team {
    position: absolute;
    top: 26.667%;
    display: grid;
    place-items: center;
    width: 19.667%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: #f7fafc;
    box-shadow: 0 .5em 1.1em rgba(3, 12, 24, .22);
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-team--home { left: 13.5%; }
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-team--away { left: 66.833%; }

/* 没有队徽时（.Sq1-mc-team 里没有 img 节点），用一圈虚线占位，避免只剩一个大白圆。
   用 :has 而不是 :empty，模板换行留下的空白文本不会影响判断 */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-team:not(:has(> img))::after {
    content: "";
    width: 46%;
    height: 46%;
    border: .22em dashed rgba(16, 42, 67, .22);
    border-radius: 50%;
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-logo-img {
    display: block;
    width: 84%;
    height: 84%;
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
    transform: none;
    transition: transform .35s ease;
}

/* --------------------------------------------------------------------------
   08. 两侧队名
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-name {
    position: absolute;
    top: 66.8%;
    display: block;
    width: 30%;
    transform: translateX(-50%);
    color: #fff;
    font-size: max(11px, 3.333em);  /* 40px @ 1200；小卡片最低 11px */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .01em;
    text-align: center;
    text-shadow: 0 .05em .2em rgba(0, 0, 0, .30);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-name--home { left: 23.333%; }
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-name--away { left: 76.667%; }

/* --------------------------------------------------------------------------
   09. VS：和队名同一行，居中做分隔，把正中心让给播放键
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-vs {
    position: absolute;
    left: 50%;
    top: 66.4%;
    transform: translateX(-50%);
    color: rgba(211, 232, 248, .82);
    font-size: max(12px, 3.8em);  /* 45.6px @ 1200；小卡片最低 12px */
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
    text-align: center;
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   10. 底部信息：日期时间 · 全场回放
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-foot {
    position: absolute;
    left: 50%;
    bottom: 8%;
    display: block;
    width: max-content;
    max-width: 70%;
    transform: translateX(-50%);
    padding-top: 1.05em;
    border-top: 1px solid rgba(114, 185, 231, .32);
    color: #b9d7ed;
    font-size: max(11px, 2.167em);  /* 26px @ 1200；小卡片最低 11px */
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-sep { margin: 0 .45em; }

/* --------------------------------------------------------------------------
   11. 居中播放键：正中心、够大、白描边，一眼能看出可点
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 10.5em;          /* 126px @ 1200 */
    height: 10.5em;
    transform: translate(-50%, -50%);
    border: max(1px, .12em) solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    background: rgba(4, 16, 30, .42);
    -webkit-backdrop-filter: blur(.4em);
    backdrop-filter: blur(.4em);
    box-shadow:
        0 0 0 .4em rgba(255, 255, 255, .07),
        0 .9em 2em rgba(3, 12, 24, .38);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: .55em;      /* 三角形视觉居中 */
    border-style: solid;
    border-width: 1.4em 0 1.4em 2.3em;
    border-color: transparent transparent transparent #fff;
}

/* --------------------------------------------------------------------------
   12. 交互：只做轻微反馈，不改变布局
   -------------------------------------------------------------------------- */
.Sq1-mc-cover.Sq1-mc-cover:hover .Sq1-mc-play {
    background: rgba(22, 103, 184, .62);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.Sq1-mc-cover.Sq1-mc-cover:hover .Sq1-mc-logo-img {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   13. 窄容器：角标、日期全部保留，只收窄联赛并放大播放键
   -------------------------------------------------------------------------- */
@container mc (max-width: 520px) {
    .Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-league {
        max-width: 48%;
    }

    /* 小卡片里队名和底栏离得近，底栏再往下压一点 */
    .Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-foot {
        bottom: 6.5%;
    }

    .Sq1-mc-cover.Sq1-mc-cover .Sq1-mc-play {
        width: 11em;
        height: 11em;
    }
}

/* --------------------------------------------------------------------------
   14. 可选：给外层 <a> 加 class="mc-host" 时，顺手把宿主盒子归一化
       （主题若给 .qmw-replay-cover 加了 padding / 边框 / 背景，会破坏封面比例）
   -------------------------------------------------------------------------- */
.Sq1-mc-host.Sq1-mc-host {
    display: block;
    position: relative;
    padding: 0;
    border: 0;
    text-decoration: none;
    color: inherit;
}

/* 插件自带的播放键：如果它的 JS 必须依赖 .qmw-play、不能删节点，
   保留节点但用这条规则藏掉，避免和组件居中的 .Sq1-mc-play 重复 */
.Sq1-mc-host .Sq1-qmw-play {
    display: none;
}
