/* ==================================================================
   云音 · 夜航电台
   城堡花园 / 磨砂玻璃 / 9 麦位
   ================================================================== */

:root {
  --bg: #08182b;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, 0.72);
  --dim: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.24);
  --line-strong: rgba(255, 255, 255, 0.36);
  --glass-light: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
  --glass-dark: linear-gradient(160deg, rgba(13, 30, 52, 0.56), rgba(8, 21, 38, 0.34));
  --rose: #ff9ec7;
  --rose-deep: #ff7fae;
  --sky: #9bd7ff;
  --gold: #ffd77a;
  --grad: linear-gradient(135deg, #ffb6d4 0%, #ff8fb8 55%, #ff7aa7 100%);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-shadow: 0 2px 12px rgba(5, 18, 34, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #050f1c;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: -14%;
  z-index: 0;
  background:
    linear-gradient(rgba(4, 14, 28, 0.55), rgba(4, 14, 28, 0.75)),
    url("assets/bg.jpg") center 30% / cover no-repeat;
  filter: blur(28px) saturate(1.05);
  pointer-events: none;
}

@keyframes blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* 手机外壳                                                            */
/* ------------------------------------------------------------------ */

#app {
  position: relative;
  width: min(440px, 100vw);
  height: min(920px, 100dvh);
  background: #08182b;
  border-radius: 28px;
  overflow: hidden;
  overflow: clip;
  box-shadow:
    0 60px 160px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
  animation: screen-in 0.34s ease both;
}

.screen.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

/* ==================================================================
   入场页
   ================================================================== */

.home {
  overflow: hidden;
}

.home-bg {
  position: absolute;
  inset: 0;
  background: url("assets/bg.jpg") center 30% / cover no-repeat;
}

.home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 20, 38, 0.46) 0%,
      rgba(6, 20, 38, 0.16) 20%,
      rgba(6, 20, 38, 0) 44%,
      rgba(8, 23, 42, 0.24) 70%,
      rgba(5, 14, 28, 0.72) 100%
    ),
    radial-gradient(85% 42% at 50% 6%, rgba(130, 200, 255, 0.14), transparent 62%);
}

.home-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-inner::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 24px rgba(6, 20, 38, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex: none;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.brand-text b {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: var(--text-shadow);
}

.brand-text span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}

.brand-tag {
  margin-left: auto;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.home-copy {
  margin-top: 32px;
}

.home-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-shadow: 0 4px 26px rgba(4, 16, 32, 0.55);
}

.home-copy h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #ffe1ee 0%, #ffb4d2 48%, #ffc9a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255, 143, 184, 0.42));
}

.home-copy p {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
  text-shadow: var(--text-shadow);
}

/* 房间卡片 */

.live-card {
  position: relative;
  margin-top: 20px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(13, 30, 52, 0.62), rgba(8, 21, 38, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  gap: 13px;
  align-items: center;
  overflow: hidden;
  box-shadow:
    0 22px 50px rgba(3, 12, 24, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.live-cover {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 18px;
  flex: none;
  overflow: hidden;
  background: url("assets/bg.jpg") center 34% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 10px 24px rgba(3, 14, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.live-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 54, 0.05), rgba(9, 22, 40, 0.38));
}

.live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ff5f8f, #ff7fae);
  padding: 2px 5px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(255, 95, 143, 0.45);
}

.live-badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}

.cover-mic {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 4px 12px rgba(4, 18, 34, 0.55));
  transform: translateY(-4px);
}

.eq {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 2;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5px;
}

.eq i {
  width: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: eq 1.1s ease-in-out infinite;
  height: 40%;
}

.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.36s; }
.eq i:nth-child(4) { animation-delay: 0.12s; }
.eq i:nth-child(5) { animation-delay: 0.28s; }

@keyframes eq {
  0%,
  100% { height: 25%; opacity: 0.55; }
  50% { height: 95%; opacity: 1; }
}

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

.live-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--text-shadow);
}

.live-tags {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.live-tags span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2.5px 6px;
  border-radius: 6px;
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ef0b0;
  box-shadow: 0 0 8px rgba(126, 240, 176, 0.9);
}

.live-meta .sep {
  opacity: 0.5;
}

/* 入场表单 */

.enter-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(13, 30, 52, 0.58), rgba(8, 21, 38, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.enter-card label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}

.nick-row {
  display: flex;
  gap: 9px;
  margin-top: 9px;
}

.nick-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 15px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nick-row input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.nick-row input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.enter-btn {
  flex: none;
  height: 46px;
  padding: 0 17px;
  border: none;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(255, 122, 167, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s, filter 0.15s;
}

.enter-btn span {
  font-size: 16px;
  font-weight: 500;
}

.enter-btn:active {
  transform: scale(0.97);
  filter: brightness(1.06);
}

.avatar-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}

.pick-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  flex: none;
}

.avatar-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.avatar-row::-webkit-scrollbar {
  display: none;
}

.avatar-cell {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  flex: none;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  color: #fff;
  padding: 0;
}

.avatar-cell.active {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(255, 182, 212, 0.4), rgba(255, 143, 184, 0.26));
  box-shadow:
    0 0 0 3px rgba(255, 158, 199, 0.22),
    0 6px 16px rgba(255, 122, 167, 0.28);
  transform: scale(1.05);
}

.enter-hint {
  margin: 12px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

/* 今晚话题 */

.topic-card {
  position: relative;
  margin-top: 11px;
  padding: 12px 15px 11px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(13, 32, 54, 0.55), rgba(43, 26, 52, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topic-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--rose);
}

.topic-card p {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.topic-hint {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255, 182, 212, 0.9);
}

.topic-card::after {
  content: "“";
  position: absolute;
  right: 12px;
  top: -18px;
  font-family: Georgia, serif;
  font-size: 74px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.home-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.34);
  letter-spacing: 0.04em;
}

/* ==================================================================
   语音厅
   ================================================================== */

.room {
  overflow: hidden;
}

.room-bg {
  position: absolute;
  inset: 0;
  background: url("assets/bg.jpg") center 30% / cover no-repeat;
}

.room-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 18, 35, 0.5) 0%,
      rgba(5, 18, 35, 0.2) 16%,
      rgba(5, 18, 35, 0.02) 32%,
      rgba(5, 18, 35, 0.08) 62%,
      rgba(4, 13, 26, 0.62) 100%
    ),
    radial-gradient(96% 52% at 50% 102%, rgba(255, 175, 210, 0.2), transparent 62%);
}

/* 飘落花瓣 */

.petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.petals i {
  position: absolute;
  top: -24px;
  left: var(--x, 10%);
  width: 9px;
  height: 6px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(135deg, rgba(255, 214, 232, 0.95), rgba(255, 158, 199, 0.55));
  filter: blur(0.2px);
  opacity: 0;
  animation: petal-fall var(--dur, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.petals i:nth-child(1) { --x: 7%; --dur: 17s; --delay: 0.5s; --drift: 46px; }
.petals i:nth-child(2) { --x: 21%; --dur: 21s; --delay: 4s; --drift: -34px; width: 7px; height: 5px; }
.petals i:nth-child(3) { --x: 34%; --dur: 15s; --delay: 8s; --drift: 30px; }
.petals i:nth-child(4) { --x: 48%; --dur: 23s; --delay: 2s; --drift: -44px; width: 11px; height: 7px; }
.petals i:nth-child(5) { --x: 61%; --dur: 18s; --delay: 10s; --drift: 38px; width: 8px; height: 5px; }
.petals i:nth-child(6) { --x: 73%; --dur: 20s; --delay: 5s; --drift: -28px; }
.petals i:nth-child(7) { --x: 84%; --dur: 16s; --delay: 12s; --drift: 26px; width: 7px; height: 5px; }
.petals i:nth-child(8) { --x: 93%; --dur: 22s; --delay: 7s; --drift: -38px; width: 10px; height: 6px; }

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.85; }
  100% {
    transform: translate3d(var(--drift, 30px), 980px, 0) rotate(320deg);
    opacity: 0;
  }
}

/* 顶部 */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 8px;
  flex: none;
}

.round-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-family: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 6px 18px rgba(4, 16, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 0;
  transition: transform 0.14s, background 0.14s;
}

.round-btn:active {
  transform: scale(0.93);
  background: rgba(255, 255, 255, 0.22);
}

.round-btn.back {
  margin-right: -2px;
}

.room-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 48%),
    linear-gradient(145deg, #ffb6d4, #ff7fa8 60%, #f56fa0);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 22px rgba(255, 105, 155, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.topbar-main {
  flex: 1;
  min-width: 0;
}

.room-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(3, 14, 28, 0.6);
}

.room-title > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-subtitle {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  flex: none;
  padding-top: 2px;
  text-shadow: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fff;
  background: linear-gradient(135deg, #ff5f8f, #ff7fae);
  padding: 2px 5px;
  border-radius: 5px;
  flex: none;
  box-shadow: 0 3px 10px rgba(255, 95, 143, 0.4);
  text-shadow: none;
}

.live-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}

.room-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 8px rgba(3, 14, 28, 0.5);
  white-space: nowrap;
  overflow: hidden;
}

.sep-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex: none;
}

.conn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.conn-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7ef0b0;
  box-shadow: 0 0 7px rgba(126, 240, 176, 0.9);
}

.conn.off .conn-dot {
  background: #ffcf6e;
  box-shadow: 0 0 7px rgba(255, 207, 110, 0.9);
  animation: blink 1s infinite;
}

.topbar-actions {
  display: flex;
  gap: 7px;
}

/* 公告 */

.notice-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 6px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.notice-tag {
  font-size: 9px;
  font-weight: 800;
  color: #4a2a00;
  background: linear-gradient(135deg, #ffe19a, #ffc44d);
  padding: 2px 6px;
  border-radius: 5px;
  flex: none;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255, 196, 77, 0.32);
}

.marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-inner {
  display: flex;
  width: max-content;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  animation: marquee 34s linear infinite;
  white-space: nowrap;
}

.marquee-inner .m-item {
  padding-right: 44px;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* 麦位 */

.stage {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 14px 0;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 8px 0;
  width: 100%;
}

.seat {
  appearance: none;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px 4px;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}

.seat:active {
  transform: scale(0.95);
}

.seat[data-seat="0"] {
  grid-column: 1 / -1;
  padding-top: 10px;
  padding-bottom: 2px;
  margin-bottom: 1px;
}

.seat-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), rgba(20, 40, 65, 0.32) 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 24px rgba(4, 16, 32, 0.26);
  transition: box-shadow 0.2s, transform 0.16s, border-color 0.2s;
  overflow: visible;
}

.seat[data-seat="0"] .seat-avatar {
  width: 94px;
  height: 94px;
  border-width: 1.8px;
}

.seat-emoji {
  font-size: 31px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(4, 14, 28, 0.35));
}

.seat[data-seat="0"] .seat-emoji {
  font-size: 43px;
}

.mic-glyph {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 3px 7px rgba(3, 14, 30, 0.45));
}

.seat[data-seat="0"] .mic-glyph {
  width: 38px;
  height: 38px;
}

.seat-name {
  max-width: 94px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 4px rgba(2, 14, 28, 0.85),
    0 0 14px rgba(2, 14, 28, 0.45);
}

.seat[data-seat="0"] .seat-name {
  font-size: 13px;
}

.seat-sub {
  font-size: 9px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 4px rgba(2, 14, 28, 0.8),
    0 0 10px rgba(2, 14, 28, 0.4);
}

.seat.empty .seat-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.seat.occupied .seat-avatar {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 28px rgba(4, 16, 32, 0.3);
}

.seat.occupied .seat-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.45), transparent 48%);
  pointer-events: none;
}

/* 头像配色 */

.seat-avatar.av1 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.92), rgba(192, 38, 211, 0.78));
}
.seat-avatar.av2 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(219, 39, 119, 0.9), rgba(251, 113, 133, 0.78));
}
.seat-avatar.av3 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(8, 145, 178, 0.9), rgba(34, 211, 238, 0.72));
}
.seat-avatar.av4 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(180, 83, 9, 0.9), rgba(245, 158, 11, 0.78));
}
.seat-avatar.av5 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(4, 120, 87, 0.9), rgba(52, 211, 153, 0.74));
}
.seat-avatar.av6 {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.4), transparent 46%),
    linear-gradient(145deg, rgba(29, 78, 216, 0.9), rgba(96, 165, 250, 0.76));
}

/* 主持位 */

.seat.host-seat .seat-avatar {
  border-color: rgba(255, 215, 122, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 215, 122, 0.3),
    0 0 32px rgba(255, 205, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 28px rgba(4, 16, 32, 0.28);
}

.seat.host-seat .seat-name {
  color: #ffe9b8;
}

.crown {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  line-height: 1;
  z-index: 3;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.seat[data-seat="0"] .crown {
  top: 2px;
  font-size: 18px;
}

/* 闭麦标记 */

.seat-mute {
  position: absolute;
  right: -3px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(9, 22, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: #ff9eb3;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(3, 12, 24, 0.3);
}

.seat-mute .mic-glyph {
  width: 10px;
  height: 10px;
  filter: none;
}

/* 说话动效 */

.seat[data-speaking="true"] .seat-avatar {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.88),
    0 0 38px rgba(255, 158, 199, 0.8),
    0 12px 28px rgba(4, 16, 32, 0.3);
}

.seat[data-speaking="true"] .seat-avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: ripple 1.35s ease-out infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

/* 麦位提示 */

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  text-shadow: var(--text-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.topic-pill svg {
  opacity: 0.7;
}

/* 观众席 */

.audience {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 14px 6px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  min-height: 44px;
}

.audience-label {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}

.audience-label b {
  font-size: 10.5px;
  color: #fff;
  font-weight: 800;
}

.audience-list {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 34px;
}

.audience-list::-webkit-scrollbar {
  display: none;
}

.audience-item {
  width: 36px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.audience-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 8px rgba(4, 16, 32, 0.22);
}

.audience-name {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audience-empty {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.48);
  padding: 6px 2px;
}

/* 公屏 */

.chat {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  margin: 2px 12px 7px;
  padding: 6px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 23, 42, 0.4), rgba(7, 19, 35, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px);
  mask-image: linear-gradient(180deg, transparent 0, #000 16px);
}

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

.chat-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 100%;
  padding: 4px 0 2px;
}

.sys {
  text-align: center;
}

.sys span {
  display: inline-block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(3, 14, 28, 0.4);
}

.msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.msg-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 1px;
  box-shadow: 0 3px 8px rgba(4, 16, 32, 0.25);
}

.msg-body {
  min-width: 0;
  max-width: 85%;
}

.msg-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
  line-height: 1;
}

.msg-name .lv {
  font-size: 7.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 182, 212, 0.9), rgba(255, 127, 174, 0.85));
  color: #4a1730;
  line-height: 1.35;
}

.msg-name .noble {
  font-size: 7.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe19a, #ffc44d);
  color: #4a2a00;
  line-height: 1.35;
}

.msg-text {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 3px 12px 12px 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  word-break: break-word;
  text-shadow: 0 1px 6px rgba(3, 14, 28, 0.35);
}

.msg.mine .msg-text {
  background: linear-gradient(135deg, rgba(255, 158, 199, 0.32), rgba(255, 127, 174, 0.18));
  border-color: rgba(255, 182, 212, 0.3);
}

.gift-msg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 215, 122, 0.16), rgba(255, 158, 199, 0.11));
  border: 1px solid rgba(255, 215, 122, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gift-msg .g-emoji {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gift-msg .g-text {
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.gift-msg .g-name {
  color: #ffe3a3;
  font-weight: 700;
}

.gift-msg .g-gift {
  color: #ffb6d4;
  font-weight: 700;
}

/* 麦上状态浮标 */

.mic-chip {
  flex: none;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mic-chip-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ef0b0;
  box-shadow: 0 0 9px rgba(126, 240, 176, 0.9);
  flex: none;
}

.mic-chip.muted .chip-dot {
  background: #ff8fa3;
  box-shadow: 0 0 9px rgba(255, 143, 163, 0.9);
}

.mic-chip.muted .mic-chip-btn {
  color: #ffc0cd;
}

/* 底部操作条 */

.dock {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(4, 13, 26, 0), rgba(4, 13, 26, 0.32));
}

.dock-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(9, 24, 43, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 40px rgba(3, 12, 24, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.dock-input input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: none;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 4px;
  outline: none;
}

.dock-input input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.dock-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s, background 0.16s;
}

.dock-icon:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.dock-icon.gift {
  background: rgba(255, 158, 199, 0.16);
  border-color: rgba(255, 182, 212, 0.26);
}

.dock-icon.primary {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--grad);
  box-shadow:
    0 7px 20px rgba(255, 122, 167, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dock-icon.primary.on-mic {
  background: linear-gradient(135deg, #ff7d95, #ff9d7d);
  box-shadow:
    0 7px 20px rgba(255, 125, 149, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mic-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-svg.off {
  display: none;
}

.dock-icon.primary.on-mic .mic-svg.on {
  display: none;
}

.dock-icon.primary.on-mic .mic-svg.off {
  display: flex;
}

/* ==================================================================
   浮层 / 面板
   ================================================================== */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(3, 10, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  padding: 7px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #142943 0%, #0c1c31 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(103%);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s 0.3s;
  visibility: hidden;
  overscroll-behavior: contain;
}

.sheet.show {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1px auto 11px;
  flex: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  flex: none;
}

.sheet-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.sheet-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}

.sheet-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
}

.coin-balance {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 800;
  background: rgba(255, 215, 122, 0.12);
  border: 1px solid rgba(255, 215, 122, 0.24);
  border-radius: 999px;
  padding: 2px 4px 2px 8px;
}

.coin-balance b {
  font-weight: 800;
}

.coin-balance + .sheet-close {
  margin-left: 0;
}

.topup {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 215, 122, 0.2);
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0 0 1px;
}

/* 礼物 */

.gift-target {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex: none;
  min-width: 0;
}

.gift-target > span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  flex: none;
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

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

.chip {
  flex: none;
  font-family: inherit;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.16s;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip.active {
  background: linear-gradient(135deg, rgba(255, 182, 212, 0.35), rgba(255, 143, 184, 0.24));
  border-color: rgba(255, 196, 218, 0.55);
  color: #fff;
  font-weight: 700;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  overflow-y: auto;
  padding: 2px 0 11px;
  scrollbar-width: none;
  min-height: 0;
}

.gift-grid::-webkit-scrollbar {
  display: none;
}

.gift-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 3px 8px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s;
}

.gift-cell:active {
  transform: scale(0.96);
}

.gift-cell .g-emoji {
  font-size: 25px;
  line-height: 1.15;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.32));
}

.gift-cell .g-name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.gift-cell .g-price {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
}

.gift-cell.active {
  border-color: rgba(255, 215, 122, 0.6);
  background: linear-gradient(160deg, rgba(255, 215, 122, 0.15), rgba(255, 158, 199, 0.1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.gift-cell.active::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe19a, #ffc44d);
  color: #4a2a00;
  font-size: 8.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.sheet-cta {
  flex: none;
  height: 45px;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 122, 167, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sheet-cta:active {
  filter: brightness(1.08);
}

/* 表情 */

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  overflow-y: auto;
  padding: 2px 0 8px;
  min-height: 0;
}

.emoji-cell {
  border: none;
  background: none;
  font-size: 21px;
  padding: 7px 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  line-height: 1.2;
}

.emoji-cell:active {
  background: rgba(255, 255, 255, 0.1);
}

/* 更多 */

.more-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 2px;
}

.more-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.more-info-cover {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(145deg, #ffb6d4, #ff7fa8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.more-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.more-info-text b {
  font-size: 12px;
  font-weight: 700;
}

.more-info-text small {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
}

.more-badge {
  margin-left: auto;
  flex: none;
  font-size: 8.5px;
  font-weight: 700;
  color: #ffd9e7;
  background: rgba(255, 158, 199, 0.14);
  border: 1px solid rgba(255, 158, 199, 0.24);
  padding: 2px 6px;
  border-radius: 5px;
}

.more-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 11px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s;
}

.more-row:active {
  background: rgba(255, 255, 255, 0.09);
}

.more-row .ico {
  font-size: 15px;
}

.more-row small {
  margin-left: auto;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.35);
}

.more-row.danger {
  color: #ffb6c4;
  border-color: rgba(255, 110, 140, 0.2);
  background: rgba(255, 110, 140, 0.08);
}

.more-row.danger small {
  color: rgba(255, 182, 196, 0.5);
}

/* ==================================================================
   Toast / 特效
   ================================================================== */

.toast {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  max-width: 84%;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(9, 24, 43, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#fxLayer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.gift-fly {
  position: absolute;
  left: 50%;
  bottom: 118px;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 10px 28px rgba(255, 158, 199, 0.6));
  animation: gift-fly 1.9s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

.gift-fly.big {
  font-size: 92px;
  animation-duration: 2.2s;
}

@keyframes gift-fly {
  0% {
    transform: translate(-50%, 44px) scale(0.35);
    opacity: 0;
  }
  16% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.16);
  }
  55% {
    transform: translate(-50%, -130px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -330px) scale(0.75);
    opacity: 0;
  }
}

.gift-banner {
  position: absolute;
  top: 20%;
  left: 50%;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffe3a3;
  background: linear-gradient(120deg, rgba(17, 34, 57, 0.94), rgba(46, 20, 42, 0.94));
  border: 1px solid rgba(255, 215, 122, 0.34);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(255, 215, 122, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: gift-banner 2s ease forwards;
}

@keyframes gift-banner {
  0% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -26px);
  }
}

.gift-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 66%, rgba(255, 215, 122, 0.3), transparent 56%);
  animation: gift-flash 1.25s ease-out forwards;
}

@keyframes gift-flash {
  0% { opacity: 0; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}

.fx-emoji {
  position: absolute;
  bottom: 100px;
  font-size: 21px;
  animation: fx-float 1.9s ease-out forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

@keyframes fx-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.55);
  }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(-270px) scale(1.2) rotate(var(--rot, 18deg));
  }
}

/* ==================================================================
   小屏适配
   ================================================================== */

@media (max-width: 520px) {
  body {
    display: block;
  }

  #app {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-height: 820px) {
  .home-inner {
    justify-content: flex-start;
    padding-top: calc(22px + env(safe-area-inset-top));
  }

  .home-copy {
    margin-top: 24px;
  }

  .home-copy h2 {
    font-size: 30px;
  }

  .live-card {
    margin-top: 16px;
    padding: 10px;
  }

  .live-cover {
    width: 72px;
    height: 72px;
  }

  .enter-card {
    margin-top: 13px;
    padding: 13px;
  }

  .topic-card {
    margin-top: 9px;
    padding: 11px 14px 10px;
  }
}

@media (max-height: 760px) {
  .seat-avatar {
    width: 56px;
    height: 56px;
  }

  .seat[data-seat="0"] .seat-avatar {
    width: 76px;
    height: 76px;
  }

  .seat-emoji { font-size: 25px; }
  .seat[data-seat="0"] .seat-emoji { font-size: 34px; }
  .mic-glyph { width: 23px; height: 23px; }
  .seat[data-seat="0"] .mic-glyph { width: 30px; height: 30px; }
  .seat { padding: 4px 2px 3px; }
  .seat[data-seat="0"] { padding-top: 7px; }
  .seat-sub { font-size: 8px; }
  .seat-grid { gap: 6px 0; }
  .topic-pill { margin-top: 1px; padding: 4px 10px; }
  .audience { min-height: 40px; padding: 5px 10px; }
  .audience-list { min-height: 30px; }
  .audience-ava { width: 24px; height: 24px; font-size: 13px; }
  .topbar { padding-top: calc(11px + env(safe-area-inset-top)); }
  .dock { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

@media (max-height: 700px) {
  .notice-bar { margin-bottom: 4px; padding: 5px 8px; }
  .seat-avatar {
    width: 50px;
    height: 50px;
  }
  .seat[data-seat="0"] .seat-avatar {
    width: 66px;
    height: 66px;
  }
  .seat-emoji { font-size: 22px; }
  .seat[data-seat="0"] .seat-emoji { font-size: 30px; }
  .mic-glyph { width: 20px; height: 20px; }
  .seat[data-seat="0"] .mic-glyph { width: 27px; height: 27px; }
  .seat-name { font-size: 10px; }
  .seat[data-seat="0"] .seat-name { font-size: 11px; }
  .seat-sub { font-size: 8px; }
  .seat { gap: 3px; }
  .seat-grid { gap: 4px 0; }
  .topic-pill { display: inline-flex; margin-top: 2px; padding: 3px 9px; font-size: 8.5px; }
  .audience { margin-top: 4px; margin-bottom: 4px; min-height: 36px; }
  .audience-list { min-height: 26px; }
  .chat { margin-bottom: 5px; }
  .home-copy h2 { font-size: 27px; }
  .home-foot { display: none; }
}

@media (max-width: 380px) {
  .seat-name { max-width: 78px; }
  .dock-icon { width: 32px; height: 32px; }
  .dock-icon.primary { width: 36px; height: 36px; }
  .dock-input { padding-left: 12px; }
  .brand-tag { display: none; }
  .home-copy h2 { font-size: 30px; }
}
