/* 冰晶：冰蓝 + 淡紫，软浮雕（新拟态）界面，雪花飘落 */
:root {
  --bj-bg: #e8eef7;
  --bj-hi: #ffffff;
  --bj-lo: #c5cfe0;
  --bj-ink: #263247;
  --bj-sub: #5b6a85;
  --bj-mute: #94a1b8;
  --bj-ice: #4c8dff;
  --bj-ice2: #8ab4ff;
  --bj-lav: #9b8cff;
  --bj-live: #ff5a7a;
  --bj-out: 8px 8px 18px var(--bj-lo), -8px -8px 18px var(--bj-hi);
  --bj-out-s: 4px 4px 10px var(--bj-lo), -4px -4px 10px var(--bj-hi);
  --bj-in: inset 4px 4px 9px var(--bj-lo), inset -4px -4px 9px var(--bj-hi);
  --bj-grad: linear-gradient(135deg, var(--bj-ice2), var(--bj-ice) 50%, var(--bj-lav));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bj-bg); color: var(--bj-ink); font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
img { vertical-align: middle; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.bj-hide { display: none !important; }
.bj-wrap { width: 1220px; max-width: 100%; margin: 0 auto; padding: 0 18px; }
.bj-main { position: relative; z-index: 1; padding-top: 22px; padding-bottom: 40px; min-height: 60vh; }
.bj-rv { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.bj-rv.in { opacity: 1; transform: none; }

/* 雪花 */
.bj-snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bj-snow i { position: absolute; top: -30px; font-style: normal; color: #c9d8f5; font-size: 18px; animation: bj-fall 16s linear infinite; }
.bj-snow i:nth-child(1) { left: 4%; } .bj-snow i:nth-child(2) { left: 14%; animation-delay: -5s; font-size: 12px; }
.bj-snow i:nth-child(3) { left: 26%; animation-delay: -10s; animation-duration: 20s; } .bj-snow i:nth-child(4) { left: 38%; animation-delay: -3s; font-size: 24px; }
.bj-snow i:nth-child(5) { left: 50%; animation-delay: -8s; font-size: 14px; } .bj-snow i:nth-child(6) { left: 61%; animation-delay: -13s; animation-duration: 22s; }
.bj-snow i:nth-child(7) { left: 72%; animation-delay: -1s; font-size: 12px; } .bj-snow i:nth-child(8) { left: 82%; animation-delay: -7s; font-size: 22px; }
.bj-snow i:nth-child(9) { left: 91%; animation-delay: -11s; } .bj-snow i:nth-child(10) { left: 97%; animation-delay: -4s; font-size: 13px; animation-duration: 18s; }
@keyframes bj-fall { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(40px, 55vh) rotate(180deg); } 100% { transform: translate(-20px, 110vh) rotate(360deg); } }

/* ---------- 头部 ---------- */
.bj-top { position: sticky; top: 0; z-index: 60; padding: 14px 0; background: rgba(232, 238, 247, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bj-top-in { display: flex; align-items: center; gap: 30px; }
.bj-logo { display: flex; align-items: center; gap: 12px; }
.bj-logo-gem { width: 42px; height: 42px; border-radius: 14px; background: var(--bj-grad); box-shadow: var(--bj-out-s); position: relative; overflow: hidden; }
.bj-logo-gem::before { content: ""; position: absolute; inset: 10px; background: #fff; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); opacity: .95; }
.bj-logo-gem::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: rgba(255, 255, 255, .7); transform: rotate(25deg); animation: bj-glint 3.5s ease-in-out infinite; }
@keyframes bj-glint { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.bj-logo b { font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.bj-nav { display: flex; gap: 8px; padding: 6px; border-radius: 22px; box-shadow: var(--bj-in); }
.bj-nav a { padding: 8px 22px; border-radius: 16px; font-weight: 700; color: var(--bj-sub); transition: .25s; }
.bj-nav a:hover { color: var(--bj-ice); }
.bj-nav a.on { color: var(--bj-ice); background: var(--bj-bg); box-shadow: var(--bj-out-s); }
.bj-meter { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 20px; box-shadow: var(--bj-out-s); font-weight: 800; color: var(--bj-sub); letter-spacing: 1px; }
.bj-meter i { width: 9px; height: 9px; border-radius: 50%; background: var(--bj-live); box-shadow: 0 0 0 0 rgba(255, 90, 122, .6); animation: bj-ring 1.5s infinite; }
@keyframes bj-ring { to { box-shadow: 0 0 0 10px rgba(255, 90, 122, 0); } }
.bj-meter b { color: var(--bj-ice); font-size: 17px; }

/* ---------- 通用 ---------- */
.bj-card { padding: 20px; border-radius: 26px; background: var(--bj-bg); box-shadow: var(--bj-out); }
.bj-card-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bj-card-hd h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; }
.bj-card-hd > span { color: var(--bj-mute); }
.bj-card > h2 { margin-bottom: 12px; font-size: 16px; font-weight: 900; color: var(--bj-sub); }
.bj-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 40px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--bj-bg); color: var(--bj-sub); font-weight: 800; box-shadow: var(--bj-out-s); transition: .2s; white-space: nowrap; }
.bj-btn:hover { color: var(--bj-ice); }
.bj-btn:active { box-shadow: var(--bj-in); }
.bj-btn-on { background: var(--bj-grad); color: #fff; box-shadow: 4px 4px 12px rgba(76, 141, 255, .35), -4px -4px 10px var(--bj-hi); }
.bj-btn-on:hover { color: #fff; filter: brightness(1.06); }
.bj-btn-s { height: 32px; min-width: 60px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.bj-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--bj-grad); box-shadow: var(--bj-out-s); position: relative; }
.bj-ic::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: bj-spin 2s linear infinite; }
.bj-ic-b { background: linear-gradient(135deg, #ffb38a, #ff8a65); }
@keyframes bj-spin { to { transform: rotate(360deg); } }
.bj-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: var(--bj-bg); box-shadow: 2px 2px 5px var(--bj-lo), -2px -2px 5px var(--bj-hi); }
.bj-dot img { width: 80%; height: 80%; object-fit: contain; }
.bj-dot-xl { width: 104px; height: 104px; box-shadow: var(--bj-out); padding: 8px; }
.bj-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--bj-grad); color: #fff; font-weight: 900; font-size: 11px; }
.bj-dot-xl .bj-ini { font-size: 38px; }
.bj-well { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 38px; padding: 0 12px; border-radius: 12px; box-shadow: var(--bj-in); font-family: "DIN Alternate", "Bahnschrift", sans-serif; font-weight: 900; font-size: 17px; color: var(--bj-ink); }
.bj-well-xl { min-width: 220px; height: 100px; font-size: 60px; border-radius: 28px; }
.bj-pop { animation: bj-pop .8s ease; }
@keyframes bj-pop { 40% { transform: scale(1.3); color: var(--bj-live); } }
.bj-crumb { color: var(--bj-sub); font-size: 13px; }
.bj-crumb a:hover { color: var(--bj-ice); }
.bj-crumb-d { margin-bottom: 16px; }
.bj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bj-chip { padding: 4px 14px; border: 0; border-radius: 12px; background: var(--bj-bg); color: var(--bj-sub); font-size: 12px; font-weight: 700; box-shadow: 3px 3px 7px var(--bj-lo), -3px -3px 7px var(--bj-hi); transition: .2s; }
.bj-chip:hover { color: var(--bj-ice); }
.bj-chip.on { box-shadow: var(--bj-in); color: var(--bj-ice); }
.bj-chips-v { margin-bottom: 0; }
.bj-chip-s { padding: 2px 14px; border-radius: 12px; box-shadow: var(--bj-in); color: var(--bj-ice); font-weight: 800; font-size: 13px; }

/* ---------- 横幅 ---------- */
.bj-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 340px; border-radius: 32px; box-shadow: var(--bj-out); overflow: hidden; }
.bj-hero-pic { position: absolute; inset: 0; background-size: cover; background-position: center; animation: bj-pan 30s ease-in-out infinite alternate; }
.bj-hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(232, 238, 247, .3), rgba(232, 238, 247, .6) 55%, rgba(232, 238, 247, .95)); }
@keyframes bj-pan { to { transform: scale(1.12) translateX(-3%); } }
.bj-hero-slab { position: relative; grid-column: 2; margin: 24px; padding: 30px; border-radius: 26px; background: rgba(240, 245, 252, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 20px 50px rgba(76, 100, 150, .2); animation: bj-in .8s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes bj-in { from { opacity: 0; transform: translateX(40px); } }
.bj-hero-k { color: var(--bj-ice); font-weight: 800; font-size: 13px; letter-spacing: 1px; }
.bj-hero h1 { margin: 8px 0 14px; font-size: 40px; font-weight: 900; line-height: 1.15; }
.bj-hero h1 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--bj-sub); }
.bj-hero h1 small b { color: var(--bj-ice); font-size: 22px; }
.bj-dial { position: relative; width: 120px; height: 120px; margin: 4px 0 16px; }
.bj-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bj-dial circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.bj-dial-bg { stroke: #d6dfee; }
.bj-dial-fg { stroke: var(--bj-ice); stroke-dasharray: 314; stroke-dashoffset: 314; animation: bj-dial 2.4s cubic-bezier(.3, .8, .3, 1) .3s forwards, bj-hue 6s linear infinite; }
@keyframes bj-dial { to { stroke-dashoffset: 80; } }
@keyframes bj-hue { 50% { stroke: var(--bj-lav); } }
.bj-dial p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bj-dial b { font-size: 34px; line-height: 1; font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.bj-dial span { font-size: 12px; color: var(--bj-mute); }
.bj-hero-go { display: flex; gap: 12px; }
.bj-hero-s { min-height: 220px; grid-template-columns: 1fr 1.2fr; }

/* ---------- 双栏赛程 ---------- */
.bj-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; align-items: start; }
.bj-rows { display: grid; gap: 12px; }
.bj-row { border-radius: 18px; background: var(--bj-bg); box-shadow: var(--bj-out-s); transition: box-shadow .25s, opacity .5s, transform .5s; }
.bj-row:hover { box-shadow: var(--bj-in); }
.bj-row.is-live { background: linear-gradient(135deg, #fbeef3, var(--bj-bg) 45%); }
.bj-row-a { display: grid; grid-template-columns: 70px 1fr auto 64px; align-items: center; gap: 12px; padding: 12px 16px; }
.bj-row-meta { display: flex; flex-direction: column; min-width: 0; }
.bj-row-meta b { font-size: 17px; font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.bj-row-meta em { font-style: normal; font-size: 11px; color: var(--bj-ice); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-row-teams { display: grid; gap: 4px; min-width: 0; }
.bj-row-teams span { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bj-row .bj-well { min-width: 70px; height: 36px; font-size: 16px; }
.bj-row.is-live .bj-well { color: var(--bj-live); }
.bj-row-st { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
.bj-row-st i { font-style: normal; color: var(--bj-mute); font-weight: 700; }
.bj-row.is-live .bj-row-st i { color: var(--bj-live); }
.bj-row.is-live .bj-row-st i::before { content: "● "; animation: bj-blink 1s infinite; }
@keyframes bj-blink { 50% { opacity: .2; } }
.bj-sig { font-style: normal; color: var(--bj-ice); font-size: 11px; }
.bj-none { padding: 40px; text-align: center; color: var(--bj-mute); }
.bj-none-flake { display: inline-block; font-style: normal; font-size: 46px; color: var(--bj-ice2); animation: bj-spin 6s linear infinite; }

/* ---------- 列表：日历侧栏 ---------- */
.bj-cal { display: grid; grid-template-columns: 260px 1fr; gap: 26px; margin-top: 30px; align-items: start; }
.bj-cal-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.bj-days a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 14px; transition: .2s; }
.bj-days a:hover { box-shadow: var(--bj-in); }
.bj-days b { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bj-grad); color: #fff; font-size: 18px; font-family: "DIN Alternate", "Bahnschrift", sans-serif; box-shadow: var(--bj-out-s); }
.bj-days span { font-size: 13px; font-weight: 700; color: var(--bj-sub); }
.bj-days em { font-style: normal; font-size: 12px; color: var(--bj-mute); }
.bj-cal-main { display: grid; gap: 24px; min-width: 0; }
.bj-cal-main .bj-card { scroll-margin-top: 100px; }
.bj-pages { display: flex; justify-content: center; gap: 10px; }

/* ---------- 详情 ---------- */
.bj-face { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 30px; }
.bj-face-t { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bj-face-t b { font-size: 22px; font-weight: 900; }
.bj-face-m { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 30px; }
.bj-face-st { font-weight: 800; color: var(--bj-sub); }
[data-bjst="1"] .bj-face-st { color: var(--bj-live); animation: bj-blink 1.4s infinite; }
[data-bjst="1"] .bj-well-xl { color: var(--bj-live); }
.bj-tv { margin-top: 26px; }
.bj-tv h1 { margin-bottom: 16px; font-size: 19px; }
.bj-lines { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.bj-line { height: 42px; padding: 0 22px; display: inline-flex; align-items: center; border: 0; border-radius: 14px; background: var(--bj-bg); color: var(--bj-sub); font-weight: 800; box-shadow: var(--bj-out-s); transition: .2s; }
.bj-line:hover { color: var(--bj-ice); }
.bj-line.cur { box-shadow: var(--bj-in); color: var(--bj-ice); }
.bj-video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: var(--bj-in); }
.bj-video iframe, .bj-video video { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 0; border-radius: 16px; background: #000; }
.bj-video-tip { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--bj-sub); font-weight: 800; }
.bj-video-tip::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 5px solid #d6dfee; border-top-color: var(--bj-ice); animation: bj-spin .9s linear infinite; }
.bj-off { padding: 56px 20px; text-align: center; color: var(--bj-sub); border-radius: 22px; box-shadow: var(--bj-in); }
.bj-off .bj-btn { margin-top: 14px; }
.bj-off-cd { margin-top: 14px; min-width: 200px; height: 60px; font-size: 32px; }
.bj-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.bj-tiles-wide { grid-column: 1 / -1; }
.bj-rows-s { grid-template-columns: repeat(2, 1fr); }
.bj-kv li { display: flex; justify-content: space-between; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; box-shadow: var(--bj-in); }
.bj-kv span { color: var(--bj-mute); }

/* ---------- 404 ---------- */
.bj-404 { padding: 70px 20px; text-align: center; }
.bj-404-n { min-width: 300px; height: 140px; font-size: 90px; border-radius: 36px; color: var(--bj-ice); }
.bj-404 h1 { margin-top: 26px; font-size: 26px; }
.bj-404 p { color: var(--bj-sub); }
.bj-404-go { display: flex; justify-content: center; gap: 14px; margin-top: 22px !important; }

/* ---------- 页脚 ---------- */
.bj-foot { position: relative; z-index: 1; margin-top: 30px; padding: 30px 0; color: var(--bj-sub); font-size: 13px; }
.bj-foot-in { display: grid; justify-items: center; gap: 10px; text-align: center; }
.bj-foot-in p a { margin: 0 12px; font-weight: 800; }
.bj-foot-in p a:hover { color: var(--bj-ice); }
.bj-side-top { position: fixed; right: 26px; bottom: 30px; z-index: 50; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--bj-bg); color: var(--bj-ice); box-shadow: var(--bj-out-s); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .3s; }
.bj-scrolled .bj-side-top { opacity: 1; transform: none; pointer-events: auto; }
.bj-side-top:active { box-shadow: var(--bj-in); }

@media (max-width: 1040px) {
  .bj-duo, .bj-cal, .bj-tiles { grid-template-columns: 1fr; }
  .bj-cal-side { position: static; grid-template-columns: 1fr 1fr; }
  .bj-hero, .bj-hero-s { grid-template-columns: 1fr; }
  .bj-hero-slab { grid-column: 1; }
  .bj-rows-s { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bj-top-in { gap: 8px; }
  .bj-logo b { font-size: 17px; }
  .bj-logo-gem { width: 34px; height: 34px; }
  .bj-nav { padding: 4px; gap: 2px; }
  .bj-nav a { padding: 6px 10px; font-size: 13px; }
  .bj-meter { padding: 6px 10px; font-size: 12px; }
  .bj-hero-slab { margin: 140px 12px 12px; padding: 20px; }
  .bj-hero h1 { font-size: 28px; }
  .bj-cal-side { grid-template-columns: 1fr; }
  .bj-row-a { grid-template-columns: 54px 1fr auto; padding: 10px 12px; }
  .bj-row-st { display: none; }
  .bj-face { padding: 20px 8px; }
  .bj-face-m { padding: 0 6px; }
  .bj-well-xl { min-width: 120px; height: 64px; font-size: 34px; }
  .bj-dot-xl { width: 64px; height: 64px; padding: 4px; }
  .bj-face-t b { font-size: 15px; }
}

/* 系统设置了“减少动态效果”时关闭动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

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

/* 背景图（原来写在模板 style 属性里） */
.bgi-aerial { background-image: url(/static/frost/img/aerial.jpg) !important; }
.bgi-dome { background-image: url(/static/frost/img/dome.jpg) !important; }
.bgi-night { background-image: url(/static/frost/img/night.jpg) !important; }

/* 手机端：头部站名和导航不折行（之前会被挤成竖排），放不下时导航横向滚动 */
@media (max-width: 480px) {
  .bj-top-in { gap: 8px; flex-wrap: nowrap; }
  .bj-logo, .bj-logo b { white-space: nowrap; flex: none; font-size: 16px; }
  .bj-nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .bj-nav::-webkit-scrollbar { display: none; }
  .bj-nav a { flex: none; white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .bj-meter { flex: none; white-space: nowrap; font-size: 11px; }
}
@media (max-width: 400px) {
  .bj-meter { display: none; }
}

/* 手机端：长队名不截断，换行完整显示 */
@media (max-width: 480px) {
  .bj-row-teams > span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.bj-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: bj-fire-glow 1.8s ease-in-out infinite; }
.bj-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes bj-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) {
  .bj-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .bj-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bj-fire { animation: none; } }

/* 热门比赛：火苗跳动；整行左侧一抹淡淡的火光缓慢明暗，叠在原有背景上，不改变原样式 */
.bj-fire::before { display: inline-block; transform-origin: 50% 85%; animation: bj-flicker 1.3s ease-in-out infinite; }
@keyframes bj-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); }
}
.bj-hotrow { animation: bj-ember 3.2s ease-in-out infinite; }
@keyframes bj-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.bj-hotrow { animation: none; }
tr.bj-hotrow > td { animation: bj-ember-td 3.2s ease-in-out infinite; }
tr.bj-hotrow > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 80, 30, .8); }
@keyframes bj-ember-td { 0%, 100% { background-color: rgba(255, 150, 60, .05); } 50% { background-color: rgba(255, 120, 40, .11); } }
@media (prefers-reduced-motion: reduce) {
  .bj-fire::before, .bj-hotrow, tr.bj-hotrow > td { animation: none; }
  .bj-hotrow { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
}

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.bj-home { display: grid; gap: 26px; margin-top: 30px; min-width: 0; }
.bj-home .hd-dates { margin: 0; }
.bj-card-hd .hd-tabs { flex: none; }
.bj-row-meta em .hd-lg:hover { color: var(--bj-ice); }
/* 导航 5 项：手机上导航单独一行，一屏放下 */
@media (max-width: 768px) {
  .bj-top-in { flex-wrap: wrap; row-gap: 8px; }
  .bj-nav { order: 3; flex: 1 0 100%; width: 100%; overflow: visible; }
  .bj-nav a { flex: 1 0 auto; padding: 6px 4px; font-size: 14px; text-align: center; }
}

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

/* 日期条吸顶（样式在内置 hd.css）：底色跟页面一致 */
:root { --hd-bg: var(--bj-bg); }
