/* =========================================================
   赛程页 (足球 & 篮球通用) 样式表 - 终极万能防错版
   ========================================================= */
:root { --main-purple: #8C6BE7; --light-purple: #f8f6ff; }
.page-wrap { padding-bottom: 50px; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;}

/* 面包屑 & 框架 */
.breadcrumb { font-size: 13px; color: #888; padding: 8px 0; margin-bottom: 10px; }
.breadcrumb a { color: #555; text-decoration: none; }
.breadcrumb a:hover { color: var(--main-purple); }
.layout-grid { display: flex; gap: 20px; align-items: flex-start; }
.col-main { flex: 1; min-width: 0; background: #fff; border: 1px solid #e8e8e8; }
.col-side { width: 320px; flex-shrink: 0; }

/* 状态 Tab */
.jzt-c-tabs, .c-tabs { display: flex; background: #fafafa; border-bottom: 1px solid #e8e8e8; padding: 0 15px; }
.jzt-c-tabs a, .c-tabs a { padding: 15px 25px; font-size: 16px; font-weight: bold; color: #555; text-decoration: none; position: relative; transition: 0.2s; }
.jzt-c-tabs a:hover, .jzt-c-tabs a.active, .c-tabs a:hover, .c-tabs a.active { color: var(--main-purple); }
.jzt-c-tabs a.active::after, .c-tabs a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--main-purple); }

/* 日期导航 */
.jzt-c-dates, .c-dates { padding: 8px 8px; display: flex; gap: 12px; border-bottom: 1px solid #f0f0f0; background: #fff; flex-wrap: wrap; }
.jzt-c-dates a, .c-dates a { width: 95px; padding: 4px 0; text-align: center; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #555; transition: 0.2s; display: flex; flex-direction: column; }
.jzt-c-dates a:hover, .c-dates a:hover { border-color: #bbb; background: #fafafa; }
.jzt-c-dates a.active, .c-dates a.active { border-color: var(--main-purple); background: var(--main-purple); color: #fff; pointer-events: none; }
.jzt-c-dates a .jzt-d-date, .jzt-c-dates a .d-date, .c-dates a .jzt-d-date, .c-dates a .d-date { font-size: 14px; font-weight: bold; margin-bottom: 2px; }
.jzt-c-dates a .jzt-d-week, .jzt-c-dates a .d-week, .c-dates a .jzt-d-week, .c-dates a .d-week { font-size: 12px; }
.jzt-c-dates a:not(.active) .jzt-d-week, .jzt-c-dates a:not(.active) .d-week, .c-dates a:not(.active) .jzt-d-week, .c-dates a:not(.active) .d-week { color: #888; }

/* 联赛分组栏 */
.jzt-league-filter-bar, .league-filter-bar { background:#f8f9fa; padding:10px; border-radius:8px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.jzt-league-group-title, .league-group-title { background: #f0f4f8; padding: 12px 20px; font-size: 16px; font-weight: bold; color: #8C6BE7; border-left: 4px solid #8C6BE7; border-bottom: 1px solid #ddd; margin-top: 20px; display: flex; align-items: center; justify-content: space-between;}
.jzt-league-group-title a, .league-group-title a { font-size: 12px; font-weight: normal; color: #666; text-decoration: none; }
.jzt-league-group-title a:hover, .league-group-title a:hover { color: #8C6BE7; text-decoration: underline; }

/* ====================================
   列表行：PC 端严谨对齐 (多类名拦截)
   ==================================== */
.m-row, .jzt-m-row, .jzt-match-row { display: flex !important; align-items: center !important; padding: 15px 20px !important; border-bottom: 1px dashed #eee !important; transition: 0.2s; color: #333; text-decoration: none; background: #fff; flex-wrap: nowrap !important; }
.m-row:hover, .jzt-m-row:hover, .jzt-match-row:hover { background: #f8f6ff; }
.m-row:last-child, .jzt-m-row:last-child, .jzt-match-row:last-child { border-bottom: none !important; }

/* 时间 */
.m-time, .jzt-m-time { width: 50px; font-size: 14px; font-weight: bold; color: #444; flex-shrink: 0; }
.m-time .t-md, .jzt-m-time .t-md { display: none; } 

/* 状态 */
.m-status-box, .jzt-m-status-box { width: 60px; text-align: center; flex-shrink: 0; margin-right: 15px; }
.m-status, .jzt-m-status { display: inline-block; font-size: 12px; color: #888; }
.m-status.live, .jzt-m-status.live { color: #8C6BE7; font-weight: bold; animation: pulse 1.5s infinite; }
.mob-status { display: none; } 

/* 球队 */
.m-team, .jzt-m-team { flex: 1 !important; display: flex !important; align-items: center !important; gap: 10px; font-size: 15px; font-weight: 500; min-width: 0; }
.m-team.h, .jzt-m-team.h { justify-content: flex-end; text-align: right; }
.m-team.a, .jzt-m-team.a { justify-content: flex-start; text-align: left; }
.m-team a, .jzt-m-team a { color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.m-team a:hover, .jzt-m-team a:hover { color: var(--main-purple); }
.m-team img, .jzt-m-team img, .m-logo, .jzt-m-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; margin: 0; }
.m-team-name, .jzt-m-team-name, .jzt-jzt-m-team-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* 比分 */
.m-score, .jzt-m-score { width: 80px; text-align: center; font-size: 18px; font-weight: 900; color: #333; font-family: Impact, sans-serif; letter-spacing: 1px; flex-shrink: 0; }

/* 动作按钮 */
.m-act, .jzt-m-act { width: 80px; text-align: right; color: var(--main-purple); font-size: 13px; font-weight: bold; flex-shrink: 0;}
.m-act span, .jzt-m-act span { border: 1px solid var(--main-purple); padding: 4px 10px; border-radius: 3px; transition: 0.2s; }
.m-row:hover .m-act span, .jzt-m-row:hover .jzt-m-act span, .jzt-match-row:hover .jzt-m-act span { background: var(--main-purple); color: #fff; }

@keyframes pulse { 50% { opacity: 0.5; } }

/* ====================================
   移动端响应式 (绝对防重叠)
   ==================================== */
@media (max-width: 768px) {
    .layout-grid { flex-direction: column; }
    .col-side { width: 100%; }
    
    .m-row, .jzt-m-row, .jzt-match-row { flex-wrap: nowrap !important; padding: 12px 8px !important; gap: 4px; justify-content: space-between; }
    
    .m-time, .jzt-m-time { width: 36px; font-size: 11px; margin: 0; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; line-height: 1.3; }
    .m-time .t-md, .jzt-m-time .t-md { display: block; color: #999; font-size: 10px; }
    .m-time .t-hi, .jzt-m-time .t-hi { font-size: 12px; font-weight: bold; }
    
    .m-status-box, .jzt-m-status-box { width: 32px; margin: 0; flex-shrink: 0; text-align: center; }
    .m-status, .jzt-m-status { font-size: 10px; padding: 2px 0; background: #eee; border-radius: 2px; width: 100%; display: block; }
    .m-status.live, .jzt-m-status.live { background: #ffebee; color: #8C6BE7; }
    .pc-status { display: none; }
    .mob-status { display: inline; font-weight: bold; letter-spacing: 0;}
    
    .m-team, .jzt-m-team { font-size: 13px; gap: 4px; flex: 1; min-width: 0; }
    .m-team a, .jzt-m-team a { max-width: 75px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: normal; }
    .m-team img, .jzt-m-team img, .m-logo, .jzt-m-logo { width: 18px !important; height: 18px !important; margin: 0 !important; flex-shrink: 0;}
    
    .m-score, .jzt-m-score { width: 45px !important; font-size: 14px !important; flex-shrink: 0; text-align: center; letter-spacing: 0;}
    
    .m-act, .jzt-m-act { display: none !important; }
}




/* ====================================
   修复伪原创丢失的侧边栏样式 (.wg 模块)
   ==================================== */
.wg { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
.wg-hd { padding: 12px 18px; background: #fafafa; border-bottom: 1px solid #eee; font-size: 16px; font-weight: bold; border-left: 4px solid var(--main-purple); color: #333; display: flex; justify-content: space-between; align-items: center;}
.wg-hd a { font-size: 12px; font-weight: normal; color: #888; text-decoration: none; transition: 0.2s; }
.wg-hd a:hover { color: var(--main-purple); }

/* 新闻列表 */
.wg-ul { list-style: none; margin: 0; padding: 15px 20px; }
.wg-ul li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; display: flex; align-items: flex-start;}
.wg-ul li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.wg-ul li::before { content: '•'; color: var(--main-purple); font-weight: bold; margin-right: 8px; }
.wg-ul a { font-size: 14px; color: #444; line-height: 1.5; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: 0.2s;}
.wg-ul a:hover { color: var(--main-purple); }

/* 录像回放列表 */
.v-item { margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.v-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;}
.v-img { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; display: block; position: relative; }
.v-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: 0.3s; }
.v-item:hover .v-img img { opacity: 0.6; transform: scale(1.05); }
.v-tit { display: block; font-size: 13px; color: #333; line-height: 1.4; text-decoration: none; overflow: hidden; margin-top: 8px; font-weight: bold; transition: 0.2s; }
.v-item:hover .v-tit { color: var(--main-purple); }