/* ================================================================
   24直播网 · sdtfsoft.com 龙门直播 风格
   红 #f25035 / 深蓝灰栏目块 / 白底单列
   ================================================================ */

html,body.o5-body{
  background:#fff!important;background-image:none!important;
  color:#333;font:14px/1.6 "Microsoft YaHei","PingFang SC",Arial,sans-serif;
}
body.o5-body a{text-decoration:none;color:inherit}
body.o5-body img{border:0}

.sd-wrap{width:1200px;max-width:100%;margin:0 auto;padding:0 12px;box-sizing:border-box}

/* 顶部 */
.sd-header{background:#f25035;height:70px}
.sd-header .sd-wrap{display:flex;align-items:center;height:100%}
.sd-logo{display:flex;align-items:center;height:100%;margin-right:auto;flex:0 0 auto}
.sd-logo b{color:#fff;font-size:26px;font-weight:700;white-space:nowrap;letter-spacing:1px}
.sd-nav{display:flex;align-items:stretch;height:100%;min-width:0}
.sd-nav a{display:flex;align-items:center;color:#fff!important;font-size:16px;padding:0 18px;white-space:nowrap;transition:background .2s}
.sd-nav a:hover,.sd-nav a.on{background:#d93f26;color:#fff!important}

/* 主体 */
.sd-main{padding:18px 0 10px}
.sd-title{display:flex;align-items:center;border-bottom:2px solid #f25035;margin-bottom:0}
.sd-title h1{
  margin:0;background:#3b4a59;color:#fff;font-size:16px;font-weight:400;
  padding:0 30px;height:36px;line-height:36px;
}
.sd-list{background:#fff}
.sd-row{
  display:flex;align-items:center;height:61px;padding:10px 5px;
  border-bottom:1px solid #dedede;box-sizing:border-box;color:#333;
  transition:background .15s;
}
.sd-row:hover{background:#fff5f3}
.sd-left{flex:0 0 215px;width:215px;display:flex;align-items:center;min-width:0}
.sd-time{flex:0 0 125px;width:125px;font-size:14px;color:#333;white-space:nowrap}
.sd-league{font-size:14px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-teams{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.sd-team{display:flex;align-items:center;gap:8px;min-width:0;font-size:15px;color:#333}
.sd-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd-team img{width:26px;height:26px;max-width:26px;max-height:26px;object-fit:contain;flex:0 0 26px}
.sd-vs{color:#999;font-size:14px;flex:0 0 auto;padding:0 6px}
.sd-right{flex:0 0 96px;width:96px;display:flex;justify-content:flex-end}
.sd-btn{
  display:flex;align-items:center;justify-content:center;width:80px;height:30px;
  background:#f00000;color:#fff;border-radius:6px;font-size:14px;white-space:nowrap;
}
.sd-crest{
  width:26px;height:26px;flex:0 0 26px;border-radius:50%;display:inline-grid;place-items:center;
  background:#ffe9e6;color:#f25035;font-size:11px;font-style:normal;font-weight:700;
}

/* 其他页面：单列 + 同一套红/深蓝灰 */
.o5-body .o5-page .o5-wrap{width:1200px!important;max-width:100%!important;padding:18px 12px 10px!important;box-sizing:border-box!important}
.o5-body .o5-page .o5-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
.o5-body .o5-page .o5-side{display:none!important}
.o5-body .o5-page .o5-card{
  background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
}
.o5-body .o5-page .o5-sidehead,
.o5-body .o5-page .o5-main>.o5-card>.o5-sidehead{
  display:block!important;background:#3b4a59!important;color:#fff!important;
  font-size:16px!important;font-weight:400!important;line-height:36px!important;
  padding:0 30px!important;width:auto!important;max-width:100%!important;
  border:0!important;border-bottom:2px solid #f25035!important;
  box-sizing:border-box!important;
}
.o5-body .o5-page .o5-sidehead::before{display:none!important}

/* 其他页面比赛行 */
.o5-body .o5-page .o5-days{padding:0!important;background:#fff!important}
.o5-body .o5-page .o5-day{border:0!important;border-radius:0!important;margin:0!important;overflow:visible!important}
.o5-body .o5-page .o5-rows{background:#fff!important}
.o5-body .o5-page .o5-dayhead{background:#f6f6f6!important;color:#666!important;font-size:14px!important;padding:8px 10px!important}
.o5-body .o5-page .o5-dayhead span{background:transparent!important;color:#666!important;font-size:14px!important;padding:0!important}
.o5-body .o5-page .o5-match{
  display:flex!important;align-items:center!important;height:61px!important;
  padding:10px 5px!important;border:0!important;border-bottom:1px solid #dedede!important;
  background:#fff!important;color:#333!important;gap:0!important;box-sizing:border-box!important;
}
.o5-body .o5-page .o5-match:hover{background:#fff5f3!important}
.o5-body .o5-page .o5-time{flex:0 0 125px!important;width:125px!important;font-size:14px!important;font-weight:400!important;color:#333!important;white-space:nowrap}
.o5-body .o5-page .o5-league{flex:0 0 100px!important;width:100px!important;font-size:14px!important;font-weight:400!important;color:#333!important}
.o5-body .o5-page .o5-teams{flex:1 1 auto!important;justify-content:center!important;gap:10px!important;min-width:0!important}
.o5-body .o5-page .o5-team{font-size:15px!important;font-weight:400!important;gap:8px!important;min-width:0!important}
.o5-body .o5-page .o5-team img.o5-logo-img{
  width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;
  flex:0 0 26px!important;border-radius:0!important;background:none!important;object-fit:contain!important;
}
.o5-body .o5-page .o5-crest{width:26px!important;height:26px!important;flex:0 0 26px!important;background:#ffe9e6!important;color:#f25035!important;font-size:11px!important}
.o5-body .o5-page .o5-teams em{font-size:0!important;color:#999!important;padding:0 6px!important}
.o5-body .o5-page .o5-teams em::after{content:"-";font-size:14px}
.o5-body .o5-page .o5-status{
  flex:0 0 96px!important;width:96px!important;min-width:96px!important;margin-left:auto!important;
  height:30px!important;line-height:30px!important;padding:0!important;text-align:center!important;
  background:#f00000!important;color:#fff!important;border:0!important;border-radius:6px!important;
  font-size:14px!important;font-weight:400!important;box-sizing:border-box!important;
}
.o5-body .o5-page .o5-status.live,.o5-body .o5-page .o5-status.wait{background:#f00000!important;color:#fff!important}

/* 新闻 */
.o5-body .o5-newslist{padding:0 5px!important}
.o5-body .o5-newsitem{border-bottom:1px solid #dedede!important;padding:14px 0!important}
.o5-body .o5-newsitem:hover .o5-ntext h3{color:#f25035}
.o5-body .o5-ntext h3{font-size:16px!important;font-weight:400!important;color:#333!important}
.o5-body .o5-ntext p{color:#888!important}
.o5-body .o5-nthumb{border-radius:0!important;background:#f4f4f4!important}

/* 录像 / 集锦 */
.o5-body .o5-videos{padding:14px 0!important;gap:18px!important}
.o5-body .o5-vthumb{border-radius:0!important;background-color:#20242a!important;background-image:none!important}
.o5-body .o5-vthumb::before{border-color:#fff!important;background-color:rgba(0,0,0,.35)!important}
.o5-body .o5-vthumb::after{border-left-color:#fff!important}
.o5-body .o5-video b{font-size:14px!important;color:#333!important}
.o5-body .o5-video:hover b{color:#f25035}
.o5-body .o5-video>span{color:#999!important}

/* 词条 */
.o5-body .o5-tagbox{padding:14px 0!important;gap:10px!important}
.o5-body .o5-tag{border:1px solid #dedede!important;border-radius:0!important;color:#555!important;background:#fff!important}
.o5-body .o5-tag:hover{background:#f25035!important;border-color:#f25035!important;color:#fff!important}

/* 分页 */
.o5-body .pagination li a,.o5-body .pagination li span{border-radius:0!important;border:1px solid #dedede!important;color:#555!important}
.o5-body .pagination li.active a,.o5-body .pagination li.active span{background:#f25035!important;border-color:#f25035!important;color:#fff!important}
.o5-body .pagination li a:hover{border-color:#f25035!important;color:#f25035!important}

/* 详情 */
.o5-body .o5-detail .o5-detailhead{border-bottom:1px solid #dedede!important;padding:18px 4px 12px!important}
.o5-body .o5-detail h1{font-size:24px!important;color:#222!important;text-align:left!important}
.o5-body .o5-detailbody{background:#fff!important;padding:16px 4px 20px!important}
.o5-body .o5-detailbody p{color:#444!important}
.o5-body .o5-detailbody #stream-sources-mount a{border-radius:6px!important;background:#f00000!important;border-color:#f00000!important;color:#fff!important}
.o5-body .o5-chip{background:#f2f2f2!important;color:#666!important}

/* 旧结构兼容 */
body.o5-body .categorySwitch li.active a{color:#f25035!important;border-color:#f25035!important}
body.o5-body .showMatch .match_every .status a{background:#f00000!important;border-color:#f00000!important;color:#fff!important;border-radius:6px!important}
body.o5-body .showMatch .match_every .status.start a{background:#f00000!important;border-color:#f00000!important;color:#fff!important}
body.o5-body .newscolumn li article span{color:#333!important}
body.o5-body .citiaolist ul li a:hover{background:#f25035!important;border-color:#f25035!important;color:#fff!important}

/* 页脚 */
body.o5-body .footer,body.o5-body .o5-footer{
  background:#313131!important;color:#bbb!important;margin-top:24px!important;
  padding:26px 0!important;font-size:12px!important;line-height:1.9!important;
}
body.o5-body .footer .content,body.o5-body .footer .w{width:1200px!important;max-width:100%!important;margin:0 auto!important;padding:0 12px!important;box-sizing:border-box!important}
body.o5-body .footer p{color:#bbb!important;margin:0!important;text-align:center!important}
body.o5-body .footer a{color:#ddd!important}

/* 平板 */
@media screen and (max-width:1200px){
  .sd-wrap{width:100%;padding:0 12px}
  .sd-nav a{padding:0 14px;font-size:15px}
  .sd-logo b{font-size:23px}
}
@media screen and (max-width:980px){
  .sd-nav a{padding:0 10px;font-size:14px}
  .sd-left{flex:0 0 190px;width:190px}
  .sd-time{flex:0 0 112px;width:112px}
}

/* 手机 */
@media screen and (max-width:768px){
  .sd-wrap{padding:0 10px}
  .sd-header{height:auto}
  .sd-header .sd-wrap{flex-wrap:wrap;padding:7px 10px 0}
  .sd-logo{height:40px;width:100%}
  .sd-logo b{font-size:22px}
  .sd-nav{width:100%;height:42px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
  .sd-nav a{padding:0 12px;font-size:13px;height:42px}
  .sd-main{padding:10px 0 6px}
  .sd-title h1{font-size:14px;height:32px;line-height:32px;padding:0 18px}
  .sd-row{flex-wrap:wrap;height:auto;padding:9px 6px;gap:5px 8px}
  .sd-left{flex:0 0 auto;width:auto;order:1}
  .sd-time{flex:0 0 auto;width:auto;font-size:12px;color:#777;margin-right:10px}
  .sd-league{font-size:12px;color:#777}
  .sd-right{flex:0 0 auto;width:auto;order:2;margin-left:auto}
  .sd-btn{width:auto;min-width:70px;height:26px;font-size:12px;padding:0 8px}
  .sd-teams{flex:1 1 100%;order:3;justify-content:flex-start;gap:8px}
  .sd-team{font-size:13px;max-width:44%}
  .sd-team img{width:20px;height:20px;max-width:20px;max-height:20px;flex:0 0 20px}
  .sd-crest{width:20px;height:20px;flex:0 0 20px;font-size:9px}
  .sd-vs{font-size:12px;padding:0 3px}

  .o5-body .o5-page .o5-wrap{padding:10px!important}
  .o5-body .o5-page .o5-sidehead,
  .o5-body .o5-page .o5-main>.o5-card>.o5-sidehead{font-size:14px!important;line-height:32px!important;padding:0 18px!important}
  .o5-body .o5-page .o5-match{flex-wrap:wrap!important;height:auto!important;padding:9px 6px!important;gap:5px 8px!important}
  .o5-body .o5-page .o5-time{flex:0 0 auto!important;width:auto!important;font-size:12px!important;color:#777!important;margin-right:10px}
  .o5-body .o5-page .o5-league{flex:0 0 auto!important;width:auto!important;font-size:12px!important;color:#777!important}
  .o5-body .o5-page .o5-teams{flex:1 1 100%!important;order:3!important;justify-content:flex-start!important;gap:8px!important}
  .o5-body .o5-page .o5-team{font-size:13px!important;max-width:44%!important}
  .o5-body .o5-page .o5-team img.o5-logo-img{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;flex:0 0 20px!important}
  .o5-body .o5-page .o5-status{flex:0 0 auto!important;width:auto!important;min-width:70px!important;height:26px!important;line-height:26px!important;font-size:12px!important;margin-left:auto!important}
  .o5-body .o5-newslist{padding:0!important}
  .o5-body .o5-newsitem{display:block!important;padding:12px 0!important}
  .o5-body .o5-nthumb{width:100%!important;height:170px!important;margin-bottom:8px!important}
  .o5-body .o5-ntext h3{font-size:15px!important}
  .o5-body .o5-videos{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:10px 0!important}
  .o5-body .o5-video b{font-size:13px!important}
  .o5-body .o5-tagbox{padding:12px 0!important;gap:8px!important}
  .o5-body .o5-tag{padding:6px 11px!important;font-size:12px!important}
  .o5-body .o5-detail .o5-detailhead{padding:12px 2px!important}
  .o5-body .o5-detail h1{font-size:20px!important}
  .o5-body .o5-detailbody{padding:12px 2px 16px!important}
  body.o5-body .footer .content,body.o5-body .footer .w{padding:0 14px!important}
}

body.o5-body .sd-nav a{color:#fff!important}
body.o5-body .sd-nav a.on,body.o5-body .sd-nav a:hover{color:#fff!important}

/* 当前菜单选中效果 */
body.o5-body .sd-nav a.on{background:#b93a22;color:#fff!important;font-weight:700;box-shadow:inset 0 -3px 0 #fff}

/* 原模板内容页：修正 within 70% 导致的空白 */
.o5-body .outside .package .within{width:100%!important;max-width:100%!important;float:none!important}
.o5-body .outside .package .within .together{width:100%!important;max-width:100%!important}
.o5-body .outside .package .o5-side{width:100%!important;max-width:100%!important;float:none!important}