/* ========== Lumen Studio 静态网页 UI（学习用） ========== */
:root {
  /* 色值对齐原站 CSS 变量 / Tailwind token */
  --bg: #1a0a1a;
  --bg-deep: #110811;
  --bg-tab: #0a040a;
  --card: #1e0e1e; /* bg-bg-card */
  --panel: #2a0f2a; /* bg-bg-panel */
  --pink: #e91e8c;
  --pink-hot: #e91e8c; /* 原站 text/bg-pink-hot = #e91e8c */
  --pink-2: #ff2d78; /* 原站 --pink-2，渐变辅色 */
  --coral: #f5a623;
  --danger: #ff3b3b;
  --good: #3ed47e;
  --text: #fff;
  --text-mute: #b9a4b9;
  --text-dim: #8a738a;
  --text-faint: #7a5f7a;
  --border: #3a1f3a;
  --border-soft: rgba(255, 255, 255, 0.05);
  --divider: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(42, 15, 42, 0.6);
  --grad: linear-gradient(90deg, #e91e8c, #f5a623); /* btn-grad / text-grad-pink */
  --grad-v: linear-gradient(180deg, #f5a623, #ff2d78);
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 999px;
  --pad: 16px;
  --max: 430px; /* 手机竖屏宽度 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* 对齐原站：整页滚动，非内层滚动条 */
  overflow-x: hidden;
  overflow-y: auto;
}

/* 隐藏滚动条外观（保留滚动能力，接近 App 观感） */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge 旧版 */
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button,
input {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 手机壳容器（对齐原站 app-frame + app-shell 径向光晕） */
#app {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: radial-gradient(
    1100px 600px at 50% -100px,
    rgba(233, 30, 140, 0.08),
    transparent 60%
  );
  position: relative;
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

.pressed:active,
.pressable:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* ========== 登录页（对齐原站 px-7 pt-20 pb-10） ========== */
#login-screen {
  position: relative;
  justify-content: flex-start; /* 原站非垂直居中 */
  padding: 80px 28px 40px;
  background-color: var(--bg);
  background-image: radial-gradient(
    1100px 600px at 50% -100px,
    rgba(233, 30, 140, 0.08),
    transparent 60%
  );
  min-height: 100vh;
  min-height: 100dvh;
}

.lang-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 18px;
}

.login-body {
  width: 100%;
}

.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px; /* mb-8 */
}

.logo-box {
  width: 80px; /* w-20 */
  height: 80px;
  border-radius: 24px; /* rounded-3xl */
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.45);
}

.logo-l {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.welcome {
  margin-top: 16px; /* mt-4 */
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.sub {
  margin-top: 4px; /* mt-1 */
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px; /* space-y-3 */
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px; /* mt-1 on input */
}

/* 防止 .field{display:flex} 覆盖原生 hidden */
.field[hidden] {
  display: none !important;
}

.field-label {
  color: var(--text-mute);
  font-size: 12px;
  line-height: 14px;
}

.field-input {
  width: 100%;
  border-radius: 12px; /* rounded-xl */
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 21px;
  -webkit-appearance: none;
  appearance: none;
}

.field-input::placeholder {
  color: var(--text-dim);
}

.field-input:focus {
  border-color: rgba(233, 30, 140, 0.45);
}

.btn-primary {
  width: 100%;
  margin-top: 8px; /* mt-2 */
  padding: 14px 0;
  border-radius: var(--pill);
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.btn-primary:disabled {
  opacity: 0.5;
}

.btn-ghost {
  width: 100%;
  margin-top: 0;
  padding: 14px 0;
  border-radius: var(--pill);
  border: 1px solid rgba(233, 30, 140, 0.6);
  color: #e91e8c;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  background: transparent;
}

/* ========== 主界面壳（整页滚动 + 底栏 fixed） ========== */
#main-screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}

#main-screen.active {
  display: block; /* 不要用 flex:1 卡住高度，交给文档滚动 */
}

.main-body {
  overflow: visible;
  padding-bottom: 80px; /* 给 fixed 底栏留空，对齐原站 pb-24 */
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

/* ========== 首页（对齐原站 px-4 pt-4 space-y-3） ========== */
.home-shell {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px; /* space-y-3 */
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
}

.bell-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(42, 15, 42, 0.7);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
}

/* Banner：图片 h-36 + 内部指示点 */
.banner-wrap {
  border-radius: 16px;
  overflow: hidden;
}

.banner-stage {
  height: 144px; /* h-36 */
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.banner-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-page {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.banner-card {
  width: 100%;
  height: 100%;
  background: var(--card) center / cover no-repeat;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* gap-1.5 */
  margin-top: 8px; /* mt-2 */
  height: 6px;
}

.dot {
  width: 6px; /* w-1.5 */
  height: 6px; /* h-1.5 */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.2s;
  cursor: pointer;
}

.dot.active {
  width: 20px; /* w-5 */
  background: #e91e8c;
}

/* 公告条 + 跑马灯 */
.announce {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(42, 15, 42, 0.7);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.announce-ico {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.announce-marquee {
  flex: 1;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 14s linear infinite;
}

.announce-item {
  padding-right: 48px;
  color: var(--text-mute);
  font-size: 12px;
}

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

/* 限时活动：通栏 -mx-4 + 底色 */
.event-block {
  margin-left: -16px;
  margin-right: -16px;
  background: #1a0a14;
}

.event-title {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.event-fire {
  margin-right: 6px;
}

.event-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 4px 4px;
}

.event-card {
  position: relative;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a0716 center / cover no-repeat;
  text-align: left;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.event-label {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 热门推荐 */
.hot-block .section-title,
#player-hot-title {
  cursor: pointer;
  user-select: none;
}

.hot-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  padding: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.video-card {
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.video-card:active {
  transform: scale(0.98);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #7a1f4f, #e91e8c, #f5a623) center / cover
    no-repeat;
}

.thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.hd-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.play-btn span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.video-info {
  padding: 8px 10px; /* px-2.5 py-2 */
}

.video-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  margin-top: 2px; /* mt-0.5 */
  color: var(--text-faint);
  font-size: 11px;
}

/* 视频 Tab：竖版封面 aspect-[3/4]（首页 / 播放页仍用 16:9） */
.video-grid-portrait .thumb-wrap {
  aspect-ratio: 3 / 4;
}

/* Booking — 对齐原站 #/main?tab=booking */
.booking-pad {
  padding: 16px var(--pad) 24px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.booking-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--card);
}

.booking-card-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.booking-card-meta {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.booking-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-card-sub,
.booking-card-interval {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-card-sub {
  color: rgba(255, 255, 255, 0.8);
}

.booking-card-interval {
  color: rgba(255, 255, 255, 0.7);
}

.booking-records-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.booking-records {
  color: var(--pink-hot);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: none;
}

.link-pink {
  color: var(--pink-hot);
  font-size: 14px;
  font-weight: 600;
}

/* ========== Video 页（对齐原站 #/main?tab=video：px-4 pt-4） ========== */
.video-shell {
  padding: 16px 16px 0; /* px-4 pt-4 */
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px; /* mb-2 */
}

.video-page-title {
  font-size: 18px; /* text-[18px] */
  font-weight: 600;
  line-height: 27px;
  color: #fff;
}

.clip-count {
  color: var(--text-mute); /* text-textmute */
  font-size: 12px;
  line-height: 18px;
}

.latest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0; /* py-2.5 */
}

.latest-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em; /* tracking-wide */
  line-height: 21px;
  color: #fff;
}

.latest-ico {
  margin-right: 6px; /* mr-1.5 */
}

.video-load-more {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: var(--pink-hot);
  padding: 16px 0; /* py-4 */
  background: transparent;
  border: none;
}

.video-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Profile / 我的（对齐原站 #/main?tab=profile） ========== */
.profile-shell {
  padding-bottom: 24px; /* pb-6 */
}

.profile-head {
  position: relative;
  padding: 48px 20px 24px; /* px-5 pt-12 pb-6 */
  overflow: hidden;
}

/* 原站头部粉红径向光晕 */
.profile-head-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 100% at 50% 0%,
    rgba(233, 30, 140, 0.5) 0%,
    rgb(26, 10, 26) 70%
  );
}

.settings-btn {
  position: absolute;
  top: 12px; /* top-3 */
  right: 12px; /* right-3 */
  z-index: 1;
  padding: 8px; /* p-2 */
  color: rgba(255, 255, 255, 0.8);
  line-height: 0;
}

.user-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
}

.avatar-ring {
  width: 64px; /* w-16 */
  height: 64px; /* h-16 */
  border-radius: 9999px;
  background: var(--grad); /* bg-pink-orange */
  overflow: hidden;
  /* shadow-fab */
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.45);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

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

.user-meta {
  min-width: 0;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px; /* mt-1 */
  background: rgba(245, 166, 35, 0.15); /* bg-coral/15 */
  color: var(--coral);
  font-size: 10px;
  line-height: 15px;
  padding: 2px 8px; /* px-2 py-0.5 */
  border-radius: 9999px;
}

.profile-body {
  padding: 0 16px; /* px-4 */
  margin-top: -12px; /* -mt-3 */
  display: flex;
  flex-direction: column;
  gap: 12px; /* space-y-3 */
}

.action-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* gap-2 */
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px; /* rounded-2xl */
  padding: 12px; /* p-3 */
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  text-align: left;
  padding: 8px; /* p-2 */
  border-radius: 12px; /* rounded-xl */
}

.action-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.icon-circle {
  width: 36px; /* w-9 */
  height: 36px; /* h-9 */
  border-radius: 9999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-circle.pink {
  background: rgba(233, 30, 140, 0.15); /* bg-pink-hot/15 */
  color: #e91e8c;
}

.icon-circle.coral {
  background: rgba(245, 166, 35, 0.15); /* bg-coral/15 */
  color: var(--coral);
}

.action-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 19.5px;
}

.action-sub {
  margin-top: 0;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 16.5px;
}

.stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px; /* p-4 */
}

.stat-item {
  position: relative;
}

.stat-item + .stat-item {
  padding-left: 16px; /* pl-4 */
  border-left: 1px solid var(--border-soft);
}

.stat-label {
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 16.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px; /* mt-1 */
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 33px;
}

.stat-value.coral {
  color: var(--coral);
}

.menu-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px; /* px-4 py-3.5 */
  border-bottom: 1px solid var(--border-soft); /* divide-white/5 */
  width: 100%;
  text-align: left;
  color: #fff;
  transition: background-color 0.15s ease;
}

.menu-row:last-child {
  border-bottom: none;
}

.menu-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  font-size: 14px;
  color: #fff;
}

.menu-ico {
  width: 32px; /* w-8 */
  height: 32px; /* h-8 */
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: rgba(233, 30, 140, 0.12); /* bg-pink-hot/[0.12] */
  color: #e91e8c;
}

.menu-chevron {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

/* 底部导航 */
.tab-bar {
  /* 对齐原站：fixed 底栏，页面整体下拉滚动 */
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  height: 72px;
  background: var(--bg-tab);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  z-index: 40;
  box-sizing: border-box;
}

.tab-side {
  flex: 1;
  display: flex;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-mute);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.tab-ico {
  display: block;
}

.tab-item.active {
  color: #e91e8c;
}

.fab-slot {
  width: 64px;
}

.fab {
  position: absolute;
  left: 50%;
  top: -18px;
  margin-left: -28px; /* 代替 transform，避免与底栏 translate 冲突 */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(233, 30, 140, 0.45);
  display: grid;
  place-items: center;
}

.fab-plus {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-top: -2px;
}

.fab:active {
  opacity: 0.85;
  transform: scale(0.96);
}

/* FAB 弹层 */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  align-items: flex-end;
  justify-content: center;
}

.modal-mask.open {
  display: flex;
}

.sheet {
  width: 100%;
  max-width: var(--max);
  background: var(--card);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  padding: 20px 20px 36px;
}

.sheet h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.sheet-item {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 15px;
}

.sheet-item:last-child {
  border-bottom: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: rgba(30, 14, 30, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--pill);
  font-size: 13px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* 登录/注册提示弹窗 */
.auth-tip {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-tip[hidden] {
  display: none !important;
}

.auth-tip-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.auth-tip-panel {
  position: relative;
  width: min(300px, 86vw);
  background: #2a1a28;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.auth-tip-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.auth-tip-msg {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.auth-tip-ok {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), #f5a623);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== 消息中心子页 ========== */
#message-screen {
  background: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
}

#message-screen.active {
  display: flex;
  flex-direction: column;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 48px;
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: rgba(26, 10, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  box-sizing: content-box;
}

/* 对齐原站：外层 sticky + 内层 h-12 px-3 */
.subpage-header:has(.subpage-header-inner) {
  display: block;
  height: auto;
  padding: env(safe-area-inset-top, 0px) 0 0;
  box-sizing: border-box;
}

.subpage-header-inner {
  display: flex;
  align-items: center;
  height: 48px; /* h-12 */
  padding: 0 12px; /* px-3 */
}

.subpage-side {
  width: 40px; /* w-10 */
  flex-shrink: 0;
}

.subpage-back {
  padding: 8px;
  margin-left: -8px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 0;
}

.subpage-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-body {
  padding: 12px 16px 24px;
}

.message-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
}

.message-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-date {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 11px;
}

/* ========== 限时活动 / 激活页（对齐原站 #/bet：flex min-h-screen flex-col pb-4） ========== */
#event-screen {
  background: transparent; /* 光晕由 #app 提供，对齐原站 app-shell */
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 16px; /* pb-4 */
}

#event-screen.active {
  display: flex;
  flex-direction: column;
}

.subpage-side-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  min-width: 40px; /* min-w-10 */
  max-width: 40%; /* max-w-[40%] */
  padding-left: 4px; /* pl-1 */
}

.event-records {
  color: var(--pink-hot); /* text-pink-hot */
  font-size: 12px;
  padding: 0;
  white-space: nowrap;
  line-height: 18px;
}

.event-page-body {
  /* 原站 px-4 pt-3：不做 flex 拉伸，内容顶对齐 */
  padding: 12px 16px 0;
  flex: 0 1 auto;
}

.event-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card); /* bg-bg-card */
  border: 1px solid var(--border-soft); /* border-white/5 */
  border-radius: 16px; /* rounded-2xl */
  padding: 12px; /* p-3 */
}

.event-info-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 16.5px;
}

.event-info-value {
  margin-top: 2px; /* mt-0.5 */
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 22.5px;
}

.event-info-right {
  text-align: right;
}

/* 原站：外层 mt-0.5 text-[18px]，内层 font-mono text-danger */
.event-countdown-wrap {
  margin-top: 2px;
  font-size: 18px;
  line-height: 27px;
}

.event-countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--danger);
}

.event-balance {
  margin-top: 8px; /* mt-2 */
  font-size: 12px;
  color: var(--text-mute);
  text-align: right;
  line-height: 18px;
}

.event-balance-num {
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.event-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* grid-cols-2 */
  gap: 12px; /* gap-3 */
  margin-top: 16px; /* mt-4 */
  align-items: start;
}

.event-option-cell {
  aspect-ratio: 1 / 1; /* 原站外层 aspect-square */
  width: 100%;
  min-width: 0;
}

.event-option {
  width: 100%;
  height: 100%;
  border-radius: 16px; /* rounded-2xl */
  border: 1px solid var(--border-soft);
  background: var(--card);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; /* gap-2 */
  padding: 16px; /* p-4 */
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.event-option .opt-emoji {
  font-size: 44px; /* text-[44px] */
  line-height: 1.5;
}

.event-option .opt-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.event-option .opt-multi {
  font-size: 11px;
  opacity: 0.7;
  line-height: 16.5px;
}

.event-option.selected {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, rgb(233, 30, 140) 0%, rgb(245, 166, 35) 100%);
}

/* 对齐原站：mt-auto sticky bottom-0 + px-3 pt-2 pb-3 */
.event-footer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 30;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: transparent;
}

.event-footer {
  display: flex;
  align-items: center;
  gap: 8px; /* gap-2 */
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1); /* border-white/10 */
  border-radius: 16px; /* rounded-2xl */
  padding: 10px 12px; /* px-3 py-2.5 */
  box-sizing: border-box;
}

.event-points-input {
  min-width: 0;
  width: 0;
  flex: 1 1 0%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  padding: 0;
  margin: 0;
}

.event-points-input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.event-footer-meta {
  width: 72px; /* w-[72px] */
  flex-shrink: 0;
  text-align: right;
  line-height: 1.25; /* leading-tight */
  color: var(--text-mute);
}

.event-total-label {
  font-size: 11px;
  line-height: 13.75px;
}

.event-total-num {
  font-size: 12px;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 原站：合计超过余额时 text-danger */
.event-total-num.is-over {
  color: var(--danger);
}

/* 原站：mt-0.5 truncate text-[10px] text-pink-hot */
.event-selected-row {
  margin-top: 2px;
  font-size: 10px;
  color: var(--pink-hot);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-selected-row:empty {
  display: none;
  margin-top: 0;
}

.event-clear {
  width: 36px; /* w-9 */
  height: 36px; /* h-9 */
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: none;
  padding: 0;
}

.event-clear span {
  font-size: 16px;
  line-height: 1;
}

.event-activate {
  height: 36px; /* h-9 */
  min-width: 82px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 12px; /* leading-none */
  flex-shrink: 0;
  border: none;
}

.event-activate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 原站 max-[340px]：窄屏底栏换行 */
@media (max-width: 340px) {
  .event-footer {
    flex-wrap: wrap;
  }

  .event-points-input {
    order: 1;
    flex-basis: calc(100% - 80px);
  }

  .event-footer-meta {
    order: 2;
  }

  .event-clear {
    order: 3;
  }

  .event-activate {
    order: 4;
    flex: 1 1 auto;
  }
}

/* ========== 激活记录页（对齐原站 #/betRecords） ========== */
#records-screen {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

#records-screen.active {
  display: flex;
  flex-direction: column;
}

.records-body {
  padding: 12px 16px 24px;
}

.records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  min-height: 320px;
}

.records-empty-icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.records-empty-icon .ring-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--panel);
}

.records-empty-icon .ring-line {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(233, 30, 140, 0.3);
}

.records-empty-icon .ring-no {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.records-empty-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.records-empty-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
}

.records-list {
  display: flex;
  flex-direction: column;
}

.record-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.record-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.record-issue {
  font-size: 12px;
  color: var(--text-mute);
}

.record-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(62, 212, 126, 0.15);
  color: var(--good);
  white-space: nowrap;
}

.record-status.is-lost {
  background: rgba(255, 59, 59, 0.12);
  color: var(--danger);
}

.record-status.is-pending {
  background: rgba(245, 166, 35, 0.15);
  color: var(--coral);
}

.record-card-mid {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-content {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}

.record-order {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-faint);
}

.record-amount {
  font-size: 18px;
  font-weight: 600;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.record-divider {
  height: 1px;
  background: var(--divider);
  margin: 10px 0;
}

.record-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
}

.record-auth {
  color: var(--good);
}

.record-auth.is-lost {
  color: var(--danger);
}

.record-auth.is-pending {
  color: var(--coral);
}

.records-nomore {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  padding: 16px 0;
}

/* ========== 钱包 / 提现 / 资金明细 ========== */
#wallet-screen,
#withdraw-screen,
#fund-screen {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

#wallet-screen.active,
#withdraw-screen.active,
#fund-screen.active {
  display: flex;
  flex-direction: column;
}

.wallet-body,
.withdraw-body,
.fund-body {
  padding: 12px 16px 24px;
}

.wallet-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(233, 30, 140, 0.4);
  color: var(--pink-hot);
  font-size: 13px;
  background: transparent;
}

.wallet-card-list {
  margin-top: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.wallet-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.wallet-card-row:last-child {
  border-bottom: none;
}

.wallet-card-label {
  font-size: 13px;
  color: var(--text-mute);
}

.wallet-card-hint {
  font-size: 13px;
  color: #fff;
  text-align: right;
  word-break: break-all;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-field label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.wallet-field input {
  width: 100%;
  background: rgba(42, 15, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.wallet-field input:focus {
  border-color: rgba(233, 30, 140, 0.6);
}

.wallet-field input::placeholder {
  color: var(--text-faint);
}

.wallet-form-err {
  font-size: 12px;
  color: var(--danger);
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
}

.btn-grad-block {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.btn-grad-block:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.withdraw-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
}

.withdraw-label {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.withdraw-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.withdraw-currency {
  font-size: 24px;
  color: var(--text-mute);
}

.withdraw-amount-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.withdraw-amount-input::placeholder {
  color: var(--text-faint);
}

.withdraw-available {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-mute);
}

.withdraw-available-num {
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.withdraw-rules {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-faint);
}

.withdraw-bank-tip {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  font-size: 12px;
  color: var(--danger);
}

.link-underline {
  color: var(--pink-hot);
  text-decoration: underline;
  margin-left: 4px;
}

#withdraw-apply {
  margin-top: 24px;
}

.fund-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.fund-tabs::-webkit-scrollbar {
  display: none;
}

.fund-tab {
  position: relative;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-mute);
  white-space: nowrap;
  background: transparent;
  border: none;
}

.fund-tab.active {
  color: #fff;
  font-weight: 600;
}

.fund-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.fund-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.fund-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fund-row-label {
  font-size: 13px;
  color: #fff;
}

.fund-row-time {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-faint);
}

.fund-row-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fund-row-status {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-mute);
  text-align: right;
}

.fund-row-reason {
  margin-top: 6px;
  font-size: 11px;
  color: var(--danger);
  word-break: break-word;
}

.recharge-box {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
}

.recharge-box .wallet-field {
  margin-bottom: 12px;
}

.fund-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.fund-skeleton-item {
  height: 64px;
  border-radius: 12px;
  background: rgba(42, 15, 42, 0.4);
  animation: fund-pulse 1.2s ease-in-out infinite;
}

@keyframes fund-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

.fund-load-more {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--pink-hot);
  padding: 16px 0;
  background: transparent;
  border: none;
}

.fund-load-more:disabled {
  opacity: 0.5;
}

/* ========== 设置页（对齐原站 #/settings） ========== */
#settings-screen {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
}

#settings-screen.active {
  display: flex;
  flex-direction: column;
}

.settings-body {
  padding: 12px 16px 24px;
}

.settings-list {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.settings-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  color: #fff;
  text-align: left;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-label {
  font-size: 14px;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.settings-row-hint {
  font-size: 13px;
  color: var(--text-mute);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-chevron {
  color: var(--text-faint);
  font-size: 16px;
}

.settings-form {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-form label {
  font-size: 12px;
  color: var(--text-mute);
}

.settings-form input {
  width: 100%;
  background: rgba(42, 15, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.settings-form input:focus {
  border-color: rgba(233, 30, 140, 0.6);
}

.settings-form input::placeholder {
  color: var(--text-faint);
}

.settings-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.settings-btn-cancel {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-mute);
  font-size: 13px;
  background: transparent;
}

.settings-btn-save {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.settings-logout {
  margin-top: 24px;
}

/* ========== 播放页（对齐原站 #/player） ========== */
#player-screen {
  background: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
}

#player-screen.active {
  display: flex;
  flex-direction: column;
}

.player-body {
  padding: 12px 16px 24px; /* px-4 pt-3 pb-6 */
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px; /* rounded-2xl */
  background: #000;
  object-fit: contain;
}

.player-meta {
  margin-top: 12px; /* mt-3 */
}

.player-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.player-plays {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-faint);
}

.player-hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0; /* py-2.5 */
}


/* 删除银行卡 */
.wallet-del-btn {
  color: #ff6b8a !important;
  border-color: rgba(255, 107, 138, 0.55) !important;
}


/* Reference homepage measurements and the original Inter font resources. */
html, body { font-family: "__Inter_f367f3", "__Inter_Fallback_f367f3", system-ui, sans-serif; line-height: 1.5; background: #0a040a; }
body { background-image: radial-gradient(1100px 600px at 50% -100px,rgba(233,30,140,.08),transparent 60%); }
#app { background-image: none; }
.main-body { padding-bottom: 96px; }
.brand-logo { font-size: 16px; }
.banner-track { position: relative; overflow: hidden; }
.banner-page { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms; pointer-events: none; }
.banner-page.active { opacity: 1; pointer-events: auto; }
.banner-card { display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 16px; }
.banner-featured { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.7); }
.banner-caption strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; }
.banner-caption > span { display: block; font-size: 12px; margin-top: 4px; color: rgba(255,255,255,.8); }
.dot { flex: 0 0 auto; }
.announce[hidden] { display: none; }
.announce .marquee-track { animation-duration: 22s; }
.event-card::after { background: radial-gradient(circle at 50% 8%,rgba(255,255,255,.22),transparent 32%),linear-gradient(180deg,transparent 35%,rgba(0,0,0,.42)); }
.hot-block { gap: 0; }
.hot-block .section-title { padding: 10px 0; line-height: 21px; }
.tab-bar { background: rgba(13,5,13,.95); backdrop-filter: blur(8px); padding-bottom: 0; align-items: stretch; }
.tab-side { flex: 2; }
.tab-item { height: 100%; letter-spacing: 0; font-size: 10px; line-height: 15px; }
.fab-slot { flex: 1; width: auto; }
.fab { width: 64px; height: 64px; top: -28px; margin-left: -32px; }
.fab-plus { margin-top: 0; }
.catalog-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 166px; color: var(--text-mute); font-size: 13px; border-radius: 16px; border: 1px solid var(--border-soft); background: rgba(42,15,42,.35); }
.catalog-retry { color: var(--pink-hot); padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; }
.home-message { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.home-message h3 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.home-message p { white-space: pre-wrap; font-size: 13px; }
.home-message time { display: block; font-size: 11px; color: var(--text-faint); margin-top: 12px; }
@media (max-width: 639px) { :root { --max: 100%; } }
@media (prefers-reduced-motion: reduce) { .banner-page { transition: none; } .announce .marquee-track { animation: none; } }


/* Managed homepage banners and marquee settings. */
.banner-wrap[hidden], #banner-dots[hidden], .announce[hidden] { display: none; }
.banner-card { text-decoration: none; color: inherit; justify-content: flex-end; }
.banner-card:not(.is-linked) { cursor: default; }
.banner-stage { touch-action: pan-y; }
#announce-track { width: max-content; }
#announce-track .announce-item { display: inline-block; flex: 0 0 auto; }

/* 开奖结果弹窗（复用 auth-tip） */
.auth-tip-panel:has(.auth-tip-list:not([hidden])) {
  width: min(328px, 90vw);
  text-align: left;
  padding: 20px 16px 14px;
}
.auth-tip-list {
  margin: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-tip-row {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.auth-tip-row.is-hit {
  padding: 13px 12px 11px;
  border-color: rgba(233, 30, 140, 0.5);
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.28), rgba(122, 20, 70, 0.35) 55%, rgba(245, 166, 35, 0.12));
  box-shadow: 0 0 0 1px rgba(233, 30, 140, 0.12), 0 8px 20px rgba(233, 30, 140, 0.12);
}
.auth-tip-row.is-lost {
  padding: 8px 10px 7px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  opacity: 0.92;
  transform: scale(0.97);
  transform-origin: center top;
}
.auth-tip-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.auth-tip-row-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.auth-tip-row.is-lost .auth-tip-row-name {
  font-size: 14px;
  font-weight: 600;
}
.auth-tip-row-status {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.auth-tip-row.is-hit .auth-tip-row-status {
  font-size: 14px;
  background: linear-gradient(90deg, #ff4fa3, #f5a623);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-tip-row.is-lost .auth-tip-row-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}
.auth-tip-row-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
}
.auth-tip-row.is-lost .auth-tip-row-meta {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}
.auth-tip-panel:has(.auth-tip-list:not([hidden])) .auth-tip-title {
  text-align: center;
  margin-bottom: 6px;
}
.auth-tip-panel:has(.auth-tip-list:not([hidden])) .auth-tip-msg {
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.auth-tip-msg[hidden] {
  display: none !important;
}


/* Account notification state and message centre. */
.notification-dot, .notification-item-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; flex: 0 0 8px; }
.notification-dot[hidden], .notification-item-dot[hidden], .notification-content[hidden], #msg-mark-all[hidden], #msg-retry[hidden], #msg-load-more[hidden] { display: none; }
.bell-btn, .tab-item[data-tab="profile"] { position: relative; }
.notification-bell-dot { position: absolute; top: 4px; right: 4px; border: 1.5px solid var(--bg); width: 9px; height: 9px; }
.notification-tab-dot { position: absolute; top: 12px; left: calc(50% + 8px); }
.notification-toolbar { display: flex; justify-content: flex-end; min-height: 28px; margin-bottom: 8px; }
.notification-text-button { color: var(--pink-hot); padding: 6px 0; font-size: 12px; }
.notification-text-button:disabled { opacity: .5; }
.notification-list { display: grid; gap: 12px; }
.notification-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.notification-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; padding: 16px; text-align: left; }
.notification-title { flex: 1; min-width: 0; color: #fff; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.notification-date { display: block; flex-basis: 100%; color: var(--text-faint); font-size: 11px; }
.notification-content { padding: 0 16px 16px; font-size: 13px; line-height: 1.7; color: var(--text-mute); white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-status { color: var(--text-mute); font-size: 13px; white-space: pre-wrap; margin: 8px 0; }
.notification-status:empty { display: none; }
.notification-footer { display: block; width: 100%; text-align: center; padding: 18px 0; }


/* Keep the overlapping profile cards above the avatar header background. */
#tab-profile .profile-shell { isolation: isolate; }
#tab-profile .profile-head { z-index: 0; }
#tab-profile .profile-head-glow { z-index: -1; }
#tab-profile .profile-body { position: relative; z-index: 1; }


/* Never display the login form before the server has checked the session. */
#session-screen.active { display: flex; align-items: center; justify-content: center; padding: 32px; }
.session-panel { width: 100%; max-width: 300px; text-align: center; color: var(--text-mute); }
.session-logo { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 20px; background: var(--grad); color: #fff; font-size: 34px; font-weight: 700; }
.session-spinner { width: 20px; height: 20px; margin: 0 auto 16px; border: 2px solid var(--border); border-top-color: var(--pink-hot); border-radius: 50%; animation: session-spin .8s linear infinite; }
#session-retry.session-logo { margin: 0 auto 24px; padding: 0; overflow: hidden; }
.session-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
#session-retry:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 4px; }
#session-retry[hidden], #session-spinner[hidden] { display: none; }
@keyframes session-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .session-spinner { animation: none; } }

.settings-form-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}


/* Ellipsis needs a block text box; the old flex text container only clipped names. */
/* Larger event cards with a glimpse of the next card; all venues remain scrollable. */
#event-row {
  margin-inline: 12px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4px) / 3.2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 30, 140, .45) transparent;
}
#event-row::-webkit-scrollbar { height: 3px; }
#event-row::-webkit-scrollbar-thumb { background: rgba(233, 30, 140, .45); border-radius: 3px; }
#event-row .event-card { min-width: 0; height: 94px; scroll-snap-align: start; user-select: none; -webkit-user-select: none; }
#event-row.is-dragging { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) {
  #event-row, #event-row .event-card { cursor: grab; }
  #event-row.is-dragging, #event-row.is-dragging .event-card { cursor: grabbing; }
}
#event-row .event-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Put the toolbar spacing on its visible action so an empty row takes no space. */
#message-screen .notification-toolbar { min-height: 0; margin-bottom: 0; }
#message-screen #msg-mark-all { min-height: 28px; margin-bottom: 8px; }


/* Loading floats over the page without a mask or a row in the message list. */
.notification-loading {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
}
.notification-loading[hidden] { display: none; }
.notification-loading-spinner {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: var(--pink-hot);
  border-radius: 50%;
  animation: session-spin .75s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .notification-loading-spinner { animation: none; } }
