:root {
  --bg: #e9eff8;
  --panel: #ffffff;
  --ink: #1d2330;
  --muted: #727986;
  --line: #e5e8ef;
  --dark: #111422;
  --gold: #f8b735;
  --gold-2: #ee8d24;
  --red: #f04438;
  --green: #16a064;
  --shadow: 0 10px 28px rgba(19, 25, 42, 0.08);
  --topbar-height: 96px;
  --live-room-z: 32;
  --mobile-topbar-h: 56px;
  --mobile-nav-h: 58px;
  --mobile-app-banner-h: 62px;
  /* 对齐雨燕 common.css */
  font-family: "PingFang SC", tahoma, arial, "Microsoft Yahei", "Hiragino Sans GB", "\5b8b\4f53",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.ops-shell[hidden] {
  display: none;
}

.manage-mode .page {
  display: none;
}

.manage-mode .ops-shell {
  display: block;
}

/* 顶栏：对齐参考图黑底黄按钮 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #151515;
  box-shadow: none;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1200px, 100%);
  min-height: 96px;
  margin: 0 auto;
  padding: 0 18px;
}

.logo {
  width: 286px;
  min-width: 286px;
  margin-right: 16px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo .logo-light {
  display: none;
}

.logo .logo-dark {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 58px;
  margin: 0 8px;
  padding: 0 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 58px;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  background: #ffc51c;
  color: #fff;
}

.nav a.nav-download,
.nav a.nav-download:hover {
  color: #ffb600;
  background: transparent;
}

.nav a.nav-download.active {
  background: #ffc51c;
  color: #fff;
}

.nav a.nav-download .hot-badge {
  position: absolute;
  top: -2px;
  right: 0;
  width: 29px;
  height: 19px;
  cursor: pointer;
  pointer-events: auto;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 72px;
}

.auth-actions button,
.auth-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8c21b;
  font-size: 16px;
  font-weight: 400;
  line-height: inherit;
}

.auth-actions .header-install-button,
.auth-actions .header-download-button,
.auth-actions button.header-install-button:last-child,
.auth-actions a.header-download-button:last-child {
  min-width: 146px;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #ffc51c;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 56px;
}

.auth-actions .header-install-button {
  min-width: 200px;
}

.auth-actions button:hover,
.auth-actions a:hover {
  color: #f8c21b;
  filter: brightness(1.05);
}

.auth-actions button:last-child,
.auth-actions a:last-child {
  background: transparent;
  color: #f8c21b;
}

.auth-actions .auth-login-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, currentColor 0 2.5px, transparent 2.6px),
    radial-gradient(ellipse at 50% 110%, currentColor 0 6px, transparent 6.6px);
  vertical-align: -2px;
}

.auth-actions .auth-division {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 6px;
  background: #f8c21b;
  vertical-align: middle;
}

.auth-actions .anchor-open-button {
  margin-right: 12px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f8c21b;
  color: #fff;
  line-height: 28px;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(248, 194, 27, 0.14);
  color: #9b6508;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.account-badge.anchor {
  background: #fff3cf;
  color: #9b6508;
}

.user-name {
  max-width: 96px;
  overflow: hidden;
  color: #333;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe176, #f1b72f);
  color: #3a2500;
  font-size: 12px;
  font-weight: 900;
}

.mobile-home-shortcut,
.mobile-download,
.mobile-match,
.mobile-follow-shell,
.mobile-bottom-nav,
.mobile-app-banner,
.mobile-home-banner {
  display: none;
}

main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 0 42px;
}

.type-nav {
  background: var(--gold);
}

/* PC 首页不展示分类黄条（全部/足球/篮球/分析） */
@media (min-width: 761px) {
  body[data-page-view="home"] .type-nav {
    display: none !important;
  }
}

.type-nav-inner {
  display: flex;
  align-items: center;
  gap: 58px;
  width: min(1200px, 100%);
  min-height: 112px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.type-nav-inner::-webkit-scrollbar {
  display: none;
}

.type-nav-inner button {
  position: relative;
  min-width: max-content;
  height: 112px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.type-nav-inner button.active::after {
  position: absolute;
  right: 50%;
  bottom: 18px;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translateX(50%);
}

/* 全部直播页：一比一对齐 yuyantv.cn/liveType.html */
body[data-page-view="live"] {
  background: #f0f1f6;
  min-width: 1320px;
}

body[data-page-view="live"] .topbar {
  background: #151515;
  box-shadow: none;
  color: #fff;
}

body[data-page-view="live"] .topbar-inner {
  width: min(1200px, 100%);
  min-height: 96px;
}

body[data-page-view="live"] .type-nav {
  background: #f0f1f6;
}


body[data-page-view="live"] .type-nav-inner {
  display: block;
  width: 1320px;
  max-width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0 auto;
  padding: 18px 0 0;
  overflow: visible;
}

body[data-page-view="live"] .type-nav-inner::after {
  display: block;
  clear: both;
  content: "";
}

body[data-page-view="live"] .type-nav-inner button {
  position: relative;
  float: left;
  height: 40px;
  margin: 0 28px 24px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
}

body[data-page-view="live"] .type-nav-inner button:first-child {
  margin-left: 0;
}

body[data-page-view="live"] .type-nav-inner button.active {
  bottom: 6px;
  padding-bottom: 8px;
  color: #000;
  font-size: 24px;
  font-weight: 600;
}

body[data-page-view="live"] .type-nav-inner button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  border-bottom: 6px solid #ffb600;
  background: transparent;
  transform: none;
}

body[data-page-view="live"] main {
  width: 1320px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 60px;
}

body[data-page-view="live"] .stage,
body[data-page-view="live"] .schedule,
body[data-page-view="live"] .anchor-section,
body[data-page-view="live"] .category-live,
body[data-page-view="live"] .download-card,
body[data-page-view="live"] .hot-title {
  display: none !important;
}

body[data-page-view="live"] .hot-live {
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-view="live"] .room-grid {
  display: block;
  width: 1319px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

body[data-page-view="live"] .room-card {
  float: left;
  width: 251px;
  height: 191px;
  margin: 0 16px 16px 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

body[data-page-view="live"] .room-card:nth-child(5n) {
  margin-right: 0;
}

body[data-page-view="live"] .room-card:hover {
  box-shadow: none;
}

@media (max-width: 1400px) {
  body[data-page-view="live"] {
    min-width: 0;
  }

  body[data-page-view="live"] .topbar-inner {
    width: min(960px, 100%);
    min-height: 96px;
  }

  body[data-page-view="live"] .type-nav-inner,
  body[data-page-view="live"] main,
  body[data-page-view="live"] .room-grid {
    width: 960px;
  }

  body[data-page-view="live"] .room-card:nth-child(5n) {
    margin-right: 16px;
  }
}

/* 赛程页 / 下载页：与全部直播同级的独立页视图，瞬时切换、不滚首页 */
body[data-page-view="schedule"],
body[data-page-view="download"] {
  background: #f0f1f6;
  min-width: 1320px;
}

body[data-page-view="schedule"] .topbar,
body[data-page-view="download"] .topbar {
  background: #151515;
  box-shadow: none;
  color: #fff;
}

body[data-page-view="schedule"] .topbar-inner,
body[data-page-view="download"] .topbar-inner {
  width: min(1200px, 100%);
  min-height: 96px;
}

body[data-page-view="schedule"] .type-nav,
body[data-page-view="download"] .type-nav,
body[data-page-view="schedule"] .type-nav {
  display: none !important;
}

body[data-page-view="schedule"] .stage,
body[data-page-view="schedule"] .hot-live,
body[data-page-view="schedule"] .anchor-section,
body[data-page-view="schedule"] .category-live,
body[data-page-view="schedule"] .download-card {
  display: none !important;
}

body[data-page-view="download"] .stage,
body[data-page-view="download"] .schedule,
body[data-page-view="download"] .hot-live,
body[data-page-view="download"] .anchor-section,
body[data-page-view="download"] .category-live {
  display: none !important;
}

body[data-page-view="schedule"] main,
body[data-page-view="download"] main {
  width: 1320px;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0 60px;
}

body[data-page-view="schedule"] .schedule.appoinment-list {
  width: 100%;
  margin: 0;
}

body[data-page-view="schedule"] .section-head.schedule-head {
  display: none !important;
}

body[data-page-view="schedule"] .pc-match-dates {
  display: block;
  margin: 0 0 8px;
  padding: 8px 0 4px;
  background: transparent;
}

body[data-page-view="schedule"] .pc-match-date-list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 4px;
}

body[data-page-view="schedule"] .pc-match-date-list li {
  flex: 1 1 0;
}

body[data-page-view="schedule"] .pc-match-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

body[data-page-view="schedule"] .pc-match-date-item .day {
  font-size: 14px;
  line-height: 1.2;
}

body[data-page-view="schedule"] .pc-match-date-item .date {
  font-size: 13px;
  line-height: 1.2;
}

body[data-page-view="schedule"] .pc-match-date-item.active {
  color: #111;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 #f8c21b;
}

body[data-page-view="schedule"] .appoinment-swiper-container {
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body[data-page-view="schedule"] .appointment-nav {
  display: none !important;
}

body[data-page-view="schedule"] .schedule-strip {
  display: block;
  height: auto;
  overflow: visible;
  scroll-behavior: auto;
}

body[data-page-view="schedule"] .pc-match-row {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 14px 24px;
  border-bottom: 1px solid #eceff3;
  background: #fff;
}

body[data-page-view="schedule"] .pc-match-left {
  display: grid;
  gap: 6px;
}

body[data-page-view="schedule"] .pc-match-league {
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

body[data-page-view="schedule"] .pc-match-time {
  color: #888;
  font-size: 13px;
  line-height: 1.2;
}

body[data-page-view="schedule"] .pc-match-teams {
  display: grid;
  gap: 10px;
}

body[data-page-view="schedule"] .pc-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page-view="schedule"] .pc-match-team img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 28px;
}

body[data-page-view="schedule"] .pc-match-team span {
  overflow: hidden;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-view="schedule"] .pc-match-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-view="schedule"] .pc-match-avatar-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
  gap: 4px;
  cursor: pointer;
}

body[data-page-view="schedule"] .pc-match-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

body[data-page-view="schedule"] .pc-match-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f2f2;
}

body[data-page-view="schedule"] .pc-match-avatar-live {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 18px;
  height: 18px;
}

body[data-page-view="schedule"] .pc-match-avatar-name {
  overflow: hidden;
  width: 100%;
  color: #555;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-view="schedule"] .pc-match-avatar-empty {
  color: #999;
  font-size: 13px;
  list-style: none;
}

body[data-page-view="schedule"] .schedule-strip .empty-state {
  padding: 48px 16px;
  color: #999;
  text-align: center;
}

body[data-page-view="download"] .download-card {
  width: 100%;
  margin: 40px 0 0;
}

@media (max-width: 1400px) {
  body[data-page-view="schedule"],
  body[data-page-view="download"] {
    min-width: 0;
  }

  body[data-page-view="schedule"] .topbar-inner,
  body[data-page-view="download"] .topbar-inner {
    width: min(960px, 100%);
    min-height: 96px;
  }

  body[data-page-view="schedule"] main,
  body[data-page-view="download"] main {
    width: 960px;
  }

  body[data-page-view="schedule"] .pc-match-row {
    grid-template-columns: 120px minmax(180px, 1fr) minmax(200px, 1fr);
    padding: 12px 16px;
  }
}

.stage.living-room {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
  border-radius: 0;
  background: #0a0c14 url("/assets/ui/banner.jpg") center / cover no-repeat;
  box-shadow: none;
}

.living-room .video-inner {
  display: flex;
  align-items: stretch;
  width: min(1200px, 100%);
  height: 640px;
  margin-inline: auto;
  padding-top: 72px;
  box-sizing: border-box;
}

.player.video-box {
  position: relative;
  flex: 1 1 auto;
  width: 1015px;
  max-width: calc(100% - 185px);
  height: 567px;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  background: #000;
}

@media (max-width: 1220px) {
  .living-room .video-inner {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 24px 12px 0;
  }

  .player.video-box {
    height: auto;
    min-height: 320px;
    aspect-ratio: 16 / 9;
  }

  .stage .video-list,
  .stage .room-list {
    height: auto;
    min-height: 100%;
  }

  .stage .room-list {
    overflow-y: auto;
  }
}

.player::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 42%);
}

.player > img,
.player > video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player > video {
  background: #000;
}

.player > video[hidden] {
  display: none;
}

.stage .video-list {
  position: relative;
  flex: 0 0 185px;
  width: 185px;
  height: 567px;
}

.stage .room-list {
  display: flex;
  flex-direction: column;
  width: 185px;
  height: 100%;
  margin: 0;
  padding: 7px 2px 7px 0;
  list-style: none;
  overflow: hidden;
  border-radius: 0 6px 6px 0;
  background: rgba(0, 0, 0, 0.8);
}

.stage .room-list li {
  padding: 0 0 7px 5px;
}

.stage .room-list a {
  position: relative;
  display: block;
  width: 170px;
  height: 105px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.stage .room-list a:hover,
.stage .room-list a.active {
  border-color: #f8c21b;
}

.stage .room-list a.active,
.stage .room-list a:hover {
  border-color: #f8c21b;
}

.stage .room-list a.active .left-arrow,
.stage .room-list a:hover .left-arrow {
  position: absolute;
  top: 43px;
  left: 0;
  margin-left: -15px;
}

.stage .room-list a.active .left-arrow::after,
.stage .room-list a:hover .left-arrow::after {
  position: absolute;
  content: "";
  border-top: 6px transparent dashed;
  border-left: 7px transparent dashed;
  border-bottom: 6px solid transparent;
  border-right: 7px solid #f8c21b;
}

.stage .room-list img {
  display: block;
  width: 167px;
  height: 102px;
  border-radius: 6px;
  object-fit: cover;
}

.corner-brand {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 2px;
  align-items: center;
  width: 174px;
  padding: 4px 8px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 11px;
  font-weight: 900;
}

.corner-brand img {
  width: 132px;
}

.room-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: #f8c21b;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 48px;
  white-space: nowrap;
  text-decoration: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: background 0.2s, transform 0.2s;
}

.room-button:hover {
  background: #ffcb2e;
  color: #fff;
  filter: brightness(1.03);
}

.hero-bottom-ctrl {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
  pointer-events: none;
}

.hero-ctrl-left,
.hero-ctrl-right {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.hero-ctrl-btn {
  display: inline-block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.95;
  cursor: pointer;
}

.hero-ctrl-play {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 5h4v14H6zm8 0h4v14h-4z'/%3E%3C/svg%3E");
}

.hero-ctrl-play.is-paused {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.hero-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-ctrl-vol {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3zm13.5 3a3.5 3.5 0 0 0-1.5-2.9v5.8A3.5 3.5 0 0 0 16 12zm3 0a6 6 0 0 0-3-5.2v2.1a3.5 3.5 0 0 1 0 5.8V17a6 6 0 0 0 3-5z'/%3E%3C/svg%3E");
}

.hero-ctrl-vol.is-muted {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M16.5 12a3.5 3.5 0 0 0-1.5-2.9v2.2l1.5 1.5V12zm3 0a6 6 0 0 0-3-5.2v1.7l1.1 1.1A4.8 4.8 0 0 1 18.5 12c0 .7-.1 1.3-.3 1.9l1.1 1.1c.5-.9.7-1.5.8-2.4zM4.3 3 3 4.3 7.7 9H3v6h4l5 4v-5.7l5.7 5.7 1.3-1.3L4.3 3zM14 3.7l-2 2V5l5 4-1.3 1.3 2 2 1.3-1.3-5-4z'/%3E%3C/svg%3E");
  opacity: 0.75;
}

.hero-volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #f8c21b 0%,
    #f8c21b var(--progress, 80%),
    rgba(255, 255, 255, 0.9) var(--progress, 80%),
    rgba(255, 255, 255, 0.9) 100%
  );
  outline: none;
  cursor: pointer;
}

.hero-volume-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.hero-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #f8c21b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.hero-volume-range::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-volume-range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #f8c21b;
}

.hero-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #f8c21b;
  cursor: pointer;
}

.hero-ctrl-full {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 14H2v8h8v-4H4v-4h8v-4zm0-4V2H4v8h2V6h4v2h8z'/%3E%3C/svg%3E");
}

.hero-go-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 8px;
  border-radius: 4px;
  background: #f8c21b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: auto;
  text-decoration: none;
}

.player-meta {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  color: #fff;
  pointer-events: none;
}

.player-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.player-meta-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-meta b {
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.notice-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  background: linear-gradient(180deg, #ffe084, #f4b03a);
  color: #2d1b00;
  font-weight: 900;
}

.notice-bar > span {
  padding: 0 12px;
  border-right: 1px solid rgba(97, 59, 0, 0.2);
}

.notice-marquee {
  display: flex;
  gap: 36px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.notice-marquee span {
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(40%);
  }
  to {
    transform: translateX(-100%);
  }
}

.schedule,
.hot-live,
.anchor-section {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.schedule.appoinment-list {
  position: relative;
  width: min(1200px, 100%);
  margin: 40px auto 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pc-match-dates[hidden] {
  display: none !important;
}

.section-head.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 4px;
}

.section-head.schedule-head h2 {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 800;
}

.section-head.schedule-head .schedule-download-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 22px;
  color: #ffb600;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.section-head.schedule-head .schedule-download-link .hot-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 28px;
  height: 18px;
  pointer-events: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  white-space: nowrap;
}

.section-head a {
  color: #d47d15;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.appoinment-swiper-container {
  position: relative;
  width: 100%;
  height: 132px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
}

.schedule-strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.schedule-strip::-webkit-scrollbar,
.anchor-strip::-webkit-scrollbar {
  display: none;
}

.match-card {
  display: block;
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  height: 100%;
  padding: 16px 16px 20px;
  border-right: 1px solid #d8d8d8;
  background: #fff;
  box-sizing: border-box;
  font-weight: 400;
  text-align: left;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 17px;
  margin: 0 0 20px;
  color: #777;
  font-size: 12px;
  line-height: 17px;
}

.match-meta b {
  color: #777;
  font-weight: 400;
}

.match-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.teams {
  display: grid;
  gap: 10px;
  width: 150px;
  min-width: 0;
}

.teams div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.teams img {
  width: 24px;
  height: 24px;
  border-radius: 0;
  object-fit: cover;
  flex: 0 0 24px;
}

.teams span {
  overflow: hidden;
  width: 112px;
  height: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card button,
.match-card .appoinment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  min-width: 52px;
  height: 25px;
  margin-top: 18px;
  border: 0;
  border-radius: 4px;
  background: #f8c21b;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 25px;
  cursor: pointer;
}

.match-card .appoinment.is-booked,
.room-schedule-card .appoinment.is-booked {
  background: #c8c8d0;
  color: #fff;
}


.appointment-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) center / 10px no-repeat;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.appointment-prev {
  left: -6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.4 7.4 10.8 12l4.6 5-1.4 1.4L8 12l5.6-6.4z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.appointment-next {
  right: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M8.6 7 13.2 12 8.6 17l1.4 1.4L16 12l-5.6-6.4z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.schedule-commentators {
  display: none;
}

.schedule-commentators h3 {
  margin: 0;
  color: #101725;
  font-size: 16px;
  font-weight: 900;
}

.schedule-commentator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-commentator-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.commentator-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #343b48;
  font-weight: 900;
}

.commentator-head img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.commentator-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commentator-cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #111422;
  aspect-ratio: 16 / 9;
}

.commentator-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commentator-cover::after {
  position: absolute;
  inset: 42% 0 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.commentator-cover b,
.commentator-cover em {
  position: absolute;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.commentator-cover b {
  left: 8px;
  background: #f04438;
}

.commentator-cover em {
  right: 8px;
  background: rgba(0, 0, 0, 0.58);
}

.commentator-cover strong {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  z-index: 1;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.74);
  white-space: nowrap;
}

.commentator-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed #dfe5ef;
  border-radius: 8px;
  background: #fafbfe;
  color: #8a929f;
  font-size: 13px;
  font-weight: 900;
}

.hot-live {
  padding: 18px;
}

.hot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hot-title img {
  width: 178px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.room-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: 251px 191px;
}

.room-card:hover {
  box-shadow: none;
}

.room-link {
  display: block;
}

.room-card .live-item {
  position: relative;
  width: 100%;
  height: 127px;
  overflow: hidden;
  background: #eceff4;
}

.room-card .live-item .fm {
  display: block;
  width: 100%;
  height: 127px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

/* 雨燕 icon-open@2x：悬停从 scale(2)→1 淡入 */
.room-card .btn-open {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 2;
  display: block;
  width: 44px;
  height: 44px;
  margin: -25px 0 0 -25px;
  padding: 0;
  border: 0;
  background: url(/assets/ui/icon-open@2x.png) no-repeat;
  background-size: 44px auto;
  font-size: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(2);
  backface-visibility: hidden;
  transition: all 0.25s ease-out;
}

.room-card:hover .btn-open {
  opacity: 1;
  transform: scale(1);
}

.room-card .top-tag {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  zoom: 1;
  pointer-events: none;
}

.room-card .top-tag::after {
  display: block;
  height: 0;
  clear: both;
  content: "";
  visibility: hidden;
}

.room-card .top-tag .com,
.room-card .top-tag .hots,
.room-card .top-tag .tag {
  float: left;
  padding-right: 14px;
  border-top: 24px solid #218aff;
  border-right: 6px solid transparent;
  border-radius: 0 3px 9px 0;
  color: #fff;
}

.room-card .top-tag .com i,
.room-card .top-tag .hots i,
.room-card .top-tag .tag i {
  position: relative;
  top: -21px;
  left: 8px;
  font-size: 14px;
  font-style: normal;
  text-align: center;
}

.room-card .top-tag .com {
  border-top-color: #218aff;
}

.room-card .top-tag .hots {
  border-top-color: #f53923;
}

.room-card .top-tag .tag {
  border-top-color: #f5a623;
  color: #000;
}

.room-card .top-tag .living {
  float: right;
  height: 18px;
  margin-right: 8px;
  padding: 0 4px;
  border-radius: 2px;
  background: #fa3434;
  font-size: 0;
  line-height: 18px;
}

.room-card .top-tag .living img {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  vertical-align: middle;
  object-fit: contain;
}

.room-card .top-tag .living span {
  position: static;
  font-size: 12px;
  color: #fff;
  line-height: 18px;
  vertical-align: top;
}

.room-card .room-title {
  height: 34px;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.room-card .room-meta {
  margin: 0;
  padding: 1px 12px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 25px;
  overflow: hidden;
}

.room-card .room-meta .name {
  float: left;
  max-width: 70%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card .room-meta .name .head {
  display: block;
  float: left;
  width: 20px;
  height: 22px;
  margin-right: 4px;
  padding-top: 2px;
  border-radius: 50%;
  object-fit: cover;
}

.room-card .room-meta .num {
  float: right;
  padding-left: 15px;
  background: url(/assets/ui/icon-hot-gray.png) no-repeat 0;
  background-size: 12px auto;
  font-size: 12px;
  color: #777;
}

/* legacy cover helpers kept for other modules */
.room-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eceff4;
}

.room-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-flag,
.recommend {
  position: absolute;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.live-flag {
  right: 8px;
  background: linear-gradient(180deg, #ff4a57, #ef233a);
}

.recommend {
  left: 8px;
  background: rgba(17, 20, 34, 0.8);
}

.room-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.room-body h3 {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.42;
}

.room-body div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #737b89;
  font-size: 13px;
}

.room-body b {
  color: #d47d15;
}

.gift-action {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #dce2eb;
  border-radius: 8px;
  background: #fafbfe;
  color: #778190;
  font-weight: 800;
}

.anchor-section {
  position: relative;
  overflow: visible;
  min-height: 172px;
  margin-top: 16px;
  padding: 48px 72px 30px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.anchor-section::before {
  position: absolute;
  top: 16px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5148df, #7a55f5 42%, #4f48df);
  content: "";
}

.anchor-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 138px;
  height: 42px;
  padding: 0 28px;
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  background:
    radial-gradient(circle at 78% 32%, rgba(255, 214, 90, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 68%, rgba(255, 214, 90, 0.28) 0 2px, transparent 3px),
    linear-gradient(135deg, #4e49e0, #8255f5);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  transform: translateX(-50%);
}

.anchor-ribbon::before,
.anchor-ribbon::after {
  position: absolute;
  top: 50%;
  color: #ffc933;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-55%);
}

.anchor-ribbon::before {
  left: 12px;
  content: "‹";
}

.anchor-ribbon::after {
  right: 12px;
  content: "›";
}

.anchor-ribbon span {
  position: relative;
  z-index: 1;
}

.anchor-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
  overflow: hidden;
}

.anchor {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #252c3a;
  font-size: 14px;
  font-weight: 900;
}

.anchor img {
  width: 72px;
  height: 72px;
  border: 1px solid #eef1f6;
  border-radius: 50%;
  object-fit: cover;
}

.anchor span {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 48px;
  border: 0;
  background: transparent;
  transform: translateY(-32%);
}

.anchor-arrow::before {
  position: absolute;
  inset: 8px 5px;
  border-top: 3px solid #cfd2d8;
  border-left: 3px solid #cfd2d8;
  content: "";
}

.anchor-arrow-left {
  left: 22px;
}

.anchor-arrow-left::before {
  transform: rotate(-45deg);
}

.anchor-arrow-right {
  right: 22px;
}

.anchor-arrow-right::before {
  transform: rotate(135deg);
}

.category-live {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.live-category-block {
  display: grid;
  gap: 14px;
}

.live-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.live-category-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #101725;
  font-size: 18px;
  font-weight: 900;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #645df0;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(100, 93, 240, 0.28);
}

.live-category-head h2 i {
  width: 34px;
  height: 10px;
  background-image: radial-gradient(circle, #cbc6ff 2px, transparent 3px);
  background-size: 8px 8px;
  background-position: 0 center;
}

.live-category-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8b929e;
  font-weight: 800;
}

.live-category-head button::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid #a3a8b1;
  border-right: 2px solid #a3a8b1;
  content: "";
  transform: rotate(45deg);
}

.category-room-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* PC 端不展示底部下载 APP 横幅 / 顶栏下载入口 */
@media (min-width: 761px) {
  .download-card,
  body[data-page-view="download"] .download-card {
    display: none !important;
  }
}

/* 下载条：对齐雨燕站点下载区（品牌水印用本站熊猫） */
.download-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 36px 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  color: #fff;
  background-color: #2b2b2b;
  background-image: url("/assets/ui/download-banner.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.download-card[hidden] {
  display: none !important;
}

.download-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 120, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.download-card p {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.download-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  margin-right: 20px;
}

.download-actions button,
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff9a1a 0%, #ffb400 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.download-actions a:hover {
  filter: brightness(1.05);
}

/* 页脚：对齐雨燕 footer.css（品牌 logo 为本站熊猫） */
.footer {
  margin-top: 50px;
  width: 100%;
  background: #25284c;
  color: #5b5dae;
  font-size: 14px;
}

.footer .footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  text-align: center;
}

.footer .logo-footer {
  height: 84px;
  margin: 0 auto;
  padding-top: 16px;
}

.footer .logo-footer img {
  display: block;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.footer .guide {
  display: block;
  padding-top: 27px;
}

.footer .guide > div {
  display: inline-block;
  height: 22px;
  margin-right: 65px;
  font-size: 16px;
  line-height: 22px;
}

.footer .guide > div:last-child {
  margin-right: 0;
}

.footer .guide a {
  color: #9698ff;
  font-weight: 400;
  text-decoration: none;
}

.footer .guide a:hover {
  color: #b8baff;
}

.footer .desc {
  margin-top: 14px;
  padding-bottom: 25px;
  color: #5b5dae;
  font-size: 14px;
}

.footer .desc p {
  margin: 0;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 28px 0;
  background: var(--bg);
}

body.live-room-open .auth-modal:not([hidden]),
body.live-room-open .utility-modal:not([hidden]),
body.auth-open .auth-modal:not([hidden]) {
  z-index: 230 !important;
  pointer-events: auto;
}

body.live-room-open .gift-modal:not([hidden]),
body.gift-open .gift-modal:not([hidden]),
html.gift-open .gift-modal:not([hidden]) {
  z-index: 260 !important;
  pointer-events: auto;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 20, 34, 0.58);
}

.gift-modal[hidden] {
  display: none;
}

.gift-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 16, 0.76);
}

.video-modal[hidden],
#videoModal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.video-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  padding: 18px;
  border-radius: 8px;
  background: #101522;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.video-dialog .auth-close {
  top: -14px;
  right: -14px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(10, 14, 24, 0.94);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.video-dialog .auth-close:hover {
  background: #f04438;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #05070c;
  aspect-ratio: 16 / 9;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070c;
}

.live-video-ticker {
  position: absolute;
  inset: 10px 0 56px;
  z-index: 24;
  overflow: hidden;
  pointer-events: none;
}

.live-video-ticker[hidden] {
  display: none !important;
}

.live-danmaku-item {
  position: absolute;
  top: var(--danmaku-top, 10px);
  left: 100%;
  display: inline-flex;
  align-items: center;
  max-width: min(72%, 560px);
  height: 26px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  will-change: transform;
}

.live-danmaku-item.is-running {
  animation: live-danmaku-move var(--danmaku-duration, 8.8s) linear forwards;
}

@keyframes live-danmaku-move {
  to {
    transform: translateX(calc(-1 * var(--danmaku-distance, 1200px)));
  }
}

.live-player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 6px;
  background: rgba(0, 0, 0, 0.92);
  pointer-events: auto;
  opacity: 1;
}

.live-player-bar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.live-player-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
}

.live-player-time.is-offline .live-player-time__elapsed {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.live-player-time__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.live-player-time__live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: liveDotPulse 1.4s ease-out infinite;
}

@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.live-player-time__elapsed {
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.live-player-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.live-quality-select {
  position: relative;
  flex: 0 0 auto;
}

.live-quality-btn {
  min-width: 44px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-quality-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 88px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.live-quality-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.live-quality-menu button:hover,
.live-quality-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.live-quality-menu button.active {
  color: #ffc71c;
  background: rgba(255, 199, 28, 0.12);
}

.live-player-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-player-btn:hover,
.live-player-btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.live-player-btn.is-muted {
  opacity: 0.85;
}

.live-volume-range {
  flex: 0 0 auto;
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  min-width: 56px;
  max-width: 96px;
  height: 3px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #f8c21b 0%,
    #f8c21b var(--progress, 100%),
    rgba(255, 255, 255, 0.9) var(--progress, 100%),
    rgba(255, 255, 255, 0.9) 100%
  );
  outline: none;
  cursor: pointer;
}

.live-volume-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.live-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #f8c21b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.live-volume-range::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.live-volume-range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #f8c21b;
}

.live-volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #f8c21b;
  cursor: pointer;
}

.live-player-progress {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.live-player-progress__track {
  position: absolute;
  inset: 0;
}

.live-player-progress__live {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.8s linear;
}

.live-player-progress__live::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.live-unmute-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffd65a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

.live-unmute-hint[hidden] {
  display: none;
}

.video-message {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px 24px 56px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.42), rgba(5, 7, 12, 0.76));
  color: #ffd65a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
}

.video-message[hidden] {
  display: none;
}

.video-info {
  display: grid;
  gap: 5px;
  padding-right: 38px;
  color: #fff;
}

.video-info h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.video-info span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 800;
}

.live-room-modal {
  inset: var(--topbar-height) 0 0;
  z-index: var(--live-room-z);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 18px 34px;
  background: #25284c;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "PingFang SC", tahoma, arial, "Microsoft Yahei", "Hiragino Sans GB", "\5b8b\4f53",
    sans-serif;
  font-weight: 400;
}

.live-room-dialog {
  position: relative;
  width: min(1200px, calc(100vw - 36px));
  max-width: 100%;
  height: auto;
  min-height: min(648px, calc(100vh - var(--topbar-height) - 50px));
  margin: 0 auto;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.live-room-dialog .auth-close {
  top: 8px;
  right: 8px;
}

.live-expand-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: none;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 195, 26, 0.96);
  color: #111422;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.live-room-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  min-height: min(648px, calc(100vh - var(--topbar-height) - 50px));
}

.live-room-left,
.live-chat-panel {
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.live-chat-panel {
  background: #ededed;
  border-radius: 7px;
}

.live-room-modal.is-minimized {
  inset: auto 20px 20px auto;
  z-index: 42;
  display: block;
  width: min(360px, calc(100vw - 24px));
  padding: 0;
  overflow: visible;
  background: transparent;
}

.live-room-modal.is-minimized .live-room-dialog {
  width: 100%;
  height: auto;
}

.live-room-modal.is-minimized .live-room-main {
  display: block;
  height: auto;
}

.live-room-modal.is-minimized .live-room-head,
.live-room-modal.is-minimized .room-recommend-strip,
.live-room-modal.is-minimized .room-video-recommend,
.live-room-modal.is-minimized .room-anchor-schedule,
.live-room-modal.is-minimized .live-room-wallet,
.live-room-modal.is-minimized .live-chat-panel {
  display: none;
}

.live-room-modal.is-minimized .live-room-left {
  overflow: hidden;
  border: 2px solid rgba(255, 195, 26, 0.86);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.live-room-modal.is-minimized .live-room-stage {
  aspect-ratio: 16 / 9;
}

.live-room-modal.is-minimized .auth-close {
  top: -16px;
  right: -16px;
  width: 34px;
  height: 34px;
  font-size: 24px;
}

.live-room-modal.is-minimized .live-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-room-head {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 100px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 6px 6px 0 0;
}

.live-room-head img,
.live-room-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  margin-right: 12px;
  border-radius: 50%;
  object-fit: cover;
}

.live-room-heading {
  min-width: 0;
  flex: 1;
}

.live-room-heading h2,
.live-room-heading .text-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-room-heading span,
.live-room-meta.text-msg {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-room-meta .nick-name {
  display: inline-block;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.live-room-meta .room-num {
  margin: 0 10px;
  color: #777;
}

.live-room-meta .view-num {
  padding-left: 15px;
  color: #777;
  background: url("/assets/ui/icon-hot-gray.png") no-repeat left center;
  background-size: 14px auto;
}

.live-room-meta .mobile-text {
  margin-left: 10px;
  padding-left: 15px;
  color: #777;
  font-size: 14px;
  background-image: url("/assets/ui/mobile.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 11px 16px;
}

.follow-btn {
  min-width: 74px;
  height: 40px;
  margin-left: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 20px;
  background: #f8c21b;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  pointer-events: auto;
}

.follow-btn.followed {
  background: #d8d8d8;
  color: #000;
}

.room-manage-btn {
  min-width: 100px;
  height: 40px;
  margin-left: 8px;
  border: 0;
  border-radius: 20px;
  background: #ffc71c;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.room-manage-btn[hidden] {
  display: none;
}

.room-icon-btn {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent center / contain no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.room-scan-icon {
  width: 24px;
  height: 24px;
  background-image: url("/assets/ui/icon-room-code.png");
}

.room-more-icon {
  width: 20px;
  height: 20px;
  background-image: url("/assets/ui/icon-more-down.png");
}

.room-head-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  margin-left: 18px;
}

.room-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0;
  min-width: 100px;
  padding: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.room-more-menu[hidden] {
  display: none;
}

.room-more-menu button {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.room-more-menu button:last-child {
  border-bottom: 0;
}

.room-more-menu button:hover {
  background: #f5f7fb;
}

.live-room-stage {
  border-radius: 0;
  background: #000;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.live-room-stage video {
  object-fit: contain;
}

.live-room-stage audio {
  position: absolute;
  right: 8%;
  bottom: 34%;
  left: 8%;
  z-index: 2;
  width: 84%;
}

.live-room-stage audio[hidden] {
  display: none;
}

.room-recommend-strip {
  display: none;
}

/* 雨燕 liveRoom：播放器下方「主播日程」+「视频推荐」 */
.room-anchor-schedule,
.room-video-recommend {
  position: relative;
  width: 100%;
  margin-top: 40px;
  color: #333;
}

.room-video-recommend {
  margin-top: 50px;
  padding-bottom: 24px;
}

.room-anchor-schedule .title,
.room-video-recommend .title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.room-video-recommend .title {
  margin-bottom: 20px;
}

.room-schedule-track {
  display: flex;
  gap: 0;
  width: 100%;
  height: 132px;
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  scrollbar-width: thin;
}

.room-schedule-card {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 100%;
  padding: 16px 16px 20px;
  border-right: 1px solid #d8d8d8;
  box-sizing: border-box;
}

.room-schedule-card:last-child {
  border-right: 0;
}

.room-schedule-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 17px;
  margin: 0 0 16px;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.room-schedule-card__meta b {
  font-weight: 400;
}

.room-schedule-teams {
  float: left;
  width: 150px;
  overflow: hidden;
}

.room-schedule-teams p {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  text-align: left;
}

.room-schedule-teams .logo {
  float: left;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.room-schedule-teams .ellipsis {
  display: inline-block;
  width: 112px;
  height: 24px;
  margin: 0 0 0 6px;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-schedule-card .appoinment {
  display: inline-block;
  width: 52px;
  height: 25px;
  margin-top: 18px;
  border: 0;
  border-radius: 4px;
  background: #ffc71c;
  color: #000;
  font-size: 12px;
  line-height: 25px;
  cursor: pointer;
}

.room-video-recommend .category-list {
  display: block;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}

.room-video-recommend .category-list > li {
  position: relative;
  display: inline-block;
  width: 226px;
  height: 191px;
  margin: 0 17.5px 18px 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  vertical-align: top;
}

.room-video-recommend .category-list > li:nth-child(5n) {
  margin-right: 0;
}

.room-video-recommend .room-card {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.room-video-recommend .room-card .live-item,
.room-video-recommend .room-card .live-item .fm {
  height: 127px;
}

.live-room-wallet {
  display: flex;
  align-items: center;
  width: 100%;
  height: 64px;
  min-height: 64px;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

.coin-box {
  display: grid;
  gap: 0;
  width: 20%;
  height: 100%;
  padding-left: 20px;
  padding-top: 9px;
  border-right: 1px solid #d8d8d8;
}

.coin-box b {
  color: #333;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.coin-box span {
  color: #333;
  font-size: 12px;
  font-weight: 400;
}

.room-gift-row {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  height: 64px;
  padding-left: 16px;
  background: #fcfcfc;
}

.room-gift-row button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.coin-help {
  margin: 0 26px 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  pointer-events: auto;
}

.coin-help:hover {
  color: #f8c21b;
}

.utility-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 14, 24, 0.72);
}

.utility-modal[hidden] {
  display: none;
}

.utility-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  touch-action: manipulation;
}

.utility-dialog h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.utility-lead {
  margin: 0 0 16px;
  color: #666;
  line-height: 1.6;
}

.utility-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #333;
  line-height: 1.8;
}

.utility-actions {
  display: flex;
  gap: 10px;
}

.utility-actions button,
.room-scan-dialog button {
  flex: 1;
  height: 42px;
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  background: #ffc31a;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
}

.room-scan-dialog {
  text-align: center;
}

.room-scan-dialog img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #f5f7fb;
}

.room-scan-dialog p {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
  word-break: break-all;
}

.live-chat-panel {
  display: grid;
  grid-template-rows: 63px 38px 1fr auto auto;
  height: 100%;
  min-height: 0;
  background: #ededed;
  border-radius: 7px;
}

.live-chat-notice {
  display: block;
  min-height: 63px;
  max-height: 63px;
  padding: 14px;
  border-bottom: 0;
  background: #fff;
  border-radius: 6px 6px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.live-chat-notice .notice-title {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.live-chat-notice .notice-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  object-fit: contain;
}

.live-chat-notice b,
.live-chat-notice .notice-title b {
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.live-chat-notice .notice-text {
  display: -webkit-box;
  overflow: hidden;
  color: #777;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: normal;
}

.live-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  background: #fff;
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
}

.live-room-tab-scroll,
.live-tab-follow {
  display: contents;
}

.live-chat-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 14px;
  font-weight: 400;
  line-height: 38px;
  cursor: pointer;
  outline: none;
}

.live-chat-tabs button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 182, 0, 0.5);
}

.live-chat-tabs button span {
  display: inline-block;
  transition: color 0.15s;
}

.live-chat-tabs button.active {
  color: #777;
}

.live-chat-tabs button.active span {
  color: #000;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 3px solid #ffb600;
}

.live-chat-tabs button.active::after {
  display: none;
}

.live-chat-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  font-size: 12px;
  line-height: 18px;
}

.live-chat-list::-webkit-scrollbar {
  width: 6px;
}

.live-chat-list::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
}

.live-chat-list p,
.live-chat-list .chat-item,
.live-chat-list .chat-message {
  margin: 0;
  padding: 4px 14px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  word-wrap: break-word;
}

.live-chat-list .chat-message:hover,
.live-chat-list .chat-item:hover,
.live-chat-list .chat-item.sys-msg {
  background: #ededed;
}

.live-chat-list .chat-message p {
  margin: 0;
  padding: 0;
}

.chat-user-name {
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}

.chat-user-name:hover {
  color: #f2a200;
}

.chat-manage-hint {
  display: inline-flex;
  margin-left: 6px;
  color: #b6bcc6;
  font-size: 12px;
  font-weight: 400;
}

.chat-message-actions {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.chat-message.is-open .chat-message-actions,
.live-chat-list .chat-message:hover .chat-message-actions {
  display: flex;
}

.chat-message-actions button {
  min-height: 26px;
  border: 1px solid #fee0dc;
  border-radius: 5px;
  background: #fff7f5;
  color: #d92d20;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.chat-message-actions button:first-child {
  border-color: #dfe7f2;
  background: #fff;
  color: #475467;
}

.live-chat-list .system,
.live-chat-list .sys-message {
  color: #026dff;
  font-weight: 400;
}

.live-chat-list .system b {
  font-weight: 400;
}

.live-ranking-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #f1f1f1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fafafa);
}

.rank-medal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f7;
  color: #596173;
  font-size: 13px;
  font-weight: 900;
}

.rank-1 {
  background: linear-gradient(180deg, #ffe17a, #ffae12);
  color: #573600;
}

.rank-2 {
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  color: #334155;
}

.rank-3 {
  background: linear-gradient(180deg, #f7c59b, #d97706);
  color: #fff;
}

.rank-row b {
  display: block;
  overflow: hidden;
  color: #2c3342;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row small {
  display: block;
  margin-top: 2px;
  color: #8b93a3;
  font-size: 12px;
}

.rank-row strong {
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 12px;
  background: #fff7df;
  color: #d88400;
  font-size: 12px;
  text-align: center;
}

.rank-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 240px;
  gap: 8px;
  color: #9aa1ad;
  text-align: center;
}

.rank-empty b {
  color: #3b4352;
  font-size: 18px;
}

.rank-empty span {
  width: min(260px, 100%);
  line-height: 1.6;
}

.chat-badge,
.level-badge {
  display: inline-flex;
  align-items: center;
  height: 15px;
  min-height: 15px;
  margin-right: 3px;
  padding: 0 3px;
  border-radius: 2px;
  background: #02b7ff;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  vertical-align: middle;
}

.chat-badge,
.chat-badge.zb {
  background: #ffc71c;
  color: #000;
}

.level-badge,
.level-badge.house-manager {
  background: #02b7ff;
  color: #fff;
}

.live-chat-list .user-name,
.live-chat-list .chat-user-name {
  border: 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}

.live-chat-list .user-name:hover,
.live-chat-list .chat-user-name:hover {
  color: #f2a200;
}

.live-chat-list .sys-message {
  color: #777;
  font-size: 14px;
}

.live-chat-list .sys-message b {
  color: #333;
  font-weight: 600;
}

.live-chat-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 13px 0;
  background: #fff;
  color: #b5b5b5;
  font-size: 24px;
  border-top: 1px solid #e9e9e9;
}

.live-chat-tools button,
.chat-tool-button {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent center / 20px auto no-repeat;
  color: transparent;
  font-size: 0;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
}

.chat-tool-emoji {
  background-image: url("/assets/ui/emoji.png");
}

.chat-tool-emoji:hover {
  background-image: url("/assets/ui/emojion.png");
}

.chat-tool-danmu {
  background-image: url("/assets/ui/icon-danmu-gray@2x.png");
}

.chat-tool-danmu:hover {
  background-image: url("/assets/ui/icon-danmu@2x.png");
}

.live-chat-tools button:hover,
.chat-tool-button:hover {
  border-color: transparent;
  opacity: 1;
}

.emoji-panel {
  position: absolute;
  bottom: 40px;
  left: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 8px;
  padding: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.emoji-panel[hidden] {
  display: none;
}

.emoji-panel button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #f6f7f9;
  font-size: 20px;
}

.live-chat-input {
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 0;
  padding: 0 13px 13px;
  background: #fff;
}

.live-chat-input[hidden] {
  display: none;
}

.live-chat-input.is-guest #liveChatInput {
  display: none;
}

.live-chat-input:not(.is-guest) .live-chat-nologin {
  display: none;
}

.live-chat-nologin {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #d8d8d8;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  color: #333;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 40px;
  text-align: left;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.live-chat-nologin[hidden] {
  display: none;
}

.live-chat-nologin span,
.live-chat-nologin [data-auth-open],
.live-chat-login-em {
  color: #ffb600;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
}

.live-chat-input.is-guest {
  grid-template-columns: minmax(0, 1fr) 82px;
}

.live-chat-input.is-guest #liveChatInput {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.live-chat-input.is-guest .live-chat-nologin {
  grid-column: 1;
  grid-row: 1;
}

.live-chat-input.is-guest #liveChatSend {
  grid-column: 2;
  grid-row: 1;
  touch-action: manipulation;
  pointer-events: auto;
}

.live-chat-input input {
  width: 100%;
  height: 52px;
  border: 1px solid #d8d8d8;
  border-right: 0;
  padding: 5px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  outline: none;
  background: #fff;
  border-radius: 4px 0 0 4px;
}

.live-chat-input > button,
.live-chat-input #liveChatSend {
  width: 100%;
  height: 52px;
  border: 1px solid #e8a800;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #ffd02b 0%, #f0b310 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 52px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.live-chat-input.is-guest #liveChatSend {
  background: linear-gradient(180deg, #ffd02b 0%, #f0b310 100%);
  border-color: #e8a800;
  color: #fff;
}

.live-chat-input button:hover,
.live-chat-input #liveChatSend:hover,
.live-chat-input button:active,
.live-chat-input #liveChatSend:active {
  filter: brightness(0.96);
}

.gift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 32px;
}

.gift-head h2 {
  margin: 0;
  font-size: 22px;
}

.gift-head span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: #111422;
  color: #ffd65a;
  font-weight: 900;
}

.gift-summary {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f6f8fb;
  color: #566073;
  font-size: 13px;
  font-weight: 800;
}

.gift-sign-button {
  justify-self: start;
  height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.gift-sign-button:disabled {
  background: #e6e9ef;
  color: #8a92a0;
  cursor: not-allowed;
}

.gift-list {
  display: grid;
  gap: 10px;
}

.gift-empty {
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  color: #666;
  line-height: 1.6;
}

.gift-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gift-item > strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff4d8;
  font-size: 24px;
}

.gift-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gift-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gift-item button {
  min-width: 62px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
  font-weight: 900;
}

.gift-item button:disabled {
  background: #e6e9ef;
  color: #8a92a0;
  cursor: not-allowed;
}

.auth-modal[hidden] {
  display: none;
}

.anchor-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 20, 34, 0.62);
}

.anchor-modal[hidden] {
  display: none;
}

.anchor-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.anchor-auth-area,
.anchor-dashboard {
  padding: 24px;
}

.anchor-permission-card {
  display: grid;
  gap: 14px;
  padding-right: 34px;
}

.anchor-permission-card h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
}

.anchor-permission-card p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.anchor-permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-permission-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #eef2f7;
  color: #344054;
  font-weight: 900;
}

.anchor-permission-actions button:first-child {
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
}

.anchor-auth-area[hidden],
.anchor-dashboard[hidden] {
  display: none;
}

.anchor-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 34px;
}

.anchor-tabs button,
.anchor-form button,
.anchor-actions button,
.anchor-actions a,
.anchor-dashboard-head button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
}

.anchor-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: #3b4352;
}

.anchor-tabs button.active,
.anchor-form button,
.anchor-actions button,
.anchor-actions a {
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
}

.anchor-form,
.anchor-studio-form {
  display: none;
  gap: 14px;
}

.anchor-form.active,
.anchor-studio-form,
.anchor-dashboard {
  display: grid;
}

.anchor-form label,
.anchor-studio-form label {
  display: grid;
  gap: 7px;
  color: #3b4352;
  font-size: 13px;
  font-weight: 900;
}

.anchor-form input,
.anchor-studio-form input,
.anchor-studio-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  outline: none;
}

.upload-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 8px;
  align-items: center;
}

.upload-field button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.anchor-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 32px;
}

.anchor-dashboard-head h2 {
  margin: 0 0 5px;
  font-size: 24px;
}

.anchor-dashboard-head span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff3cf;
  color: #9b6508;
  font-size: 13px;
  font-weight: 900;
}

.anchor-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#anchorStreamStatus.is-online {
  background: #e8f8ef;
  color: #16794c;
}

#anchorStreamStatus.is-offline {
  background: #fff0f0;
  color: #b42318;
}

.anchor-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.anchor-dashboard-head button {
  padding: 0 14px;
  background: #f2f4f8;
  color: #4b5565;
}

.anchor-room-shortcut,
.anchor-record-room-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.anchor-room-shortcut.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.anchor-obs-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
}

.obs-help {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #ffe1a6;
  border-radius: 6px;
  background: #fff8e6;
  color: #8a4b00;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

.copy-field button {
  border: 0;
  border-radius: 6px;
  background: #111422;
  color: #ffd65a;
  font-weight: 900;
}

.anchor-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.anchor-room-manage {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e6ebf2;
}

.anchor-room-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.anchor-room-manage h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 18px;
}

.anchor-room-manage p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.anchor-room-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.anchor-room-manage-actions button,
.anchor-chat-row button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: #eef2f7;
  color: #344054;
  font-weight: 900;
}

.anchor-room-manage-actions button:first-child {
  background: #111422;
  color: #ffd65a;
}

.anchor-room-chat-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfcfe;
}

.anchor-manager-panel {
  display: grid;
  gap: 10px;
}

.anchor-manager-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
}

.anchor-manager-form input {
  min-width: 0;
  height: 40px;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.anchor-manager-form input:focus {
  border-color: #ff9f1a;
  box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.12);
}

.anchor-manager-form button {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffbf34, #ff8b16);
  color: #fff;
  font-weight: 900;
}

.anchor-manager-list {
  display: grid;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfcfe;
}

.anchor-record-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfcfe;
}

.anchor-record-summary {
  min-height: 40px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  background: #fff7df;
  color: #9b6508;
  font-size: 13px;
  font-weight: 900;
}

.anchor-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
}

.anchor-record-row:last-child {
  border-bottom: 0;
}

.anchor-record-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.anchor-record-side {
  justify-items: end;
}

.anchor-record-row b {
  overflow: hidden;
  color: #1d2635;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-record-row span,
.anchor-record-row em {
  color: #7a8493;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.anchor-record-room-link {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.anchor-chat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
}

.anchor-chat-row:last-child {
  border-bottom: 0;
}

.anchor-chat-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.anchor-chat-row b {
  overflow: hidden;
  color: #2c3342;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-chat-row span {
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.anchor-chat-row button {
  background: #fff1f0;
  color: #d92d20;
}

.anchor-manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
}

.anchor-manager-row:last-child {
  border-bottom: 0;
}

.anchor-manager-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.anchor-manager-row b,
.anchor-manager-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anchor-manager-row b {
  color: #243044;
  font-size: 13px;
}

.anchor-manager-row span {
  color: #7a8493;
  font-size: 12px;
  font-weight: 800;
}

.anchor-manager-row button {
  min-height: 34px;
  border: 1px solid #ffd3cf;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff1f0;
  color: #f04438;
  font-weight: 900;
}

.anchor-room-empty {
  padding: 24px;
  color: #98a2b3;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.anchor-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-dialog {
  position: relative;
  display: grid;
  gap: 0;
  width: min(820px, calc(100vw - 132px));
  min-height: calc(100dvh - 56px);
  padding: 118px 66px 72px;
  border: 1px solid #d4dbe6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-close {
  position: absolute;
  top: 34px;
  left: 45px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 70px;
  font-weight: 300;
  line-height: 0.72;
}

.auth-tabs {
  position: absolute;
  top: 48px;
  right: 34px;
  display: block;
}

.auth-tabs button {
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8b400;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.auth-tabs button.active {
  display: none;
}

.auth-form {
  display: none;
  gap: 0;
  width: 100%;
}

.auth-form.active {
  display: grid;
}

.auth-title {
  margin: 0 0 24px;
  color: #2c2f36;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.06;
}

.auth-agreement {
  margin: 0 0 42px;
  color: #8d8f94;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.5;
}

.auth-agreement a {
  color: #f8b400;
  font-weight: 900;
}

.auth-form label {
  display: block;
  margin: 0;
}

.auth-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-line-field {
  display: flex;
  align-items: center;
  min-height: 86px;
  border-bottom: 2px solid #e2e2e2;
}

.auth-phone-field {
  gap: 28px;
}

.auth-password-field,
.auth-sms-field {
  gap: 18px;
}

.auth-country-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding-right: 30px;
}

.auth-country-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-top: 11px solid #f4b32c;
  transform: translateY(-22%);
  pointer-events: none;
}

.auth-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: none;
  background: transparent;
  color: #22252c;
  font-size: 30px;
  font-weight: 800;
}

.auth-form select {
  width: auto;
  height: 66px;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: none;
  background: #fff;
  color: #000;
  font-size: 31px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
}

.auth-form input::placeholder {
  color: #7f8185;
  opacity: 1;
}

.auth-form input:focus,
.auth-form select:focus {
  box-shadow: none;
}

.auth-line-field:focus-within {
  border-bottom-color: #f2bb37;
}

.auth-password-toggle {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #000;
}

.auth-eye {
  position: relative;
  display: block;
  width: 41px;
  height: 26px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.auth-eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.auth-password-toggle.is-visible .auth-eye::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -6px;
  width: 51px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
}

.auth-sms-send {
  flex: 0 0 auto;
  min-width: 148px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7f8185;
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-sms-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-form button[type="submit"] {
  height: 108px;
  margin-top: 64px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc51f, #f4ad12);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.auth-form button[type="submit"]:disabled {
  background: #f1f3f7;
  color: #bdc8d7;
  cursor: not-allowed;
}

.auth-form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 62px;
}

.auth-form-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #282b31;
  font-size: 25px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .auth-modal {
    padding: 0;
    background: #fff;
  }

  .auth-dialog {
    width: 100%;
    min-height: 100dvh;
    padding: 88px clamp(30px, 9vw, 48px) 40px;
    border: 0;
  }

  .auth-close {
    top: 28px;
    left: clamp(22px, 7vw, 40px);
    width: 36px;
    height: 36px;
    font-size: 58px;
  }

  .auth-tabs {
    top: 34px;
    right: clamp(24px, 8vw, 42px);
  }

  .auth-tabs button {
    font-size: 25px;
  }

  .auth-title {
    margin-bottom: 18px;
    font-size: 44px;
  }

  .auth-agreement {
    margin-bottom: 34px;
    font-size: 19px;
  }

  .auth-line-field {
    min-height: 70px;
    border-bottom-width: 1px;
  }

  .auth-phone-field {
    gap: 18px;
  }

  .auth-country-wrap {
    padding-right: 22px;
  }

  .auth-country-wrap::after {
    border-right-width: 8px;
    border-left-width: 8px;
    border-top-width: 9px;
  }

  .auth-form input,
  .auth-form select {
    height: 56px;
    font-size: 22px;
  }

  .auth-sms-send {
    min-width: 110px;
    height: 56px;
    font-size: 19px;
  }

  .auth-password-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .auth-eye {
    width: 34px;
    height: 22px;
    border-width: 3px;
  }

  .auth-eye::after {
    width: 10px;
    height: 10px;
  }

  .auth-password-toggle.is-visible .auth-eye::before {
    top: 8px;
    left: -5px;
    width: 42px;
    height: 3px;
  }

  .auth-form button[type="submit"] {
    height: 78px;
    margin-top: 48px;
    font-size: 25px;
  }

  .auth-form-links {
    margin-top: 44px;
  }

  .auth-form-links button {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .auth-dialog {
    padding-right: 24px;
    padding-left: 24px;
  }

  .auth-agreement {
    font-size: 17px;
  }

  .auth-form input,
  .auth-form select {
    font-size: 20px;
  }

  .auth-sms-send {
    min-width: 96px;
    font-size: 17px;
  }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  min-width: 116px;
  padding: 11px 16px;
  border-radius: 8px;
  background: rgba(17, 20, 34, 0.95);
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.right-side {
  position: fixed;
  top: calc(var(--topbar-height) + 16px);
  right: 18px;
  z-index: 24;
  display: block;
}

.right-side .icon-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-side .icon-box > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 8px 4px 6px;
  border: 1px solid #e8e8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 24, 40, 0.08);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.right-side .icon-box > a:hover {
  border-color: #f0d27a;
  box-shadow: 0 4px 14px rgba(20, 24, 40, 0.12);
  transform: translateY(-1px);
}

.right-side .icon-box .icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  object-fit: contain;
}

.right-side .icon-box > a .text {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.right-side .sao-code {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  display: none;
  width: 140px;
  padding: 12px 10px 12px;
  border: 1px solid #e8e8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(20, 24, 40, 0.12);
  transform: translateY(-50%);
}

.right-side .code:hover .sao-code,
.right-side .code:focus-within .sao-code {
  display: block;
}

.right-side .sao-code p {
  margin: 0 0 8px;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.right-side .sao-code p span {
  color: #f8c21b;
  font-weight: 600;
}

.right-side .sao-code img {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  object-fit: contain;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.45);
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.feedback-dialog h2 {
  margin: 0 0 8px;
  color: #222;
  font-size: 20px;
  font-weight: 700;
}

.feedback-dialog .utility-lead {
  margin: 0 0 14px;
  color: #777;
  font-size: 13px;
}

.feedback-dialog textarea {
  width: 100%;
  min-height: 120px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  color: #333;
}

.feedback-dialog button.primary {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f8c21b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-dialog button.primary:hover {
  filter: brightness(1.03);
}

@media (max-width: 960px) {
  .right-side {
    display: none;
  }
}

.load-error main::before {
  display: block;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #ffd0ca;
  border-radius: 8px;
  background: #fff5f4;
  color: #b42318;
  content: "数据加载失败，请确认后端服务已启动。";
}

.mobile-load-error {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #ffd0ca;
  border-radius: 8px;
  background: #fff5f4;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

body.load-error .mobile-match-list:not(:empty) + .mobile-load-error,
body.load-error .mobile-match-list:empty::before {
  display: block;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #ffd0ca;
  border-radius: 8px;
  background: #fff5f4;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  content: "数据加载失败，请检查网络后刷新。";
}

@media (max-width: 900px) {
  .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
    scroll-padding-bottom: calc(58px + env(safe-area-inset-bottom) + 12px);
  }

  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .page,
  .page main,
  #home {
    touch-action: pan-y;
    overflow-x: hidden;
  }

  .mobile-bottom-nav a {
    transition: color 0.12s ease;
  }

  .topbar,
  .type-nav,
  .mobile-bottom-nav,
  .mobile-app-banner {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .room-card,
  .mobile-match-card,
  .anchor-section,
  .live-category-block {
    contain: layout style;
  }

  .notice-marquee span {
    animation: none;
  }

  .anchor-section,
  .category-live {
    contain: layout style paint;
  }

  .mobile-banner-track {
    will-change: auto;
  }

  .mobile-banner-track.is-animating {
    will-change: transform;
  }
}

body.live-room-open {
  overflow: hidden;
}

body.live-room-open .right-side {
  display: none;
}

  @media (max-width: 760px) {
  body.live-room-open:not(.live-room-minimized),
  html.live-room-open:not(.live-room-minimized) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.live-room-open:not(.live-room-minimized) .page,
  body.live-room-open:not(.live-room-minimized) .page,
  body.mobile-live-fullscreen:not(.live-room-minimized) .page,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .page {
    display: none !important;
  }

  body.live-room-open .live-room-modal,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized),
  #videoModal.live-room-modal.is-open {
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.live-room-open .live-room-modal button,
  body.live-room-open .live-room-modal a,
  body.live-room-open .live-room-modal input,
  body.live-room-open .live-room-modal textarea,
  body.live-room-open .live-room-modal select,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) button,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) a,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) input,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) textarea,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) select,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) label,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) [data-auth-open],
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) [role="button"],
  #videoModal.live-room-modal.is-open button,
  #videoModal.live-room-modal.is-open a,
  #videoModal.live-room-modal.is-open input,
  #videoModal.live-room-modal.is-open textarea,
  #videoModal.live-room-modal.is-open select {
    touch-action: manipulation;
    pointer-events: auto;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized),
  #videoModal.live-room-modal.is-open:not([hidden]):not(.is-minimized) {
    touch-action: manipulation;
  }

  body.live-room-open .live-chat-list,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-chat-list,
  #videoModal.live-room-modal.is-open .live-chat-list {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.live-room-open:not(.live-room-minimized) .page,
  body.live-room-open:not(.live-room-minimized) .mobile-bottom-nav,
  body.live-room-open:not(.live-room-minimized) .mobile-app-banner,
  body.live-room-open:not(.live-room-minimized) .mobile-profile-shell,
  body.live-room-open:not(.live-room-minimized) .mobile-follow-shell,
  body.live-room-open:not(.live-room-minimized) .mobile-match,
  body.live-room-open:not(.live-room-minimized) .mobile-match-detail,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .page,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-profile-shell,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-follow-shell,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-match,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-match-detail {
    pointer-events: none !important;
  }

  body.live-room-open.live-room-minimized .page {
    pointer-events: auto;
  }

  body.live-room-open.live-room-minimized .mobile-bottom-nav,
  body.live-room-open.live-room-minimized .mobile-match,
  body.live-room-open.live-room-minimized .mobile-follow-shell,
  body.live-room-open.live-room-minimized .mobile-profile-shell,
  body.live-room-open.live-room-minimized .mobile-match-detail {
    pointer-events: auto;
  }

  body.live-room-open .live-room-modal {
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.live-room-open .topbar,
  body.live-room-open .type-nav,
  body.live-room-open .mobile-app-banner,
  body.live-room-open .right-side {
    display: none !important;
  }

  body.live-room-open:not(.live-room-minimized) .mobile-bottom-nav,
  body.mobile-live-fullscreen:not(.live-room-minimized) .mobile-bottom-nav,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-bottom-nav,
  body:has(#videoModal.is-open) .mobile-bottom-nav,
  #videoModal.is-open ~ .mobile-bottom-nav,
  #videoModal:not([hidden]):not(.is-minimized) ~ .mobile-bottom-nav {
    display: none !important;
  }

  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-app-banner,
  body:has(#videoModal.is-open) .mobile-app-banner,
  #videoModal.is-open ~ .mobile-app-banner,
  #videoModal:not([hidden]):not(.is-minimized) ~ .mobile-app-banner {
    display: none !important;
  }

  body.live-room-open .room-anchor-schedule,
  body.live-room-open .room-video-recommend {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) > .room-anchor-schedule,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) > .room-video-recommend {
    display: none !important;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) > .live-room-dialog {
    flex: 0 0 auto;
    min-height: 100%;
    overflow: visible;
  }

  body.live-room-open .video-modal.live-room-modal:not([hidden]):not(.is-minimized),
  body.mobile-live-fullscreen .video-modal.live-room-modal:not([hidden]):not(.is-minimized),
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized),
  #videoModal.live-room-modal.is-open:not([hidden]):not(.is-minimized) {
    inset: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: manipulation;
    background: #fff;
    pointer-events: auto;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-dialog,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-room-dialog,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-main,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-room-main,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-main {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    grid-template-columns: none !important;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-left,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-room-left,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-left {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-stage,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-room-stage,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-stage {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: min(62vw, 42vh);
    background: #000;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-chat-panel,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-chat-panel,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-chat-panel {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-chat-list,
  body.mobile-live-fullscreen .live-room-modal:not(.is-minimized) .live-chat-list,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-chat-list {
    flex: 1 1 auto;
    min-height: 120px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-head,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-head {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
    min-height: auto;
    padding: calc(8px + env(safe-area-inset-top)) 52px 10px 12px;
    border-radius: 0;
    position: relative;
    z-index: 30;
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-head img,
  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-avatar,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-head img,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-avatar {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin-right: 0;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-heading,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    min-width: 0;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-heading h2,
  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-heading .text-title,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading h2,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading .text-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    word-break: break-word;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .follow-btn,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .follow-btn {
    grid-column: 3;
    grid-row: 1;
    flex: none;
    justify-self: end;
    min-width: 58px;
    min-height: 44px;
    height: auto;
    margin-right: 46px;
    margin-left: 0;
    padding: 6px 12px;
    line-height: 1.2;
    font-size: 14px;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-dialog > .auth-close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top));
    right: 10px;
    z-index: 200;
    width: 36px;
    height: 36px;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .room-manage-btn,
  body.live-room-open .live-room-modal:not(.is-minimized) .room-head-actions,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .room-manage-btn,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .room-head-actions {
    grid-column: 3;
    grid-row: 2;
    flex: none;
    justify-self: end;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized):not(.is-mobile-expanded) .live-expand-button {
    display: none !important;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .live-room-wallet {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    z-index: 2;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .coin-help {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 8px 0 8px 8px;
    display: inline-flex;
    align-items: center;
  }

  body.live-room-open .live-room-modal:not(.is-minimized) .room-gift-row {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .live-room-modal:not(.is-minimized):not(.is-mobile-expanded) .live-room-stage,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized):not(.is-mobile-expanded) .live-room-stage {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    background: #000;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 6px;
    min-height: 56px;
    padding: 0 10px;
  }


  .topbar {
    background: #111;
    color: #fff;
    box-shadow: none;
  }

  .logo {
    width: 168px;
    min-width: 168px;
    margin-right: 0;
  }

  .logo .logo-light {
    display: none;
  }

  .logo .logo-dark {
    display: block;
  }

  .topbar-inner {
    min-height: 56px;
  }

  .type-nav {
    top: 56px;
  }

  .mobile-app-banner {
    position: fixed;
    right: 10px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 6px);
    left: 10px;
    z-index: 34;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px 8px 8px;
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }

  .mobile-app-banner[hidden] {
    display: none !important;
  }

  .mobile-app-banner__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-app-banner__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .mobile-app-banner__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-app-banner__copy b {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .mobile-app-banner__copy span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-app-banner__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffd454, #f7b916);
    color: #111;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }


  /* 手机直播首页：隐藏页脚/下载大卡；保留热播下方的主播与分类区块 */
  body[data-mobile-view="live"] .footer,
  body[data-mobile-view="live"] .download-card,
  body[data-mobile-view="live"] .notice-bar {
    display: none !important;
  }

  body[data-mobile-view="live"] .anchor-section,
  body[data-mobile-view="live"] .category-live {
    display: block !important;
    margin: 12px 10px 0;
    padding: 18px 12px;
    border-radius: 8px;
    background: #fff;
  }

  body[data-mobile-view="live"] .category-live {
    display: grid !important;
    gap: 16px;
    margin-top: 12px;
  }

  body[data-mobile-view="live"] .live-category-head h2 {
    font-size: 16px;
  }

  body[data-mobile-view="live"] .category-room-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-mobile-view="live"] .schedule.appoinment-list {
    margin: 0;
    padding: 0 10px 4px;
    background: #fff;
  }

  body[data-mobile-view="live"] .section-head.schedule-head {
    padding: 12px 4px 8px;
  }

  body[data-mobile-view="live"] .section-head.schedule-head a {
    display: none;
  }

  body[data-mobile-view="live"] .appoinment-swiper-container {
    height: auto;
    overflow: visible;
  }

  body[data-mobile-view="live"] .schedule-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: auto;
    overflow: visible;
  }

  body[data-mobile-view="live"] .match-card {
    flex: none;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 10px;
  }

  body[data-mobile-view="live"] .match-card .appoinment,
  body[data-mobile-view="live"] .match-card button {
    margin-top: 10px;
  }

  body[data-mobile-view="live"] .hot-live {
    margin: 0;
    padding: 8px 10px 12px;
    background: #fff;
  }

  body[data-mobile-view="live"] .hot-title {
    display: flex !important;
    padding: 4px 2px 10px;
  }

  body[data-mobile-view="live"] .room-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    overflow: visible;
  }

  body[data-mobile-view="live"] .room-card {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  body[data-mobile-view="live"] .type-nav {
    display: block !important;
    top: 56px;
  }

  body[data-mobile-view="live"] .stage.living-room {
    display: none !important;
  }

  body[data-mobile-view="live"] .mobile-home-banner {
    display: block;
    position: relative;
    margin: 12px 12px 10px;
  }

  body[data-mobile-view="live"] .mobile-home-banner[hidden] {
    display: none !important;
  }

  /* 手机直播页：就算误带上 PC liveType 页状态，也不得藏赛程/热播/主播/分类 */
  body[data-mobile-view="live"][data-page-view="live"] .schedule,
  body[data-mobile-view="live"][data-page-view="live"] .hot-live {
    display: block !important;
  }

  body[data-mobile-view="live"][data-page-view="live"] .hot-title {
    display: flex !important;
  }

  body[data-mobile-view="live"][data-page-view="live"] .stage,
  body[data-mobile-view="live"][data-page-view="live"] .download-card {
    display: none !important;
  }

  body[data-mobile-view="live"][data-page-view="live"] .anchor-section,
  body[data-mobile-view="live"][data-page-view="live"] .category-live {
    display: block !important;
    margin: 12px 10px 0;
    padding: 18px 12px;
    border-radius: 8px;
    background: #fff;
  }

  body[data-mobile-view="live"][data-page-view="live"] .category-live {
    display: grid !important;
    gap: 16px;
    margin-top: 12px;
  }

  body[data-mobile-view="live"] .type-nav {
    background: var(--gold) !important;
  }

  body[data-mobile-view="live"] .type-nav-inner {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    overflow-x: auto !important;
  }

  body[data-mobile-view="live"] .type-nav-inner button {
    float: none !important;
    height: 48px !important;
    margin: 0 10px 0 0 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  body[data-mobile-view="live"] .type-nav-inner button.active {
    bottom: 0 !important;
    padding-bottom: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
  }

  body[data-mobile-view="live"] .type-nav-inner button.active::after {
    bottom: 6px !important;
    width: 12px !important;
    height: 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    transform: translateX(50%) !important;
    left: auto !important;
    right: 50% !important;
  }

  body[data-mobile-view="live"] .match-card {
    border: 1px solid #ececec !important;
    border-radius: 8px !important;
    background: #fff;
  }

  body[data-mobile-view="live"] .appoinment-swiper-container {
    border: 0 !important;
    background: transparent !important;
  }

  body[data-mobile-view="live"] .teams {
    width: auto !important;
    flex: 1;
    min-width: 0;
  }

  body[data-mobile-view="live"] .teams span {
    width: auto !important;
    max-width: 100%;
  }

  body[data-mobile-view="live"] .match-card-body {
    align-items: center;
  }

  .mobile-load-error button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: #f8c21b;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }

  /* 对齐雨演 home-banner：800x328 海报比例 + 底部标题条 + 右下圆点 */
  body[data-mobile-view="live"] .mobile-home-banner {
    margin: 12px 12px 10px;
  }

  .mobile-banner-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #0b0b0b;
    aspect-ratio: 800 / 328;
  }

  .mobile-banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    touch-action: pan-y;
  }

  .mobile-banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #0b0b0b no-repeat center / cover;
  }

  .mobile-banner-slide img.banner-cover,
  .mobile-banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-banner-slide .item-cover {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    pointer-events: none;
  }

  .mobile-banner-slide .title-line {
    overflow: hidden;
    max-width: 78%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
  }

  .mobile-banner-dots {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0 12px 0 0;
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 2;
    pointer-events: none;
  }

  .mobile-banner-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    pointer-events: auto;
  }

  .mobile-banner-dots button.active {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    background: #ffc71c;
  }

  body[data-mobile-view="match"] .footer,
  body[data-mobile-view="follow"] .footer,
  body[data-mobile-view="profile"] .footer,
  body[data-mobile-view="matchDetail"] .footer {
    display: none !important;
  }

  body[data-mobile-view="match"] .page main,
  body[data-mobile-view="matchDetail"] .page main,
  body[data-mobile-view="follow"] .page main,
  body[data-mobile-view="profile"] .page main {
    display: none !important;
  }

  body[data-mobile-view="match"] .mobile-match,
  body[data-mobile-view="matchDetail"] .mobile-match-detail,
  body[data-mobile-view="follow"] .mobile-follow-shell,
  body[data-mobile-view="profile"] .mobile-profile-shell {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 16px);
  }

  body.has-mobile-app-banner main,
  body.has-mobile-app-banner .mobile-match,
  body.has-mobile-app-banner .mobile-match-detail,
  body.has-mobile-app-banner .mobile-follow-shell,
  body.has-mobile-app-banner .mobile-profile-shell {
    padding-bottom: calc(var(--mobile-nav-h) + var(--mobile-app-banner-h) + env(safe-area-inset-bottom) + 22px);
  }

  body[data-mobile-view="live"] main,
  body[data-mobile-view="live"][data-mobile-ready="1"] main {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 16px);
  }

  body[data-mobile-view="live"].has-mobile-app-banner main,
  body[data-mobile-view="live"].has-mobile-app-banner[data-mobile-ready="1"] main {
    padding-bottom: calc(var(--mobile-nav-h) + var(--mobile-app-banner-h) + env(safe-area-inset-bottom) + 22px);
  }


  .logo {
    width: 168px;
    min-width: 168px;
  }

  .nav {
    display: none;
  }

  .auth-actions {
    display: none;
  }

  .mobile-home-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffd454, #f7b916);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 78px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffe176, #f1b72f);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .page main {
    display: block;
  }

  body[data-mobile-ready="1"] .page main {
    display: none;
  }

  body[data-mobile-view="live"] .page main,
  body[data-mobile-view="live"][data-mobile-ready="1"] .page main {
    display: block;
  }

  main {
    padding: 0 0 calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 12px);
  }

  .type-nav {
    position: sticky;
    top: var(--mobile-topbar-h);
    z-index: 24;
  }

  body[data-mobile-view="follow"] .type-nav,
  body[data-mobile-view="profile"] .type-nav {
    display: none;
  }

  .type-nav-inner {
    justify-content: space-between;
    gap: 0;
    min-height: 58px;
    padding: 0 18px;
  }

  .type-nav-inner button {
    height: 58px;
    font-size: 16px;
  }

  .type-nav-inner button.active::after {
    bottom: 7px;
    width: 10px;
    height: 5px;
  }

  .mobile-match,
  .mobile-follow-shell,
  .mobile-profile-shell,
  .mobile-match-detail {
    display: none;
  }

  body[data-mobile-view="match"] .mobile-match,
  body[data-mobile-view="matchDetail"] .mobile-match-detail,
  body[data-mobile-view="follow"] .mobile-follow-shell,
  body[data-mobile-view="profile"] .mobile-profile-shell {
    display: block;
  }

  .mobile-match {
    min-height: calc(100dvh - var(--mobile-topbar-h) - var(--mobile-nav-h));
    padding: 8px 16px 0;
    background: #fff;
  }

  .mobile-boot-status {
    padding: 28px 16px 12px;
    color: #666;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
  }

  .mobile-match[hidden],
  .mobile-match-detail[hidden],
  .mobile-follow-shell[hidden],
  .mobile-profile-shell[hidden] {
    display: none;
  }

  .mobile-follow-shell,
  .mobile-match-detail,
  .mobile-profile-shell {
    min-height: calc(100dvh - var(--mobile-topbar-h) - var(--mobile-nav-h));
    padding-bottom: 0;
    background: #fff;
  }

  .mobile-match-detail,
  .mobile-profile-shell {
    background: #fff;
  }

  .mobile-profile-content {
    display: block;
  }

  .mobile-profile-guest {
    display: grid;
    justify-items: center;
    gap: 16px;
    min-height: 560px;
    padding: 76px 22px 36px;
    text-align: center;
  }

  .mobile-profile-guest img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-profile-guest h2,
  .mobile-profile-card h2 {
    margin: 0;
    color: #141b2a;
    font-size: 22px;
    font-weight: 900;
  }

  .mobile-profile-guest p,
  .mobile-profile-card p {
    margin: 0;
    color: #7a8493;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
  }

  .mobile-profile-guest div {
    display: flex;
    gap: 10px;
  }

  .mobile-profile-guest button,
  .mobile-profile-list button {
    border: 0;
    font-weight: 900;
  }

  .mobile-profile-guest button {
    min-width: 118px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffc823, #f5b814);
    color: #fff;
    font-size: 18px;
  }

  .mobile-profile-guest button + button {
    background: #101827;
  }

  .mobile-profile-card {
    padding: 34px 22px 28px;
    background: #fff;
  }

  .mobile-profile-head {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 138px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-profile-head img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #e7eef8;
    object-fit: cover;
  }

  .mobile-profile-head strong {
    overflow: hidden;
    color: #2a2e34;
    font-size: 23px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-profile-head b {
    color: #d1d1d1;
    font-size: 34px;
    font-weight: 900;
  }

  .mobile-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-height: 86px;
    margin-top: 8px;
  }

  .mobile-profile-stats div {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
  }

  .mobile-profile-stats div + div {
    border-left: 1px solid #e1e1e1;
  }

  .mobile-profile-stats strong {
    color: #2a2e34;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
  }

  .mobile-profile-stats span {
    color: #2a2e34;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-profile-list {
    overflow: hidden;
    padding: 14px 22px 0;
    border-top: 14px solid #f4f4f4;
    background: #fff;
  }

  .mobile-profile-list button {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 72px;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    color: #202837;
    font-size: 18px;
  }

  .mobile-profile-list button:last-child {
    border-bottom: 0;
  }

  .mobile-profile-row i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffc823, #f5b814);
    color: #fff;
    font-style: normal;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-profile-list b {
    color: #d1d1d1;
    font-size: 30px;
    line-height: 1;
  }

  .mobile-profile-list .mobile-profile-logout span {
    color: #d74242;
  }

  .mobile-profile-row.mobile-profile-logout i {
    background: #fff0f0;
    color: #d74242;
  }

  .mobile-profile-subpage {
    min-height: calc(100vh - 68px);
    background: #fff;
  }

  .mobile-profile-subhead {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 58px;
    padding: 0 12px;
    border-bottom: 1px solid #eceff4;
  }

  .mobile-profile-subhead button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f6fa;
    color: #202837;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
  }

  .mobile-profile-subhead strong {
    text-align: center;
    color: #202837;
    font-size: 19px;
    font-weight: 900;
  }

  .mobile-account-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 26px 18px;
    border-bottom: 12px solid #f4f4f4;
  }

  .mobile-account-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #e7eef8;
  }

  .mobile-account-card h2 {
    margin: 0;
    color: #202837;
    font-size: 22px;
  }

  .mobile-account-card div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .mobile-account-card span {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #202837;
    font-size: 24px;
    font-weight: 900;
  }

  .mobile-account-card small {
    color: #697386;
    font-size: 13px;
  }

  .mobile-profile-section {
    display: grid;
    gap: 12px;
    padding: 18px;
  }

  .mobile-profile-section h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
  }

  .mobile-info-row,
  .mobile-message-row {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    background: #fff;
  }

  .mobile-info-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .mobile-info-row span,
  .mobile-message-row span {
    color: #7a8493;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-info-row b,
  .mobile-message-row b {
    color: #202837;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-message-row p,
  .mobile-message-row em {
    margin: 0;
    color: #4b5565;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.6;
  }

  .mobile-feedback-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-bottom: 12px solid #f4f4f4;
  }

  .mobile-feedback-form textarea {
    min-height: 118px;
    resize: vertical;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    padding: 12px;
    outline: none;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-feedback-form button {
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffc823, #f5b814);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
  }

  .mobile-empty-line {
    padding: 20px;
    border-radius: 8px;
    background: #f7f9fc;
    color: #8a94a6;
    text-align: center;
    font-weight: 900;
  }

  .mobile-about-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px 18px;
    text-align: center;
  }

  .mobile-about-card img {
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
  }

  .mobile-about-card h3,
  .mobile-about-card p {
    margin: 0;
  }

  .mobile-follow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .mobile-follow-list[hidden] {
    display: none;
  }

  .mobile-follow-tabs {
    display: flex;
    align-items: center;
    gap: 44px;
    min-height: 66px;
    padding: 0 34px;
    background: #ffc515;
  }

  .mobile-follow-tabs button {
    position: relative;
    height: 66px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .mobile-follow-tabs button.active::after {
    position: absolute;
    right: 50%;
    bottom: 10px;
    width: 14px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
    content: "";
    transform: translateX(50%);
  }

  .mobile-empty-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: 510px;
    padding: 72px 20px 28px;
  }

  .mobile-empty-card[hidden] {
    display: none;
  }

  .mobile-empty-art {
    position: relative;
    width: 168px;
    height: 150px;
    opacity: 0.42;
  }

  .mobile-empty-art::before {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    height: 70px;
    border-radius: 8px 8px 14px 14px;
    background: linear-gradient(180deg, #eef4fd, #dce8f7);
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 88% 100%, 12% 100%);
    content: "";
  }

  .mobile-empty-art::after {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 58px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(180deg, #dfe9f6, #cbd9ec);
    content: "";
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }

  .mobile-empty-art span {
    position: absolute;
    right: 42px;
    bottom: 30px;
    width: 30px;
    height: 26px;
    background: #d7e2f1;
    border-radius: 50% 50% 8px 50%;
    transform: rotate(-15deg);
  }

  .mobile-empty-card p {
    margin: 0;
    color: #9398a1;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-empty-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffc823, #f5b814);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .mobile-empty-card button[hidden] {
    display: none;
  }

  .mobile-follow-recommend {
    display: grid;
    gap: 16px;
    padding: 28px 22px 22px;
    border-top: 14px solid #f4f4f4;
  }

  .mobile-follow-recommend[hidden] {
    display: none;
  }

  .mobile-follow-recommend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-follow-recommend-head h3 {
    margin: 0;
    color: #171c27;
    font-size: 24px;
    font-weight: 900;
  }

  .mobile-follow-recommend-head button {
    border: 0;
    background: transparent;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-follow-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mobile-match-detail-content {
    display: grid;
    gap: 0;
    background: #fff;
  }

  .mobile-detail-hero {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 22px 24px 30px;
    background: #202123;
    color: #fff;
  }

  .mobile-detail-hero > button {
    position: absolute;
    top: 58px;
    left: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 58px;
    line-height: 36px;
    font-weight: 300;
  }

  .mobile-detail-meta {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-top: 18px;
  }

  .mobile-detail-meta strong,
  .mobile-detail-meta span {
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
  }

  .mobile-detail-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .mobile-detail-teams div {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-detail-teams img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .mobile-detail-teams span {
    max-width: 130px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-detail-teams b {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
  }

  .mobile-detail-block {
    display: grid;
    gap: 16px;
    padding: 24px 22px;
    background: #fff;
  }

  .mobile-detail-block + .mobile-detail-block {
    border-top: 12px solid #f4f4f4;
  }

  .mobile-detail-block h2 {
    margin: 0;
    color: #111;
    font-size: 26px;
    font-weight: 900;
  }

  .mobile-detail-block p {
    margin: 0;
    color: #555d6b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
  }

  .mobile-detail-anchor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .mobile-date-title {
    margin: 4px 0 10px;
    color: #171c27;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
  }

  .mobile-match-list {
    display: grid;
  }

  .mobile-match-card {
    display: grid;
    gap: 12px;
    padding: 12px 0 14px;
    border-bottom: 1px solid #ececec;
    background: #fff;
  }

  .mobile-match-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9aa0aa;
    font-size: 13px;
  }

  .mobile-match-top div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-match-time {
    color: #8b929d;
    font-weight: 500;
  }

  .mobile-match-league,
  .mobile-match-top b {
    color: #8b929d;
    font-weight: 500;
  }

  .mobile-match-top em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 20px;
    border-radius: 2px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
  }

  .mobile-match-top em.is-living {
    background: #f9cd47;
    color: #fff;
  }

  .mobile-match-top em.is-living::before {
    margin-right: 3px;
    content: "▶";
    font-size: 9px;
  }

  .mobile-match-top em.is-pending {
    background: transparent;
    color: #9aa0aa;
    font-weight: 500;
  }

  .mobile-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
  }

  .mobile-subscribe {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -10px 2px -10px -8px;
    padding: 13px;
    border: 0;
    background: url("/assets/ui/subscribe-off.png") center / 18px 18px no-repeat;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-subscribe.is-booked {
    background-image: url("/assets/ui/subscribe-on.png");
  }

  .mobile-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 42%;
  }

  .mobile-team.host {
    justify-content: flex-end;
    text-align: right;
  }

  .mobile-team.guest {
    justify-content: flex-start;
    text-align: left;
  }

  .mobile-team strong {
    overflow: hidden;
    color: #101725;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-team img {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    object-fit: cover;
  }

  .mobile-vs {
    flex: 0 0 auto;
    color: #d23b2e;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-avatar-list-wrap {
    min-height: 0;
  }

  .mobile-avatar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-avatar-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 52px;
    gap: 4px;
    cursor: pointer;
  }

  .mobile-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
  }

  .mobile-avatar {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f2f2;
  }

  .mobile-avatar-live {
    position: absolute;
    right: -2px;
    bottom: -1px;
    width: 16px;
    height: 16px;
  }

  .mobile-avatar-name {
    overflow: hidden;
    width: 100%;
    color: #444;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-anchor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 116px;
  }

  .mobile-anchor-list .schedule-commentator-card,
  .mobile-follow-list .schedule-commentator-card {
    gap: 7px;
  }

  .mobile-anchor-list .commentator-head img,
  .mobile-follow-list .commentator-head img {
    width: 28px;
    height: 28px;
  }

  .mobile-anchor-list .commentator-head,
  .mobile-follow-list .commentator-head {
    color: #2b3240;
    font-size: 13px;
  }

  .mobile-anchor-list .commentator-cover,
  .mobile-follow-list .commentator-cover {
    border-radius: 7px;
  }

  .mobile-anchor-list .commentator-cover strong,
  .mobile-follow-list .commentator-cover strong {
    font-size: 12px;
  }

  .mobile-anchor {
    display: grid;
    gap: 4px;
    justify-items: center;
    width: 54px;
    min-width: 54px;
    color: #747b86;
    font-size: 11px;
    text-align: center;
  }

  .mobile-anchor i {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #edf0f4;
  }

  .mobile-anchor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-anchor small {
    position: absolute;
    right: 1px;
    bottom: 0;
    min-width: 22px;
    height: 10px;
    border-radius: 2px;
    background: #f04438;
    color: #fff;
    font-size: 7px;
    line-height: 10px;
  }

  .mobile-anchor span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #eeeeee;
    background: #fff;
    box-shadow: 0 -2px 14px rgba(17, 24, 39, 0.08);
    isolation: isolate;
    transition: transform 0.18s ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-bottom-nav::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    content: "";
  }

  body.live-room-open .mobile-bottom-nav {
    pointer-events: auto;
  }

  body.live-room-open:not(.live-room-minimized) .mobile-bottom-nav,
  body.mobile-live-fullscreen:not(.live-room-minimized) .mobile-bottom-nav,
  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-bottom-nav,
  body:has(#videoModal.is-open) .mobile-bottom-nav,
  #videoModal.is-open ~ .mobile-bottom-nav,
  #videoModal:not([hidden]):not(.is-minimized) ~ .mobile-bottom-nav {
    display: none !important;
  }

  body:has(#videoModal:not([hidden]):not(.is-minimized)) .mobile-app-banner,
  body:has(#videoModal.is-open) .mobile-app-banner,
  #videoModal.is-open ~ .mobile-app-banner,
  #videoModal:not([hidden]):not(.is-minimized) ~ .mobile-app-banner {
    display: none !important;
  }

  body.live-chat-focused .mobile-bottom-nav,
  body:has(.live-chat-input.is-focused) .mobile-bottom-nav,
  body:has(.live-chat-input input:focus) .mobile-bottom-nav {
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  }

  .mobile-bottom-nav a {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 58px;
    background: #fff;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-bottom-nav span {
    color: #f4c23d;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-bottom-nav a.active span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 30px;
    border-radius: 999px;
    background: #f4c23d;
    color: #fff;
  }

  .stage.living-room {
    margin: 0;
    border-radius: 0;
    background: #0a0c14;
  }

  .living-room .video-inner {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 0;
  }

  .player.video-box {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 246px;
    aspect-ratio: 16 / 10.2;
    border-radius: 0;
  }

  .stage .video-list {
    display: none;
  }

  .corner-brand {
    width: 154px;
    padding: 3px 6px;
  }

  .corner-brand img {
    width: 118px;
  }

  .room-button {
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 44px;
  }

  .hero-bottom-ctrl {
    height: 48px;
  }

  .player-meta {
    left: 12px;
    bottom: 50px;
  }

  .player-meta b {
    font-size: 14px;
  }

  .notice-bar {
    min-height: 34px;
    font-size: 13px;
  }

  .schedule.appoinment-list {
    width: auto;
    margin: 12px 10px 0;
  }

  .section-head.schedule-head {
    display: flex;
    padding: 12px 14px 8px;
  }

  .appoinment-swiper-container {
    height: auto;
  }

  .schedule-strip {
    height: auto;
  }

  .match-card {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    height: auto;
  }

  .appointment-nav {
    display: none;
  }

  .schedule,
  .hot-live,
  .anchor-section,
  .download-card {
    margin: 12px 10px 0;
  }

  .anchor-section {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 36px 42px 18px;
    background: #fff;
  }

  .anchor-section::before {
    top: 18px;
    height: 3px;
  }

  .anchor-ribbon {
    min-width: 112px;
    height: 34px;
    padding: 0 20px;
    font-size: 15px;
  }

  .anchor-strip {
    display: flex;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 0 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .anchor-strip::-webkit-scrollbar {
    display: none;
  }

  .anchor {
    flex: 0 0 74px;
    width: 74px;
    gap: 8px;
    scroll-snap-align: start;
    font-size: 12px;
  }

  .anchor img {
    width: 58px;
    height: 58px;
  }

  .anchor span {
    max-width: 74px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .anchor-arrow {
    width: 28px;
    height: 52px;
  }

  .anchor-arrow-left {
    left: 8px;
  }

  .anchor-arrow-right {
    right: 8px;
  }

  .section-head {
    padding: 14px 16px 10px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .schedule-strip {
    display: flex;
    scroll-snap-type: x mandatory;
  }

  .match-card {
    min-width: 238px;
    scroll-snap-align: start;
  }

  .hot-live {
    padding: 14px;
  }

  .hot-title {
    align-items: flex-start;
  }

  .hot-title img {
    width: 152px;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .room-card .live-item,
  .room-card .live-item .fm {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .room-card .room-title {
    height: auto;
    min-height: 34px;
    padding: 8px 10px 0;
    font-size: 13px;
  }

  .room-card .room-meta {
    padding: 0 8px 8px;
  }

  .room-card .btn-open {
    display: none;
  }

  .category-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-live .room-card {
    min-width: 0;
  }

  body[data-page-view="live"] {
    min-width: 0;
  }

  body[data-page-view="live"] .type-nav-inner {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 8px 12px 0;
    overflow-x: auto;
  }

  body[data-page-view="live"] .type-nav-inner button {
    float: none;
    margin: 0 16px 4px 0;
    font-size: 16px;
  }

  body[data-page-view="live"] .type-nav-inner button.active {
    bottom: 0;
    font-size: 18px;
  }

  body[data-page-view="live"] main {
    width: 100%;
    padding: 0 0 24px;
  }

  body[data-page-view="live"] .hot-live {
    padding: 0 12px;
  }

  body[data-page-view="live"] .room-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  body[data-page-view="live"] .room-card {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
  }

  body[data-page-view="live"] .room-card:nth-child(5n) {
    margin-right: 0;
  }

  .anchor-strip {
    padding: 0 16px 16px;
  }

  .download-card {
    display: grid;
    padding: 18px;
  }

  .download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-modal {
    padding: 10px;
  }

  .video-dialog {
    gap: 10px;
    padding: 10px;
  }

  .video-dialog .auth-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-width: 1px;
    font-size: 24px;
  }

  .video-stage {
    border-radius: 6px;
  }

  .video-message {
    padding: 18px;
    font-size: 14px;
  }

  .video-info {
    padding-right: 32px;
  }

  .video-info h2 {
    font-size: 17px;
  }

  .video-info span {
    font-size: 12px;
  }

  .live-room-modal {
    inset: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: #fff;
  }

  .live-room-modal.is-minimized {
    right: 10px;
    top: 78px;
    bottom: auto;
    left: auto;
    width: min(176px, calc(100vw - 20px));
  }

  .live-room-dialog {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
  }

  .live-room-dialog .auth-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(17, 24, 39, 0.94);
    font-size: 25px;
  }

  .live-room-modal:not(.is-minimized) .live-expand-button {
    display: none;
  }

  .live-room-main {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    height: 100%;
    min-height: 0;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-head {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px;
    min-height: auto;
    padding: 10px 52px 10px 10px;
    border-radius: 6px 6px 0 0;
    align-items: center;
    position: relative;
    z-index: 30;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-head img {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading h2 {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-room-heading span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .follow-btn {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 58px;
    min-height: 44px;
    height: auto;
    margin-right: 46px;
    padding: 6px 12px;
    line-height: 1.2;
    font-size: 14px;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .room-manage-btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    min-width: 72px;
    height: 32px;
    border-radius: 18px;
    font-size: 12px;
    padding: 0 10px;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .room-head-actions {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .room-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .live-room-left {
    border-radius: 0;
  }

  .live-room-stage {
    width: 100%;
    margin-left: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: min(62vw, 42vh);
  }

  .live-room-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: auto;
  }

  .live-player-bar {
    z-index: 40;
    padding: 6px 8px 4px;
    touch-action: manipulation;
  }

  .live-player-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .live-volume-range {
    touch-action: manipulation;
  }

  .live-volume-range {
    width: 48px;
    min-width: 40px;
  }

  .live-player-time {
    font-size: 11px;
  }

  .room-recommend-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .room-anchor-schedule,
  .room-video-recommend {
    margin-top: 24px;
  }

  .room-anchor-schedule .title,
  .room-video-recommend .title {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .room-schedule-track {
    height: auto;
    min-height: 120px;
  }

  .room-schedule-card {
    flex-basis: 200px;
    width: 200px;
    padding: 12px;
  }

  .room-video-recommend .category-list > li {
    width: calc(50% - 6px);
    height: auto;
    margin: 0 12px 12px 0;
  }

  .room-video-recommend .category-list > li:nth-child(5n) {
    margin-right: 12px;
  }

  .room-video-recommend .category-list > li:nth-child(2n) {
    margin-right: 0;
  }

  .room-mini-card {
    min-height: 0;
  }

  .live-room-wallet {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .coin-box {
    padding-left: 0;
    border-right: 0;
  }

  .room-gift-row {
    justify-content: flex-start;
    gap: 12px;
  }

  .coin-help {
    text-align: left;
  }

  .live-chat-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: auto;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  body.live-room-expanded {
    overflow: hidden;
  }

  #videoModal.live-room-modal.is-mobile-expanded .live-room-stage {
    pointer-events: auto;
  }

  #videoModal.live-room-modal.is-mobile-expanded::after {
    content: "轻触退出全屏";
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    z-index: 95;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .live-room-modal.is-mobile-expanded {
    inset: 0;
    z-index: 90;
    display: block;
    padding: 0;
    overflow: hidden;
    background: #000;
  }

  .live-room-modal.is-mobile-expanded .live-room-dialog,
  .live-room-modal.is-mobile-expanded .live-room-main,
  .live-room-modal.is-mobile-expanded .live-room-left {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .live-room-modal.is-mobile-expanded .live-room-main {
    display: block;
  }

  .live-room-modal.is-mobile-expanded .live-room-head,
  .live-room-modal.is-mobile-expanded .room-recommend-strip,
  .live-room-modal.is-mobile-expanded .room-video-recommend,
  .live-room-modal.is-mobile-expanded .room-anchor-schedule,
  .live-room-modal.is-mobile-expanded .live-room-wallet,
  .live-room-modal.is-mobile-expanded .live-chat-panel,
  .live-room-modal.is-mobile-expanded .live-expand-button {
    display: none;
  }

  .live-room-modal.is-mobile-expanded .live-room-stage {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .live-room-modal.is-mobile-expanded .live-room-stage video {
    width: 100vw;
    height: 100dvh;
    object-fit: contain;
    background: #000;
  }

  .live-room-modal.is-mobile-expanded .live-player-bar {
    position: absolute;
    right: 0;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 6;
  }

  .live-room-modal.is-mobile-expanded .auth-close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    z-index: 92;
    display: inline-flex;
  }

  .live-chat-notice {
    min-height: auto;
    padding: 14px 16px;
    font-size: 14px;
  }

  .live-chat-tabs {
    height: 50px;
  }

  .live-chat-tabs button {
    font-size: 18px;
  }

  .live-chat-list {
    min-height: 220px;
    max-height: 38vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .live-chat-tools {
    padding: 10px 14px 8px;
  }

  .emoji-panel {
    bottom: 58px;
    left: 14px;
  }

  body.live-room-open:not(.live-room-minimized) .live-chat-input,
  #videoModal.live-room-modal:not([hidden]):not(.is-minimized) .live-chat-input,
  #videoModal.live-room-modal.is-open:not(.is-minimized) .live-chat-input {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    pointer-events: auto;
    touch-action: manipulation;
  }

  body.live-room-open:not(.live-room-minimized) .live-chat-panel {
    padding-bottom: 0;
  }

  body.live-room-open:not(.live-room-minimized) .emoji-panel {
    bottom: auto;
    top: auto;
    position: absolute;
  }

  .live-chat-input {
    position: fixed;
    right: 10px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + var(--keyboard-inset, 0px));
    left: 10px;
    z-index: 46;
    grid-template-columns: minmax(0, 1fr) 82px;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 -8px 22px rgba(17, 24, 39, 0.14);
  }

  body.live-chat-focused .live-chat-input,
  .live-chat-input.is-focused,
  body:has(.live-chat-input input:focus) .live-chat-input {
    bottom: calc(env(safe-area-inset-bottom) + var(--keyboard-inset, 0px));
  }

  .live-chat-input input {
    min-width: 0;
    height: 48px;
    font-size: 16px;
  }

  .live-chat-input button,
  .live-chat-input #liveChatSend {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    line-height: 48px;
  }

  .anchor-dialog {
    max-height: calc(100vh - 24px);
  }

  .anchor-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 34px;
  }

  .anchor-dashboard-actions {
    width: 100%;
    justify-content: stretch;
  }

  .anchor-dashboard-actions .anchor-room-shortcut,
  .anchor-dashboard-actions button {
    flex: 1;
  }

  .anchor-obs-box,
  .anchor-actions {
    grid-template-columns: 1fr;
  }

  .anchor-room-manage-head {
    align-items: stretch;
    flex-direction: column;
  }

  .anchor-room-manage-actions {
    justify-content: stretch;
  }

  .anchor-room-manage-actions button,
  .anchor-room-manage-actions .anchor-room-shortcut {
    flex: 1;
  }

  .footer {
    margin-top: 32px;
  }

  .footer .guide {
    gap: 12px 28px;
    padding: 20px 16px 0;
  }

  .footer .guide > div {
    font-size: 14px;
  }

  .footer .desc {
    padding: 10px 16px 20px;
  }
}

@media (max-width: 420px) {
  .logo {
    width: 148px;
    min-width: 148px;
  }

  .nav a {
    padding: 0 8px;
    font-size: 13px;
  }

  .player {
    min-height: 230px;
  }

  .hot-title {
    display: grid;
    gap: 10px;
  }
}

@keyframes page-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

body.page-loading .player,
body.page-loading #scheduleList,
body.page-loading #roomGrid,
body.page-loading #anchorStrip,
body.page-loading #categoryTabs,
body.page-loading #mobileHomeBanner .mobile-banner-viewport {
  position: relative;
  overflow: hidden;
  color: transparent;
  pointer-events: none;
}

body.page-loading .player::after,
body.page-loading #scheduleList::after,
body.page-loading #roomGrid::after,
body.page-loading #anchorStrip::after,
body.page-loading #categoryTabs::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eceff4 0%, #f8fafc 45%, #eceff4 100%);
  background-size: 200% 100%;
  animation: page-shimmer 1.2s linear infinite;
  content: "";
}

body.page-loading #scheduleList,
body.page-loading #roomGrid,
body.page-loading #anchorStrip {
  min-height: 140px;
  border-radius: 8px;
}

body.page-loading #mobileMatchList .mobile-match-card {
  position: relative;
  overflow: hidden;
  color: transparent;
  pointer-events: none;
}

body.page-loading #roomGrid .room-link,
body.page-loading #roomGrid [data-open-room-id],
body.page-loading .mobile-avatar-item[data-open-room-id] {
  pointer-events: auto !important;
  color: inherit;
}

body.page-loading #mobileMatchList .mobile-match-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eceff4 0%, #f8fafc 45%, #eceff4 100%);
  background-size: 200% 100%;
  animation: page-shimmer 1.2s linear infinite;
  content: "";
}

body.page-loading .player {
  min-height: 280px;
}

/* 手机直播间样式见 live-room-mobile.css */

.live-room-desktop .live-corner-brand {
  display: none !important;
}

@media (min-width: 761px) {
  #mobileLiveRoom {
    display: none !important;
  }
}

/* 20260708 mobile polish: steadier cards and safer touch targets */
@media (max-width: 760px) {
  body.mobile-site {
    background: #f2f5f9;
  }

  .topbar {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body[data-mobile-view="live"] .mobile-home-banner {
    margin: 10px 10px 8px;
  }

  .mobile-banner-viewport {
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.1);
  }

  body[data-mobile-view="live"] .hot-live,
  body[data-mobile-view="live"] .anchor-section,
  body[data-mobile-view="live"] .category-live {
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  }

  body[data-mobile-view="live"] .hot-live {
    padding-top: 10px;
  }

  body[data-mobile-view="live"] .room-grid,
  body[data-mobile-view="live"] .category-room-grid {
    gap: 9px;
  }

  .room-card {
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
  }

  .room-card .live-item,
  .room-card .live-item .fm {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .room-card .room-title {
    height: 38px;
    padding: 9px 10px 4px;
    color: #151a24;
    font-weight: 700;
    line-height: 19px;
  }

  .room-card .room-meta {
    min-height: 30px;
    padding: 0 10px 5px;
    line-height: 25px;
  }

  .room-card .room-meta .name {
    max-width: 62%;
  }

  .mobile-bottom-nav {
    border-top-color: rgba(17, 24, 39, 0.08);
    box-shadow: 0 -8px 20px rgba(17, 24, 39, 0.09);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    color: #475064;
  }

  .mobile-bottom-nav a.active {
    color: #111827;
  }

  .mobile-bottom-nav a.active span {
    box-shadow: 0 5px 12px rgba(244, 194, 61, 0.26);
  }

  .mobile-app-banner {
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-match-card {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-banner-track,
  .room-card,
  .mobile-bottom-nav {
    transition: none !important;
  }
}

/* 20260708 yuyantv visual compare: schedule exposure without mobile overflow */
@media (max-width: 760px) {
  body[data-mobile-view="live"] .mobile-live-schedule {
    display: block !important;
    margin: 0 0 8px;
    padding: 10px 0 12px;
    border: 0;
    border-radius: 0;
    background: #f2f5f9;
    box-shadow: none;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .section-head.schedule-head {
    display: flex;
    margin: 0 10px 8px;
    padding: 0 2px;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .section-head.schedule-head h2 {
    font-size: 16px;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .section-head.schedule-head a,
  body[data-mobile-view="live"] .mobile-live-schedule .section-head.schedule-head .hot-badge {
    display: none;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .appoinment-swiper-container {
    height: 124px;
    margin: 0 10px;
    overflow: hidden;
    border-color: rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: #fff;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .schedule-strip {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .match-card {
    flex: 0 0 230px;
    width: 230px;
    min-width: 230px;
    height: 100%;
    padding: 12px 12px 14px;
    scroll-snap-align: start;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .appointment-nav {
    display: none;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .match-meta {
    margin-bottom: 12px;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .teams img {
    width: 22px;
    height: 22px;
  }

  body[data-mobile-view="live"] .mobile-live-schedule .appoinment {
    min-width: 48px;
    height: 30px;
    margin-top: 8px;
  }
}

/* 20260708 mobile nav alignment: match compact reference header and polish tab bar */
@media (max-width: 760px) {
  body.mobile-site .topbar {
    background: #111;
  }

  body.mobile-site .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
  }

  body.mobile-site .logo {
    width: 154px;
    min-width: 154px;
  }

  .mobile-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-header-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-header-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 32px;
    padding: 0 9px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  body[data-mobile-top="home"] .mobile-header-nav a[data-mobile-top="home"],
  body[data-mobile-top="live"] .mobile-header-nav a[data-mobile-top="live"],
  body[data-mobile-top="match"] .mobile-header-nav a[data-mobile-top="match"],
  .mobile-header-nav a.active {
    background: #ffc51c;
    color: #fff;
  }

  .mobile-bottom-nav {
    min-height: calc(54px + env(safe-area-inset-bottom));
    border-top-color: rgba(17, 24, 39, 0.06);
    box-shadow: 0 -6px 18px rgba(17, 24, 39, 0.08);
  }

  .mobile-bottom-nav a {
    gap: 2px;
    min-height: 54px;
    color: #3f4858;
    font-size: 12px;
  }

  .mobile-bottom-nav span {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 26px;
    color: #f4c23d;
    font-size: 0;
    line-height: 1;
  }

  .mobile-bottom-nav span::before,
  .mobile-bottom-nav span::after {
    box-sizing: border-box;
    content: "";
  }

  .mobile-bottom-nav a[data-mobile-view="live"] span::before {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 4px;
  }

  .mobile-bottom-nav a[data-mobile-view="live"] span::after {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
  }

  .mobile-bottom-nav a[data-mobile-view="match"] span::before {
    width: 18px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    box-shadow: 0 6px 0 -4px currentColor;
  }

  .mobile-bottom-nav a[data-mobile-view="follow"] span::before {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top: 0;
    border-left: 0;
    border-radius: 0 0 5px 0;
    transform: rotate(45deg) translate(-1px, -2px);
  }

  .mobile-bottom-nav a[data-mobile-view="profile"] span::before {
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translateY(-4px);
  }

  .mobile-bottom-nav a[data-mobile-view="profile"] span::after {
    position: absolute;
    bottom: 4px;
    width: 18px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
  }

  .mobile-bottom-nav a.active {
    color: #172033;
  }

  .mobile-bottom-nav a.active span {
    width: 40px;
    height: 30px;
    background: #f4c23d;
    color: #fff;
    box-shadow: 0 6px 14px rgba(244, 194, 61, 0.22);
  }

  .mobile-bottom-nav a.active b {
    font-weight: 900;
  }

  body[data-mobile-view="live"] .mobile-home-banner {
    margin-top: 10px;
  }
}

/* 20260709: reference-style black header with yellow navigation and app actions */
@media (min-width: 761px) {
  .topbar,
  body[data-page-view="live"] .topbar,
  body[data-page-view="schedule"] .topbar,
  body[data-page-view="download"] .topbar {
    background: #151515 !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .topbar-inner,
  body[data-page-view="live"] .topbar-inner,
  body[data-page-view="schedule"] .topbar-inner,
  body[data-page-view="download"] .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    width: min(1200px, 100%);
    min-height: 96px !important;
    padding: 0 24px;
  }

  .logo {
    width: 286px;
    min-width: 286px;
    margin-right: 0;
  }

  .logo .logo-light {
    display: none !important;
  }

  .logo .logo-dark {
    display: block !important;
  }

  .nav {
    display: flex !important;
    justify-content: center;
  }

  .nav a {
    height: 58px;
    margin: 0 5px;
    padding: 0 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 58px;
  }

  .nav a.active,
  .nav a:hover {
    background: #ffc51c;
    color: #fff;
  }

  .mobile-header-nav {
    grid-area: nav;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .mobile-header-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 84px;
    padding: 0 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 48px;
    text-decoration: none;
    white-space: nowrap;
  }

  body[data-mobile-top="home"] .mobile-header-nav a[data-mobile-top="home"],
  body[data-mobile-top="live"] .mobile-header-nav a[data-mobile-top="live"],
  body[data-mobile-top="match"] .mobile-header-nav a[data-mobile-top="match"],
  .mobile-header-nav a.active,
  .mobile-header-nav a:hover {
    background: #ffc51c;
    color: #fff;
  }

  .auth-actions {
    display: flex !important;
    gap: 28px;
    max-width: none;
  }

  .auth-actions .header-install-button,
  .auth-actions .header-download-button,
  .auth-actions button.header-install-button:last-child,
  .auth-actions a.header-download-button:last-child {
    min-width: 146px;
    height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #ffc51c;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    line-height: 56px;
  }

  .auth-actions .header-install-button {
    min-width: 200px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .topbar-inner,
  body[data-page-view="live"] .topbar-inner,
  body[data-page-view="schedule"] .topbar-inner,
  body[data-page-view="download"] .topbar-inner {
    width: min(960px, 100%);
    gap: 14px;
    padding: 0 18px;
  }

  .logo {
    width: 280px;
    min-width: 280px;
  }

  .nav a {
    height: 56px;
    margin: 0 3px;
    padding: 0 14px;
    font-size: 22px;
    line-height: 56px;
  }

  .auth-actions {
    gap: 8px;
  }

  .auth-actions .header-install-button,
  .auth-actions .header-download-button,
  .auth-actions button.header-install-button:last-child,
  .auth-actions a.header-download-button:last-child {
    min-width: 132px;
    height: 56px;
    padding: 0 16px;
    font-size: 20px;
    line-height: 56px;
  }

  .auth-actions .header-install-button {
    min-width: 178px;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  :root {
    --topbar-height: 154px;
  }

  .topbar-inner,
  body[data-page-view="live"] .topbar-inner,
  body[data-page-view="schedule"] .topbar-inner,
  body[data-page-view="download"] .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo actions"
      "nav nav";
    align-content: center;
    row-gap: 10px;
    column-gap: 12px;
    min-height: 154px !important;
    padding: 10px 18px 12px;
  }

  .logo {
    grid-area: logo;
    width: 220px;
    min-width: 220px;
  }

  .auth-actions {
    grid-area: actions;
    justify-self: end;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    justify-content: center;
  }

  .nav a {
    height: 48px;
    margin: 0 6px;
    padding: 0 16px;
    font-size: 22px;
    line-height: 48px;
  }

  .auth-actions .header-install-button,
  .auth-actions .header-download-button,
  .auth-actions button.header-install-button:last-child,
  .auth-actions a.header-download-button:last-child {
    min-width: 126px;
    height: 50px;
    padding: 0 14px;
    font-size: 18px;
    line-height: 50px;
  }

  .auth-actions .header-install-button {
    min-width: 168px;
  }
}

/* 20260709: mobile reference header, black brand bar + yellow action buttons + flashing domain */
body.mobile-site .topbar {
  background: #eaf2fb !important;
  box-shadow: none !important;
  color: #fff !important;
}

body.mobile-site .topbar::after {
  display: block;
  width: min(100%, 818px);
  height: 24px;
  margin: 0 auto;
  background: #ffc51c;
  content: "";
}

body.mobile-site .topbar-inner,
body.mobile-site[data-page-view="live"] .topbar-inner,
body.mobile-site[data-page-view="schedule"] .topbar-inner,
body.mobile-site[data-page-view="download"] .topbar-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "logo actions";
  align-items: center;
  width: min(100%, 818px);
  min-height: 96px !important;
  margin: 0 auto;
  padding: 0 34px !important;
  column-gap: 18px;
  background: #1f1f21;
}

body.mobile-site .logo {
  grid-area: logo;
  width: clamp(220px, 39vw, 330px);
  min-width: clamp(220px, 39vw, 330px);
  margin: 0;
}

body.mobile-site .logo .logo-dark {
  display: block !important;
}

body.mobile-site .mobile-header-nav {
  display: none !important;
}

body.mobile-site .auth-actions {
  grid-area: actions;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3.4vw, 28px);
  min-width: 0;
  max-width: none;
  line-height: 1;
}

body.mobile-site .auth-actions .header-install-button,
body.mobile-site .auth-actions .header-download-button,
body.mobile-site .auth-actions button.header-install-button:last-child,
body.mobile-site .auth-actions a.header-download-button:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(138px, 24vw, 202px);
  height: clamp(46px, 6.8vw, 56px);
  padding: 0 clamp(16px, 2.8vw, 24px);
  border: 0;
  border-radius: 8px;
  background: #ffc51c;
  color: #fff;
  font-size: clamp(18px, 3.1vw, 24px);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body.mobile-site .auth-actions .header-download-button,
body.mobile-site .auth-actions a.header-download-button:last-child {
  min-width: clamp(106px, 18vw, 146px);
}

@media (max-width: 520px) {
  body.mobile-site .topbar::after {
    height: 18px;
  }

  body.mobile-site .topbar-inner,
  body.mobile-site[data-page-view="live"] .topbar-inner,
  body.mobile-site[data-page-view="schedule"] .topbar-inner,
  body.mobile-site[data-page-view="download"] .topbar-inner {
    min-height: 72px !important;
    padding: 0 8px !important;
    column-gap: 6px;
  }

  body.mobile-site .logo {
    width: clamp(176px, 47vw, 184px);
    min-width: clamp(176px, 47vw, 184px);
  }

  body.mobile-site .auth-actions {
    gap: 6px;
  }

  body.mobile-site .auth-actions .header-install-button,
  body.mobile-site .auth-actions .header-download-button,
  body.mobile-site .auth-actions button.header-install-button:last-child,
  body.mobile-site .auth-actions a.header-download-button:last-child {
    min-width: 84px;
    height: 36px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 13px;
  }

  body.mobile-site .auth-actions .header-install-button {
    min-width: 100px;
  }

body.mobile-site .auth-actions .header-download-button,
body.mobile-site .auth-actions a.header-download-button:last-child {
  min-width: 68px;
  }
}

/* 20260709: mobile bottom navigation polish */
body.mobile-site .mobile-bottom-nav {
  --bottom-nav-h: clamp(76px, 10vw, 104px);
  --bottom-nav-icon: clamp(30px, 4.2vw, 40px);
  --bottom-nav-active: clamp(44px, 6.4vw, 60px);
  --bottom-nav-label: clamp(13px, 2.2vw, 20px);
  --bottom-nav-stroke: clamp(2px, 0.28vw, 3px);
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 42;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  min-height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding: 0 0 env(safe-area-inset-bottom);
  border-top: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 -1px 0 rgba(17, 24, 39, 0.06), 0 -8px 26px rgba(17, 24, 39, 0.14);
  overflow: hidden;
}

body.mobile-site .mobile-bottom-nav::before {
  background: #fff;
}

body.mobile-site .mobile-bottom-nav a {
  display: grid;
  grid-template-rows: var(--bottom-nav-active) auto;
  align-content: center;
  justify-items: center;
  gap: clamp(4px, 0.7vw, 7px);
  min-width: 0;
  min-height: var(--bottom-nav-h);
  padding: clamp(6px, 0.9vw, 9px) 0 clamp(7px, 1vw, 10px);
  background: transparent;
  color: #384253;
  font-size: var(--bottom-nav-label);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

body.mobile-site .mobile-bottom-nav a.active {
  color: #172033;
}

body.mobile-site .mobile-bottom-nav b {
  display: block;
  grid-row: 2;
  min-height: 1em;
  font-size: inherit;
  font-weight: 900;
  line-height: 1.05;
}

body.mobile-site .mobile-bottom-nav span {
  position: relative;
  display: grid;
  grid-row: 1;
  align-self: center;
  place-items: center;
  width: var(--bottom-nav-icon);
  height: calc(var(--bottom-nav-icon) * 0.92);
  color: #f6bd24;
  font-size: 0;
  line-height: 1;
}

body.mobile-site .mobile-bottom-nav span::before,
body.mobile-site .mobile-bottom-nav span::after {
  box-sizing: border-box;
  content: "";
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="live"] span::before {
  width: calc(var(--bottom-nav-icon) * 0.62);
  height: calc(var(--bottom-nav-icon) * 0.62);
  border: var(--bottom-nav-stroke) solid currentColor;
  border-radius: 7px;
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="live"] span::after {
  position: absolute;
  width: calc(var(--bottom-nav-icon) * 0.3);
  height: calc(var(--bottom-nav-icon) * 0.3);
  border: var(--bottom-nav-stroke) solid currentColor;
  border-radius: 4px;
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="match"] span::before {
  width: calc(var(--bottom-nav-icon) * 0.72);
  height: var(--bottom-nav-stroke);
  background: currentColor;
  box-shadow:
    0 calc(var(--bottom-nav-icon) * 0.24) 0 currentColor,
    0 calc(var(--bottom-nav-icon) * 0.48) 0 currentColor;
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="match"] span::after {
  position: absolute;
  top: calc(var(--bottom-nav-icon) * 0.39);
  width: calc(var(--bottom-nav-icon) * 0.46);
  height: var(--bottom-nav-stroke);
  background: currentColor;
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="follow"] span::before {
  width: calc(var(--bottom-nav-icon) * 0.56);
  height: calc(var(--bottom-nav-icon) * 0.56);
  border-right: var(--bottom-nav-stroke) solid currentColor;
  border-bottom: var(--bottom-nav-stroke) solid currentColor;
  border-radius: 0 0 6px 0;
  transform: rotate(45deg) translate(-2px, -3px);
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="profile"] span::before {
  width: calc(var(--bottom-nav-icon) * 0.28);
  height: calc(var(--bottom-nav-icon) * 0.28);
  border: var(--bottom-nav-stroke) solid currentColor;
  border-radius: 50%;
  transform: translateY(calc(var(--bottom-nav-icon) * -0.18));
}

body.mobile-site .mobile-bottom-nav a[data-mobile-view="profile"] span::after {
  position: absolute;
  bottom: calc(var(--bottom-nav-icon) * 0.05);
  width: calc(var(--bottom-nav-icon) * 0.72);
  height: calc(var(--bottom-nav-icon) * 0.38);
  border: var(--bottom-nav-stroke) solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

body.mobile-site .mobile-bottom-nav a.active span {
  width: var(--bottom-nav-active);
  height: var(--bottom-nav-active);
  border-radius: 50%;
  background: #ffc51c;
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 197, 28, 0.34);
}

@media (max-width: 520px) {
  body.mobile-site .mobile-bottom-nav {
    --bottom-nav-h: 68px;
    --bottom-nav-icon: 30px;
    --bottom-nav-active: 44px;
    --bottom-nav-label: 12px;
    --bottom-nav-stroke: 2px;
    border-radius: 0;
  }
}
