/* theme1 · 西甲直播风格 */
:root{
  --theme-primary:#e6002d;
  --theme-primary-hover:#c50026;
  --theme-primary-light:#fff1f4;
  --theme-deep:#1f2937;
  --bg-page:#f7f7f8;
  --live:#e6002d;
}
body{background:#f7f7f8;color:#333;}
.site-container{width:min(100% - 24px,1200px);}

/* 头部 */
.jzt-global-header{background:#fff;border-bottom:1px solid #eee;box-shadow:none;position:static;}
.jzt-header-row{min-height:64px;}
.text-logo{font-size:28px;font-weight:900;}
.text-logo span{color:#e6002d;letter-spacing:0;}
.text-logo::after{display:none;}
.jzt-nav-primary ul{gap:2px;}
.jzt-nav-primary a{
  display:flex;align-items:center;height:64px;padding:0 18px;
  color:#333;font-size:16px;font-weight:500;position:relative;
}
.jzt-nav-primary a:hover,.jzt-nav-primary a.is-on{color:#e6002d;background:transparent;}
.jzt-nav-primary a.is-on::after{
  content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;
  background:#e6002d;border-radius:2px;
}

/* SEO 描述 */
.t1-seo{padding:12px 0 10px;color:#666;font-size:14px;line-height:1.9;}
.t1-seo p{margin:0;}

/* 联赛二级导航 */
.t1-subnav{background:#f2f2f2;border-top:1px solid #eee;border-bottom:1px solid #eee;}
.t1-subnav .site-container{display:flex;align-items:center;gap:22px;min-height:48px;overflow-x:auto;}
.t1-sub-label{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:700;color:#333;white-space:nowrap;flex:0 0 auto;}
.t1-sub-label i{
  width:18px;height:18px;background:#f5b942;color:#fff;border-radius:3px;
  display:grid;place-items:center;font-style:normal;font-size:9px;
}
.t1-subnav a{font-size:15px;color:#333;white-space:nowrap;}
.t1-subnav a:hover{color:#e6002d;}

/* 主体两栏 */
.t1-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start;margin-top:14px;}
.t1-main,.t1-side{min-width:0;}

/* 卡片 */
.t1-board,.t1-side .sp-side-card{
  background:#fff;border:1px solid #eee;border-radius:6px;overflow:hidden;
}
.t1-board .sp-board-head{min-height:56px;padding:0 16px;border-bottom:1px solid #f0f0f0;}
.t1-board .sp-board-head h2{
  position:relative;padding-left:12px;font-size:20px;font-weight:800;color:#222;
}
.t1-board .sp-board-head h2::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:4px;height:18px;background:#e6002d;border-radius:2px;
}

/* 日期 */
.t1-date{
  position:relative;padding:10px 16px 10px 26px;background:#fafafa;
  border-bottom:1px solid #f0f0f0;color:#333;font-size:15px;font-weight:700;
}
.t1-date::before{
  content:"";position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:3px;height:14px;background:#e6002d;border-radius:2px;
}

/* 比赛行 */
.sp-fixture-row{
  grid-template-columns:26px 68px 84px 88px minmax(0,1fr) 44px;
  gap:8px;min-height:58px;padding:7px 12px;border-bottom:1px solid #f2f2f2;
}
.sp-teams-wrap{display:flex;align-items:center;gap:8px;min-width:0;}
.sp-team.home{flex:1;justify-content:flex-end;}
.sp-team.away{flex:1;justify-content:flex-start;}
.sp-score{flex:0 0 auto;}
.sp-ball{font-size:16px;text-align:center;line-height:1;}
.sp-fixture-row time b{color:#e6002d;font-size:14px;font-weight:600;}
.sp-fixture-row time span{color:#999;font-size:12px;}
.sp-league{color:#333;font-weight:600;font-size:14px;}
.sp-status{
  min-height:0;padding:0;background:none;border-radius:0;
  justify-content:flex-start;color:#999;font-size:14px;font-weight:400;
}
.sp-status.live{background:none;color:#e6002d;font-weight:700;}
.sp-team{font-size:14px;font-weight:600;color:#333;min-width:0;}
.sp-team p{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sp-team img{width:28px;height:28px;}
.sp-score{font-size:13px;color:#999;font-weight:700;}
.sp-live-action{justify-content:flex-end;}
.sp-live-action .sp-schedule-live-btn{
  width:30px;height:30px;min-height:30px;padding:0;border-radius:3px;
  background:#1f9d55;color:#fff;font-size:0!important;position:relative;
}
.sp-live-action .sp-schedule-live-btn::before{
  content:"";display:block;margin-left:2px;
  border-left:9px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent;
}

/* 右侧栏 */
.t1-side .sp-side-card{margin-bottom:12px;}
.t1-side .sp-side-card:last-child{margin-bottom:0;}
.t1-side .sp-board-head{min-height:50px;padding:0 14px;border-bottom:1px solid #f0f0f0;}
.t1-side .sp-board-head h3{
  position:relative;padding-left:10px;font-size:17px;font-weight:800;color:#222;
}
.t1-side .sp-board-head h3::before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:15px;background:#e6002d;border-radius:2px;
}
.t1-side .sp-board-head .more{font-size:12px;color:#999;font-weight:400;}
.t1-side .sp-side-list a{
  display:flex;align-items:center;gap:8px;padding:9px 14px;
  border-bottom:1px solid #f5f5f5;font-size:13px;color:#333;
}
.t1-side .sp-side-list a:last-child{border-bottom:0;}
.t1-side .sp-side-list a:hover{color:#e6002d;}
.t1-side .sp-side-list .title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.t1-side .sp-side-list time{flex:0 0 auto;color:#aaa;font-size:12px;}

/* 标签 */
.t1-tags{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px;}
.t1-tags a{
  display:block;padding:4px 9px;border-radius:3px;background:#2e9e5b;
  color:#fff;font-size:12px;white-space:nowrap;
}
.t1-tags a:hover{background:#24864b;}

/* 今日赛事 */
.t1-today{margin-top:14px;}

/* 页脚 */
.site-foot{background:#fff;border:1px solid #eee;border-radius:6px;margin-top:14px;padding:18px;color:#888;font-size:12px;line-height:1.9;text-align:center;}
.site-foot p{margin:0 0 4px;}
.site-foot a{color:#666;}

/* 平板 */
@media screen and (max-width:980px){
  .t1-grid{grid-template-columns:1fr;}
  .t1-side{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .t1-side .sp-side-card{margin-bottom:0;}
}

/* 手机 */
@media screen and (max-width:768px){
  .jzt-header-row{min-height:54px;}
  .text-logo{font-size:22px;}
  .t1-seo{font-size:13px;line-height:1.8;padding:8px 0;}
  .t1-subnav .site-container{min-height:44px;gap:14px;}
  .t1-sub-label{font-size:14px;}
  .t1-subnav a{font-size:13px;}
  .t1-grid{grid-template-columns:1fr;gap:12px;margin-top:10px;}
  .t1-side{grid-template-columns:1fr;}
  .t1-board .sp-board-head{min-height:50px;padding:0 12px;}
  .t1-board .sp-board-head h2{font-size:18px;}
  .t1-date{font-size:13px;padding:8px 12px 8px 22px;}
  .t1-date::before{left:12px;height:12px;}

  .sp-fixture-row{
    display:grid;grid-template-columns:22px auto auto minmax(0,1fr) 34px;
    grid-template-areas:"ball time league status action" "teams teams teams teams teams";
    gap:6px 8px;min-height:0;padding:10px 8px;
  }
  .sp-ball{grid-area:ball;font-size:14px;}
  .sp-fixture-row time{grid-area:time;flex-direction:row;gap:5px;align-items:baseline;}
  .sp-fixture-row time b{font-size:13px;}
  .sp-fixture-row time span{font-size:11px;}
  .sp-league{grid-area:league;font-size:12px;}
  .sp-status{grid-area:status;justify-self:end;margin:0;font-size:12px;}
  .sp-live-action{grid-area:action;position:static;}
  .sp-teams-wrap{grid-area:teams;display:flex;align-items:center;gap:8px;min-width:0;}
  .sp-team.home{flex:1;justify-content:flex-start;font-size:13px;min-width:0;}
  .sp-score{flex:0 0 auto;font-size:12px;}
  .sp-team.away{flex:1;justify-content:flex-end;text-align:right;font-size:13px;min-width:0;}
  .sp-team img{width:22px;height:22px;}
  .t1-tags{padding:10px 12px;gap:6px;}
  .site-foot{padding:14px;font-size:11px;}
}

/* 兼容旧版比赛行：没有 sp-teams-wrap 时恢复 7 列 */
.sp-fixture-row:not(:has(.sp-teams-wrap)){
  grid-template-columns:62px 74px 68px minmax(0,1fr) 54px minmax(0,1fr) 168px;
}
.sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-status{
  justify-self:start;width:auto!important;
}
@media screen and (max-width:768px){
  .sp-fixture-row:not(:has(.sp-teams-wrap)){
    display:flex;flex-wrap:wrap;gap:6px 8px;padding:10px 8px;padding-right:44px;position:relative;
  }
  .sp-fixture-row:not(:has(.sp-teams-wrap)) time{order:1;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-league{order:2;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-status{order:3;margin-left:auto;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-team.home{order:4;flex:1 1 40%;justify-content:flex-start;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-score{order:5;flex:0 0 auto;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-team.away{order:6;flex:1 1 40%;}
  .sp-fixture-row:not(:has(.sp-teams-wrap)) .sp-live-action{order:7;position:absolute;right:8px;top:11px;}
}