/* ===== 24直播网 · 法甲直播风格（覆盖 o5） ===== */
body.o5-body{background:#f3f3f3!important;background-image:none!important}
.fj-wrap{width:1400px;max-width:100%;margin:0 auto;padding:0 20px;box-sizing:border-box}

/* header */
.fj-header{background:#fff;padding:12px 0}
.fj-header .fj-wrap{display:flex;align-items:center;justify-content:flex-start}
.fj-logo img{height:72px;width:auto;max-width:100%;display:block}
.fj-logo b{font-size:30px;color:#c8102e;font-weight:800}
.fj-nav{background:#c8102e;height:58px}
.fj-nav .fj-wrap{display:flex;height:100%;align-items:stretch;gap:0}
.fj-nav a{display:flex;align-items:center;color:#fff;font-size:17px;font-weight:600;padding:0 34px;white-space:nowrap}
.fj-nav a.on,.fj-nav a:hover{background:linear-gradient(180deg,#f6a623,#e8890c);color:#fff}
.fj-sub{background:#f3f3f3;border-bottom:1px solid #e6e6e6}
.fj-sub .fj-wrap{display:flex;align-items:center;gap:22px;padding:12px 20px;font-size:14px;color:#666;flex-wrap:wrap}
.fj-sub a{color:#666}
.fj-sub a:hover{color:#c8102e}
.fj-sub .hot{font-weight:700;color:#333}

/* sections */
.fj-sec{position:relative;background:linear-gradient(90deg,#c8102e,#a80d26);color:#fff;font-size:20px;font-weight:700;padding:12px 26px;margin:20px 0;clip-path:polygon(0 0,100% 0,100% 100%,24px 100%,0 calc(100% - 22px))}
.fj-hot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.fj-card{display:block;background:linear-gradient(160deg,#d21b35,#a80d26);border-radius:4px;padding:16px 18px;color:#fff;min-width:0}
.fj-card:hover{background:linear-gradient(160deg,#e02340,#b30f2a)}
.fj-card .teams{display:flex;flex-direction:column;gap:14px;margin:6px 0 14px}
.fj-card .row{display:flex;align-items:center;gap:9px;min-width:0}
.fj-card .row img{width:28px;height:28px;object-fit:contain;flex:0 0 28px}
.fj-card .row span{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fj-card .side{margin-left:auto;font-size:13px;opacity:.85;flex:0 0 auto}
.fj-card .foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fj-card .lg{background:#f0d264;color:#7a1b12;padding:4px 14px;border-radius:3px;font-size:13px;font-weight:700}
.fj-card .tm{font-size:14px;white-space:nowrap}

/* day list */
.fj-day{background:#fff;border:1px solid #ececec;margin-bottom:18px}
.fj-dayhead{background:#f5f5f5;color:#666;padding:9px 18px;font-size:14px;border-bottom:1px solid #eee}
.fj-rows{padding:0 18px}
.fj-match{display:grid;grid-template-columns:90px 90px minmax(0,1fr) 120px;align-items:center;height:76px;border-bottom:1px solid #eee;gap:10px;color:#333}
.fj-match:last-child{border-bottom:0}
.fj-match .tm{font-size:15px;font-weight:700}
.fj-match .lg{font-size:14px;color:#666}
.fj-match .teams{display:flex;align-items:center;justify-content:center;gap:18px;min-width:0}
.fj-match .team{display:flex;align-items:center;gap:9px;min-width:0;font-size:15px;font-weight:700}
.fj-match .team img{width:30px;height:30px;object-fit:contain;flex:0 0 30px}
.fj-match .team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fj-match .vs{color:#999;font-size:13px;font-weight:700}
.fj-match .st{display:block;text-align:center;border:1px solid #c8102e;color:#c8102e;background:#fff;border-radius:2px;padding:6px 10px;font-size:14px;font-weight:600;white-space:nowrap}
.fj-match .st.live{background:#c8102e;color:#fff}

/* hide o5 sidebar, full width */
.o5-body .o5-side{display:none!important}
.o5-body .o5-grid,.o5-body .o5-page .o5-grid,.o5-body .o5-home .o5-grid{grid-template-columns:1fr!important}
.o5-body .o5-page .o5-sidehead{background:#c8102e!important;color:#fff!important;border-bottom:0!important}
.o5-body .o5-page .o5-sidehead::before{background:#f0d264!important}
.o5-body .o5-status{border:1px solid #c8102e!important;color:#c8102e!important;background:#fff!important;border-radius:2px!important}
.o5-body .o5-status.live{background:#c8102e!important;color:#fff!important}
.o5-body .o5-dayhead span{background:#f5f5f5!important;color:#666!important}
.o5-body .o5-tabs a.on{color:#c8102e!important;border-color:#c8102e!important}
.o5-body .o5-sidehead,.o5-body .o5-page .o5-sidehead{font-weight:700}

@media screen and (max-width:1100px){
  .fj-hot{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .fj-nav a{padding:0 20px;font-size:16px}
  .fj-wrap{padding:0 14px}
}
@media screen and (max-width:768px){
  .fj-header{padding:8px 0}
  .fj-logo img{height:48px}
  .fj-nav{height:auto;overflow-x:auto}
  .fj-nav .fj-wrap{display:flex;flex-wrap:nowrap;padding:0}
  .fj-nav a{padding:0 16px;height:44px;font-size:14px;line-height:44px}
  .fj-sub .fj-wrap{padding:9px 14px;gap:12px;font-size:13px;flex-wrap:nowrap;overflow-x:auto}
  .fj-sec{font-size:17px;padding:10px 18px;margin:14px 0}
  .fj-hot{grid-template-columns:1fr;gap:12px}
  .fj-card .row span{font-size:15px}
  .fj-match{display:flex;flex-wrap:wrap;height:auto;padding:12px 0;gap:6px 10px}
  .fj-match .tm{order:1}
  .fj-match .lg{order:2}
  .fj-match .st{order:3;margin-left:auto;padding:4px 9px;font-size:12px}
  .fj-match .teams{order:4;flex:1 1 100%;justify-content:flex-start;gap:10px}
  .fj-match .team{font-size:13px}
  .fj-rows{padding:0 12px}
  .fj-dayhead{padding:8px 12px;font-size:13px}
}

/* 当前菜单选中效果 */
body.o5-body .fj-nav a.on{background:linear-gradient(180deg,#f6a623,#e8890c);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}