/*
  海鸥直播模板 V3
  所有主色、背景、阴影、圆角、状态色都放在 :root 变量里，后续改颜色只改变量即可。
  也可以在 assets/data/site-config.json 的 theme.cssVars 覆盖这些变量。
*/
:root {
  --brand-yellow: #ff6a00;
  --brand-yellow-deep: #e85d00;
  --brand-dark: #242745;
  --brand-black: #1f2024;
  --page-bg: #eef0f5;
  --card-bg: #fff;
  --text-main: #111827;
  --text-sub: #6b7280;
  --border-color: #e5e7eb;
  --danger: #ff3045;
  --success: #20c997;
  --header-bg-pc: #fff;
  --header-bg-mobile: #202124;
  --header-nav-active-bg: #ff6a00;
  --header-nav-active-text: #fff;
  --mobile-tab-bg: #ff6a00;
  --mobile-bottom-bg: #fff;
  --hero-bg: #080617;
  --room-bg: #242745;
  --live-badge-bg: #ff3045;
  --quality-badge-bg: #121212;
  --schedule-side-line: #ff6a00;
  --radius-card: 8px;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, .08);
  --max-width: 1220px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; }
.pc-only { display: block; }
.mobile-only { display: none; }
.hide { display: none !important; }

/* PC 顶部 */
.site-header {
  height: 72px;
  background: var(--header-bg-pc);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s, border-color .25s, color .25s;
}
/* 首页 Hero 区域深色导航 */
.site-header.is-hero {
  background: var(--hero-bg);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  color: #fff;
}
.site-header.is-hero .pc-nav a { color: rgba(255,255,255,.85); }
.site-header.is-hero .pc-nav a.is-active { background: var(--header-nav-active-bg); color: var(--header-nav-active-text); }
.site-header.is-hero .pc-login { color: rgba(255,255,255,.85); }
.site-header.is-hero .pc-login .icon-dot { border-color: rgba(255,255,255,.85); }
.site-header.is-hero .pc-login .icon-dot::after { background: rgba(255,255,255,.85); }
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; flex: 0 0 230px; }
.logo-link img { width: 170px; height: auto; }
.pc-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; }
.pc-nav a { padding: 11px 18px; border-radius: 5px; position: relative; }
.pc-nav a.is-active { background: var(--header-nav-active-bg); color: var(--header-nav-active-text); }
.pc-nav a.hot::after {
  content: "HOT"; position: absolute; right: -20px; top: 0;
  background: var(--danger); color: #fff; border-radius: 8px 8px 8px 0; padding: 1px 5px; font-size: 10px; font-weight: 700;
}
.pc-login { color: var(--brand-yellow-deep); display: flex; gap: 10px; align-items: center; font-size: 15px; flex: 0 0 230px; justify-content: flex-end; }
.pc-login .icon-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand-yellow-deep); display: inline-block; position: relative; }
.pc-login .icon-dot::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--brand-yellow-deep); left: 4px; top: 5px; transform: rotate(-25deg); }

/* 手机顶部 */
.mobile-header { display: none; background: var(--header-bg-mobile); height: 42px; align-items: center; padding: 0 12px; gap: 9px; position: sticky; top: 0; z-index: 60; }
.mobile-header img { width: 110px; height: auto; }
.mobile-header .spacer { flex: 1; }
.mobile-header .mini-btn { background: var(--brand-yellow); color: #fff; border-radius: 4px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; }
.mobile-tabbar { display: none; background: var(--mobile-tab-bg); color: #fff; height: 43px; align-items: center; gap: 26px; padding: 0 16px; font-size: 15px; font-weight: 700; position: sticky; top: 42px; z-index: 55; }
.mobile-tabbar a { height: 43px; line-height: 43px; position: relative; }
.mobile-tabbar a.is-active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: 18px; height: 4px; border-radius: 9px; background: #fff; }

/* 首页 PC Hero */
.home-hero { background: var(--hero-bg); height: 560px; color: #fff; position: relative; overflow: hidden; }
.home-hero::before, .home-hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc((100vw - var(--max-width)) / 2 + 260px); background-size: cover; background-position: center; opacity: .6; }
.home-hero::before { left: 0; background-image: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.65)), url('../img/bg-hero-left.svg'); }
.home-hero::after { right: 0; background-image: linear-gradient(270deg, rgba(0,0,0,.15), rgba(0,0,0,.65)), url('../img/bg-hero-right.svg'); }
.home-hero-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 180px; gap: 12px; height: 100%; padding: 20px 0; }
.hero-player-zone { border-radius: var(--radius-card); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background-size: cover; background-position: center; background-color: #111; }
.hero-player-zone::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 1; }
.hero-preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .2s ease; z-index: 0; }
.hero-preview-video.is-ready { opacity: 1; }
.hero-enter-btn { position: relative; z-index: 2; background: rgba(31,31,31,.6); color: #ffd95a; font-weight: 900; font-size: 20px; border-radius: 8px; padding: 14px 32px; display: inline-block; transition: background .2s; }
.hero-enter-btn:hover { background: rgba(31,31,31,.85); color: #ffd95a; }
.hero-side-cards { display: flex; flex-direction: column; gap: 8px; }
.hero-side-card { border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #111; flex: 1 0 0; cursor: pointer; transition: border-color .15s; }
.hero-side-card.is-active { border-color: var(--brand-yellow); }
.hero-side-card:hover { border-color: #fff; }
.hero-side-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 旧比分表面板保留但不显示（后续可能需要） */
.scoreboard-panel { display: none; }

.home-main { background: var(--page-bg); padding: 20px 0 0; }
.horizontal-match { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-card); overflow: hidden; display: grid; grid-template-columns: repeat(5, 1fr) 56px; box-shadow: var(--shadow-card); }
.horizontal-card { min-height: 88px; border-right: 1px solid var(--border-color); padding: 12px 16px; transition: background .15s; }
.horizontal-card:hover { background: #fafafa; }
.horizontal-card .row1 { display: flex; justify-content: space-between; align-items: center; color: var(--text-sub); font-size: 12px; margin-bottom: 10px; }
.horizontal-card .team { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: 13px; }
.horizontal-card .team img { width: 22px; height: 22px; }
.horizontal-card .reserve-btn { font-size: 13px; font-weight: 700; background: var(--brand-yellow); color: #fff; border-radius: 4px; padding: 5px 12px; margin-top: 4px; display: inline-block; }
.horizontal-more { display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 36px; transition: color .15s; cursor: pointer; }
.horizontal-more:hover { color: var(--brand-yellow); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 42px 0 20px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 900; position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--brand-yellow); }
.section-head a { color: var(--text-sub); font-size: 14px; }
.section-head a:hover { color: var(--brand-yellow-deep); }
.live-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.live-card { background: var(--card-bg); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.live-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.16); }
.live-cover { position: relative; height: 136px; overflow: hidden; background: #ddd; }
.live-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; top: 8px; right: 8px; background: var(--live-badge-bg); color: #fff; padding: 5px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.quality-badge { position: absolute; right: 8px; top: 36px; background: var(--quality-badge-bg); color: #fff; padding: 2px 6px; border-radius: 2px; font-size: 11px; }
.live-info { padding: 8px 12px; }
.live-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.live-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-sub); font-size: 12px; }
.live-host { display: flex; align-items: center; gap: 5px; min-width: 0; }
.live-host img { width: 22px; height: 22px; border-radius: 50%; }

.footer { margin-top: 90px; background: var(--brand-dark); color: #d9def7; min-height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer img { width: 58px; margin: 0 auto 22px; }
.footer a { color: #d9def7; margin: 0 26px; }

/* PC 全部直播页 */
.page-shell { min-height: calc(100vh - 72px); padding: 34px 0 80px; }
.tab-row { display: flex; gap: 48px; align-items: center; margin: 0 0 28px; }
.tab-row a { font-size: 18px; color: var(--text-sub); padding: 10px 0; position: relative; }
.tab-row a.is-active { color: #111; font-weight: 800; }
.tab-row a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 10px; background: var(--brand-yellow); }

/* PC 赛程页 */
.date-tabs { display: flex; align-items: flex-end; justify-content: center; gap: 72px; padding: 10px 0 26px; }
.date-tabs a { color: var(--text-sub); text-align: center; line-height: 1.2; padding: 8px 0; position: relative; }
.date-tabs b { display: block; color: #4b5563; font-size: 24px; }
.date-tabs a.is-active b { color: #111; }
.date-tabs a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 5px; background: var(--brand-yellow); border-radius: 8px; }
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-item { background: var(--card-bg); border-radius: 2px; display: grid; grid-template-columns: 185px 280px 1fr 110px; align-items: center; min-height: 132px; padding: 20px 18px 20px 48px; position: relative; overflow: hidden; }
.schedule-item::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--schedule-side-line); }
.schedule-time .league { color: var(--text-sub); font-size: 20px; }
.schedule-time .time { margin-top: 8px; font-weight: 900; font-size: 30px; }
.schedule-teams .team-row { display: flex; align-items: center; gap: 12px; margin: 13px 0; font-size: 18px; font-weight: 700; }
.schedule-teams img { width: 36px; height: 36px; }
.schedule-hosts { display: flex; gap: 28px; justify-content: center; }
.host-mini { text-align: center; color: var(--text-sub); max-width: 78px; }
.host-mini img { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 5px; }
.schedule-status { text-align: center; }
.status-live { color: #111; font-weight: 800; }
.reserve-pill { display: inline-block; background: var(--brand-yellow); color: #fff; border-radius: 16px; padding: 6px 22px; font-weight: 700; }

/* 直播间 */
.room-stage { background: var(--room-bg); padding: 12px 0 10px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.player-panel, .chat-panel { background: #fff; border-radius: 4px; overflow: hidden; }
.player-head { height: 86px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.player-host { display: flex; gap: 14px; align-items: center; min-width: 0; }
.player-host img { width: 58px; height: 58px; border-radius: 50%; }
.player-host h1 { margin: 0 0 6px; font-size: 22px; }
.player-host p { margin: 0; color: var(--text-sub); }
.follow-btn { background: var(--brand-yellow); color: #fff; border-radius: 22px; padding: 10px 24px; font-size: 17px; font-weight: 700; }
.video-box { height: 520px; background: #0b0b0b; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-box video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.video-placeholder { color: #fff; text-align: center; pointer-events: none; }
.video-placeholder b { display: block; font-size: 28px; margin-bottom: 12px; color: var(--brand-yellow); }
.player-bottom { display: flex; align-items: center; min-height: 62px; border-top: 1px solid var(--border-color); padding: 0 18px; }
.player-ad-bar { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; color: inherit; padding: 0; height: 100%; }
.player-ad-bar img { width: auto; height: 42px; max-height: 100%; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.player-ad-bar .ad-body { flex: 1; min-width: 0; }
.player-ad-bar .ad-title { font-weight: 700; font-size: 14px; color: var(--text-main); margin-bottom: 2px; }
.player-ad-bar .ad-desc { font-size: 12px; color: var(--text-sub); }
.player-ad-bar .ad-btn { display: inline-block; background: var(--brand-yellow); color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; padding: 6px 14px; flex-shrink: 0; }
.player-ad-placeholder { justify-content: center; color: #ccc; font-size: 13px; }
.player-line-switcher { display: none !important; }
.chat-notice { padding: 14px; border-bottom: 1px solid var(--border-color); font-weight: 700; }
.chat-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.chat-tabs span { flex: 1; text-align: center; padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--text-sub); }
.chat-tabs span.is-active { color: #111; border-bottom: 3px solid var(--brand-yellow); }
.chat-body { height: 480px; overflow: auto; padding: 10px 12px; }
/* 主播资料 */
.chat-profile { padding: 10px 12px; overflow: auto; }
.chat-profile-empty { padding: 20px; text-align: center; color: var(--text-sub); }
.profile-card { background: #f8f9fb; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.profile-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.profile-intro { font-size: 13px; color: var(--text-sub); line-height: 1.45; }
.profile-stat { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.profile-stat span { font-size: 13px; color: var(--text-sub); }
.profile-stat b { font-size: 16px; color: var(--brand-yellow-deep); }
.profile-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.profile-tags span { display: inline-block; background: #eef0f5; color: var(--text-main); font-size: 12px; border-radius: 3px; padding: 3px 8px; margin: 0 4px 4px 0; }
.profile-contact { font-size: 13px; color: var(--text-sub); }
.profile-qr { text-align: center; }
.profile-qr img { width: 140px; height: 140px; margin: 0 auto 8px; border-radius: 6px; }
.profile-qr-text { font-size: 12px; color: var(--text-sub); }
.chat-msg { line-height: 1.65; margin-bottom: 8px; }
.lv { background: #0b65c2; color: #fff; border-radius: 2px; padding: 1px 4px; font-size: 11px; font-weight: 700; }
.chat-name { color: #555; font-weight: 700; }
.chat-input { display: grid; grid-template-columns: 1fr 58px; border-top: 1px solid var(--border-color); }
.chat-input input { height: 46px; border: 0; padding: 0 12px; color: var(--text-sub); }
.chat-input button { background: #f2f2f2; color: #999; }
.room-below { padding: 28px 0 0; }
.room-below h2 { font-size: 26px; margin: 0 0 18px; }

/* APP 页 */
.app-page { background: #eee; min-height: 100vh; display: flex; justify-content: center; }
.app-card { width: 780px; min-height: 860px; background: #fff; text-align: center; padding: 40px 10px; position: relative; }
.app-card .app-logo { width: 170px; margin: 0 auto 34px; }
.app-tabs { width: 720px; margin: 0 auto 60px; display: grid; grid-template-columns: 1fr 1fr; height: 52px; }
.app-tabs a { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; }
.app-tabs a:first-child { background: var(--brand-yellow); }
.app-tabs a:last-child { background: #1d1b3d; }
.app-links a { display: block; color: #0000ee; text-decoration: underline; margin: 7px 0; font-size: 16px; }
.app-footer { position: absolute; left: 0; right: 0; bottom: 20px; font-size: 16px; line-height: 1.8; }
.back-home-btn { position: absolute; top: 14px; left: 16px; z-index: 10; display: inline-block; color: #111; font-weight: 700; font-size: 15px; background: #fff; padding: 8px 16px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* 登录/用户 */
.simple-page { background: #fff; min-height: 100vh; }
.login-box { max-width: 360px; margin: 0 auto; padding: 64px 22px; }
.back-link { font-size: 32px; margin-bottom: 40px; display: inline-block; }
.login-box h1 { font-size: 28px; margin: 0 0 12px; }
.login-box p { color: var(--text-sub); margin-bottom: 28px; }
.login-box p a { color: var(--brand-yellow-deep); }
.form-line { height: 54px; border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 12px; }
.form-line input { border: 0; flex: 1; outline: none; font-size: 15px; }
.login-submit { width: 100%; height: 50px; border-radius: 25px; margin: 28px 0; background: #eef1f5; color: #a7adb8; font-weight: 800; font-size: 16px; }
.login-actions { display: flex; justify-content: space-between; }
.user-head { background: #fff; padding: 18px 24px 30px; }
.user-profile { display: flex; align-items: center; justify-content: space-between; }
.user-profile img { width: 80px; height: 80px; border-radius: 50%; }
.user-stats { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 22px; }
.user-stats div:first-child { border-right: 1px solid #ddd; }
.user-stats b { display: block; font-size: 24px; }
.user-menu { margin-top: 8px; background: #fff; padding: 0 18px; }
.user-menu a { display: flex; justify-content: space-between; align-items: center; height: 58px; border-bottom: 1px solid #eee; }
.user-menu .menu-left { display: flex; align-items: center; gap: 12px; }
.menu-icon { width: 22px; height: 22px; border-radius: 5px; background: var(--brand-yellow); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* 管理示例 */
.admin-box { max-width: 980px; margin: 0 auto; padding: 30px 0; }
.admin-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 22px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-field label { display: block; color: var(--text-sub); margin-bottom: 6px; }
.admin-field input { width: 100%; height: 38px; border: 1px solid var(--border-color); padding: 0 10px; }
.admin-actions button { background: var(--brand-yellow); color: #fff; border-radius: 4px; padding: 10px 18px; margin-right: 8px; }

/* PC 右侧悬浮工具栏 */
.side-toolbar { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.side-toolbar a, .side-toolbar button {
  display: block; width: 44px; height: 44px; border-radius: 6px;
  background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: 12px; color: #6b7280; text-align: center; line-height: 1.15;
  cursor: pointer; transition: background .15s, color .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  text-decoration: none;
}
.side-toolbar a:hover, .side-toolbar button:hover { background: var(--brand-yellow); color: #fff; border-color: var(--brand-yellow); }

/* 通用弹窗 */
.global-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; display: flex; align-items: center; justify-content: center; }
.global-modal-box { background: #fff; border-radius: 12px; padding: 24px 22px 20px; width: 300px; max-width: 90vw; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.global-modal-box h2 { margin: 0 0 16px; font-size: 18px; }
.global-modal-body { text-align: left; margin-bottom: 18px; }
.global-modal-btn { display: inline-block; background: var(--brand-yellow); color: #fff; border-radius: 6px; padding: 10px 28px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* 移动端 */
@media (max-width: 780px) {
  body { background: #fff; padding-bottom: 110px; font-size: 13px; }
  .pc-only { display: none !important; }
  .mobile-only { display: block; }
  .site-header { display: none; }
  .mobile-header, .mobile-tabbar { display: flex; }
  .container { width: 100%; max-width: none; padding: 0 12px; }
  .home-hero, .home-main, .page-shell, .room-stage { display: none; }
  .mobile-page { display: block; background: #fff; min-height: calc(100vh - 85px); }

  /* 手机轮播图 — 横向滑动 */
  .m-banner { padding: 12px 0 8px; background: #fff; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-left: 12px; }
  .m-banner::-webkit-scrollbar { display: none; }
  .m-banner-card { flex: 0 0 85vw; height: 120px; border-radius: 10px; overflow: hidden; position: relative; scroll-snap-align: start; }
  .m-banner-card img { width: 100%; height: 100%; object-fit: cover; }
  .m-banner-label { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 3px; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* 午间聊球 — 赛程横滑 */
  .m-match-scroll { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 12px 8px; }
  .m-match-scroll::-webkit-scrollbar { display: none; }
  .m-match-scroll-card { flex: 0 0 160px; scroll-snap-align: start; background: var(--card-bg); border-radius: 8px; padding: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); text-decoration: none; color: inherit; display: block; }
  .m-match-scroll-row1 { display: flex; justify-content: space-between; align-items: center; color: var(--text-sub); font-size: 11px; margin-bottom: 8px; white-space: nowrap; }
  .m-match-scroll-teams { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
  .m-match-scroll-teams img { width: 20px; height: 20px; border-radius: 50%; }
  .m-match-scroll-status { display: inline-block; background: var(--brand-yellow); color: #fff; font-size: 11px; font-weight: 700; border-radius: 3px; padding: 2px 8px; }

  .m-section-title { font-size: 18px; font-weight: 900; margin: 18px 12px 12px; }
  .m-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
  .m-live-grid .live-card { border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
  .m-live-grid .live-cover { height: 96px; }
  .m-live-grid .live-info { padding: 6px 6px 8px; }
  .m-live-grid .live-title { font-size: 13px; margin-bottom: 6px; line-height: 1.3; }
  .m-live-grid .live-host { display: none; }
  .m-live-grid .live-meta { justify-content: flex-end; color: #fff; position: absolute; right: 6px; bottom: 5px; text-shadow: 0 1px 2px #000; }
  .m-live-grid .live-card { position: relative; }
  .m-float-ad { position: fixed; left: 0; right: 0; bottom: 56px; height: 44px; background: rgba(0,0,0,.75); color: #fff; display: flex; align-items: center; gap: 10px; z-index: 80; padding: 0 14px; }
  .m-float-ad .close { font-size: 16px; color: #aaa; cursor: pointer; }
  .m-float-ad img { width: 36px; height: 36px; border-radius: 6px; }
  .m-float-ad .text { flex: 1; line-height: 1.25; font-weight: 700; }
  .m-float-ad .download { background: var(--brand-yellow); color: #111; border-radius: 4px; padding: 6px 14px; font-weight: 800; font-size: 14px; }
  .m-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: var(--mobile-bottom-bg); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e5e7eb; z-index: 90; }
  .m-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #333; font-size: 12px; }
  .m-bottom-nav a.is-active { color: var(--brand-yellow-deep); }
  .m-bottom-nav .nav-ico { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 7px; }
  .m-follow-empty { min-height: 274px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-sub); border-bottom: 8px solid #f3f3f3; }
  .m-empty-icon { width: 86px; height: 70px; background: #eef3fb; clip-path: polygon(50% 0, 100% 32%, 82% 100%, 18% 100%, 0 32%); opacity: .9; margin-bottom: 18px; }
  .m-login-btn { background: var(--brand-yellow); color: #fff; border-radius: 24px; padding: 10px 34px; font-weight: 800; margin-top: 14px; }
  .m-schedule-wrap { padding: 16px 12px 110px; }
  .m-schedule-item { display: grid; grid-template-columns: 46px 1fr 58px; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eee; }
  .m-schedule-time { color: var(--text-sub); font-size: 12px; }
  .m-schedule-main .league { color: #111; font-weight: 700; margin-bottom: 10px; font-size: 12px; }
  .m-versus { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; padding: 2px 0; }
  .m-versus img { width: 28px; height: 28px; }
  .m-versus b { color: #ff394f; font-size: 12px; font-weight: 700; }
  .m-host-row { display: flex; justify-content: center; gap: 14px; margin-top: 8px; color: var(--text-sub); font-size: 11px; }
  .m-host-row img { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 3px; }
  .m-status { text-align: right; color: var(--text-sub); font-size: 12px; display: flex; align-items: center; justify-content: flex-end; }
  .m-status .reserve-pill { font-size: 13px; padding: 5px 10px; }
  /* 手机端直播间页面锁定一屏 */
  body[data-page="room"] { overflow: hidden; padding-bottom: 0; }
  .mobile-room .room-stage { display: flex; flex-direction: column; padding: 0; background: #fff; height: calc(100vh - 42px); height: calc(100dvh - 42px); height: calc(var(--room-vh, 100dvh) - 42px); }
  .mobile-room .room-grid { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  /* 手机端去掉 container 左右留白，播放器满宽 */
  .mobile-room .container, .mobile-room .room-grid, .mobile-room .player-panel { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; box-sizing: border-box; }
  .mobile-room .player-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0; margin-bottom: 0; }
  /* 手机端隐藏主播信息区 */
  .mobile-room .player-head { display: none; }
  .mobile-room .video-box { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; min-height: 0; flex-shrink: 0; border-radius: 0; margin: 0; }
  .mobile-room .video-placeholder { padding: 20px; }
  .mobile-room .video-placeholder b { font-size: 18px; }
  .mobile-room .video-placeholder span { font-size: 13px; }
  .mobile-room .player-line-switcher { right: 10px; top: 42px; bottom: auto; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .mobile-room .video-box.mobile-controls-visible .player-line-switcher,
  .mobile-room .player-line-switcher.is-open { opacity: 1; pointer-events: auto; }
  .mobile-room .player-line-switcher .line-current-btn { padding: 3px 8px; font-size: 11px; }
  .mobile-room .player-line-switcher .line-menu { min-width: 90px; }
  .mobile-room .player-bottom, .mobile-room .chat-panel, .mobile-room .room-below { display: none; }
  /* 手机端直播间隐藏底部导航 */
  body[data-page="room"] .m-bottom-nav { display: none !important; }
  /* 输入框聚焦时折叠播放器画面区域 */
  body[data-page="room"].mobile-chat-focus .mobile-room .video-box { height: 0; aspect-ratio: auto; min-height: 0; overflow: hidden; opacity: 0; }
  body[data-page="room"].mobile-chat-focus .mobile-room .player-line-switcher { display: none; }
  .mobile-chat-section { background: #fff; padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .mobile-chat-tabs { display: flex; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
  .mobile-chat-tabs span { flex: 1; text-align: center; padding: 14px 0; font-weight: 800; font-size: 16px; cursor: pointer; color: var(--text-sub); transition: color .15s, border-color .15s; }
  .mobile-chat-tabs span.is-active { color: #111; border-bottom: 4px solid var(--brand-yellow); }
  .mobile-chat-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
  .mobile-chat-input { flex-shrink: 0; display: grid; grid-template-columns: 1fr 58px; gap: 8px; border-top: 1px solid var(--border-color); padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; }
  .mobile-chat-input input { height: 40px; border: 1px solid var(--border-color); border-radius: 4px; padding: 0 10px; color: var(--text-sub); font-size: 14px; }
  .mobile-chat-input button { background: var(--brand-yellow); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 700; }
  /* VIP 等级颜色 */
  .lv { display: inline-block; min-width: 30px; text-align: center; border-radius: 2px; padding: 1px 5px; font-size: 11px; font-weight: 700; color: #fff; }
  .lv-low { background: #22c55e; }
  .lv-mid { background: #3b82f6; }
  .lv-high { background: #f97316; }
  .lv-vip { background: #a855f7; }
  /* 主播消息高亮 */
  .chat-msg-anchor { background: #fff9e8; border-left: 3px solid var(--brand-yellow); padding: 6px 8px 6px 12px; border-radius: 4px; margin-bottom: 6px; }
  .chat-msg-anchor .chat-name { color: var(--brand-yellow-deep); font-weight: 800; }
  body[data-page="room"] { padding-bottom: 0; }
  .app-page { display: block; background: #eee; padding-bottom: 0; }
  .app-card { width: 100%; min-height: 100vh; padding-top: 42px; }
  .app-card .app-logo { width: 150px; }
  .app-tabs { width: calc(100% - 22px); margin-bottom: 60px; }
  .simple-page { padding-bottom: 0; }
  .footer { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (min-width: 781px) {
  .mobile-page, .m-bottom-nav, .m-float-ad { display: none !important; }
}
