/* 鲜果：柠檬黄 + 奶白，直播间卡片风格 */
:root {
  --xg-y: #ffd43b;
  --xg-y2: #ffe066;
  --xg-deep: #f59f00;
  --xg-cream: #fffbea;
  --xg-bg: #fffdf5;
  --xg-ink: #33291a;
  --xg-sub: #7a6a4f;
  --xg-mute: #a8997e;
  --xg-line: #f3e7c2;
  --xg-red: #ff4757;
  --xg-green: #2fb344;
  --xg-r: 18px;
  --xg-shadow: 0 10px 30px rgba(196, 150, 20, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--xg-bg); color: var(--xg-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, dl, dd { margin: 0; }
img { vertical-align: middle; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.xg-hide { display: none !important; }
.xg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.xg-wrap { width: 1240px; max-width: 100%; margin: 0 auto; padding: 0 16px; }
.xg-main { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }

/* 背景漂浮的柠檬片 */
.xg-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xg-deco i { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0 52%, #ffe066 53% 62%, transparent 63%), repeating-conic-gradient(from 0deg, rgba(255, 212, 59, .55) 0 6deg, transparent 6deg 45deg); opacity: .35; animation: xg-float 18s ease-in-out infinite; }
.xg-deco i:nth-child(1) { top: 12%; left: -40px; }
.xg-deco i:nth-child(2) { top: 55%; right: -30px; width: 180px; height: 180px; animation-delay: -4s; animation-duration: 22s; }
.xg-deco i:nth-child(3) { top: 82%; left: 8%; width: 80px; height: 80px; animation-delay: -9s; }
.xg-deco i:nth-child(4) { top: 28%; right: 12%; width: 60px; height: 60px; animation-delay: -2s; animation-duration: 15s; }
.xg-deco i:nth-child(5) { top: 70%; left: 46%; width: 50px; height: 50px; animation-delay: -12s; }
@keyframes xg-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-40px) rotate(180deg); } }

/* ---------- 头部 ---------- */
.xg-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 3px solid var(--xg-y); transition: box-shadow .3s; }
.xg-scrolled .xg-top { box-shadow: 0 6px 24px rgba(196, 150, 20, .16); }
.xg-top-in { display: flex; align-items: center; gap: 32px; height: 72px; transition: height .3s; }
.xg-scrolled .xg-top-in { height: 60px; }
.xg-brand { display: flex; align-items: center; gap: 10px; }
.xg-lemon { animation: xg-spin 14s linear infinite; filter: drop-shadow(0 3px 6px rgba(245, 159, 0, .35)); }
@keyframes xg-spin { to { transform: rotate(360deg); } }
.xg-brand b { display: block; font-size: 22px; font-weight: 900; letter-spacing: 1px; line-height: 1.1; }
.xg-brand small { display: block; font-size: 11px; color: var(--xg-deep); letter-spacing: 2px; font-weight: 700; }
.xg-nav { display: flex; gap: 6px; padding: 5px; background: var(--xg-cream); border-radius: 30px; }
.xg-nav a { position: relative; padding: 8px 22px; border-radius: 24px; font-size: 15px; font-weight: 600; color: var(--xg-sub); transition: .25s; }
.xg-nav a:hover { color: var(--xg-ink); background: #fff3bf; }
.xg-nav a.on { background: var(--xg-y); color: var(--xg-ink); box-shadow: 0 4px 12px rgba(245, 159, 0, .3); }
.xg-onair { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 24px; background: var(--xg-ink); color: #fff; font-size: 14px; transition: transform .2s; }
.xg-onair:hover { transform: translateY(-2px); }
.xg-onair b { color: var(--xg-y); font-size: 16px; }
.xg-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--xg-red); }
.xg-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--xg-red); animation: xg-ping 1.5s ease-out infinite; }
@keyframes xg-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- 通用 ---------- */
.xg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; height: 34px; padding: 0 16px; border-radius: 17px; border: 2px solid var(--xg-y); color: var(--xg-ink); font-size: 13px; font-weight: 600; background: #fff; transition: .2s; white-space: nowrap; }
.xg-btn:hover { background: var(--xg-y); transform: translateY(-1px); }
.xg-btn-fill { background: linear-gradient(135deg, var(--xg-y2), var(--xg-y) 50%, #fcc419); border-color: transparent; box-shadow: 0 6px 16px rgba(245, 159, 0, .32); }
.xg-btn-fill:hover { box-shadow: 0 8px 22px rgba(245, 159, 0, .45); }
.xg-btn-mute { border-color: var(--xg-line); color: var(--xg-mute); }
.xg-btn-mute:hover { background: var(--xg-cream); }
.xg-btn-big { height: 48px; padding: 0 30px; border-radius: 24px; font-size: 16px; }
.xg-pill { display: inline-block; padding: 2px 12px; border-radius: 12px; background: var(--xg-y); color: var(--xg-ink); font-size: 12px; font-weight: 700; }
.xg-logo { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); overflow: hidden; flex: none; }
.xg-logo img { width: 78%; height: 78%; object-fit: contain; }
.xg-logo-s { width: 28px; height: 28px; box-shadow: none; border: 1px solid var(--xg-line); }
.xg-logo-l { width: 76px; height: 76px; }
.xg-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #fff3bf, #ffd43b); color: #8a5a00; font-weight: 800; font-size: 45%; }
.xg-logo-s .xg-ini { font-size: 13px; }
.xg-logo-l .xg-ini { font-size: 30px; }
.xg-logo .xg-ini { font-size: 18px; }
.xg-pop { animation: xg-pop .7s ease; }
@keyframes xg-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--xg-red); } 100% { transform: scale(1); } }

.xg-sec { margin-top: 34px; }
.xg-sec-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.xg-h { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.xg-h-s { font-size: 17px; margin-bottom: 14px; }
.xg-h-ic { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%), conic-gradient(var(--xg-y) 0 25%, #fcc419 0 50%, var(--xg-y) 0 75%, #fcc419 0); animation: xg-spin 6s linear infinite; }
.xg-h-ic2 { background: radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%), conic-gradient(#ff922b 0 25%, #fd7e14 0 50%, #ff922b 0 75%, #fd7e14 0); }
.xg-more { margin-left: auto; color: var(--xg-sub); font-weight: 600; transition: .2s; }
.xg-more:hover { color: var(--xg-deep); transform: translateX(3px); }
.xg-tabs { display: flex; gap: 6px; margin-left: auto; }
.xg-tabs button { border: 0; padding: 6px 18px; border-radius: 18px; background: var(--xg-cream); color: var(--xg-sub); font-weight: 600; transition: .2s; }
.xg-tabs button.on, .xg-tabs button:hover { background: var(--xg-ink); color: var(--xg-y); }
.xg-rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.xg-rv.in { opacity: 1; transform: none; }

/* ---------- 首页焦点 ---------- */
.xg-hero { position: relative; display: grid; grid-template-columns: 1fr 360px; min-height: 340px; border-radius: 28px; overflow: hidden; box-shadow: var(--xg-shadow); background: #fff; }
.xg-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: xg-zoom 24s ease-in-out infinite alternate; }
.xg-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 249, 219, .97) 0%, rgba(255, 236, 153, .86) 46%, rgba(255, 212, 59, .3) 100%); }
@keyframes xg-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.xg-hero-main { position: relative; padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.xg-hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--xg-sub); font-weight: 600; }
.xg-hero-vs { display: flex; align-items: center; gap: 28px; }
.xg-hero-tm { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; }
.xg-hero-tm strong { font-size: 20px; font-weight: 800; }
.xg-hero-tm .xg-logo { animation: xg-bob 3s ease-in-out infinite; }
.xg-hero-tm + .xg-hero-mid + .xg-hero-tm .xg-logo { animation-delay: -1.5s; }
@keyframes xg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.xg-hero-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; }
.xg-hero-mid b { font-size: 52px; font-weight: 900; letter-spacing: 2px; line-height: 1; font-family: "DIN Alternate", "Bahnschrift", "Arial Black", sans-serif; }
.xg-hero-st { padding: 3px 14px; border-radius: 12px; background: var(--xg-ink); color: #fff; font-size: 13px; font-weight: 700; }
[data-xgst="1"] .xg-hero-st { background: var(--xg-red); animation: xg-blink 1.6s ease-in-out infinite; }
@keyframes xg-blink { 50% { opacity: .55; } }
.xg-hero-cd { color: var(--xg-sub); font-size: 13px; }
.xg-hero-cd em { display: block; font-style: normal; font-size: 22px; font-weight: 800; color: var(--xg-ink); font-family: "DIN Alternate", "Bahnschrift", monospace; }
.xg-hero-main .xg-btn-big { align-self: flex-start; }
.xg-hero-side { position: relative; margin: 18px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xg-hero-side h2 { font-size: 17px; margin-bottom: 8px; }
.xg-hero-side li a { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 10px 6px; border-bottom: 1px dashed var(--xg-line); transition: .2s; border-radius: 8px; }
.xg-hero-side li a:hover { background: #fff8db; padding-left: 12px; }
.xg-hero-side time { font-weight: 800; color: var(--xg-deep); }
.xg-hero-side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.xg-hero-side em { font-style: normal; color: var(--xg-mute); margin: 0 3px; }
.xg-hero-side i { font-style: normal; font-size: 12px; color: var(--xg-mute); }
.xg-hero-side li[data-xgst="1"] i { color: var(--xg-red); font-weight: 700; }
.xg-hero-more { display: block; margin-top: 12px; text-align: center; color: var(--xg-deep); font-weight: 700; }

/* ---------- 直播间卡片 ---------- */
.xg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xg-card { display: block; border-radius: var(--xg-r); background: #fff; overflow: hidden; box-shadow: 0 4px 16px rgba(160, 120, 20, .08); transition: transform .3s, box-shadow .3s, opacity .55s; }
.xg-card.in:hover { transform: translateY(-6px); box-shadow: var(--xg-shadow); }
.xg-card-cover { position: relative; height: 150px; background-size: cover; background-position: center; }
.xg-card-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 250, 225, .25), rgba(255, 236, 160, .72)); transition: .3s; }
.xg-card:hover .xg-card-cover::before { background: linear-gradient(180deg, rgba(255, 250, 225, .1), rgba(255, 212, 59, .7)); }
.xg-card-lg { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; }
.xg-card-st { position: absolute; right: 10px; top: 10px; padding: 2px 10px; border-radius: 10px; background: rgba(51, 41, 26, .7); color: #fff; font-size: 12px; }
[data-xgst="1"] .xg-card-st { background: var(--xg-red); }
[data-xgst="1"] .xg-card-st::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: xg-blink 1s infinite; }
.xg-card-vs { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.xg-card-vs b { font-size: 24px; font-weight: 900; text-shadow: 0 2px 0 #fff; font-family: "DIN Alternate", "Bahnschrift", "Arial Black", sans-serif; }
.xg-card-play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: -40px 0 0 -26px; border-radius: 50%; background: var(--xg-y); color: var(--xg-ink); opacity: 0; transform: scale(.6); transition: .3s; box-shadow: 0 0 0 8px rgba(255, 212, 59, .35); }
.xg-card:hover .xg-card-play { opacity: 1; transform: scale(1); }
.xg-card:hover .xg-card-vs { opacity: .25; }
.xg-card-vs { transition: opacity .3s; }
.xg-card-bd { padding: 12px 14px 14px; }
.xg-card-t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xg-card-t em { font-style: normal; color: var(--xg-mute); font-weight: 400; margin: 0 2px; }
.xg-card-m { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; color: var(--xg-mute); font-size: 12px; }
.xg-has { color: var(--xg-green); font-weight: 600; }
.xg-has::before { content: "●"; margin-right: 3px; font-size: 9px; }

/* ---------- 赛程行 ---------- */
.xg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.xg-chip { border: 1px solid var(--xg-line); padding: 5px 15px; border-radius: 16px; background: #fff; color: var(--xg-sub); font-size: 13px; transition: .2s; }
.xg-chip:hover { border-color: var(--xg-y); color: var(--xg-ink); }
.xg-chip.on { background: var(--xg-y); border-color: var(--xg-y); color: var(--xg-ink); font-weight: 700; }
.xg-rows { display: grid; gap: 10px; }
.xg-row { display: grid; grid-template-columns: 120px 1fr 90px 120px; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: #fff; border: 1px solid transparent; box-shadow: 0 2px 8px rgba(160, 120, 20, .06); transition: border-color .2s, box-shadow .2s, opacity .55s, transform .55s; }
.xg-row:hover { border-color: var(--xg-y); box-shadow: var(--xg-shadow); }
.xg-row.is-live { background: linear-gradient(90deg, #fff4f4, #fff 40%); }
.xg-row-time b { display: block; font-size: 18px; font-weight: 800; font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.xg-row-time span { display: inline-block; max-width: 110px; padding: 0 8px; border-radius: 8px; background: var(--xg-cream); color: var(--xg-deep); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xg-row-vs { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.xg-row-tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xg-row-h { justify-content: flex-end; text-align: right; }
.xg-row-sc { text-align: center; font-size: 18px; font-weight: 900; padding: 4px 0; border-radius: 10px; background: var(--xg-cream); font-family: "DIN Alternate", "Bahnschrift", sans-serif; }
.xg-row.is-live .xg-row-sc { background: var(--xg-red); color: #fff; }
.xg-row-st { text-align: center; color: var(--xg-mute); font-size: 13px; }
.xg-row.is-live .xg-row-st { color: var(--xg-red); font-weight: 700; }
.xg-row.is-live .xg-row-st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--xg-red); animation: xg-blink 1s infinite; }
.xg-day { position: sticky; top: 76px; z-index: 5; margin: 22px 0 12px; }
.xg-day span { display: inline-block; padding: 6px 18px; border-radius: 0 18px 18px 0; background: var(--xg-ink); color: var(--xg-y); font-weight: 700; box-shadow: 0 4px 12px rgba(51, 41, 26, .15); }

.xg-empty { padding: 48px 0; text-align: center; color: var(--xg-mute); background: #fff; border-radius: var(--xg-r); }
.xg-empty-ball { display: inline-block; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 13%), conic-gradient(var(--xg-y) 0 25%, #fcc419 0 50%, var(--xg-y) 0 75%, #fcc419 0); animation: xg-bounce 1.2s cubic-bezier(.3, 0, .5, 1) infinite alternate; }
@keyframes xg-bounce { from { transform: translateY(0); } to { transform: translateY(-22px) rotate(90deg); } }
.xg-pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.xg-pager a, .xg-pager span { min-width: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; background: #fff; border: 1px solid var(--xg-line); font-weight: 600; transition: .2s; }
.xg-pager a:hover { border-color: var(--xg-y); background: #fff8db; }
.xg-pager .on { background: var(--xg-y); border-color: var(--xg-y); }

/* ---------- 列表页横幅 ---------- */
.xg-banner { position: relative; border-radius: 26px; overflow: hidden; background-size: cover; background-position: center 60%; box-shadow: var(--xg-shadow); }
.xg-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 249, 219, .97), rgba(255, 224, 102, .7) 60%, rgba(255, 212, 59, .25)); }
.xg-banner-in { position: relative; padding: 34px 40px; }
.xg-banner h1 { font-size: 34px; font-weight: 900; margin: 6px 0; }
.xg-banner h1 small { margin-left: 12px; font-size: 15px; color: var(--xg-sub); }
.xg-banner b { font-size: 22px; color: var(--xg-deep); }
.xg-crumb { color: var(--xg-sub); font-size: 13px; }
.xg-crumb a:hover { color: var(--xg-deep); }
.xg-crumb-d { margin-bottom: 14px; }

/* ---------- 详情页 ---------- */
.xg-room { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.xg-score { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 28px 30px; border-radius: 26px; overflow: hidden; background-size: cover; background-position: center 70%; box-shadow: var(--xg-shadow); }
.xg-score::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 252, 235, .9), rgba(255, 230, 128, .88)); }
.xg-score > * { position: relative; }
.xg-score-tm { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.xg-score-tm b { font-size: 20px; font-weight: 800; }
.xg-score-tm small { color: var(--xg-sub); }
.xg-score-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xg-score-mid strong { font-size: 56px; line-height: 1.1; font-weight: 900; font-family: "DIN Alternate", "Bahnschrift", "Arial Black", sans-serif; }
.xg-score-st { padding: 2px 14px; border-radius: 12px; background: var(--xg-ink); color: var(--xg-y); font-weight: 700; font-size: 13px; }
[data-xgst="1"] .xg-score-st { background: var(--xg-red); color: #fff; animation: xg-blink 1.6s infinite; }
.xg-score-mid time { color: var(--xg-sub); font-size: 13px; }
.xg-room-h { margin: 18px 4px 12px; font-size: 20px; }
.xg-stage { border-radius: 22px; background: #fff; padding: 14px; box-shadow: 0 4px 16px rgba(160, 120, 20, .08); }
.xg-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fffbe6, #ffe8a3); }
.xg-video iframe, .xg-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.xg-video-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--xg-sub); font-size: 15px; }
.xg-video-tip::before { content: ""; width: 22px; height: 22px; margin-right: 10px; border: 3px solid var(--xg-y); border-top-color: transparent; border-radius: 50%; animation: xg-spin .8s linear infinite; }
.xg-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 4px 2px; }
.xg-lines-lb { font-weight: 700; color: var(--xg-sub); margin-right: 4px; }
.xg-line { height: 36px; padding: 0 18px; border-radius: 18px; border: 2px solid var(--xg-line); background: #fff; color: var(--xg-ink); font-weight: 600; display: inline-flex; align-items: center; transition: .2s; }
.xg-line:hover { border-color: var(--xg-y); }
.xg-line.cur { background: var(--xg-y); border-color: var(--xg-y); box-shadow: 0 4px 12px rgba(245, 159, 0, .3); }
.xg-line-out { border-style: dashed; color: var(--xg-sub); }
.xg-over { padding: 60px 20px; text-align: center; color: var(--xg-sub); border-radius: 14px; background: radial-gradient(circle at 50% 30%, #fffbe6, #fff3c4); }
.xg-over .xg-btn { margin-top: 16px; }
.xg-over-cd { margin-top: 10px; }
.xg-over-cd em { font-style: normal; font-weight: 800; font-size: 20px; color: var(--xg-ink); }
.xg-room-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.xg-box { padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 4px 16px rgba(160, 120, 20, .08); }
.xg-kv div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--xg-line); }
.xg-kv dt { color: var(--xg-mute); }
.xg-kv dd { font-weight: 600; }
.xg-mini a { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; transition: .2s; }
.xg-mini a:hover { background: var(--xg-cream); }
.xg-mini time { font-size: 11px; color: var(--xg-mute); line-height: 1.3; }
.xg-mini time b { display: block; font-size: 15px; color: var(--xg-ink); }
.xg-mini span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xg-mini em { font-style: normal; color: var(--xg-mute); margin: 0 4px; font-weight: 400; }
.xg-mini i { font-style: normal; font-size: 12px; color: var(--xg-mute); }
.xg-mini li[data-xgst="1"] i { color: var(--xg-red); font-weight: 700; }

/* ---------- 404 ---------- */
.xg-nf { padding: 70px 20px; text-align: center; background: #fff; border-radius: 28px; box-shadow: var(--xg-shadow); }
.xg-nf-ball { position: relative; display: inline-block; height: 110px; }
.xg-nf-ball .xg-empty-ball { width: 80px; height: 80px; }
.xg-nf-ball i { position: absolute; left: 50%; bottom: 0; width: 70px; height: 10px; margin-left: -35px; border-radius: 50%; background: rgba(51, 41, 26, .12); animation: xg-shadow 1.2s cubic-bezier(.3, 0, .5, 1) infinite alternate; }
@keyframes xg-shadow { to { transform: scale(.55); opacity: .5; } }
.xg-nf h1 { font-size: 34px; margin: 10px 0; }
.xg-nf h1 span { color: var(--xg-deep); }
.xg-nf p { color: var(--xg-sub); }
.xg-nf-go { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- 页脚 ---------- */
.xg-foot { position: relative; z-index: 1; margin-top: 50px; color: var(--xg-sub); font-size: 13px; }
.xg-foot-wave { display: block; width: 100%; height: 50px; }
.xg-foot-in { background: #fff8d6; padding: 10px 0 34px; }
.xg-foot p { margin-top: 8px; }
.xg-foot-nav a { margin-right: 22px; font-weight: 700; color: var(--xg-ink); }
.xg-foot-nav a:hover { color: var(--xg-deep); }
.xg-side-top { position: fixed; right: 22px; bottom: 30px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--xg-y); color: var(--xg-ink); box-shadow: 0 8px 20px rgba(245, 159, 0, .4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
.xg-scrolled .xg-side-top { opacity: 1; transform: none; pointer-events: auto; }
.xg-side-top:hover { transform: translateY(-4px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .xg-cards { grid-template-columns: repeat(3, 1fr); }
  .xg-hero { grid-template-columns: 1fr; }
  .xg-hero-side { margin-top: 0; }
  .xg-room { grid-template-columns: 1fr; }
  .xg-room-side { position: static; }
}
@media (max-width: 760px) {
  .xg-top-in { gap: 12px; height: 60px; }
  .xg-brand small { display: none; }
  .xg-brand b { font-size: 18px; }
  .xg-nav { position: fixed; left: 12px; right: 12px; bottom: 12px; justify-content: space-around; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); background: #fff; }
  .xg-nav a { padding: 8px 14px; }
  .xg-onair { padding: 7px 12px; font-size: 12px; }
  .xg-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .xg-card-cover { height: 110px; }
  .xg-hero-main { padding: 24px 18px; }
  .xg-hero-vs { gap: 8px; justify-content: space-between; }
  .xg-hero-tm { width: auto; flex: 1; }
  .xg-hero-tm strong { font-size: 15px; }
  .xg-hero-mid { min-width: 0; }
  .xg-hero-mid b { font-size: 36px; }
  .xg-row { grid-template-columns: 1fr auto; padding: 12px; }
  .xg-row-time { display: flex; align-items: center; gap: 8px; }
  .xg-row-vs { grid-column: 1 / -1; grid-row: 2; font-size: 14px; grid-template-columns: 1fr 64px 1fr; }
  .xg-row-st { grid-column: 2; grid-row: 1; }
  .xg-row .xg-btn { display: none; }
  .xg-day { top: 64px; }
  .xg-score { padding: 20px 12px; }
  .xg-score-mid strong { font-size: 38px; }
  .xg-score-tm b { font-size: 15px; }
  .xg-side-top { bottom: 84px; }
  .xg-foot { padding-bottom: 70px; }
}

/* 系统设置了“减少动态效果”时关闭动画 */
@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: #f59f00; --sc-on: #fff; --sc-live: #ff4757; --sc-radius: 18px; }

/* 背景图（原来写在模板 style 属性里） */
.bgi-c-bask { background-image: url(/static/xg/img/c-bask.jpg) !important; }
.bgi-c-foot { background-image: url(/static/xg/img/c-foot.jpg) !important; }
.bgi-hero { background-image: url(/static/xg/img/hero.jpg) !important; }
.bgi-room { background-image: url(/static/xg/img/room.jpg) !important; }

/* 手机端：缩小字号和间距，队名放不下时换行，尽量完整显示 */
@media (max-width: 760px) {
  .xg-card-t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}
@media (max-width: 480px) {
  .xg-row { padding: 10px 8px; }
  .xg-row-vs { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 6px; font-size: 13px; }
  .xg-row-tm { gap: 5px; overflow-wrap: anywhere; line-height: 1.3; }
  .xg-row-tm img, .xg-row-tm i { width: 20px; height: 20px; flex: none; }
  .xg-row-sc { font-size: 15px; }
}

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

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.hd-dates { margin-top: 24px; }
.xg-sec-hd .hd-tabs { margin-left: auto; }
.xg-row-time .hd-lg:hover, .xg-card-lg .hd-lg:hover { text-decoration: none; opacity: .8; }
/* 导航 5 项：手机底部导航一屏放下 */
@media (max-width: 760px) {
  /* 头部的 backdrop-filter 会让 fixed 的底部导航相对头部定位（跑到顶部），手机上去掉 */
  .xg-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .xg-nav { gap: 2px; padding: 4px; }
  .xg-nav a { flex: 1 1 0; min-width: 0; padding: 8px 2px; font-size: 13px; text-align: center; white-space: nowrap; }
}

/* 热门标记：本模板专属样式（只显示 🍊 图标，不带文字），覆盖上面通用的 🔥 热门 */
.xg-fire { gap: 0; font-size: 0; background: linear-gradient(90deg,#ffd43b,#ff922b); color: #4a2a00; border: 0; border-radius: 9px; animation: xg-hot-glow 1.8s ease-in-out infinite; }
.xg-fire::before { content: "🍊"; display: inline-block; transform-origin: 50% 50%; animation: xg-hot-ic 1s ease-in-out infinite; }
@keyframes xg-hot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,146,43, .35); } 50% { box-shadow: 0 0 0 4px rgba(255,146,43, 0); } }
@keyframes xg-hot-ic { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .xg-fire, .xg-fire::before { animation: none; } }

/* 日期条吸顶（样式在内置 hd.css）：底色跟页面一致 */
:root { --hd-bg: var(--xg-bg); }
/* 整行可点（row-cover） */
.xg-row { cursor: pointer; }
