/* 蓝锋：宝蓝横幅 + 斜切标签 + 即时比分表 */
html, body { margin: 0; padding: 0; }
body { background: #f3f5f8; color: #232427; font: 14px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p, dl, dd { margin: 0; }
img { vertical-align: middle; }
[hidden] { display: none !important; }
.lf-hide { position: absolute; left: -9999px; }
.lf-box { width: 1184px; max-width: 100%; margin: 0 auto; padding: 0 12px; box-sizing: border-box; }

/* ---------- 横幅 ---------- */
.lf-banner {
  height: 190px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 80% 120%, rgba(111, 160, 255, .55), transparent 70%),
    linear-gradient(115deg, #2c4fe6 0%, #3d64f8 40%, #4d87f5 75%, #6aa2ff 100%);
}
.lf-banner-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.lf-brand-name { display: inline-block; color: #fff; font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: 3px; text-shadow: 0 4px 0 rgba(20, 22, 44, .25); }
.lf-brand-slogan { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: 15px; letter-spacing: 2px; }
.lf-banner-art { height: 190px; width: auto; }

/* ---------- 斜切标签导航 ---------- */
.lf-tabs { position: relative; z-index: 2; display: flex; gap: 10px; height: 52px; align-items: center; padding: 0 16px; margin: -26px 0 14px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(61, 100, 248, .12); }
.lf-tab { position: relative; display: flex; align-items: center; justify-content: center; width: 104px; height: 36px; color: #505b71; font-size: 15px; }
.lf-tab::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: #f1f3f8; transform: skewX(-16deg); transition: .2s; }
.lf-tab span { position: relative; }
.lf-tab:hover { color: #4d87f5; }
.lf-tab.curren { color: #fff; font-weight: 600; }
.lf-tab.curren::before { background: linear-gradient(90deg, #3d64f8, #4d87f5); box-shadow: 0 4px 10px rgba(61, 100, 248, .35); }

.lf-page { min-height: 50vh; padding-bottom: 20px; }
.lf-crumb { margin: 0 0 12px; color: #9ba7bd; font-size: 13px; }
.lf-crumb a:hover { color: #4d87f5; }

/* ---------- 区块 ---------- */
.lf-sec { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.lf-sec-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.titles { position: relative; padding-left: 14px; font-size: 18px; font-weight: 700; color: #232427; }
.titles::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 18px; margin-top: -9px; border-radius: 3px; background: linear-gradient(#6aa2ff, #3d64f8); }
.lf-sec-sub { color: #9ba7bd; font-size: 13px; }
.lf-sec-more { margin-left: auto; color: #74829b; font-size: 13px; }
.lf-sec-more:hover { color: #4d87f5; }

/* ---------- 队徽圆章 / 状态角标（详情横幅） ---------- */
.lf-art-zuqiu { background: url("../pic/art-pitch.svg") center / cover no-repeat, linear-gradient(135deg, #1f3fbf, #4d87f5); }
.lf-art-lanqiu { background: url("../pic/art-court.svg") center / cover no-repeat, linear-gradient(135deg, #3a2bb8, #8f5cf6); }
.plate_logo { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.plate_logo img { width: 42px; height: 42px; object-fit: contain; }
.plate_logo b { color: #3d64f8; font-size: 20px; }
.plate_ribbon { display: inline-block; padding: 0 12px; line-height: 24px; border-radius: 12px; color: #fff; font-size: 12px; background: rgba(20, 22, 44, .6); }
.plate_ribbon.is-on { background: linear-gradient(90deg, #f24e66, #ff7a59); }
.plate_ribbon.is-on::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; background: url("../pic/live-bars.svg") center / contain no-repeat; }

/* ---------- 侧栏紧凑行 ---------- */
.lf-briefs { list-style: none; margin: 0; padding: 0; }
.lf-brief a { display: block; padding: 10px 2px; border-bottom: 1px solid #eef1f6; }
.lf-brief:last-child a { border-bottom: 0; }
.lf-brief time { display: block; font-size: 12px; color: #9ba7bd; }
.lf-brief-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 2px; font-size: 14px; }
.lf-brief-vs b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-brief-vs b:first-child { text-align: right; }
.lf-brief-vs em { font-style: normal; font-weight: 800; color: #4d87f5; }
.lf-brief a:hover b { color: #4d87f5; }
.lf-brief i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #9ba7bd; text-align: center; }
.lf-brief i.going { color: #f24e66; font-weight: 700; }

/* ---------- 即时比分表（div 实现） ---------- */
.lf-tb { border-radius: 10px; overflow: hidden; border: 1px solid #e3e7ee; }
.lf-tb-head, .lf-tb-row { display: grid; grid-template-columns: 64px 120px 76px minmax(0, 1fr) 80px minmax(0, 1fr) 96px 92px; align-items: center; }
.lf-tb-head { height: 46px; background: #e3e7ee; color: #505b71; font-size: 13px; font-weight: 600; border-radius: 10px 10px 0 0; }
.lf-tb-head span, .lf-tb-row > * { padding: 0 6px; text-align: center; min-width: 0; }
.lf-tb-row { min-height: 50px; border-top: 1px solid #eef1f6; background: #fff; }
.lf-tb-row:nth-child(even) { background: #f9f9f9; }
.lf-tb-row:hover { background: #f1f6ff; }
.lf-tb-row.going { background: #fef0f0; }
.lf-tb-row .t { font-weight: 700; color: #232427; }
.lf-tb-row .e { color: #74829b; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-tb-row .s i { font-style: normal; font-size: 12px; color: #9ba7bd; }
.lf-tb-row .s i.going { color: #f24e66; font-weight: 700; }
.lf-tb-row .h { text-align: right; }
.lf-tb-row .a { text-align: left; }
.lf-tb-row .h, .lf-tb-row .a { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-tb-row .h:hover, .lf-tb-row .a:hover { color: #4d87f5; }
.lf-tb-row .b { font-size: 17px; font-weight: 800; color: #4d87f5; }
.lf-tb-row.going .b { color: #f24e66; }
.lf-tb-row .x { color: #9ba7bd; font-size: 12px; }
.lf-tb-row .x i { font-style: normal; }
.lf-tb-day { padding: 0 16px; line-height: 34px; background: linear-gradient(90deg, #eef3ff, #fff); color: #3d64f8; font-weight: 700; border-top: 1px solid #e3e7ee; }
.lf-tb-day em { font-style: normal; color: #9ba7bd; font-weight: 400; font-size: 12px; margin-left: 8px; }
.lf-go { display: inline-block; padding: 0 14px; line-height: 28px; border-radius: 14px; border: 1px solid #4d87f5; color: #4d87f5; font-size: 13px; }
.lf-go:hover { background: #4d87f5; color: #fff; }
.lf-go.hot { background: linear-gradient(90deg, #3d64f8, #4d87f5); border-color: transparent; color: #fff; }
.lf-go-off { border-color: #e3e7ee; color: #9ba7bd; }
.lf-go-off:hover { background: #f3f5f8; color: #505b71; }
.lf-flash { animation: lfflash 1s ease 3; }
@keyframes lfflash { 50% { color: #fff; background: #f24e66; border-radius: 4px; } }

.lf-nodata { padding: 30px 0; text-align: center; color: #9ba7bd; }
.lf-nodata p { margin-top: 8px; }
.lf-pages { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.lf-pages a, .lf-pages b { min-width: 36px; height: 36px; padding: 0 10px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f3f5f8; color: #505b71; }
.lf-pages a:hover { color: #4d87f5; }
.lf-pages b { background: linear-gradient(90deg, #3d64f8, #4d87f5); color: #fff; }

/* ---------- 详情 ---------- */
.lf-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.lf-match { position: relative; overflow: hidden; border-radius: 10px; padding: 18px 20px 20px; margin-bottom: 14px; color: #fff; text-align: center; }
.lf-match::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 22, 44, .15), rgba(20, 22, 44, .55)); }
.lf-match > * { position: relative; z-index: 1; }
.lf-match-lg { font-size: 13px; opacity: .9; }
.lf-match-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 16px 0 10px; }
.lf-match-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.lf-match-team .plate_logo { width: 72px; height: 72px; }
.lf-match-team .plate_logo img { width: 62px; height: 62px; }
.lf-match-team strong { font-size: 18px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-match-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 22px; }
.lf-match-mid b { font-size: 42px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.lf-match h1 { font-size: 18px; }
.lf-play { padding: 0; overflow: hidden; }
.lf-dp { position: relative; aspect-ratio: 16 / 9; background: #14162c; }
.lf-dp video, .lf-dp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lf-dp-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9ba7bd; background: rgba(20, 22, 44, .84); }
.lf-routes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.lf-route { padding: 0 16px; line-height: 32px; border-radius: 6px; border: 1px solid #e3e7ee; background: #f3f5f8; color: #505b71; font: inherit; font-size: 13px; cursor: pointer; }
.lf-route:hover { color: #4d87f5; border-color: #4d87f5; }
.lf-route.on { background: linear-gradient(90deg, #3d64f8, #4d87f5); color: #fff; border-color: transparent; }
.lf-route-ext::after { content: " ↗"; }
.lf-play-tip { padding: 10px 16px 14px; font-size: 12px; color: #9ba7bd; }
.lf-ended { padding: 48px 16px; text-align: center; font-size: 17px; font-weight: 700; color: #3d64f8; background: linear-gradient(#f1f6ff, #fff); }
.lf-wait { color: #74829b; font-weight: 400; font-size: 15px; }
.lf-info { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid #eef1f6; }
.lf-info dt, .lf-info dd { padding: 9px 4px; border-bottom: 1px solid #eef1f6; font-size: 14px; }
.lf-info dt { color: #9ba7bd; }
.lf-info dd { font-weight: 600; }

.lf-404 { text-align: center; padding: 40px 16px; }
.lf-404 h1 { margin-top: 14px; font-size: 22px; }
.lf-404 p { margin-top: 6px; color: #9ba7bd; }
.lf-404-go { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- 左侧工具条 ---------- */
.lf-tool { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 30; width: 62px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(20, 22, 44, .12); padding: 6px 0; }
.lf-tool a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; font-size: 12px; color: #505b71; }
.lf-tool a:hover, .lf-tool a.active { color: #4d87f5; background: #eef3ff; }

/* ---------- 页脚 ---------- */
.lf-footer { background: #232427; color: #9ba7bd; font-size: 12px; text-align: center; padding: 22px 0 28px; margin-top: 10px; }
.lf-footer p { margin-top: 6px; }
.lf-footer-links a { margin: 0 12px; color: #d4d9e4; font-size: 13px; }
.lf-footer-links a:hover { color: #6aa2ff; }

@media (max-width: 1360px) { .lf-tool { display: none; } }
@media (max-width: 1000px) {
  .lf-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lf-box { padding: 0 8px; }
  .lf-banner { height: 120px; }
  .lf-brand-name { font-size: 28px; letter-spacing: 1px; }
  .lf-brand-slogan { font-size: 12px; letter-spacing: 0; }
  .lf-banner-art { display: none; }
  .lf-tabs { gap: 4px; padding: 0 6px; height: 46px; margin-top: -20px; overflow-x: auto; }
  .lf-tab { flex: none; width: 80px; height: 32px; font-size: 14px; }
  .lf-sec { padding: 12px 10px; border-radius: 8px; }
  .lf-tb-head { display: none; }
  .lf-tb-row { grid-template-columns: 48px minmax(0, 1fr) 58px minmax(0, 1fr) 70px; grid-template-areas: "t h b a g"; }
  .lf-tb-row .t { grid-area: t; font-size: 13px; }
  .lf-tb-row .h { grid-area: h; font-size: 13px; }
  .lf-tb-row .b { grid-area: b; font-size: 15px; }
  .lf-tb-row .a { grid-area: a; font-size: 13px; }
  .lf-tb-row .g { grid-area: g; }
  .lf-tb-row .e, .lf-tb-row .s, .lf-tb-row .x { display: none; }
  .lf-go { padding: 0 8px; font-size: 12px; line-height: 26px; }
  .lf-match { padding: 14px 10px 16px; }
  .lf-match-team .plate_logo { width: 52px; height: 52px; }
  .lf-match-team .plate_logo img { width: 44px; height: 44px; }
  .lf-match-team strong { font-size: 14px; }
  .lf-match-mid b { font-size: 30px; }
  .lf-match-mid { padding: 0 10px; }
}

/* 比分列表（内置 score-row 等）配色 */
:root { --sc-accent: #4d87f5; --sc-on: #fff; --sc-live: #f24e66; --sc-radius: 8px; }

/* 手机端：缩小字号和间距，队名放不下时换行，尽量完整显示 */
@media (max-width: 480px) {
  .lf-tb-row .h, .lf-tb-row .a { font-size: 13px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}
@media (max-width: 480px) {
  .lf-tb-row { grid-template-columns: 38px minmax(0, 1fr) 38px minmax(0, 1fr) 54px; }
  .lf-tb-row > * { padding: 0 3px; }
  .lf-tb-row .t { font-size: 12px; }
  .lf-tb-row .b { font-size: 13px; }
  .lf-tb-row .h, .lf-tb-row .a { font-size: 12.5px; }
  .lf-tb-row .g a, .lf-tb-row .g span { padding-left: 4px; padding-right: 4px; font-size: 11px; }
}

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.lf-fire { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; padding: 0 6px 0 4px; border-radius: 9px; background: linear-gradient(90deg, #ff8a1f, #ff3b30); color: #fff; font: normal 700 11px/17px -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; vertical-align: middle; white-space: nowrap; text-transform: none; animation: lf-fire-glow 1.8s ease-in-out infinite; }
.lf-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes lf-fire-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 30, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 80, 30, 0); } }
@media (max-width: 480px) {
  .lf-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .lf-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lf-fire { animation: none; } }

/* 热门比赛：火苗跳动；整行左侧一抹淡淡的火光缓慢明暗，叠在原有背景上，不改变原样式 */
.lf-fire::before { display: inline-block; transform-origin: 50% 85%; animation: lf-flicker 1.3s ease-in-out infinite; }
@keyframes lf-flicker {
  0%, 100% { transform: scale(1) rotate(-4deg); filter: brightness(1); }
  25% { transform: scale(1.1, 1.2) rotate(3deg); filter: brightness(1.2); }
  50% { transform: scale(.95, 1.04) rotate(-2deg); filter: brightness(.95); }
  75% { transform: scale(1.06, 1.14) rotate(4deg); filter: brightness(1.15); }
}
.lf-hotrow { animation: lf-ember 3.2s ease-in-out infinite; }
@keyframes lf-ember {
  0%, 100% { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
  50% { box-shadow: inset 3px 0 0 rgba(255, 64, 30, .9), inset 130px 0 90px -60px rgba(255, 112, 40, .26); }
}
tr.lf-hotrow { animation: none; }
tr.lf-hotrow > td { animation: lf-ember-td 3.2s ease-in-out infinite; }
tr.lf-hotrow > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 80, 30, .8); }
@keyframes lf-ember-td { 0%, 100% { background-color: rgba(255, 150, 60, .05); } 50% { background-color: rgba(255, 120, 40, .11); } }
@media (prefers-reduced-motion: reduce) {
  .lf-fire::before, .lf-hotrow, tr.lf-hotrow > td { animation: none; }
  .lf-hotrow { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
}

/* 播放页球队名链接到球队搜索页 */
.lf-tlink { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.lf-tlink:hover { opacity: .8; border-bottom-style: solid; }
.lf-md { white-space: nowrap; }

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.lf-sec-dates { padding: 12px 18px; }
.lf-sec-dates .hd-dates { margin: 0; }
.lf-sec-hd .hd-tabs { margin-left: auto; }
.lf-dgrp + .lf-dgrp { margin-top: 12px; }
.lf-dgrp .lf-tb-day { border-top: 0; }
.lf-tb-row .e .hd-lg:hover { color: #4d87f5; }
.lf-md { white-space: nowrap; }
.lf-lg-m { display: none; }
@media (max-width: 720px) {
  .lf-lg-m { display: block; max-width: 100%; overflow: hidden; color: #4d87f5; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
  /* 导航 5 项：一屏放下 */
  .lf-tabs { overflow: visible; }
  .lf-tab { flex: 1 1 0; width: auto; min-width: 0; font-size: 13px; white-space: nowrap; }
  .lf-tab::before { transform: skewX(-10deg); }
}

/* 热门标记：本模板专属样式（▲ 热），覆盖上面通用的 🔥 热门；手机上只显示图标 */
.lf-fire { --lf-hot-lb: 11px; gap: 2px; font-size: 0; background: linear-gradient(90deg,#3d64f8,#4d87f5); color: #fff; border: 0; border-radius: 3px; animation: lf-hot-glow 1.8s ease-in-out infinite; transform: skewX(-10deg); }
.lf-fire::before { content: "▲"; display: inline-block; transform-origin: 50% 50%; animation: lf-hot-ic 1s ease-in-out infinite; }
.lf-fire::after { content: "热"; font-size: var(--lf-hot-lb); line-height: 1; }
@keyframes lf-hot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,100,248, .35); } 50% { box-shadow: 0 0 0 4px rgba(61,100,248, 0); } }
@keyframes lf-hot-ic { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (max-width: 480px) { .lf-fire { --lf-hot-lb: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .lf-fire, .lf-fire::before { animation: none; } }

/* 日期条吸顶（样式在内置 hd.css）：底色跟页面一致 */
:root { --hd-bg: #f3f5f8; }
/* 整行可点（row-cover），行里的联赛链接浮在上面 */
.lf-tb-row { cursor: pointer; }
.lf-lg-m { position: relative; z-index: 2; }
