/* =========================================================
   赛程页 (足球 & 篮球通用) 样式表 - 修复重叠版
   ========================================================= */
: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 */
.c-tabs { display: flex; background: #fafafa; border-bottom: 1px solid #e8e8e8; padding: 0 15px; }
.c-tabs a { padding: 15px 25px; font-size: 16px; font-weight: bold; color: #555; text-decoration: none; position: relative; transition: 0.2s; }
.c-tabs a:hover, .c-tabs a.active { color: var(--main-purple); }
.c-tabs a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--main-purple); }

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

/* 联赛分组栏 */
.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); }
.league-group-title { background: #f0f4f8; padding: 12px 20px; font-size: 16px; font-weight: bold; color: #1d428a; border-left: 4px solid #1d428a; border-bottom: 1px solid #ddd; margin-top: 20px; display: flex; align-items: center; justify-content: space-between;}
.league-group-title a { font-size: 12px; font-weight: normal; color: #666; text-decoration: none; }
.league-group-title a:hover { color: #1d428a; text-decoration: underline; }

/* ====================================
   列表行：PC 端严谨对齐
   ==================================== */
.m-row { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px dashed #eee; transition: 0.2s; color: #333; text-decoration: none; background: #fff; }
.m-row:hover { background: #f8f6ff; }
.m-row:last-child { border-bottom: none; }

/* 时间 */
.m-time { width: 50px; font-size: 14px; font-weight: bold; color: #444; flex-shrink: 0; }
.m-time .t-md { display: none; } /* PC 端默认隐藏日期 */

/* 状态 */
.m-status-box { width: 60px; text-align: center; flex-shrink: 0; margin-right: 15px; }
.m-status { display: inline-block; font-size: 12px; color: #888; }
.m-status.live { color: #e60012; font-weight: bold; animation: pulse 1.5s infinite; }
.mob-status { display: none; } /* PC 端隐藏短字母 */

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

/* 比分 (加宽至80px，彻底防换行) */
.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 { width: 80px; text-align: right; color: var(--main-purple); font-size: 13px; font-weight: bold; flex-shrink: 0;}
.m-act span { border: 1px solid var(--main-purple); padding: 4px 10px; border-radius: 3px; transition: 0.2s; }
.m-row:hover .m-act span { background: var(--main-purple); color: #fff; }

/* 呼吸灯动画 */
@keyframes pulse { 50% { opacity: 0.5; } }


/* ====================================
   侧边栏 Widget 样式
   ==================================== */
.wg { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 20px; }
.wg-hd { padding: 12px 15px; background: #fafafa; border-bottom: 1px solid #eee; border-left: 4px solid var(--main-purple); font-size: 16px; font-weight: bold; display: flex; justify-content: space-between; align-items: center;}
.wg-hd a { font-size: 12px; color: #888; font-weight: normal; text-decoration: none;}
.wg-ul { list-style: none; padding: 15px; margin: 0; }
.wg-ul li { margin-bottom: 12px; padding-left: 10px; position: relative; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-ul li:last-child { margin-bottom: 0; }
.wg-ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: #ccc; }
.wg-ul a { color: #444; text-decoration: none; }
.wg-ul a:hover { color: var(--main-purple); }

.v-item { display: flex; gap: 10px; margin-bottom: 15px; align-items: flex-start; }
.v-item:last-child { margin-bottom: 0; }
.v-img { width: 110px; height: 65px; background: #000; flex-shrink: 0; position: relative; }
.v-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s;}
.v-item:hover .v-img img { opacity: 1; }
.v-img::after { content: '▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 16px; }
.v-tit { font-size: 13px; color: #333; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-item:hover .v-tit { color: var(--main-purple); }


/* ====================================
   移动端响应式 (解决重叠与溢出问题)
   ==================================== */
@media (max-width: 768px) {
    .layout-grid { flex-direction: column; }
    .col-side { width: 100%; }
    
    /* 强制单行且不允许折叠 */
    .m-row { flex-wrap: nowrap !important; padding: 12px 8px !important; gap: 4px; justify-content: space-between; }
    
    /* 时间分上下两排 */
    .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 { display: block; color: #999; font-size: 10px; }
    .m-time .t-hi { font-size: 12px; font-weight: bold; }
    
    /* 状态变小并显示英文 */
    .m-status-box { width: 32px; margin: 0; flex-shrink: 0; text-align: center; }
    .m-status { font-size: 10px; padding: 2px 0; background: #eee; border-radius: 2px; width: 100%; display: block; }
    .m-status.live { background: #ffebee; color: #d32f2f; }
    .pc-status { display: none; }
    .mob-status { display: inline; font-weight: bold; letter-spacing: 0;}
    
    /* 球队名省略 */
    .m-team { font-size: 13px; gap: 4px; flex: 1; min-width: 0; }
    .m-team a { max-width: 75px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: normal; }
    .m-team img { width: 18px !important; height: 18px !important; margin: 0 !important; flex-shrink: 0;}
    
    /* 比分居中 */
    .m-score { width: 45px !important; font-size: 14px !important; flex-shrink: 0; text-align: center; letter-spacing: 0;}
    
    /* 隐藏功能区节省空间 */
    .m-act { display: none !important; }
}