@charset "utf-8";
/* ═══════════════════════════════════════════════
   TIYU 体育站 — 国产体育门户风（参考 sports.qq.com）
   ───────────────────────────────────────────────
   基座 · meiju-site.css（沿用 .mj- 组件）
   气质 · 白底 / 红色品牌 / 高信息密度 / 门户式排版
   字体 · 全部走系统字体栈，不加载 Google Fonts
   ═══════════════════════════════════════════════ */

/* 用 tiyu 本地副本，保证本站没有任何 Google Fonts 请求 */
@import url("meiju-site.css");
/* tiyu-sports.css 由 include.html 以独立 <link> 加载，便于独立缓存控制 */

/* ═══════════════ THEME TOKENS · 日间（默认）═══════════════
   参考 sports.qq.com：白底、红色品牌、深灰正文、浅灰分割
*/
:root {
    /* 页面 / 卡片 / 次级底色 —— 纯白体系，不再用冷灰 */
    --bg-base: #f4f5f7;
    --bg-card: #ffffff;
    --bg-elevated: #fafbfc;
    --bg-ink: #f0f2f5;
    --bg-chrome: rgba(255, 255, 255, 0.94);

    /* 品牌 / CTA：腾讯体育式中国红（非橘色）*/
    --brand: #e3302e;
    --brand-dark: #c61f1e;
    --brand-dim: rgba(227, 48, 46, 0.08);
    --brand-glow: rgba(227, 48, 46, 0.18);
    --accent: var(--brand);
    --accent-soft: var(--brand-dark);
    --accent-dim: var(--brand-dim);
    --accent-glow: var(--brand-glow);
    --on-accent: #ffffff;

    /* 辅助：LIVE 与品牌共用一套红，一致性更强 */
    --live-red: var(--brand);

    /* 次级语义（标签色条场景）*/
    --pitch: #2b7a4c;
    --gold: #c9962a;
    --europa: #3e5a88;

    /* 胜负语义色（专家战绩 / 推荐命中） */
    --win-green: #1fa463;
    --win-green-dim: rgba(31, 164, 99, 0.1);
    --loss-red: var(--brand);
    --loss-red-dim: var(--brand-dim);

    /* 正文色：偏中性、略带冷调（体育站可读性优先，整体加深一档）*/
    --text-1: #13161b; /* 主标题 / 强调 */
    --text-2: #2a303a; /* 正文 */
    --text-3: #58607a; /* 次要信息 / 时间 / 来源 */
    --text-muted: #8a92a4;

    /* 分隔 / 描边：提高能见度，不再「轻得看不见」*/
    --border: #d9dde4;
    --border-strong: #c0c5d0;
    --border-hover: #9aa0ae;

    --overlay-line: rgba(15, 23, 42, 0.04);
    --vignette: rgba(15, 23, 42, 0.04);

    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 4px 16px -4px rgba(15, 23, 42, 0.1);

    /* 字体：100% 系统字体，不外联 */
    --font-body:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
        sans-serif;
    --font-display: var(--font-body);
    --font-number:
        ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", "DejaVu Sans Mono", monospace;
}

/* ─── 夜间模式（仅系统偏好为 dark 时） ─── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #0e1014;
        --bg-card: #161920;
        --bg-elevated: #1c2029;
        --bg-ink: #0a0c10;
        --bg-chrome: rgba(14, 16, 20, 0.88);

        /* 深色下继续保留品牌红，只是稍微提亮以保对比 */
        --brand: #eb3a35;
        --brand-dark: #c02a27;
        --brand-dim: rgba(235, 58, 53, 0.12);
        --brand-glow: rgba(235, 58, 53, 0.22);
        --accent: var(--brand);
        --accent-soft: var(--brand-dark);
        --accent-dim: var(--brand-dim);
        --accent-glow: var(--brand-glow);
        --on-accent: #ffffff;
        --live-red: var(--brand);

        --pitch: #3e9a64;
        --gold: #d4a43a;
        --europa: #5073a8;

        --win-green: #4ad48a;
        --win-green-dim: rgba(74, 212, 138, 0.14);
        --loss-red: var(--brand);
        --loss-red-dim: var(--brand-dim);

        --text-1: #edeff3;
        --text-2: #bec3cd;
        --text-3: #858c9b;
        --text-muted: #565d6c;

        --border: #2d313c;
        --border-strong: #3d4250;
        --border-hover: #5a6073;

        --overlay-line: rgba(255, 255, 255, 0.025);
        --vignette: rgba(0, 0, 0, 0.35);

        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-card-hover: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    }
}

/* 完全移除满屏环境色 —— 底部只留极淡暗角（token 驱动，两种模式都合适） */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 120%,
        var(--vignette),
        transparent 55%
    );
}

/* 基座那层彩色噪点整体淡化 */
body::before {
    opacity: 0.08;
}

/* ═══════════════ 覆盖 meiju 基座里的硬编码深色 ═══════════════
   meiju 把 header / 移动底栏 / hero 渐变的背景用 rgba(9,9,11,..) 硬编码了，
   这里统一替换成 token，两种模式都能正确显示 */
.mj-header {
    background: var(--bg-chrome);
    border-bottom-color: var(--border);
}
.mj-mob-nav {
    background: var(--bg-chrome);
    border-top-color: var(--border);
}

/* ═══════════════ 区块标题：门户式（红色左竖条 + 粗中文）═══════════════
   参考 sports.qq.com / 新浪体育：红竖条 + 黑色粗标题 + 灰色副标 + 右侧「更多 >」
*/
.mj-section {
    margin: 0 0 20px;
}
.mj-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.mj-section__title {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-1);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
}
/* 覆盖 meiju 的 4×24 彩色条，换成门户风的 3×14 品牌红小竖条 */
.mj-section__title::before {
    content: "";
    display: block !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--brand);
    border-radius: 1px;
}
.mj-section__sub {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-3);
    letter-spacing: 0;
    text-transform: none;
    margin-left: 2px;
}
.mj-section__more {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-3);
    transition: color 0.15s ease;
}
.mj-section__more:hover {
    color: var(--brand);
}
/* 首屏大 H1（如 "直播中心"、"比分速递"）保持粗大 */
main > .mj-section:first-of-type .mj-section__title {
    font-size: 22px;
}

/* ═══════════════ BUTTONS · broadcast 风的深墨主色 + 中性二级 ═══════════════
   meiju 基座 .mj-btn--primary 写死了 color: #09090b（深色），在新深墨 accent
   背景上会看不见。这里统一重写按钮视觉，两种模式都能自洽。
*/
.mj-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}
.mj-btn--primary {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}
.mj-btn--primary:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: none; /* 去掉 meiju 里那层橘色光晕 */
}
.mj-btn--ghost,
.mj-btn--secondary {
    background: transparent;
    color: var(--text-1);
    border-color: var(--border-strong);
}
.mj-btn--ghost:hover,
.mj-btn--secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--text-2);
}

/* ═══════════════ LAYOUT · PAGE CONTAINER ═══════════════
   meiju 基座里没有 .mj-container 规则，这里补上
   门户风：紧凑一点的左右边距 + header 高度补偿
*/
.mj-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--header-h) + 16px) clamp(12px, 3vw, 40px) 48px;
}
@media (max-width: 768px) {
    .mj-container {
        padding: calc(var(--header-h) + 12px) clamp(10px, 3vw, 16px) 72px;
    }
}

/* ═══════════════ HEADER · 门户式紧凑品牌 ═══════════════ */
.mj-header__brand-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0;
    color: var(--text-1);
}
/* 品牌名的最后一个字用红色呼应（参考 新浪/腾讯 logo 习惯） */
.mj-header__brand::after {
    content: "";
    width: 0;
    height: 0;
    margin: 0;
    display: none;
}
.mj-header__brand-name::first-letter {
    color: inherit;
}

/* 导航 active 态：底部一条实线 + 文字色调 */
.mj-nav__item.active {
    color: var(--text-1);
    background: transparent;
}
.mj-nav__item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
    width: auto;
    transform: none;
}

/* 导航里「直播」指示：去掉脉冲外光晕，仅保留一个 tiny 红点 */
.mj-nav__item.is-live {
    padding-right: 22px;
}
.mj-nav__item.is-live::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live-red);
    transform: translateY(-50%);
}
/* 非激活态不显示下划线；激活态（/live 当前页）沿用通用 .active::after 红线 */
.mj-nav__item.is-live:not(.active)::after {
    display: none;
}

/* 搜索框：降饱和 */
.mj-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
}
.mj-search__btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ═══════════════ WORLD CUP HERO · 门户风紧凑横幅 ═══════════════ */
.ty-wc {
    position: relative;
    margin: 0 0 20px;
    padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 28px);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, #c61f1e 0%, #8a1816 100%);
    border: none;
    overflow: hidden;
    color: #fff;
}
.ty-wc::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.08),
            transparent 50%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(0, 0, 0, 0.2),
            transparent 50%
        );
    pointer-events: none;
}
.ty-wc__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.ty-wc__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #fff;
    margin-bottom: 12px;
}
.ty-wc__tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}
.ty-wc__title {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 10px;
}
.ty-wc__title em {
    font-style: normal;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    padding: 0 8px;
    border-radius: 2px;
    margin-left: 4px;
}
.ty-wc__desc {
    max-width: 560px;
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
}
.ty-wc__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* hero 内按钮样式覆盖（白底红字 + 透明描边，和红底搭更明显）*/
.ty-wc .mj-btn--primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.ty-wc .mj-btn--primary:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
}
.ty-wc .mj-btn--ghost,
.ty-wc .mj-btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}
.ty-wc .mj-btn--ghost:hover,
.ty-wc .mj-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.ty-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(56px, 72px));
    gap: 6px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.ty-countdown__cell {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
}
.ty-countdown__num {
    font-family: var(--font-number);
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    color: #fff;
    line-height: 1;
}
.ty-countdown__label {
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
    .ty-wc {
        padding: 28px 22px;
    }
    .ty-wc__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .ty-countdown {
        grid-template-columns: repeat(4, 1fr);
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 18px;
    }
}

/* ═══════════════ LIVE HEAD DOT ═══════════════ */
.ty-live-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ty-live-head__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red);
    animation: ty-pulse-dot 1.8s ease-in-out infinite;
    will-change: transform, opacity;
}
/* 扩散环改走 transform+opacity（GPU 合成），比 box-shadow 便宜一个数量级。
   注意：复用该 keyframes 的元素（.mj-nav__item.is-live::before /
   .ty-ticker__label::before / .ty-match-card__pulse / .ty-badge--live::before /
   .ty-feature__live::before 等）**本身就是小圆点**，我们不再往外扩一圈环，
   改成"点自身呼吸式淡入淡出"，视觉仍表达 alive，重绘成本接近 0。*/
@keyframes ty-pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

/* ═══════════════ SCORE TICKER · 门户风实时赛情条（无边框） ═══════════════ */
.ty-ticker {
    position: relative;
    margin-bottom: 20px;
    padding: 0 14px 0 92px;
    height: 34px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.ty-ticker__label {
    position: absolute;
    z-index: 99;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
    border-right: none;
}
.ty-ticker__label::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: ty-pulse-dot 1.8s ease-in-out infinite;
}
.ty-ticker__label::after {
    display: none;
}
.ty-ticker__track {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    animation: ty-ticker-scroll 45s linear infinite;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-2);
    /* 提升到独立合成层，避免持续触发父容器 paint */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.ty-ticker:hover .ty-ticker__track,
.ty-ticker.is-offscreen .ty-ticker__track,
.ty-ticker.is-hidden .ty-ticker__track {
    animation-play-state: paused;
}
.ty-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}
.ty-ticker__item b {
    color: var(--text-1);
    font-weight: 700;
    padding: 0 3px;
}
.ty-ticker__item i {
    font-style: normal;
    opacity: 0.65;
}
.ty-ticker__logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}
.ty-ticker__team {
    color: var(--text-2);
}
.ty-ticker__team--w {
    color: var(--win-green);
    font-weight: 700;
}
.ty-ticker__team--l {
    color: var(--text-3);
    font-weight: 500;
}
.ty-ticker__team--d {
    color: var(--text-2);
    font-weight: 600;
}
.ty-ticker__score {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-number);
    font-weight: 800;
}
.ty-ticker__num {
    font-style: normal;
    padding: 0 1px;
}
.ty-ticker__num--w { color: var(--win-green); }
.ty-ticker__num--l { color: var(--text-3); }
.ty-ticker__num--d { color: var(--text-1); }
.ty-ticker__league {
    color: var(--text-3);
    font-size: 11px;
}
/* 直播中场次：LIVE 红点前缀 */
.ty-ticker__item--live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live-red);
    margin-right: 2px;
    flex-shrink: 0;
}
@keyframes ty-ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@media (max-width: 480px) {
    .ty-ticker {
        padding-left: 72px;
    }
    .ty-ticker__label {
        width: 64px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

/* ═══════════════ SPORTS CATEGORIES · 无边框门户块 ═══════════════ */
.ty-sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.ty-sport {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    transition: background 0.18s ease;
}
.ty-sport:hover {
    background: var(--bg-elevated);
}
.ty-sport::before {
    display: none;
}
.ty-sport__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border: none;
    flex-shrink: 0;
}
.ty-sport__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}
.ty-sport__count {
    margin-top: 1px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0;
}
/* 运动 hover 时一条细横线闪过 —— 替代整块渐变 */
.ty-sport {
    position: relative;
    overflow: hidden;
}
.ty-sport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--ty-sport-color, var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}
.ty-sport:hover::after {
    transform: scaleX(1);
}
.ty-sport--zq {
    --ty-sport-color: var(--pitch);
}
.ty-sport--lq {
    --ty-sport-color: var(--accent);
}
.ty-sport--wq {
    --ty-sport-color: var(--gold);
}
.ty-sport--snk {
    --ty-sport-color: var(--europa);
}

/* ═══════════════ VOD BOX · 首页视频卡（.ty-match）═══════════════
   沿用 meiju-like 卡，但：
   · 去掉彩色皇冠渐变评分徽章里的金光
   · 去掉 hover 观看条的渐变
   · 去掉票据锯齿（太装饰）
*/
.mj-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
@media (max-width: 768px) {
    .mj-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.ty-match {
    position: relative;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.2s ease;
}
.ty-match:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.ty-match__link {
    display: block;
    color: inherit;
}
.ty-match__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-elevated);
}
.ty-match__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.5s var(--ease-out),
        filter 0.25s ease;
}
.ty-match:hover .ty-match__img {
    transform: scale(1.04);
    filter: brightness(0.78);
}
.ty-match__thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 30%,
        transparent 55%,
        rgba(0, 0, 0, 0.82) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── 视频卡片浮层（覆盖在缩略图上方）──
   注意：这些徽章漂浮在任意色图片之上，所以字色/背景色 **不走 token**，
   固定黑底白字，保证在任何封面上都能看清 */

/* 左上：联赛徽章 */
.ty-match__league {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    font-family: var(--font-number);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(8, 10, 16, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

/* 右上：状态角标 */
.ty-match__ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    font-family: var(--font-number);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #fff;
    background: rgba(8, 10, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ty-match__ribbon--live {
    background: var(--live-red);
    border-color: transparent;
}
.ty-match__ribbon--new {
    color: #fff;
    background: rgba(8, 10, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.22);
}
.ty-match__ribbon--soon {
    color: #fff;
    background: rgba(8, 10, 16, 0.8);
    border-color: rgba(255, 255, 255, 0.22);
}
.ty-match__ribbon--end {
    background: rgba(8, 10, 16, 0.72);
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}
.ty-match__ribbon-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: ty-pulse-dot 1.4s ease-in-out infinite;
}

/* 标题覆盖在缩略图底部 */
.ty-match__title-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 13px 12px;
    transition: transform 0.25s var(--ease-out);
}
.ty-match__title {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: 0.15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.ty-match:hover .ty-match__title-wrap {
    transform: translateY(-26px);
}

/* hover 观看条：换成纯色窄条 + 右滑箭头 */
.ty-match__watch {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-number);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}
.ty-match__watch svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.ty-match:hover .ty-match__watch {
    transform: translateY(0);
}
.ty-match:hover .ty-match__watch svg {
    transform: translateX(3px);
}

/* 底部信息栏：平铺 · 去掉票据锯齿 */
.ty-match::before {
    display: none;
}
.ty-match__foot {
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--bg-base);
    font-family: var(--font-number);
    font-size: 11px;
    color: var(--text-2);
    letter-spacing: 0.2px;
}
.ty-match__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-2);
    font-weight: 500;
}
.ty-match__date svg {
    width: 11px;
    height: 11px;
    opacity: 0.55;
}
.ty-match__status {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-3);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ty-match__status--play {
    color: var(--accent);
}

/* 禁用 meiju 原有 card 内部修饰叠加 */
.ty-match .mj-card__overlay,
.ty-match .mj-card__play,
.ty-match .mj-card__badge,
.ty-match .mj-card__new-tag {
    display: none;
}

@media (max-width: 480px) {
    .ty-match__title {
        font-size: 12.5px;
    }
    .ty-match__foot {
        height: 36px;
        font-size: 10.5px;
        padding: 0 10px;
    }
    .ty-match__league {
        font-size: 9.5px;
        height: 20px;
        padding: 0 8px;
    }
}

/* ═══════════════ Misc · Empty state ═══════════════ */
.ty-empty {
    padding: 56px 20px;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-3);
    font-size: 13px;
    font-family: var(--font-body);
}

/* ═══════════════ CONTENT-VISIBILITY · 跳过首屏外布局/绘制 ═══════════════
   只对板块容器生效；浏览器会跳过未进入 viewport 的 layout/paint 成本。
   contain-intrinsic-size 给一个占位高度，避免滚动条跳动。
*/
.mj-section,
.ty-live-section,
.ty-sports-grid,
.ty-upcoming-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 520px;
}
/* 世界杯 hero / 跑马灯 / 首屏必展示的 live_board 不应用，避免首屏高度跳 */
.ty-wc,
.ty-ticker,
.ty-live-grid {
    content-visibility: visible;
}

/* ═══════════════ REDUCED MOTION & PERF GUARDS ═══════════════
   体育站默认有跑马灯 + 多个脉冲点，用户若开了减弱动画偏好，
   或页面不可见（visibility:hidden），一律停掉无限动画，避免白烧 CPU。
*/
@media (prefers-reduced-motion: reduce) {
    .ty-ticker__track,
    .ty-live-head__dot,
    .ty-match-card__pulse,
    .ty-ticker__label::before,
    .ty-badge--live::before,
    .ty-feature__live::before,
    .ty-row__live-tag::before,
    .ty-scoreboard__kick--live::before,
    .ty-slot--live::after,
    .ty-match__ribbon-dot {
        animation: none !important;
    }
}
