: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);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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: #111422;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

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

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

.logo img {
  width: 100%;
  height: auto;
}

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

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

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  white-space: nowrap;
}

.nav a.active {
  background: linear-gradient(180deg, #ffd65a, var(--gold-2));
  color: #2b1b02;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-actions button,
.auth-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

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

.auth-actions .anchor-open-button {
  background: linear-gradient(180deg, #ffd65a, var(--gold-2));
  color: #2b1b02;
}

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

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

.user-name {
  max-width: 96px;
  overflow: hidden;
  color: #fff;
  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 {
  display: none;
}

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

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

.type-nav-inner {
  display: flex;
  align-items: center;
  gap: 58px;
  width: min(960px, 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%);
}

.stage {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #05070d;
  box-shadow: var(--shadow);
}

.player {
  position: relative;
  aspect-ratio: 16 / 8;
  min-height: 260px;
  overflow: hidden;
  background: #0b0e17;
}

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

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

.player > video {
  background: #05070c;
}

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

.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: 2;
  right: 28px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 48px;
  border: 2px solid rgba(248, 183, 53, 0.72);
  border-radius: 26px;
  background: rgba(17, 20, 34, 0.58);
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  transform: translateY(-50%);
}

.player-meta {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.player-meta b {
  font-size: 34px;
  line-height: 1.18;
}

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

.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,
.download-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.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;
}

.schedule-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}

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

.match-card {
  display: grid;
  gap: 12px;
  min-width: 320px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #79808c;
  font-size: 13px;
}

.match-meta b {
  color: #626a77;
  font-weight: 600;
}

.teams {
  display: grid;
  gap: 9px;
}

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

.teams img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

.teams span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card button {
  justify-self: end;
  min-width: 58px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #ffe994;
  color: #8c5905;
  font-weight: 900;
}

.schedule-commentators {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.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: 12px;
}

.room-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 27, 42, 0.13);
}

.room-link {
  display: block;
}

.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 {
  width: calc(100% - 20px);
  height: 32px;
  margin: 0 10px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff2cc;
  color: #9a6508;
  font-size: 13px;
  font-weight: 900;
}

.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;
}

.download-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(90deg, rgba(17, 20, 34, 0.94), rgba(17, 20, 34, 0.74)),
    url("https://sta.ncctrials.com/web/assets/yy/img/live-cover.png") center/cover;
  color: #fff;
}

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

.download-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.download-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.download-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.download-actions button,
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffbf45, #f08a18);
  color: #fff;
  font-weight: 900;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 16px 36px;
  color: #7b8493;
  font-size: 13px;
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer a {
  color: #d47d15;
  font-weight: 900;
}

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

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  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] {
  display: none;
}

.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;
}

.video-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  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: 62px 0 0;
  z-index: 28;
  align-items: start;
  padding: 16px 18px 34px;
  background: rgba(33, 37, 82, 0.96);
  overflow: auto;
}

.live-room-dialog {
  width: min(1480px, 100%);
  height: min(860px, calc(100vh - 112px));
  padding: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

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

.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) 390px;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

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

.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 .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: 14px;
  min-height: 92px;
  padding: 14px 24px;
}

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

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

.live-room-heading h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  color: #333;
  font-size: 19px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-room-heading span {
  display: block;
  overflow: hidden;
  color: #858585;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-btn {
  min-width: 82px;
  height: 42px;
  border: 0;
  border-radius: 24px;
  background: #ffc31a;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.follow-btn.followed {
  background: #eef2f7;
  color: #4f5a69;
}

.room-manage-btn {
  min-width: 100px;
  height: 42px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffbd38 0%, #f28d18 100%);
  box-shadow: inset 0 -2px 0 rgba(150, 84, 0, 0.18);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

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

.room-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 28px;
}

.live-room-stage {
  border-radius: 0;
  background: #000;
  aspect-ratio: 16 / 6.8;
}

.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: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 30px 22px;
  background: #050505;
}

.room-mini-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  border-radius: 2px;
  background: #171717;
}

.room-mini-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.room-mini-card b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

.live-room-wallet {
  display: grid;
  grid-template-columns: 210px 1fr 160px;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid #e4e4e4;
}

.coin-box {
  display: grid;
  gap: 4px;
  padding-left: 24px;
  border-right: 1px solid #e4e4e4;
}

.coin-box b {
  color: #333;
  font-size: 28px;
  line-height: 1;
}

.coin-box span,
.coin-help {
  color: #777;
  font-size: 14px;
}

.room-gift-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.room-gift-row button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff7e0;
  font-size: 26px;
}

.coin-help {
  border: 0;
  background: transparent;
  font-weight: 800;
}

.live-chat-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  height: 100%;
  min-height: 0;
}

.live-chat-notice {
  min-height: 78px;
  padding: 18px;
  border-bottom: 1px solid #dedede;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.5;
}

.live-chat-notice b {
  color: #222;
}

.live-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 54px;
  background: #f5f5f5;
}

.live-chat-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  outline: none;
}

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

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

.live-chat-tabs button.active::after {
  position: absolute;
  right: 36%;
  bottom: 0;
  left: 36%;
  height: 3px;
  background: #ffc31a;
  content: "";
}

.live-chat-list {
  overflow-y: auto;
  padding: 14px 18px;
  background: #fff;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.65;
}

.live-chat-list p {
  margin: 0 0 10px;
}

.live-chat-list .chat-message {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fafafa;
}

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

.chat-user-name {
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
  font-weight: 900;
  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: 800;
}

.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: 900;
  cursor: pointer;
}

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

.live-chat-list .system {
  color: #6b6b6b;
  font-weight: 800;
}

.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: 20px;
  margin-right: 4px;
  padding: 0 5px;
  border-radius: 3px;
  background: #ffbc00;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.level-badge {
  background: #c9c9c9;
}

.live-chat-tools {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px 18px 6px;
  color: #b5b5b5;
  font-size: 24px;
}

.live-chat-tools button,
.chat-tool-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #d8d8d8;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f5f6f9);
  color: #6b7280;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(17, 20, 34, 0.08);
}

.live-chat-tools button:hover,
.chat-tool-button:hover {
  border-color: #f2a200;
  color: #111422;
}

.emoji-panel {
  position: absolute;
  bottom: 46px;
  left: 18px;
  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: 1fr 88px;
  gap: 0;
  padding: 0 18px 18px;
}

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

.live-chat-input input {
  height: 54px;
  border: 1px solid #ddd;
  border-right: 0;
  padding: 0 12px;
  color: #333;
  font-size: 15px;
  outline: none;
}

.live-chat-input button {
  border: 1px solid #d79500;
  background: linear-gradient(180deg, #ffd65a, #f08a18);
  color: #2b1b02;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.live-chat-input button:hover {
  filter: brightness(1.04);
}

.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-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-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: 16px;
  width: min(380px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #4b5565;
  font-size: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-right: 28px;
}

.auth-tabs button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #3b4352;
  font-weight: 900;
}

.auth-tabs button.active {
  border-color: transparent;
  background: linear-gradient(180deg, #ffd65a, var(--gold-2));
  color: #2b1b02;
}

.auth-form {
  display: none;
  gap: 12px;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: #3b4352;
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  padding: 0 11px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(238, 141, 36, 0.15);
}

.auth-form button[type="submit"] {
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffad37, #f08a18);
  color: #fff;
  font-weight: 900;
}

.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);
}

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

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

@media (max-width: 760px) {
  .topbar-inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 6px;
    min-height: 68px;
    padding: 0 10px;
  }

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

  .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: none;
  }

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

  main {
    padding: 0 0 34px;
  }

  .type-nav {
    position: sticky;
    top: 68px;
    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 {
    display: block;
    min-height: calc(100vh - 100px);
    padding: 26px 16px 82px;
    background: #fff;
  }

  .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 {
    display: block;
    min-height: calc(100vh - 68px);
    padding-bottom: 84px;
    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-bottom: 12px;
    color: #171c27;
    font-size: 20px;
    font-weight: 900;
  }

  .mobile-match-list {
    display: grid;
  }

  .mobile-match-card {
    display: grid;
    gap: 13px;
    padding: 15px 0 16px;
    border-bottom: 1px solid #e8e8e8;
    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-top b {
    color: #8b929d;
    font-weight: 500;
  }

  .mobile-match-top em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 20px;
    border-radius: 2px;
    background: #f9cd47;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-match-top em::before {
    margin-right: 3px;
    content: "▶";
    font-size: 9px;
  }

  .mobile-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px 28px 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    text-align: center;
  }

  .mobile-teams strong {
    overflow: hidden;
    color: #101725;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-teams img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    object-fit: cover;
  }

  .mobile-teams span {
    color: #d23b2e;
    font-size: 14px;
    font-weight: 900;
  }

  .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: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    border-top: 1px solid #eeeeee;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease;
  }

  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;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
  }

  .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 {
    margin: 0;
    border-radius: 0;
  }

  .player {
    aspect-ratio: 16 / 10.2;
    min-height: 246px;
  }

  .corner-brand {
    width: 154px;
    padding: 3px 6px;
  }

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

  .room-button {
    right: 10px;
    min-width: 108px;
    height: 40px;
    font-size: 15px;
  }

  .player-meta {
    right: 16px;
    bottom: 18px;
    left: 16px;
  }

  .player-meta b {
    font-size: 22px;
  }

  .notice-bar {
    min-height: 34px;
    font-size: 13px;
  }

  .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;
  }

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

  .category-live .room-card {
    min-width: 0;
  }

  .category-live .room-body {
    gap: 7px;
    padding: 10px;
  }

  .category-live .room-body h3 {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .category-live .room-body div {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .category-live .room-body div span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-live .gift-action {
    display: none;
  }

  .room-body {
    padding: 10px;
  }

  .room-body h3 {
    min-height: 39px;
    font-size: 13px;
  }

  .room-body div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .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: 68px 0 0;
    align-items: start;
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(33, 37, 82, 0.98);
  }

  .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: -2px;
    right: -2px;
    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-main {
    display: block;
    grid-template-columns: 1fr;
    height: auto;
  }

  .live-room-head {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    min-height: auto;
    padding: 10px 14px 10px 10px;
    border-radius: 6px 6px 0 0;
    align-items: start;
  }

  .live-room-head img {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  .live-room-heading {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .live-room-heading h2 {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .live-room-heading span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .follow-btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 58px;
    height: 32px;
    font-size: 13px;
  }

  .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;
  }

  .room-icon-btn {
    display: none;
  }

  .live-room-stage {
    aspect-ratio: 16 / 9;
    min-height: 190px;
  }

  .room-recommend-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .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: grid;
    grid-template-rows: auto auto minmax(220px, 38vh) auto auto;
    height: auto;
    min-height: 460px;
    margin-top: 12px;
    overflow: visible;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .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;
  }

  .live-chat-input {
    position: fixed;
    right: 10px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    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: env(safe-area-inset-bottom);
  }

  .live-chat-input input {
    min-width: 0;
    height: 48px;
  }

  .live-chat-input button {
    height: 48px;
    font-size: 16px;
  }

  .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 {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .logo {
    width: 128px;
    min-width: 128px;
  }

  .nav a {
    padding: 0 8px;
    font-size: 13px;
  }

  .player {
    min-height: 230px;
  }

  .hot-title {
    display: grid;
    gap: 10px;
  }
}
