/* ============================================================
   看球吧 · 体育直播（单页复刻 Demo）
   原创手写样式，无第三方框架依赖
   ============================================================ */

:root {
    --primary: #d91b06;
    --primary-dark: #0e0e0e;
    --primary-grad: linear-gradient(-180deg, #23211f, #0e0e0e);
    --primary-soft: #fff4f2;
    --text: #222222;
    --text-sub: #666666;
    --muted: #7d7d7d;
    --line: #efefef;
    --page-bg: #f2f3f5;
    --radius: 6px;
    --container: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { border: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }

.container {
    width: var(--container);
    margin: 0 auto;
}

.clearfix::after { content: ""; display: table; clear: both; }

/* ---------------- 头部 ---------------- */
.site-header { background: #fff; }

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.header-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}

.header-meta .stat strong {
    color: var(--primary);
    font-size: 17px;
    margin: 0 3px;
    font-variant-numeric: tabular-nums;
}

/* 主导航 */
.main-nav { background: var(--primary); }

.main-nav-list {
    display: flex;
    align-items: stretch;
    height: 50px;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav-list::-webkit-scrollbar { display: none; }

.main-nav-list .nav-item { display: flex; flex: 0 0 auto; }

.main-nav-list .nav-item > a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav-list .nav-item:hover,
.main-nav-list .nav-item.active { background: var(--primary-grad); }

/* 热门联赛条 */
.league-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.league-bar-inner {
    display: flex;
    align-items: center;
    height: 44px;
    overflow: hidden;
}

.league-bar-tag {
    position: relative;
    flex: 0 0 auto;
    padding: 0 28px 0 2px;
    color: var(--muted);
}
.league-bar-tag::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    margin-top: -5px;
    border-left: 5px solid var(--muted);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.league-list {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.league-list::-webkit-scrollbar { display: none; }

.league-list li { flex: 0 0 auto; }

.league-list li a {
    display: block;
    padding: 0 15px;
    color: var(--muted);
    line-height: 44px;
    white-space: nowrap;
}

.league-list li a:hover,
.league-list li.active a { color: var(--primary); font-weight: 600; }

/* ---------------- 板块标题 / 筛选 ---------------- */
.tabs-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.tag-title {
    position: relative;
    padding-left: 12px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.tag-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 19px;
    margin-top: -10px;
    background: var(--primary);
}

.home-tabs { display: flex; align-items: center; gap: 15px; }

.home-tabs li {
    width: 80px;
    padding: 6px 0;
    text-align: center;
    background: #dedede;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease, color .2s ease;
}

.home-tabs li:hover,
.home-tabs li.active { background: var(--primary); color: #fff; }

/* ---------------- 面板 ---------------- */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    padding: 0 15px 12px;
}

.match-date {
    display: inline-block;
    margin: 14px 0 6px;
    padding: 4px 18px 4px 12px;
    background: #eeeeee;
    border-radius: 0 50px 50px 0;
    font-size: 13px;
}

/* 热门赛事卡片 */
.hot-list {
    display: flex;
    gap: 12px;
    padding: 14px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hot-list::-webkit-scrollbar { display: none; }

.hot-card {
    flex: 0 0 250px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hot-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(217, 27, 6, .12);
}

.hot-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}
.hot-card-top .hot-league { color: var(--primary); font-weight: 600; }

.hot-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-align: center;
}
.hot-card-teams .team-col { flex: 1; min-width: 0; }
.hot-card-teams .team-col .team-badge { margin-bottom: 6px; }
.hot-card-teams .team-col a {
    display: block;
    overflow: hidden;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hot-card-teams .vs-mark { flex: 0 0 30px; color: #bbb; font-weight: 700; }

/* 赛事列表 */
.match-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.match-list li:last-child { border-bottom: 0; }
.match-list li:hover { background: #fbfbfb; }

.match-meta {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 0;
}
.sport-icon { flex: 0 0 auto; width: 22px; height: 22px; margin-right: 10px; }
.match-time {
    flex: 0 0 auto;
    width: 54px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.match-league {
    overflow: hidden;
    color: var(--text-sub);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.match-league:hover { color: var(--primary); }

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54%;
    min-width: 0;
}
.team {
    display: flex;
    align-items: center;
    width: 140px;
    min-width: 0;
    font-weight: 700;
}
.team-home { justify-content: flex-start; }
.team-away { justify-content: flex-end; }
.team-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}
.team-badge.is-lg { width: 34px; height: 34px; font-size: 15px; }
.team-home .team-badge { margin-right: 8px; }
.team-away .team-badge { margin-left: 8px; }

.vs {
    width: 110px;
    flex: 0 0 auto;
    padding: 0 10px;
    text-align: center;
    color: #999;
    font-weight: 700;
}

.match-action { width: 16%; text-align: right; }

.btn-live {
    display: inline-block;
    width: 110px;
    padding: 6px 0;
    border: 1px solid var(--primary);
    border-radius: 5px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-live:hover { background: var(--primary); color: #fff; }

.btn-live.is-live {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-live.is-live .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s infinite;
}
.btn-live.is-ended {
    border-color: #e0e0e0;
    background: #fafafa;
    color: #aaaaaa;
}
.btn-live.is-ended:hover { background: #f0f0f0; color: #999; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.hot-card-action { margin-top: 12px; text-align: center; }

/* 日期分组标题 */
.match-date-wrap { margin: 0; padding: 0; font-weight: normal; }

/* 页面主标题栏（SEO h1） */
.page-title-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 15px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.page-title-bar h1 { margin: 0; color: var(--primary); font-size: 18px; font-weight: 700; }
.page-title-bar .page-sub { color: var(--muted); font-size: 12px; }
.page-title-bar .page-sub time { font-variant-numeric: tabular-nums; }

.empty-tip {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
    margin-top: 20px;
    padding: 18px 0;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}
.site-footer a { color: #fff; opacity: .92; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.footer-links { margin-bottom: 8px; }
.footer-links a { margin: 0 8px; }

/* 返回顶部 */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 40px;
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 20px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}
.to-top.is-show { display: block; }

/* ---------------- 响应式 ---------------- */
@media screen and (max-width: 1100px) {
    .container { width: 100%; padding: 0 12px; }

    .header-top { flex-direction: column; gap: 4px; padding: 8px 0; }
    .logo img { height: 38px; }
    .header-meta { gap: 14px; font-size: 12px; }

    .main-nav-list { height: 44px; }
    .main-nav-list .nav-item > a { padding: 0 16px; font-size: 14px; }
    .main-nav-list .nav-item:first-child > a { padding-left: 4px; }

    .league-bar-tag { display: none; }
    .league-list li a { padding: 0 12px; line-height: 40px; font-size: 13px; }

    .tabs-box { margin-top: 12px; padding: 10px; }
    .tag-title { font-size: 16px; }
    .home-tabs { width: 100%; gap: 8px; overflow-x: auto; }
    .home-tabs li { flex: 1 0 auto; width: auto; min-width: 68px; padding: 5px 12px; font-size: 13px; }

    .panel { padding: 0 10px 10px; }

    .match-list li {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 0;
        font-size: 14px;
    }
    .match-meta { width: 100%; padding-bottom: 8px; }
    .sport-icon { display: none; }
    .match-time { width: 46px; }

    .match-teams { width: 62%; justify-content: space-between; }
    .team { width: auto; max-width: 45%; font-weight: 600; font-size: 13px; }
    .team-badge { width: 24px; height: 24px; font-size: 12px; }
    .team-home .team-badge { margin-right: 5px; }
    .team-away .team-badge { margin-left: 5px; }
    .vs { width: 26px; padding: 0; font-size: 12px; font-weight: 400; }

    .match-action { width: 38%; }
    .btn-live { width: 88px; padding: 5px 0; font-size: 13px; }

    .hot-card { flex: 0 0 220px; }

    .to-top { right: 14px; bottom: 24px; width: 38px; height: 38px; line-height: 36px; font-size: 17px; }
}

/* ============================================================
   多页结构新增样式：面包屑 / 介绍文字 / 联赛导航 / 比赛详情 / noscript
   ============================================================ */
.noscript-tip {
    margin-top: 15px;
    padding: 12px 14px;
    background: #fff8e6;
    border: 1px solid #f5e2b3;
    color: #8a6d3b;
    font-size: 13px;
    line-height: 1.9;
}
.noscript-tip a { color: var(--primary); text-decoration: underline; }

/* 面包屑 */
.breadcrumb {
    margin-top: 15px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--primary); }
.breadcrumb .crumb-sep { color: #c9c9c9; }
.breadcrumb [aria-current] { color: var(--text); }

/* 介绍文字（避免薄内容） */
.page-intro {
    margin-top: 15px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.9;
}
.page-intro a { color: var(--primary); }

/* 联赛导航（站内互链） */
.league-nav-box { margin-top: 15px; padding: 14px; }
.league-nav-label { margin-bottom: 10px; color: var(--text); font-weight: 700; }
.league-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.league-nav-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f6f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-sub);
    font-size: 13px;
}
.league-nav-item:hover { background: var(--primary-soft); border-color: #f4c7c0; color: var(--primary); }
.league-nav-item.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.league-nav-more { margin-top: 10px; color: var(--muted); font-size: 13px; }
.league-nav-more a { color: var(--primary); }

/* 页脚里的联赛导航 */
.site-footer .league-nav-box { margin: 0 0 12px; padding: 0; background: none; border: 0; }
.site-footer .league-nav-label { margin-bottom: 8px; color: #fff; }
.site-footer .league-nav { justify-content: center; }
.site-footer .league-nav-item {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}
.site-footer .league-nav-item:hover,
.site-footer .league-nav-item.is-current { background: #fff; border-color: #fff; color: var(--primary); }

/* 比赛详情页 */
.match-detail { margin-top: 15px; padding: 20px; background: #fff; border: 1px solid var(--line); }
.detail-title { margin-bottom: 14px; font-size: 22px; font-weight: 700; text-align: center; }
.detail-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    color: var(--muted);
    font-size: 13px;
}
.detail-league { display: inline-flex; align-items: center; gap: 6px; }
.detail-league a { color: var(--primary); }
.sport-icon.is-lg { width: 20px; height: 20px; }
.detail-status { padding: 2px 10px; border: 1px solid #ddd; border-radius: 999px; color: var(--muted); }
.detail-status.is-live { border-color: var(--primary); background: var(--primary); color: #fff; }
.detail-status.is-live .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s infinite;
}
.detail-status.is-ended { background: #fafafa; }
.detail-teams { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 10px; }
.detail-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.detail-team .team-badge.is-lg { width: 56px; height: 56px; font-size: 24px; }
.detail-team-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 700; }
.detail-team em { color: var(--muted); font-size: 12px; font-style: normal; }
.detail-vs { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.detail-vs b { color: #999; font-size: 16px; }
.detail-vs em { color: var(--muted); font-size: 13px; font-style: normal; }
.detail-info { margin-top: 10px; border-top: 1px solid var(--line); }
.detail-info > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-info > div:last-child { border-bottom: 0; }
.detail-info dt { flex: 0 0 90px; color: var(--muted); }
.detail-info dd { margin: 0; color: var(--text); }
.detail-info a { color: var(--primary); }

/* 相关比赛列表 */
.related-panel { margin-top: 15px; padding: 14px; }
.related-panel .tag-title { margin-bottom: 10px; font-size: 16px; }
.related-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.related-list li:last-child { border-bottom: 0; }
.related-list time { flex: 0 0 96px; color: var(--muted); font-variant-numeric: tabular-nums; }
.related-match {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}
.related-match:hover { color: var(--primary); }
.related-status { flex: 0 0 auto; padding: 2px 10px; border: 1px solid #e0e0e0; border-radius: 999px; color: #999; font-size: 12px; }
.related-status.is-live { border-color: var(--primary); color: var(--primary); font-weight: 700; }

/* 列表中球队名是链接 */
a.team-name:hover { color: var(--primary); }

@media screen and (max-width: 1100px) {
    .breadcrumb, .page-intro, .league-nav-box, .match-detail, .related-panel, .noscript-tip { margin-top: 12px; }
    .match-detail { padding: 14px; }
    .detail-title { font-size: 17px; }
    .detail-teams { padding: 18px 0; gap: 8px; }
    .detail-team .team-badge.is-lg { width: 44px; height: 44px; font-size: 19px; }
    .detail-team-name { font-size: 15px; }
    .detail-info > div { display: block; }
    .detail-info dt { margin-bottom: 4px; }
    .related-list li { flex-wrap: wrap; gap: 6px 10px; }
    .related-list time { flex: 0 0 auto; }
    .related-match { flex: 1 0 60%; }
}

/* 导流条（不跳转、不影响收录） */
.promo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}
.promo-bar a {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 99px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}
.promo-bar a:hover { opacity: .9; }

/* iframe 嵌入区块 */
.embed-block { margin-top: 15px; }
.embed-block iframe { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.embed-fallback { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* 比分样式 */
.vs.score { color: var(--primary); font-size: 16px; letter-spacing: .5px; }
.detail-vs b { font-size: 22px; color: var(--primary); }

/* 队名双语：中文（English） */
.team-en { color: #9a9a9a; font-weight: 400; font-size: .82em; }
.team-en.is-block { display: block; font-size: .68em; margin-top: 2px; font-weight: 400; }
.detail-team-name .team-en.is-block { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 1100px) {
    .team-en { font-size: .85em; }
}

/* ============ 观看直播入口（多按钮 + 闪烁） ============ */
.watch-box { margin-top: 15px; }
.watch-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 150px;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(-180deg, #ff7a45, #e8590c);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(232, 89, 12, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.watch-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(232, 89, 12, .38); color: #fff; }

/* 主按钮（第一个）更醒目 */
.watch-btn.is-primary {
    flex: 1 1 100%;
    padding: 17px 20px;
    font-size: 19px;
    background: linear-gradient(-180deg, #ff5a3c, #d9220a);
    box-shadow: 0 6px 20px rgba(217, 27, 6, .35);
}
.watch-btn.is-primary .watch-play { font-size: 17px; }
.watch-play { font-size: 14px; }

/* 呼吸闪烁：吸引点击 */
@keyframes watchPulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(217, 27, 6, .30); transform: scale(1); }
    50%      { box-shadow: 0 12px 30px rgba(217, 27, 6, .70); transform: scale(1.025); }
}
@keyframes watchBlinkText {
    0%, 100% { opacity: 1; }
    50%      { opacity: .72; }
}
.watch-btn.is-blink { animation: watchPulse 1.6s ease-in-out infinite; }
.watch-btn.is-blink .watch-play { animation: watchBlinkText 1.6s ease-in-out infinite; }

/* 未配置地址的按钮：外观保持一致（照样醒目/闪烁），点击只给提示 */
.watch-btn.is-idle { cursor: pointer; }
.watch-btn.is-shake { animation: watchShake .4s ease; }
@keyframes watchShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px) rotate(-1deg); }
    45% { transform: translateX(5px) rotate(1deg); }
    70% { transform: translateX(-3px); }
}
.watch-idle-tip {
    margin: 12px 0 0;
    padding: 9px 14px;
    border-radius: 8px;
    background: #fff6ed;
    border: 1px solid #ffd9b8;
    color: #b7530b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* 播放器区域（点击后展开） */
.watch-embed-wrap { margin-top: 12px; }
.watch-embed { position: relative; width: 100%; height: 0; padding-bottom: 81.25%; background: #0e0e0e; border-radius: 8px; overflow: hidden; }
.watch-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-tip { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.watch-tip a { color: var(--primary); }

@media screen and (max-width: 1100px) {
    .watch-btns { gap: 10px; }
    .watch-btn { min-width: 120px; padding: 12px 14px; font-size: 15px; }
    .watch-btn.is-primary { font-size: 17px; padding: 15px 18px; }
}
