:root {
  --brand-blue: #00aaff;
  --brand-blue-dark: #0095e5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-page: #ffffff;
  --bg-desktop: #f2f3f5;
  --bg-soft: #f7f7f7;
  --bg-chip: #f0f0f0;
  --divider: #e6e6e6;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
}

@media (min-width: 540px) {
  body {
    background: var(--bg-desktop);
    display: flex;
    justify-content: center;
  }

  .app-shell {
    max-width: 430px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }
}

/* 加载态 */
.loading-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dots {
  display: inline-flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b5b5b5;
  animation: dot-bounce 1.2s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.24s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.12s;
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.45);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 顶部打开 App 导航栏（动态页等使用） */
.top-open-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--divider);
}

.top-open-bar__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.top-open-bar__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-open-bar__btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.top-open-bar--dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  transition: opacity 0.18s ease;
}

.top-open-bar--dark .top-open-bar__title {
  color: #ffffff;
}

/* 毛玻璃头图区域（游戏详情 & 个人主页共用） */
.hero-header {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-header__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.1);
}

.hero-header__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.hero-header__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-game-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero-avatar-ring {
  padding: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-chip);
}

.hero-title {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-primary-btn {
  margin-top: 18px;
  width: 176px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.hero-primary-btn img {
  width: 20px;
  height: 20px;
}

/* 通用主体容器 */
.content-section {
  background: #ffffff;
  padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
}

/* 作者信息行 */
.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-row__clickable {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-chip);
  flex-shrink: 0;
}

.avatar-xs {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-chip);
  flex-shrink: 0;
}

.author-meta {
  min-width: 0;
  flex: 1;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-time {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-follow {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--bg-chip);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-follow--block {
  flex: 1;
  height: 36px;
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-share-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-chip);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-share-chip img {
  width: 20px;
  height: 20px;
}

/* 横向游戏截图 */
.horizontal-gallery {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-gallery::-webkit-scrollbar {
  display: none;
}

.horizontal-gallery__img {
  height: 200px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
  cursor: pointer;
}

.moment-title {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

/* 文本块 */
.body-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.body-text--muted {
  color: var(--text-muted);
}

.section-divider {
  margin: 16px 0;
  height: 0.5px;
  background: var(--divider);
}

/* 互动操作栏（点赞 / 收藏或评论 / 转发） */
.action-bar {
  margin-top: 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  min-width: 64px;
}

.action-btn img {
  width: 36px;
  height: 36px;
}

/* 个人主页封面与资料卡（对齐 Flutter OtherProfilePage + ProfileCard） */
.profile-cover {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #222222;
}

.profile-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover__blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.1);
}

.profile-cover__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.profile-card {
  background: #ffffff;
  padding: 0 20px 14px;
}

.profile-card__head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  min-height: 62px;
}

.profile-card__avatar-wrap {
  margin-top: -28px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-chip);
}

.profile-card__relations {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 6px;
}

.profile-rel-item {
  text-align: center;
  cursor: pointer;
}

.profile-rel-item__val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.profile-rel-item__label {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-card__name {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.profile-card__motto {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-card__motto--empty {
  color: var(--text-muted);
}

.profile-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-actions .btn-follow--block {
  height: 40px;
}

.profile-actions .btn-share-chip {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}

.section-band {
  height: 10px;
  background: var(--bg-soft);
}

.profile-tabs {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0 20px;
  border-bottom: 0.5px solid var(--divider);
}

.profile-tab {
  position: relative;
  height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.profile-tab--active {
  color: var(--text-primary);
}

.profile-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand-blue);
}

/* 动态详情顶栏、时间与横向操作栏（对齐 Flutter MomentImageTextDetailPage + MomentCard） */
.moment-author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
}

.moment-author-bar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.moment-author-bar__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-follow-btn {
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.content-section--moment {
  padding-top: 4px;
  padding-bottom: 4px;
}

.content-section--moment:last-child {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.content-section--moment .moment-single-img,
.content-section--moment .moment-img-grid {
  margin-top: 0;
}

.moment-publish-time {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.moment-action-bar {
  margin-top: 14px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.moment-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.moment-action-btn img {
  width: 24px;
  height: 24px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 作品网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.work-card {
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.work-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-chip);
}

.work-card__info {
  padding: 8px;
}

.work-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 动态图片与视频 */
.moment-single-img {
  margin-top: 14px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  cursor: pointer;
}

.moment-img-grid {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.moment-img-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.moment-img-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.moment-img-grid__item {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
}

/* 全屏深色沉浸式视频动态页（对齐 Flutter MomentVideoDetailPage） */
.video-moment-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.video-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(60px + max(10px, env(safe-area-inset-bottom)));
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-stage__player,
.video-stage__poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 对齐 Flutter VideoScreen.contentAlignment = Alignment(0, -0.118) */
  object-position: center 44%;
  background: #000000;
}

.video-stage__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-stage__play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s ease;
}

.video-stage__play-btn img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.video-moment-page.is-playing .video-stage__play-btn,
.video-moment-page.is-buffering .video-stage__play-btn {
  opacity: 0;
}

.video-stage__spinner {
  position: absolute;
  display: none;
  gap: 8px;
}

.video-moment-page.is-buffering .video-stage__spinner {
  display: inline-flex;
}

.video-stage__spinner span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: dot-bounce 1.2s infinite ease-in-out both;
}

.video-stage__spinner span:nth-child(1) {
  animation-delay: -0.24s;
}

.video-stage__spinner span:nth-child(2) {
  animation-delay: -0.12s;
}

.video-expand-backdrop {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.video-moment-page.is-expanded .video-expand-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.video-info-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.video-info-body {
  padding: 40px 70px 0 20px;
  pointer-events: auto;
}

.video-moment-page.is-expanded .video-info-body {
  padding-right: 20px;
}

.video-author-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.video-author-row__user {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100% - 62px);
  cursor: pointer;
}

.video-author-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.video-author-row__name {
  margin: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-follow-btn {
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  flex-shrink: 0;
}

.video-info-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  word-break: break-word;
  cursor: pointer;
}

.video-info-desc {
  font-size: 16px;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.video-moment-page.is-expanded .video-info-desc {
  display: block;
  max-height: 42vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 对齐 ForwardGameTile.compact(bgColor: Color(0x80333333)) */
.video-link-card {
  margin-top: 10px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(51, 51, 51, 0.5);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.video-link-card__icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.video-link-card__meta {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 8px;
}

.video-link-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-link-card__sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #999999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-meta-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-pullback-btn {
  display: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.video-moment-page.is-expanded .video-pullback-btn {
  display: inline-block;
}

.video-comment-bar {
  margin-top: 20px;
  background: #1a1a1a;
  padding: 10px 20px calc(10px + max(10px, env(safe-area-inset-bottom)));
  pointer-events: auto;
}

.video-comment-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #333333;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  text-align: left;
  display: flex;
  align-items: center;
}

/* 右侧纵向操作栏（对齐 MomentVideoActionBar） */
.video-right-actions {
  position: absolute;
  right: 10px;
  bottom: calc(84px + max(10px, env(safe-area-inset-bottom)));
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-right-actions__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: opacity 0.15s ease;
}

.video-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  min-width: 44px;
}

.video-action-btn__icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.video-action-btn__label {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.video-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.video-clear-btn__icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* 底部 2px 进度条与拖动时间预览（对齐 VideoProgressBar） */
.video-progress-wrap {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(48px + max(10px, env(safe-area-inset-bottom)));
  z-index: 22;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.video-progress-time {
  margin-bottom: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.video-progress-time__cur {
  color: #ffffff;
}

.video-progress-time__dur {
  color: rgba(255, 255, 255, 0.5);
}

.video-moment-page.is-scrubbing .video-progress-time {
  opacity: 1;
}

.video-progress-hit {
  height: 24px;
  display: flex;
  align-items: center;
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
}

.video-progress-rail {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.54);
}

.video-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 1px;
  background: #ffffff;
}

.video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: width 0.12s ease, height 0.12s ease;
}

.video-moment-page.is-scrubbing .video-progress-thumb {
  width: 10px;
  height: 10px;
}

/* 交互态淡隐规则（对齐 MomentVideoDetailPage._wrapFade） */
.video-moment-page.is-cleared .top-open-bar--dark,
.video-moment-page.is-cleared .video-info-overlay,
.video-moment-page.is-cleared .video-right-actions__main,
.video-moment-page.is-cleared .video-progress-wrap,
.video-moment-page.is-scrubbing .video-info-overlay,
.video-moment-page.is-scrubbing .video-right-actions__main,
.video-moment-page.is-scrubbing .video-clear-btn,
.video-moment-page.is-expanded .video-right-actions__main,
.video-moment-page.is-expanded .video-clear-btn {
  opacity: 0;
  pointer-events: none;
}

.video-moment-page.is-cleared .video-info-body,
.video-moment-page.is-cleared .video-comment-bar,
.video-moment-page.is-cleared .video-progress-hit,
.video-moment-page.is-scrubbing .video-info-body,
.video-moment-page.is-scrubbing .video-comment-bar {
  pointer-events: none;
}

/* 图文动态关联游戏卡片（对齐 Flutter ForwardGameTile.compact：高 56px、左贴边 56x56 图标、无箭头） */
.link-card {
  margin-top: 16px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.link-card__icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--bg-chip);
  flex-shrink: 0;
}

.link-card__meta {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 8px;
}

.link-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 评论预览 */
.comments-block {
  margin-top: 20px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-item__body {
  flex: 1;
  min-width: 0;
}

.comment-item__text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
  word-break: break-word;
}

/* 底部主引导按钮 */
.bottom-cta-btn {
  margin-top: 24px;
  width: 100%;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-cta-btn:active {
  background: var(--brand-blue-dark);
}

/* 失效页 & 下载页 */
.center-page {
  min-height: 100vh;
  padding: 32px 24px calc(48px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fail-page__img {
  width: 196px;
  height: 116px;
  object-fit: contain;
}

.fail-page__tip {
  margin: 32px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #b5b5b5;
}

.fail-page__sub {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #b5b5b5;
}

.download-page {
  min-height: 100vh;
  padding: 48px 24px calc(56px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-page__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.download-page__logo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
}

.download-page__title {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.download-page__tip {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
}

.download-page__url {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-all;
  text-align: center;
  user-select: all;
}

/* 弹窗 & 微信转发引导 & 图片灯箱 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-card {
  width: 100%;
  max-width: 312px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dialog-card__msg {
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.dialog-card__actions {
  display: flex;
  height: 52px;
  border-top: 0.5px solid var(--divider);
}

.dialog-card__btn {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.dialog-card__btn--cancel {
  color: var(--text-muted);
  border-right: 0.5px solid var(--divider);
}

.dialog-card__btn--confirm {
  color: var(--brand-blue);
}

.share-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
}

.share-guide-bubble {
  position: fixed;
  top: 22px;
  right: 12px;
  width: 224px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.share-guide-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

.share-guide-bubble__text {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.share-guide-bubble__icon {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.share-guide-bubble__icon img {
  width: 36px;
  height: 36px;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-backdrop img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Toast */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
}

.toast-item {
  background: rgba(26, 26, 26, 0.88);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
