@import url("iconfont/bootstrap-icons/bootstrap-icons.css");

:root {
  --bg: #090909;
  --bg-soft: #111111;
  --panel: rgba(20, 20, 20, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 214, 119, 0.18);
  --text: #f6f1e6;
  --text-soft: rgba(246, 241, 230, 0.72);
  --text-muted: rgba(246, 241, 230, 0.48);
  --brand: #eacea1;
  --brand-strong: #eacea1;
  --brand-deep: #b89663;
  --danger: #ff7d6b;
  --shadow: 0 0.24rem 0.8rem rgba(0, 0, 0, 0.38);
  --radius-lg: 0.32rem;
  --radius-md: 0.22rem;
  --radius-sm: 0.16rem;
}

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

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top, rgba(216, 166, 70, 0.12), transparent 36%),
    linear-gradient(180deg, #17120b 0%, #090909 22%, #090909 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.55;
}

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

button,
input,
textarea {
  border: 0;
  font: inherit;
  outline: none;
}

button {
  background: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

.app-shell,
.auth-shell,
.page {
  width: 100%;
  max-width: 7.5rem;
  margin: 0 auto;
}

.app-shell,
.auth-shell {
  min-height: 100vh;
}

.app-shell {
  padding: 0.34rem 0.24rem 1.6rem;
}

.home-shell,
.category-shell,
.account-shell {
  position: relative;
}

.hero-card,
.account-hero,
.auth-card,
.banner-card,
.announcement-card,
.search-panel,
.category-panel,
.feed-panel,
.stats-grid,
.token-card,
.library-panel {
  margin-bottom: 0.24rem;
}

.hero-card,
.account-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.34rem 0.3rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 219, 132, 0.2), rgba(255, 219, 132, 0) 42%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(13, 13, 13, 0.98));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-card::after,
.account-hero::after,
.auth-card::after,
.banner-card::after,
.token-card::after,
.feed-panel::after,
.category-panel::after,
.library-panel::after,
.announcement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-card-compact {
  min-height: 2.4rem;
}

.hero-copy,
.account-summary,
.auth-head {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  height: 0.4rem;
  padding: 0 0.16rem;
  border-radius: 999px;
  background: rgba(216, 166, 70, 0.14);
  border: 1px solid rgba(216, 166, 70, 0.28);
  color: var(--brand-strong);
  font-size: 0.18rem;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.account-summary h1,
.auth-head h1 {
  margin-top: 0.16rem;
  font-size: 0.42rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-copy p,
.account-summary p,
.auth-head p,
.token-help,
.portal-help,
.buy-tips {
  margin-top: 0.14rem;
  color: var(--text-soft);
  font-size: 0.2rem;
}

.hero-button,
.search-submit,
.load-more,
.auth-submit,
.token-copy,
.portal-action,
.portal-inline,
.portal-inline-link,
.buy-action,
.library-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.84rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-strong), var(--brand));
  color: #1f1608;
  font-size: 0.22rem;
  font-weight: 700;
  box-shadow: 0 0.12rem 0.3rem rgba(216, 166, 70, 0.22);
}

.hero-button.outline,
.hero-button.ghost,
.portal-inline-link.is-light,
.buy-action.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 214, 119, 0.26);
  box-shadow: none;
}

.search-panel,
.category-panel,
.feed-panel,
.token-card,
.library-panel,
.announcement-card,
.banner-card,
.auth-card {
  position: relative;
  padding: 0.26rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 214, 119, 0.12);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.68rem;
  color: var(--brand-strong);
  font-size: 0.28rem;
}

.search {
  flex: 1;
  height: 0.84rem;
  background: transparent;
  color: var(--text);
  font-size: 0.24rem;
}

.search::placeholder,
.auth-item input::placeholder {
  color: var(--text-muted);
}

.search-submit {
  min-width: 1.46rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.16rem;
  margin-bottom: 0.22rem;
}

.panel-header h2 {
  font-size: 0.28rem;
  line-height: 1.2;
}

.panel-link {
  color: var(--brand-strong);
  font-size: 0.2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.18rem;
  border-radius: 0.22rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 214, 119, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip.is-active,
.category-chip:hover {
  transform: translateY(-0.02rem);
  border-color: rgba(255, 214, 119, 0.34);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: rgba(216, 166, 70, 0.14);
  color: var(--brand-strong);
  font-size: 0.26rem;
  font-weight: 700;
}

.category-name {
  font-size: 0.22rem;
  color: var(--text);
}

.banner-card {
  overflow: hidden;
  padding: 0;
}

.swiper-slide img {
  height: 2.86rem;
  object-fit: cover;
}

.swiper-pagination {
  bottom: 0.16rem !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--brand-strong);
}

.announcement-card {
  display: flex;
  align-items: center;
  gap: 0.14rem;
}

.announcement-icon {
  color: var(--brand-strong);
  font-size: 0.24rem;
}

.announcement-card p {
  color: var(--text-soft);
  font-size: 0.2rem;
}

.video-feed ul {
  display: grid;
  gap: 0.18rem;
}

.video-card,
.library-item {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.18rem;
  align-items: center;
  padding: 0.16rem;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 214, 119, 0.1);
}

.video-thumb,
.library-thumb {
  position: relative;
  overflow: hidden;
  display: block;
  height: 1.26rem;
  border-radius: 0.18rem;
  background: #221709;
}

.video-thumb img,
.library-thumb img,
.buy-cover img,
.ds-info .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  display: inline-flex;
  align-items: center;
  height: 0.34rem;
  padding: 0 0.12rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff3d2;
  font-size: 0.16rem;
}

.video-count,
.video-duration {
  position: absolute;
  z-index: 2;
  bottom: 0.06rem;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 0.12rem);
  min-height: 0.34rem;
  padding: 0 0.12rem;
  border-radius: 0.08rem;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.video-count {
  left: 0.06rem;
}

.video-duration {
  top: 0.06rem;
  bottom: auto;
  left: 0.06rem;
  right: auto;
}

.video-body,
.library-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}

.video-title,
.library-copy strong {
  color: var(--text);
  font-size: 0.24rem;
  line-height: 1.4;
  word-break: break-all;
}

.video-meta,
.library-copy span {
  color: var(--text-muted);
  font-size: 0.18rem;
}

.video-action,
.library-entry {
  align-self: flex-start;
  min-height: 0.56rem;
  padding: 0 0.22rem;
  font-size: 0.18rem;
}

.load-more {
  width: 100%;
  margin-top: 0.22rem;
}

.load-more.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
}

.empty-state {
  padding: 0.38rem 0.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.2rem;
}

.portal-modal,
.buy-modal,
.modal-loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.24rem;
  background: rgba(0, 0, 0, 0.72);
}

.portal-modal.is-show,
.buy-modal.is-show,
.modal-loading.is-show {
  display: flex;
}

.portal-card,
.buy-modal-card,
.modal-loading-card {
  position: relative;
  width: 100%;
  max-width: 6.2rem;
  padding: 0.3rem;
  border-radius: 0.3rem;
  background:
    linear-gradient(135deg, rgba(255, 221, 141, 0.12), rgba(255, 221, 141, 0) 36%),
    linear-gradient(180deg, #171717, #0e0e0e);
  border: 1px solid rgba(255, 214, 119, 0.2);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.48);
}

.portal-top,
.portal-block,
.account-actions,
.auth-tabs,
.buy-actions {
  display: flex;
}

.portal-top,
.account-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.18rem;
}

.portal-title,
.token-label,
.portal-label {
  color: var(--brand-strong);
  font-size: 0.18rem;
  letter-spacing: 0.04em;
}

.portal-subtitle {
  margin-top: 0.08rem;
  color: var(--text-soft);
  font-size: 0.22rem;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 0.62rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: rgba(255, 214, 119, 0.14);
  color: var(--brand-strong);
  font-size: 0.18rem;
}

.portal-block {
  flex-direction: column;
  gap: 0.14rem;
  margin-top: 0.24rem;
  padding: 0.22rem;
  border-radius: 0.22rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 214, 119, 0.08);
}

.portal-input,
.portal-command,
.token-value {
  padding: 0.16rem 0.18rem;
  border-radius: 0.18rem;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-size: 0.22rem;
  word-break: break-all;
}

.portal-auth,
.buy-actions,
.account-actions,
.auth-tabs {
  flex-wrap: wrap;
  gap: 0.14rem;
}

.portal-close,
.buy-close {
  margin-top: 0.24rem;
  width: 100%;
  height: 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.22rem;
}

.buy-modal {
  z-index: 1001;
}

.buy-modal-mask {
  position: absolute;
  inset: 0;
}

.buy-modal-card {
  z-index: 1;
}

.buy-close {
  position: absolute;
  top: 0.14rem;
  right: 0.14rem;
  width: auto;
  min-width: 0.84rem;
  margin-top: 0;
  padding: 0 0.18rem;
  height: 0.56rem;
  font-size: 0.18rem;
}

.buy-cover {
  overflow: hidden;
  height: 2.2rem;
  border-radius: 0.22rem;
  background: #24170a;
}

.buy-copy {
  margin-top: 0.22rem;
}

.buy-title {
  color: var(--brand-strong);
  font-size: 0.18rem;
}

.buy-copy h3 {
  margin-top: 0.12rem;
  font-size: 0.32rem;
  line-height: 1.35;
}

.buy-actions {
  margin-top: 0.24rem;
}

.buy-action {
  flex: 1 1 calc(50% - 0.1rem);
  min-width: 2.4rem;
  flex-direction: column;
  gap: 0.04rem;
  line-height: 1.1;
}

.buy-action span {
  display: block;
  font-size: 0.26rem;
}

.buy-action em {
  display: block;
  font-style: normal;
  font-size: 0.2rem;
  font-weight: 500;
  opacity: 0.82;
}

.modal-loading-card {
  width: 2.4rem;
  padding: 0.28rem 0.22rem;
  text-align: center;
}

.modal-loading-dot {
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0.05rem solid rgba(255, 214, 119, 0.2);
  border-top-color: var(--brand-strong);
  animation: spin 0.8s linear infinite;
}

.modal-loading-card p {
  margin-top: 0.14rem;
  color: var(--text-soft);
  font-size: 0.2rem;
}

.modal-tips {
  position: fixed;
  left: 50%;
  bottom: 1.8rem;
  z-index: 9999;
  min-width: 2rem;
  max-width: 5.4rem;
  padding: 0.18rem 0.24rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.2rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 0.2rem);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
}

.stat-card {
  padding: 0.24rem;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 214, 119, 0.1);
}

.stat-title {
  display: block;
  color: var(--text-soft);
  font-size: 0.18rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.38rem;
  color: var(--brand-strong);
}

.account-tabs .type {
  display: flex;
  gap: 0.14rem;
  margin-bottom: 0.2rem;
}

.account-tabs .type .item,
.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.72rem;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 214, 119, 0.08);
  color: var(--text-soft);
  font-size: 0.2rem;
}

.account-tabs .type .item.is-active,
.auth-tab.is-active {
  background: rgba(216, 166, 70, 0.14);
  border-color: rgba(255, 214, 119, 0.28);
  color: var(--brand-strong);
}

.account-tabs .list {
  display: grid;
  gap: 0.16rem;
}

.account-tabs .list.is-loading {
  opacity: 0.66;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.32rem 0.24rem 1.6rem;
}

.auth-card {
  overflow: hidden;
  padding: 0.34rem 0.3rem;
}

.auth-tabs {
  margin-top: 0.28rem;
}

.auth-panel {
  display: none;
  margin-top: 0.24rem;
}

.auth-panel.is-active {
  display: block;
}

.auth-fields {
  display: grid;
  gap: 0.18rem;
}

.auth-item {
  padding: 0.2rem 0.22rem;
  border-radius: 0.22rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 214, 119, 0.08);
}

.auth-item label {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--text-soft);
  font-size: 0.18rem;
}

.auth-item input {
  width: 100%;
  height: 0.56rem;
  background: transparent;
  color: var(--text);
  font-size: 0.24rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.24rem;
}

.auth-foot {
  margin-top: 0.24rem;
  color: var(--text-soft);
  font-size: 0.18rem;
}

.auth-link {
  display: inline-block;
  margin-top: 0.12rem;
  color: var(--brand-strong);
  font-size: 0.2rem;
}

.token-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.18rem;
}

.token-value {
  margin-top: 0.12rem;
}

.tabbar-hd,
.auth-tabbar {
  height: 1.18rem;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 7.5rem;
  padding: 0.12rem 0.24rem calc(0.12rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid rgba(255, 214, 119, 0.12);
  backdrop-filter: blur(0.16rem);
}

.tabbar-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem;
}

.tabbar-nav a {
  display: flex;
  min-height: 0.9rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  border-radius: 0.2rem;
  color: var(--text-soft);
}

.tabbar-nav a.is-active {
  background: rgba(255, 214, 119, 0.1);
  color: var(--brand-strong);
}

.tabbar-icon {
  font-size: 0.26rem;
  color: var(--brand-strong);
}

.tabbar-label {
  font-size: 0.18rem;
}

.backtop {
  position: fixed;
  right: 0.26rem;
  bottom: 1.46rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 50%;
  background: rgba(255, 214, 119, 0.16);
  border: 1px solid rgba(255, 214, 119, 0.2);
  color: var(--brand-strong);
  font-size: 0.26rem;
  opacity: 0;
  transform: translateY(0.14rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.backtop.is-show {
  opacity: 1;
  transform: translateY(0);
}

.page {
  min-height: 100vh;
  padding: 0.24rem 0.24rem 0.42rem;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.16rem 0;
}

.content-header .back,
.content-header .other,
.content-header .title {
  min-width: 1rem;
  font-size: 0.22rem;
}

.content-header .back {
  color: var(--brand-strong);
}

.content-header .title {
  text-align: center;
}

.player-video,
.video-tools,
.video-info,
.video-about,
.ds-info,
.ds-type {
  margin-top: 0.22rem;
  padding: 0.24rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 214, 119, 0.08);
}

.player-video #video-app {
  overflow: hidden;
  border-radius: 0.2rem;
}

.video-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
}

.video-tools .item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
}

.video-tools .icon {
  width: 0.76rem;
}

.video-tools .title,
.video-info .group,
.video-info .like,
.video-about .desc {
  color: var(--text-soft);
  font-size: 0.18rem;
}

.video-info .author {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.16rem;
  font-size: 0.28rem;
}

.video-info .author img,
.video-info .like img {
  width: 0.32rem;
}

.video-info .like {
  margin-top: 0.18rem;
}

.video-about .title {
  margin-bottom: 0.2rem;
  font-size: 0.28rem;
}

.video-about ul,
.video-list ul {
  display: grid;
  gap: 0.16rem;
}

.video-about li a {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.16rem;
  align-items: center;
}

.video-about .thumb {
  overflow: hidden;
  height: 1.26rem;
  border-radius: 0.18rem;
}

.video-about .icon {
  display: none;
}

.video-about .desc {
  margin-top: 0.08rem;
}

.video-list .loading {
  display: none;
}

.ds-bg {
  background:
    radial-gradient(circle at top, rgba(216, 166, 70, 0.18), transparent 30%),
    linear-gradient(180deg, #181006, #090909 48%);
  background-size: cover;
  background-position: center;
}

.ds-info {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.18rem;
  align-items: center;
}

.ds-info .thumb {
  overflow: hidden;
  height: 1.9rem;
  border-radius: 0.18rem;
}

.ds-info .title {
  font-size: 0.28rem;
  line-height: 1.4;
}

.ds-type {
  display: grid;
  gap: 0.16rem;
}

.ds-type .item,
.ds-type .more,
.ds-type .tousu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.84rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: rgba(255, 214, 119, 0.12);
  border: 1px solid rgba(255, 214, 119, 0.2);
  color: var(--brand-strong);
  font-size: 0.22rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 540px) {
  .hero-card,
  .account-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .buy-action {
    flex-basis: 100%;
    min-width: 0;
  }

  .token-card {
    flex-direction: column;
    align-items: stretch;
  }
}

html {
  background: #0f1114;
}

body {
  display: flex;
  justify-content: center;
}

.app-shell,
.auth-shell,
.page {
  width: min(100%, 4.3rem);
}

.app-shell-phone,
.auth-shell,
.page {
  position: relative;
  min-height: 100vh;
  background: #1f2429;
  box-shadow: 0 0 0 1px rgba(255, 214, 119, 0.12);
}

.account-page {
  padding: 0.12rem 0.04rem 1.35rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 1.08rem 1fr;
  gap: 0.16rem;
  align-items: center;
  padding: 0.12rem;
  border: 1px solid rgba(239, 209, 154, 0.75);
  border-radius: 0.16rem;
  background: #111417;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.06rem;
  height: 1.06rem;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.68));
  color: #cdb184;
  font-size: 0.54rem;
}

.profile-meta p {
  margin: 0.06rem 0;
  color: #eacea1;
  font-size: 0.19rem;
  line-height: 1.4;
}

.profile-token {
  display: inline-block;
  max-width: 1.55rem;
  overflow: hidden;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-copy,
.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.56rem;
  height: 0.34rem;
  margin-left: 0.06rem;
  padding: 0 0.12rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #131313;
  font-size: 0.16rem;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
  margin-top: 0.12rem;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.46rem;
  border-radius: 0.12rem;
  background: #eacea1;
  color: #181818;
  font-size: 0.2rem;
  font-weight: 700;
}

.action-pill-light {
  background: #eacea1;
}

.notice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.18rem;
}

.notice-row p {
  color: #ff1f1f;
  font-size: 0.18rem;
}

.user-hub {
  margin-top: 0.22rem;
}

.hub-panel {
  display: none;
  min-height: 4.8rem;
}

.hub-panel.is-active {
  display: block;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  justify-content: center;
  margin-bottom: 0.28rem;
}

.section-title span {
  flex: 1;
  height: 1px;
  background: rgba(239, 209, 154, 0.55);
}

.section-title h2 {
  color: #eacea1;
  font-size: 0.2rem;
  font-weight: 700;
}

.section-empty {
  color: #9da7b3;
  font-size: 0.18rem;
  text-align: center;
}

.section-empty-room {
  padding-top: 0.16rem;
}

.settings-list {
  display: grid;
  gap: 0.12rem;
  margin-bottom: 0.2rem;
}

.settings-item {
  width: 100%;
  min-height: 0.5rem;
  border: 1px solid rgba(239, 209, 154, 0.55);
  border-radius: 0.12rem;
  background: rgba(0, 0, 0, 0.08);
  color: #eacea1;
  font-size: 0.18rem;
}

.purchase-list .list {
  display: grid;
  gap: 0.16rem;
}

.library-item {
  grid-template-columns: 1.18rem 1fr auto;
  gap: 0.12rem;
  padding: 0.12rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(239, 209, 154, 0.14);
}

.library-thumb {
  height: 0.9rem;
}

.library-entry {
  min-height: 0.4rem;
  padding: 0 0.14rem;
  font-size: 0.16rem;
}

.side-tools {
  position: fixed;
  right: calc(50% - min(50vw, 2.15rem) + 0.06rem);
  bottom: 2.4rem;
  display: grid;
  gap: 0.26rem;
  z-index: 35;
}

.side-tool {
  color: #f1dec0;
  font-size: 0.18rem;
}

.download-bar {
  position: fixed;
  left: 50%;
  bottom: 0.72rem;
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 0.08rem;
  width: min(calc(100% - 0.08rem), 4.22rem);
  padding: 0.06rem 0.08rem;
  transform: translateX(-50%);
  border-radius: 0.14rem;
  background: rgba(229, 233, 243, 0.96);
  box-shadow: 0 0.08rem 0.26rem rgba(0, 0, 0, 0.28);
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 0.1rem;
  background: #291809;
  color: #eacea1;
}

.download-copy {
  flex: 1;
  color: #4a5779;
  font-size: 0.16rem;
}

.download-btn {
  min-width: 0.44rem;
  height: 0.34rem;
  border-radius: 0.08rem;
  background: #7286da;
  color: #fff;
  font-size: 0.14rem;
}

.download-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.34rem;
  height: 0.34rem;
  border: 1px solid rgba(239, 209, 154, 0.8);
  border-radius: 50%;
  color: #eacea1;
  font-size: 0.22rem;
}

.tabbar {
  width: min(100%, 4.3rem);
  padding: 0.08rem 0.04rem calc(0.08rem + env(safe-area-inset-bottom));
  background: #1f2429;
  border-top: 1px solid rgba(239, 209, 154, 0.22);
}

.tabbar-nav {
  gap: 0.06rem;
}

.tabbar-nav a {
  min-height: 0.56rem;
  border: 1px solid rgba(239, 209, 154, 0.7);
  border-radius: 0.12rem;
  background: #161a1f;
  color: #eacea1;
}

.tabbar-nav a.is-active {
  background: #eacea1;
  color: #1a1a1a;
}

.tabbar-label {
  font-size: 0.2rem;
}

.tabbar-icon {
  display: none;
}

.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.62);
}

.sheet-modal.is-show {
  display: flex;
}

.sheet-card {
  position: relative;
  width: min(100%, 3.9rem);
  padding: 0.22rem;
  border: 1px solid rgba(239, 209, 154, 0.9);
  border-radius: 0.2rem;
  background: #23282d;
}

.sheet-close {
  position: absolute;
  top: 0.08rem;
  right: 0.12rem;
  color: #cfd2d8;
  font-size: 0.34rem;
}

.sheet-title {
  margin-bottom: 0.22rem;
  color: #eacea1;
  font-size: 0.26rem;
  font-weight: 700;
  text-align: center;
}

.auth-switch {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.18rem;
}

.auth-switch-item {
  position: relative;
  padding-bottom: 0.12rem;
  color: #f3f4f6;
  font-size: 0.2rem;
}

.auth-switch-item.is-active {
  color: #eacea1;
}

.auth-switch-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.48rem;
  height: 0.04rem;
  border-radius: 999px;
  background: #eacea1;
  transform: translateX(-50%);
}

.auth-body {
  display: none;
}

.auth-body.is-active {
  display: block;
}

.sheet-field {
  margin-bottom: 0.14rem;
}

.sheet-field input,
.sheet-field textarea {
  width: 100%;
  padding: 0.16rem 0.14rem;
  border: 1px solid rgba(239, 209, 154, 0.75);
  border-radius: 0.12rem;
  background: #24292e;
  color: #f2f3f4;
  font-size: 0.18rem;
}

.sheet-field textarea {
  min-height: 1.26rem;
  resize: none;
}

.sheet-submit {
  width: 100%;
  min-height: 0.48rem;
  margin-top: 0.12rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.2rem;
}

.sheet-submit-secondary {
  background: #ffffff;
}

.sheet-tips {
  margin-top: 0.14rem;
  color: #f2ef00;
  font-size: 0.18rem;
  text-align: center;
}

.register-sheet {
  display: none;
  margin-top: 0.18rem;
  padding-top: 0.18rem;
  border-top: 1px solid rgba(239, 209, 154, 0.25);
}

.register-sheet.is-show {
  display: block;
}

.register-sheet-title {
  margin-bottom: 0.14rem;
  color: #eacea1;
  font-size: 0.2rem;
  text-align: center;
}

.feedback-options {
  display: grid;
  gap: 0.14rem;
  margin-bottom: 0.18rem;
}

.feedback-option {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  color: #eacea1;
  font-size: 0.18rem;
}

.feedback-option input {
  width: 0.22rem;
  height: 0.22rem;
}

.sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
}

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

  .app-shell,
  .auth-shell,
  .page,
  .tabbar {
    width: 100%;
  }

  .side-tools {
    right: 0.1rem;
  }

  .download-bar {
    width: calc(100% - 0.08rem);
  }
}

/* New mobile-first front layout */
html {
  background: #11161c;
}

body {
  display: flex;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.22)),
    #11161c;
  color: #f4e2bd;
}

.app-shell,
.auth-shell,
.page,
.tabbar {
  width: min(100%, 7.5rem);
  max-width: 430px;
}

.app-shell-phone,
.auth-shell,
.page {
  position: relative;
  min-height: 100vh;
  background: #20262d;
  box-shadow: 0 0 0 1px rgba(238, 205, 148, 0.16), 0 0.28rem 0.8rem rgba(0, 0, 0, 0.32);
}

.app-shell {
  padding: 0.18rem 0.14rem 1.42rem;
}

.home-notice {
  position: relative;
  margin: 0.02rem 0 0.18rem;
  padding: 0.22rem 0.24rem 0.24rem;
  border: 1px solid #eacea1;
  border-radius: 0.16rem;
  background: #161b21;
  color: #eacea1;
}

.notice-title {
  margin-bottom: 0.1rem;
  color: #eacea1;
  font-size: 0.32rem;
  font-weight: 700;
  text-align: center;
}

.home-notice p {
  color: #f1d9ad;
  font-size: 0.26rem;
  line-height: 1.62;
}

.notice-close {
  position: absolute;
  right: 0.12rem;
  bottom: 0.12rem;
  min-width: 1.2rem;
  height: 0.44rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.2rem;
  font-weight: 700;
}

.home-brand {
  display: grid;
  grid-template-columns: 1.26rem 1fr auto;
  gap: 0.18rem;
  align-items: center;
  margin-bottom: 0.18rem;
  padding: 0.2rem;
  border: 1px solid rgba(232, 199, 137, 0.7);
  border-radius: 0.16rem;
  background: #12171d;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f4dcae, #8c6334 54%, #1a120b);
  color: #1c1510;
  font-size: 0.28rem;
  font-weight: 800;
}

.brand-copy h1 {
  color: #eacea1;
  font-size: 0.38rem;
  line-height: 1.25;
}

.brand-copy p {
  margin-top: 0.08rem;
  color: #eacea1;
  font-size: 0.23rem;
  line-height: 1.45;
}

.brand-link {
  min-width: 0.84rem;
  height: 0.52rem;
  border-radius: 0.1rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.2rem;
  font-weight: 700;
}

.home-search,
.home-section,
.home-tip,
.banner-card {
  margin-bottom: 0.18rem;
  padding: 0.18rem;
  border: 1px solid rgba(232, 199, 137, 0.34);
  border-radius: 0.14rem;
  background: #171d23;
  box-shadow: none;
}

.home-search {
  padding: 0.12rem;
}

.search-box {
  gap: 0.1rem;
  padding: 0.08rem;
  border-radius: 0.12rem;
  background: #242b33;
  border-color: rgba(232, 199, 137, 0.5);
}

.search-icon {
  width: 0.72rem;
  font-size: 0.2rem;
  color: #eacea1;
}

.search {
  height: 0.72rem;
  font-size: 0.27rem;
}

.search-submit,
.load-more,
.hero-button,
.portal-action,
.portal-inline,
.portal-inline-link,
.buy-action {
  min-height: 0.72rem;
  border-radius: 0.1rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.26rem;
  font-weight: 700;
  box-shadow: none;
}

.search-submit {
  min-width: 1.12rem;
  padding: 0 0.2rem;
}

.panel-header {
  margin-bottom: 0.16rem;
}

.panel-header h2 {
  color: #eacea1;
  font-size: 0.3rem;
}

.panel-link {
  color: #eacea1;
  font-size: 0.22rem;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
}

.category-chip {
  min-height: 0.72rem;
  justify-content: center;
  padding: 0.12rem 0.08rem;
  border: 1px solid rgba(232, 199, 137, 0.62);
  border-radius: 0.1rem;
  background: #12171d;
}

.category-icon {
  display: none;
}

.category-name {
  color: #eacea1;
  font-size: 0.24rem;
  font-weight: 700;
}

.category-chip.is-active {
  background: #eacea1;
}

.category-chip.is-active .category-name {
  color: #171717;
}

.home-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.12rem;
}

.announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.72rem;
  height: 0.42rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.18rem;
  font-weight: 700;
}

.announcement-card p {
  color: #e6d0a7;
  font-size: 0.23rem;
  line-height: 1.48;
}

.video-feed ul {
  gap: 0.14rem;
}

.video-card {
  grid-template-columns: 2.12rem 1fr;
  gap: 0.16rem;
  padding: 0.12rem;
  border: 1px solid rgba(232, 199, 137, 0.22);
  border-radius: 0.12rem;
  background: #11171d;
}

.video-thumb {
  height: 1.34rem;
  border-radius: 0.1rem;
}

.video-title {
  font-size: 0.26rem;
  line-height: 1.35;
}

.video-meta {
  font-size: 0.2rem;
}

.video-action {
  min-height: 0.44rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #171717;
  font-size: 0.2rem;
  font-weight: 700;
}

.video-badge {
  height: 0.34rem;
  font-size: 0.16rem;
}

.portal-modal {
  align-items: flex-start;
  padding-top: 0.44rem;
}

.portal-card {
  max-width: 6.9rem;
  padding: 0.26rem;
  border-radius: 0.18rem;
  background: #222930;
  border-color: #eacea1;
}

.portal-title {
  font-size: 0.3rem;
  font-weight: 700;
}

.portal-subtitle,
.portal-help {
  font-size: 0.24rem;
}

.portal-label {
  font-size: 0.22rem;
}

.portal-input,
.portal-command {
  font-size: 0.26rem;
}

.portal-close {
  height: 0.72rem;
  border-radius: 0.1rem;
  font-size: 0.24rem;
}

.account-page {
  padding: 0.14rem 0.1rem 1.35rem;
}

.profile-card {
  grid-template-columns: 1.32rem 1fr;
  gap: 0.18rem;
  padding: 0.16rem;
  border-radius: 0.14rem;
}

.profile-avatar {
  width: 1.28rem;
  height: 1.28rem;
  font-size: 0.58rem;
}

.profile-meta p {
  color: #eacea1;
  font-size: 0.24rem;
  line-height: 1.45;
}

.profile-token {
  max-width: 2.5rem;
}

.mini-copy,
.refresh-btn {
  height: 0.42rem;
  min-width: 0.66rem;
  font-size: 0.18rem;
}

.profile-actions {
  gap: 0.14rem;
  margin-top: 0.16rem;
}

.action-pill {
  height: 0.64rem;
  border-radius: 0.1rem;
  font-size: 0.26rem;
}

.notice-row p {
  font-size: 0.24rem;
}

.section-title h2 {
  font-size: 0.28rem;
}

.section-empty,
.settings-item,
.side-tool,
.feedback-option,
.sheet-tips {
  font-size: 0.24rem;
}

.settings-item {
  min-height: 0.66rem;
}

.library-item {
  grid-template-columns: 1.45rem 1fr auto;
  padding: 0.14rem;
}

.library-thumb {
  height: 1.06rem;
}

.library-copy strong {
  font-size: 0.24rem;
}

.library-copy span {
  font-size: 0.2rem;
}

.library-entry {
  min-height: 0.46rem;
  font-size: 0.18rem;
}

.download-bar {
  bottom: 0.92rem;
  width: min(calc(100% - 0.2rem), 410px);
  padding: 0.08rem 0.1rem;
}

.download-copy {
  font-size: 0.2rem;
}

.download-btn {
  min-width: 0.62rem;
  height: 0.42rem;
  font-size: 0.18rem;
}

.download-close {
  width: 0.42rem;
  height: 0.42rem;
}

.tabbar {
  padding: 0.1rem 0.1rem calc(0.1rem + env(safe-area-inset-bottom));
  background: #20262d;
}

.tabbar-nav {
  gap: 0.08rem;
}

.tabbar-nav a {
  min-height: 0.76rem;
  border-radius: 0.1rem;
}

.tabbar-icon {
  display: block;
  font-size: 0.24rem;
}

.tabbar-label {
  font-size: 0.22rem;
  font-weight: 700;
}

.sheet-card {
  width: min(100%, 6.7rem);
  max-width: 390px;
  padding: 0.28rem;
  border-radius: 0.18rem;
}

.sheet-title {
  font-size: 0.34rem;
}

.auth-switch-item {
  font-size: 0.26rem;
}

.sheet-field input,
.sheet-field textarea {
  min-height: 0.74rem;
  font-size: 0.25rem;
}

.sheet-submit {
  min-height: 0.68rem;
  font-size: 0.26rem;
}

.register-sheet-title {
  font-size: 0.26rem;
}

@media (min-width: 541px) {
  body {
    min-height: 100vh;
  }
}

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

  .app-shell,
  .auth-shell,
  .page,
  .tabbar {
    width: 100%;
    max-width: none;
  }
}

/* Screenshot-style homepage */
.home-shell {
  padding: 0.06rem 0.08rem 1.04rem;
  background: #1c2329;
}

.screenshot-search {
  margin: 0 0 0.16rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.screenshot-search .search-box {
  height: 0.82rem;
  padding: 0 0.08rem 0 0.16rem;
  border: 1px solid #eacea1;
  border-radius: 0.08rem;
  background: #1c2329;
}

.screenshot-search .search-icon {
  position: relative;
  width: 0.32rem;
  height: 0.32rem;
  border: 0.03rem solid #9ca7b1;
  border-radius: 50%;
}

.screenshot-search .search-icon::after {
  content: "";
  position: absolute;
  right: -0.12rem;
  bottom: -0.08rem;
  width: 0.16rem;
  height: 0.03rem;
  background: #9ca7b1;
  transform: rotate(45deg);
}

.screenshot-search .search {
  height: 0.78rem;
  padding-left: 0.18rem;
  color: #d4d9de;
  font-size: 0.26rem;
}

.screenshot-search .search-submit {
  min-width: 0.82rem;
  min-height: 0.62rem;
  padding: 0;
  background: transparent;
  color: #eacea1;
  font-size: 0.24rem;
  box-shadow: none;
}

.home-category-row {
  margin-bottom: 0.16rem;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.18rem 0.08rem;
}

.home-cat-grid.is-collapsed .category-chip:nth-child(n + 9) {
  display: none;
}

.home-cat-grid .category-chip {
  display: flex;
  min-width: 0;
  min-height: 0.46rem;
  gap: 0.08rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-cat-grid .category-icon {
  display: flex;
  width: 0.34rem;
  height: 0.34rem;
  flex: 0 0 0.34rem;
  overflow: hidden;
  border-radius: 0.04rem;
  background: transparent;
  color: #eacea1;
  font-size: 0.26rem;
}

.home-cat-grid .category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-cat-grid .category-name {
  overflow: hidden;
  color: #eacea1;
  font-size: 0.32rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-filter-row {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 0.16rem;
  margin-bottom: 0.16rem;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.7rem;
  border: 1px solid #eacea1;
  border-radius: 0.16rem;
  background: #1c2329;
  color: #eacea1;
  font-size: 0.25rem;
}

.token-banner {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  margin-bottom: 0.12rem;
  padding: 0.14rem 0.16rem;
  border-radius: 0.1rem;
  background: #3a342e;
  color: #eacea1;
}

.token-speaker {
  position: relative;
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  flex: 0 0 0.28rem;
  border: 0.03rem solid #eacea1;
  border-radius: 0.06rem;
}

.token-speaker::before {
  content: "";
  position: absolute;
  left: -0.08rem;
  top: 0.06rem;
  width: 0;
  height: 0;
  border-top: 0.07rem solid transparent;
  border-bottom: 0.07rem solid transparent;
  border-right: 0.09rem solid #eacea1;
}

.token-speaker::after {
  content: "";
  position: absolute;
  right: -0.13rem;
  top: 0.05rem;
  width: 0.08rem;
  height: 0.14rem;
  border-right: 0.03rem solid #eacea1;
  border-radius: 50%;
}

.token-banner marquee {
  flex: 1;
  min-width: 0;
  color: #eacea1;
  font-size: 0.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-feed-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-feed-panel .video-feed ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.08rem;
}

.home-feed-panel .video-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0.1rem;
  background: #f2d7a5;
}

.home-feed-panel .video-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1.58 / 1;
  border-radius: 0;
}

.home-feed-panel .video-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.46rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.home-feed-panel .video-badge {
  display: none;
}

.home-feed-panel .video-count,
.home-feed-panel .video-duration {
  position: absolute;
  z-index: 2;
  min-height: 0.34rem;
  padding: 0 0.12rem;
  border-radius: 0.08rem;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.22rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.home-feed-panel .video-count {
  top: auto;
  bottom: 0.08rem;
  left: 0.08rem;
}

.home-feed-panel .video-duration {
  top: 0.08rem;
  bottom: auto;
  left: 0.08rem;
  right: auto;
}

.home-feed-panel .video-body {
  display: block;
  padding: 0.08rem 0.1rem 0.12rem;
}

.home-feed-panel .video-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-size: 0.29rem;
  font-weight: 500;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-feed-panel .video-meta,
.home-feed-panel .video-action {
  display: none;
}

.home-feed-panel .load-more {
  height: 0.62rem;
  margin-top: 0.1rem;
  border-radius: 0.08rem;
  background: #eacea1;
  font-size: 0.23rem;
}

.home-side-tools {
  right: calc(50% - min(50vw, 215px) + 0.08rem);
  bottom: 1.55rem;
  gap: 0.12rem;
}

.home-side-tools .side-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #31383f;
  color: #fff;
  font-size: 0.22rem;
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.35);
}

.home-download-bar {
  bottom: 1.05rem;
  height: 0.62rem;
  width: min(calc(100% - 0.18rem), 412px);
  padding: 0.08rem 0.1rem;
  border-radius: 0.1rem;
  background: rgba(244, 247, 252, 0.96);
  color: #3f4c6d;
  text-decoration: none;
  box-shadow: 0 0.06rem 0.16rem rgba(0, 0, 0, 0.36);
}

.home-download-bar .download-icon {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 0.08rem;
  background: #2b1909;
  padding: 0.06rem;
}

.home-download-bar .download-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-download-bar .download-copy {
  color: #3f4c6d;
  font-size: 0.22rem;
  line-height: 1;
}

.home-download-bar .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.58rem;
  height: 0.36rem;
  border-radius: 0.06rem;
  background: #6677c4;
  color: #fff;
  font-size: 0.2rem;
  font-weight: 700;
}

.home-download-bar .download-close {
  width: 0.54rem;
  height: 0.54rem;
  margin-right: -0.02rem;
  border: 0.04rem solid #eacea1;
  background: #1e252b;
  color: #eacea1;
  font-size: 0.32rem;
  line-height: 1;
}

.home-shell .tabbar-hd {
  height: 1.12rem;
}

.home-shell .tabbar {
  padding: 0.1rem 0.08rem calc(0.1rem + env(safe-area-inset-bottom));
  background: #1c2329;
  border-top: 1px solid #11171d;
}

.home-shell .tabbar-nav {
  gap: 0.11rem;
}

.home-shell .tabbar-nav a {
  min-height: 0.94rem;
  border: 1px solid #eacea1;
  border-radius: 0.12rem;
  background: #1c2329;
  color: #eacea1;
}

.home-shell .tabbar-nav a.is-active {
  background: #eacea1;
  color: #111;
}

.home-shell .tabbar-label {
  font-size: 0.34rem;
  font-weight: 500;
}

@media (max-width: 540px) {
  .home-side-tools {
    right: 0.08rem;
  }
}

/* Larger unified typography and fixed bottom bar */
.app-shell,
.auth-shell,
.page {
  font-size: 0.3rem;
}

.panel-header h2,
.section-title h2,
.sheet-title {
  font-size: 0.34rem;
}

.search,
.auth-item input,
.sheet-field input,
.sheet-field textarea {
  font-size: 0.3rem;
}

.search-submit,
.load-more,
.action-pill,
.sheet-submit,
.settings-item,
.filter-button {
  font-size: 0.3rem;
}

.video-title,
.library-copy strong,
.profile-meta p,
.notice-row p,
.section-empty,
.feedback-option,
.sheet-tips {
  font-size: 0.3rem;
}

.tabbar {
  width: min(100%, 7.5rem);
  max-width: 430px;
  padding: 0.1rem 0.08rem calc(0.1rem + env(safe-area-inset-bottom));
  background: #1c2329;
  border-top: 1px solid rgba(223, 189, 127, 0.25);
}

.tabbar-nav {
  gap: 0.11rem;
}

.tabbar-nav a {
  min-height: 0.94rem;
  border: 1px solid #eacea1;
  border-radius: 0.12rem;
  background: #1c2329;
  color: #eacea1;
}

.tabbar-nav a.is-active {
  background: #eacea1;
  color: #111;
}

.tabbar-label {
  font-size: 0.34rem;
  font-weight: 500;
}

.tabbar-icon {
  display: none;
}

.home-download-bar,
.download-bar {
  left: 50%;
  bottom: 1.26rem;
  height: 0.62rem;
  width: min(82%, 360px);
  max-width: 360px;
  padding: 0.08rem 0.08rem 0.08rem 0.1rem;
  transform: translateX(-50%);
  border: 1px solid rgba(210, 221, 242, 0.84);
  border-radius: 0.14rem;
  background: #f5f7fb;
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.28);
  color: #3f4c6d;
}

.download-icon,
.home-download-bar .download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.44rem;
  height: 0.44rem;
  flex: 0 0 0.44rem;
  padding: 0;
  border-radius: 0.07rem;
  background: #2a1708;
  color: #eacea1;
  font-size: 0.26rem;
}

.download-icon img,
.home-download-bar .download-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-copy,
.home-download-bar .download-copy {
  min-width: 0;
  color: #3f4c6d;
  font-size: 0.27rem;
  line-height: 1;
  white-space: nowrap;
}

.download-btn,
.home-download-bar .download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.58rem;
  height: 0.38rem;
  border-radius: 0.06rem;
  background: #6474c6;
  color: #fff;
  font-size: 0.22rem;
  font-weight: 700;
}

.download-close,
.home-download-bar .download-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.56rem;
  height: 0.56rem;
  flex: 0 0 0.56rem;
  margin-left: 0.02rem;
  margin-right: -0.04rem;
  border: 0.04rem solid #eacea1;
  border-radius: 50%;
  background: #1c2329;
  color: #eacea1;
  font-size: 0.28rem;
}

.token-speaker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.32rem;
  height: 0.32rem;
  flex: 0 0 0.32rem;
  border: 0;
  border-radius: 0;
  color: #eacea1;
  font-size: 0.3rem;
}

.token-speaker::before {
  content: "\f610" !important;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
}

.token-speaker::after {
  content: none;
}

.download-icon .bi::before {
  content: "\f174" !important;
}

.download-close .bi::before {
  content: "\f659" !important;
}

@media (max-width: 540px) {
  .tabbar,
  .home-download-bar,
  .download-bar {
    max-width: 360px;
  }

  .tabbar {
    width: calc(100% - 0.16rem);
    max-width: none;
  }
}

/* Homepage entrance modal */
.home-shell + .portal-modal {
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  overflow-y: auto;
}

.home-shell + .portal-modal .portal-card {
  width: min(100%, 420px);
  max-width: 420px;
  max-height: calc(100vh - 0.56rem);
  padding: 0.24rem 0.24rem 0.18rem;
  border: 0.03rem solid #eacea1;
  border-radius: 0.12rem;
  background: #1c2329;
  box-shadow: none;
  overflow-y: auto;
  text-align: center;
}

.home-shell + .portal-modal .portal-headline {
  text-align: center;
}

.portal-head-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  margin-bottom: 0.16rem;
}

.portal-red {
  color: #ff0000;
  font-size: 0.31rem;
  font-weight: 700;
  text-align: center;
}

.portal-bought {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.08rem;
  height: 0.62rem;
  padding: 0 0.2rem;
  border-radius: 0.06rem;
  background: #f1d3a2;
  color: #000;
  font-size: 0.26rem;
  font-weight: 700;
  line-height: 1;
}

.portal-yellow {
  margin-bottom: 0.18rem;
  color: #ffff00;
  font-size: 0.28rem;
  font-weight: 700;
}

.portal-address-title {
  margin-bottom: 0.18rem;
  color: #fff;
  font-size: 0.28rem;
}

.home-shell + .portal-modal .portal-block {
  align-items: center;
  gap: 0.18rem;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-shell + .portal-modal .portal-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0.94rem;
  padding: 0.12rem 0.18rem;
  border-radius: 0.08rem;
  background: #fff;
  color: #222;
  font-size: 0.22rem;
  text-align: center;
}

.home-shell + .portal-modal .portal-action {
  width: 100%;
  height: 0.86rem;
  margin: 0.14rem 0 0.24rem;
  border-radius: 999px;
  background: #f1d3a2;
  color: #111;
  font-size: 0.27rem;
  font-weight: 500;
}

.home-shell + .portal-modal .portal-token {
  width: 100%;
  padding: 0.3rem 0.16rem 0.16rem;
  border-radius: 0.08rem;
  background: #fff;
  color: #000;
}

.home-shell + .portal-modal .portal-command {
  padding: 0;
  background: transparent;
  color: #000;
  font-size: 0.36rem;
  line-height: 1.2;
  text-align: center;
}

.home-shell + .portal-modal .portal-help {
  margin-top: 0.22rem;
  color: #fff;
  font-size: 0.28rem;
  line-height: 1.5;
  text-align: center;
}

.home-shell + .portal-modal .portal-inline {
  width: auto;
  min-height: 0.54rem;
  margin: 0.08rem auto 0;
  padding: 0 0.2rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #111;
  font-size: 0.25rem;
  font-weight: 500;
  box-shadow: none;
}

.home-shell + .portal-modal .portal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.86rem;
  margin-top: 0.34rem;
  border: 1px solid #eacea1;
  border-radius: 0.06rem;
  background: transparent;
  color: #eacea1;
  font-size: 0.28rem;
}

/* Global feedback and share tools */
.side-tools,
.home-side-tools,
.global-side-tools {
  right: calc(50% - min(50vw, 215px) + 0.08rem);
  bottom: 2.35rem;
  gap: 0.14rem;
  z-index: 70;
}

.side-tool,
.home-side-tools .side-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.76rem;
  height: 0.76rem;
  border-radius: 50%;
  background: #31383f;
  color: #fff;
  font-size: 0.24rem;
  box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.35);
}

.feedback-modal {
  align-items: flex-start;
  padding-top: 0.02rem;
}

.feedback-modal .feedback-sheet {
  width: min(calc(100% - 0.08rem), 420px);
  max-width: 420px;
  min-height: 4.8rem;
  padding: 0.46rem 0.24rem 0.26rem;
  border: 0.03rem solid #eacea1;
  border-radius: 0.16rem;
  background: #1c2329;
  box-shadow: none;
}

.feedback-modal .sheet-title {
  margin-bottom: 0.28rem;
  color: #eacea1;
  font-size: 0.34rem;
  font-weight: 700;
  text-align: center;
}

.feedback-modal .feedback-options {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.28rem;
}

.feedback-modal .feedback-option {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  color: #eacea1;
  font-size: 0.29rem;
  line-height: 1;
}

.feedback-modal .feedback-option input {
  width: 0.34rem;
  height: 0.34rem;
  appearance: none;
  border: 1px solid #cdd2dc;
  border-radius: 50%;
  background: transparent;
}

.feedback-modal .feedback-option input:checked {
  border-color: #eacea1;
  box-shadow: inset 0 0 0 0.08rem #1c2329, inset 0 0 0 0.18rem #eacea1;
}

.feedback-modal .sheet-field {
  margin-bottom: 0.24rem;
}

.feedback-modal .sheet-field textarea {
  min-height: 1.42rem;
  padding: 0.2rem;
  border: 1px solid #eacea1;
  border-radius: 0.08rem;
  background: #1c2329;
  color: #fff;
  font-size: 0.26rem;
}

.feedback-modal .sheet-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.feedback-modal .sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
}

.feedback-modal .sheet-submit {
  min-height: 0.68rem;
  margin: 0;
  border: 1px solid #eacea1;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #111;
  font-size: 0.26rem;
  font-weight: 500;
}

.feedback-modal .sheet-submit-secondary {
  background: transparent;
  color: #eacea1;
}

@media (max-width: 540px) {
  .side-tools,
  .home-side-tools,
  .global-side-tools {
    right: 0.08rem;
    bottom: 2.35rem;
  }
}

/* Account page simplified layout */
.account-page {
  padding: 0.14rem 0.08rem 1.3rem;
  background: #1c2329;
}

.account-page .profile-card {
  grid-template-columns: 1.38rem 1fr;
  gap: 0.18rem;
  padding: 0.16rem 0.18rem;
  border: 1px solid #eacea1;
  border-radius: 0.12rem;
  background: #1c2329;
}

.account-page .profile-avatar {
  width: 1.24rem;
  height: 1.24rem;
  background: radial-gradient(circle at top, #4a4a4a, #1d1d1d 70%);
  color: #f3e6ce;
}

.account-page .profile-meta p {
  margin: 0.04rem 0;
  color: #eacea1;
  font-size: 0.28rem;
  line-height: 1.42;
}

.account-page .mini-copy {
  height: 0.52rem;
  min-width: 0.72rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #111;
  font-size: 0.24rem;
}

.account-page .profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
  margin: 0.18rem 0 0.26rem;
  padding: 0 0.18rem;
}

.account-page .action-pill {
  height: 0.72rem;
  border-radius: 0.12rem;
  background: #eacea1;
  color: #111;
  font-size: 0.34rem;
  font-weight: 500;
}

.account-page .notice-row {
  margin: 0 0 0.28rem;
}

.account-page .notice-row p {
  color: #ff0000;
  font-size: 0.28rem;
  font-weight: 700;
}

.account-page .refresh-btn {
  height: 0.52rem;
  min-width: 0.72rem;
  border-radius: 0.08rem;
  background: #eacea1;
  color: #111;
  font-size: 0.24rem;
}

.account-page .user-hub {
  margin-top: 0;
}

.account-page .library-item {
  position: relative;
  grid-template-columns: 1.45rem 1fr;
  align-items: stretch;
  min-height: 1.42rem;
  padding: 0.14rem 0.18rem 0.14rem 0.14rem;
}

.account-page .library-copy {
  min-height: 1.06rem;
  padding-right: 0.92rem;
  justify-content: flex-start;
  gap: 0.08rem;
}

.account-page .library-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #fff2d3;
  font-size: 0.28rem;
  line-height: 1.26;
}

.account-page .library-copy span {
  margin-top: auto;
  color: rgba(246, 241, 230, 0.62);
  font-size: 0.22rem;
}

.account-page .library-entry {
  position: absolute;
  right: 0.18rem;
  bottom: 0.16rem;
  min-height: 0.48rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #eacea1;
  color: #111;
  font-size: 0.2rem;
  font-weight: 700;
}

.account-page .hub-panel {
  display: block;
  min-height: 3rem;
}

.account-page .section-title {
  margin-bottom: 0.7rem;
  padding: 0 0.44rem;
}

.account-page .section-title span {
  background: #eacea1;
}

.account-page .section-title h2 {
  color: #eacea1;
  font-size: 0.3rem;
}

.account-page .empty-state,
.account-page .section-empty {
  color: #9fa8b3;
  font-size: 0.24rem;
}

.account-page .side-tools {
  right: calc(50% - min(50vw, 215px) + 0.28rem);
  bottom: 3.0rem;
  gap: 0.42rem;
}

.account-page .side-tool {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #eacea1;
  font-size: 0.24rem;
}

@media (max-width: 540px) {
  .account-page .side-tools {
    right: 0.28rem;
    bottom: 3.0rem;
  }
}

.buy-extra-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
  margin-top: 0.2rem;
}

.buy-extra-btn {
  height: 0.72rem;
  border-radius: 0.12rem;
  border: 1px solid #eacea1;
  background: transparent;
  color: #eacea1;
  font-size: 0.28rem;
}

.buy-extra-btn.buy-favorite {
  background: #eacea1;
  color: #111;
}

.buy-extra-btn.is-loading {
  opacity: 0.72;
}

.auto-load-status {
  pointer-events: none;
}

.home-cat-grid .category-chip.is-active {
  border-color: #eacea1;
  background: rgba(234, 206, 161, 0.16);
}

.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.22rem;
  background: rgba(0, 0, 0, 0.72);
}

.vip-modal.is-show {
  display: flex;
}

.vip-modal-mask {
  position: absolute;
  inset: 0;
}

.vip-modal-card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 0.08rem), 420px);
  padding: 0.28rem 0.18rem 0.22rem;
  border: 0.02rem solid #eacea1;
  background: #1c2329;
}

.vip-modal-close {
  position: absolute;
  top: -0.16rem;
  right: -0.02rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 0.02rem solid #eacea1;
  border-radius: 50%;
  color: #eacea1;
  font-size: 0.48rem;
  line-height: 0.52rem;
}

.vip-package-list {
  display: grid;
  gap: 0.12rem;
}

.vip-package-item {
  display: grid;
  grid-template-columns: 1.05rem 1fr 1.82rem;
  align-items: center;
  min-height: 0.58rem;
  padding: 0 0.22rem 0 0.34rem;
  border-radius: 999px;
  background: #eacea1;
  color: #f00;
  text-decoration: none;
  font-weight: 700;
}

.vip-package-name {
  color: #000;
  font-size: 0.3rem;
}

.vip-package-item strong {
  color: #f00;
  font-size: 0.28rem;
}

.vip-package-item em {
  color: #f00;
  font-style: normal;
  font-size: 0.24rem;
  text-align: right;
  white-space: nowrap;
}

.vip-package-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.86rem;
  height: 0.7rem;
  margin: 0.2rem auto 0;
  border: 1px solid #eacea1;
  border-radius: 999px;
  color: #eacea1;
  font-size: 0.28rem;
}

.vip-package-empty {
  padding: 0.4rem 0;
  color: #eacea1;
  font-size: 0.28rem;
  text-align: center;
}

.account-page.is-favorite-page {
  padding-top: 0.22rem;
}

.account-page.is-favorite-page .profile-card,
.account-page.is-favorite-page .profile-actions,
.account-page.is-favorite-page .notice-row {
  display: none;
}

.account-page.is-favorite-page .user-hub {
  margin-top: 0;
}

.account-page.is-favorite-page .section-title {
  margin-top: 0.08rem;
  margin-bottom: 0.34rem;
}

.home-download-bar,
.download-bar {
  left: calc(50% - min(50vw, 215px) + 0.18rem);
  transform: none;
}

.feedback-modal {
  align-items: center;
  justify-content: center;
  padding-top: 0.2rem;
}

.auth-modal {
  align-items: center;
  justify-content: center;
}

.auth-modal .auth-sheet {
  width: min(calc(100% - 0.28rem), 410px);
  padding: 0.42rem 0.26rem 0.28rem;
  border: 0.03rem solid #eacea1;
  border-radius: 0.22rem;
  background: #1c2329;
}

.auth-modal .sheet-title {
  margin-bottom: 0.38rem;
  color: #eacea1;
  font-size: 0.34rem;
  font-weight: 700;
  line-height: 1.15;
}

.auth-modal .sheet-close {
  top: 0.18rem;
  right: 0.2rem;
  color: #d8d8d8;
  font-size: 0.46rem;
  line-height: 1;
}

.auth-modal .auth-switch {
  margin-bottom: 0.18rem;
  padding: 0 0.22rem;
}

.auth-modal .sheet-field {
  position: relative;
  margin-bottom: 0;
  background: #fff;
  overflow: hidden;
}

.auth-modal .sheet-field input {
  display: block;
  height: 0.72rem;
  min-height: 0.72rem;
  padding: 0 0.18rem 0 0.86rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #222;
  font-size: 0.3rem;
  line-height: 0.72rem;
}

.auth-modal .sheet-field input::placeholder {
  color: #b9bec4;
}

.auth-modal .sheet-submit {
  min-height: 0.74rem;
  margin-top: 0;
  border-radius: 0.08rem;
  font-size: 0.3rem;
}

.auth-modal .sheet-tips {
  margin-top: 0;
  color: #f2ef00;
  font-size: 0.3rem;
  line-height: 1.15;
}

.auth-modal .register-sheet {
  margin-top: 0.14rem;
  padding-top: 0.14rem;
}

.auth-modal .auth-switch-item {
  padding-bottom: 0.1rem;
  color: #fff;
  font-size: 0.28rem;
}

.auth-modal .auth-switch-item.is-active::after {
  width: 0.52rem;
  height: 0.05rem;
}

.auth-modal .auth-body.is-active {
  display: grid;
  gap: 0.22rem;
}

.auth-modal .auth-body .sheet-field,
.auth-modal .auth-body .sheet-submit,
.auth-modal .auth-body .sheet-tips {
  margin-top: 0;
  margin-bottom: 0;
}

.auth-modal .auth-body .sheet-submit + .sheet-submit {
  margin-top: 0;
}

.auth-modal .auth-body.is-active .sheet-field:first-child {
  border-radius: 0.02rem 0.02rem 0 0;
}

.auth-modal .auth-body[data-auth-panel="account"].is-active .sheet-field:nth-child(2) {
  margin-top: -0.22rem;
  border-radius: 0 0 0.02rem 0.02rem;
}

.auth-modal .auth-body[data-auth-panel="account"].is-active .sheet-field:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #d7d7d7;
}

.auth-modal .auth-body.is-active .sheet-field::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.86rem;
  z-index: 1;
  color: #333;
  font-family: "bootstrap-icons";
  font-size: 0.26rem;
  text-align: center;
  transform: translateY(-50%);
}

.auth-modal .auth-body[data-auth-panel="account"].is-active .sheet-field:first-child::before {
  content: "\f4da";
}

.auth-modal .auth-body[data-auth-panel="account"].is-active .sheet-field:nth-child(2)::before {
  content: "\f47a";
}

.auth-modal .auth-body[data-auth-panel="token"].is-active .sheet-field::before {
  content: "\f47a";
}

.auth-modal .auth-body[data-auth-panel="token"].is-active .sheet-field {
  border-radius: 0.02rem;
}

.auth-modal .auth-body[data-auth-panel="account"].is-active .sheet-field:nth-child(2) + .sheet-submit {
  margin-top: 0.02rem;
}

@media (max-width: 540px) {
  .home-download-bar,
  .download-bar {
    left: 0.18rem;
    width: min(82%, 360px);
    transform: none;
  }
}

/* Video watch page polish */
.page {
  position: relative;
  isolation: isolate;
  max-width: 7.5rem;
  min-height: 100vh;
  padding: 0.28rem 0.3rem 0.58rem;
  background:
    radial-gradient(circle at 18% 0, rgba(234, 206, 161, 0.12), transparent 30%),
    linear-gradient(180deg, #1c242b 0%, #11171c 42%, #0d1012 100%);
}

.content-header {
  position: sticky;
  top: 0;
  z-index: 80;
  margin: -0.28rem -0.3rem 0;
  padding: 0.34rem 0.3rem 0.22rem;
  background: linear-gradient(180deg, #1c242b 0%, rgba(28, 36, 43, 0.98) 76%, rgba(28, 36, 43, 0.92) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.12rem 0.28rem rgba(10, 12, 14, 0.28);
}

.content-header .back,
.content-header .other,
.content-header .title {
  min-width: 1.18rem;
  color: #eacea1;
  font-size: 0.26rem;
  line-height: 1.2;
}

.content-header .back {
  font-weight: 500;
}

.content-header .title {
  font-weight: 700;
  letter-spacing: 0.02rem;
  text-shadow: 0 0.04rem 0.14rem rgba(234, 206, 161, 0.18);
}

.content-header .owned-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.18rem;
  min-height: 0.54rem;
  padding: 0 0.18rem;
  border: 1px solid rgba(234, 206, 161, 0.42);
  border-radius: 999px;
  background: rgba(234, 206, 161, 0.1);
  color: #eacea1;
  font-size: 0.24rem;
  font-weight: 700;
}

.player-video,
.video-tools,
.video-info,
.video-about {
  margin-top: 0.24rem;
  padding: 0.24rem;
  border: 1px solid rgba(234, 206, 161, 0.14);
  border-radius: 0.28rem;
  background:
    linear-gradient(145deg, rgba(234, 206, 161, 0.07), rgba(234, 206, 161, 0) 38%),
    rgba(18, 18, 18, 0.94);
  box-shadow: 0 0.18rem 0.42rem rgba(0, 0, 0, 0.26);
}

.player-video {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  padding: 0.2rem;
}

.player-video #video-app,
.player-video .prism-player {
  position: relative;
  z-index: 1 !important;
  width: 100% !important;
  height: 4.72rem !important;
  overflow: hidden;
  border-radius: 0.18rem;
  background: #000;
}

.player-video .native-video-wrap {
  position: relative;
  z-index: 1 !important;
  width: 100% !important;
  height: 4.72rem !important;
  overflow: hidden;
  border-radius: 0.18rem;
  background: #000;
}

.player-video .native-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-video .native-video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.player-video .prism-player *,
.player-video #video-app * {
  z-index: auto;
}

.player-video .prism-controlbar,
.player-video .prism-big-play-btn,
.player-video .prism-cover {
  z-index: 2 !important;
}

.player-video .prism-cover,
.player-video .prism-cover img,
.player-video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.player-video .prism-big-play-btn {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 1.18rem !important;
  height: 1.18rem !important;
  margin: 0 !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 0.12rem 0.36rem rgba(0, 0, 0, 0.35);
}

.player-video .prism-big-play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin-left: 0.04rem;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  border-left: 0.36rem solid #111;
  transform: translate(-50%, -50%);
}

.player-video .prism-play-btn,
.player-video .prism-pause-btn {
  position: relative;
}

.player-video .prism-play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 0.1rem solid transparent;
  border-bottom: 0.1rem solid transparent;
  border-left: 0.16rem solid #eacea1;
  transform: translate(-45%, -50%);
}

.player-video .prism-pause-btn::before,
.player-video .prism-pause-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.06rem;
  height: 0.2rem;
  border-radius: 99px;
  background: #eacea1;
  transform: translateY(-50%);
}

.player-video .prism-pause-btn::before {
  left: 42%;
}

.player-video .prism-pause-btn::after {
  left: 56%;
}

.player-video .prism-player .prism-big-play-btn,
.player-video #video-app .prism-big-play-btn {
  position: absolute !important;
  right: auto !important;
  bottom: auto !important;
}

.player-video .prism-player .prism-cover {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.player-video .prism-big-play-btn .outter {
  display: none !important;
}

.player-video .prism-big-play-btn .inner {
  display: none !important;
}

.video-tools {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.16rem;
  padding: 0.18rem;
}

.video-tools .item a {
  min-height: 1.22rem;
  justify-content: center;
  gap: 0.08rem;
  border-radius: 0.2rem;
  background: rgba(234, 206, 161, 0.045);
  color: #eacea1;
}

.video-tools .icon {
  width: 0.62rem;
  height: 0.62rem;
  opacity: 0.9;
}

.video-tools .icon img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0.04rem 0.1rem rgba(234, 206, 161, 0.18));
}

.video-tools .title {
  color: #f5e2bd;
  font-size: 0.24rem;
  line-height: 1.2;
}

.video-info {
  display: grid;
  gap: 0.18rem;
  padding: 0.26rem 0.26rem 0.28rem;
}

.video-info .group {
  display: flex;
  gap: 0.18rem;
  align-items: center;
  color: rgba(234, 206, 161, 0.9);
  font-size: 0.23rem;
}

.video-info .group span {
  display: inline-flex;
  align-items: center;
  min-height: 0.44rem;
  padding: 0 0.18rem;
  border: 1px solid rgba(234, 206, 161, 0.2);
  border-radius: 999px;
  background: rgba(234, 206, 161, 0.07);
}

.video-info .author {
  display: grid;
  grid-template-columns: 0.38rem 1fr;
  gap: 0.12rem;
  align-items: flex-start;
  margin-top: 0;
  color: #fff2d3;
  font-size: 0.32rem;
  font-weight: 700;
  line-height: 1.36;
  word-break: break-word;
}

.video-info .author img {
  width: 0.38rem;
  height: 0.38rem;
  margin-top: 0.02rem;
  filter: sepia(1) saturate(1.4) brightness(1.18);
}

.video-info .author span {
  display: block;
}

.video-info .like {
  margin-top: 0.14rem;
  color: rgba(246, 241, 230, 0.72);
  font-size: 0.24rem;
}

.video-info .like .item {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
}

.video-info .like img {
  width: 0.3rem;
  height: 0.3rem;
  opacity: 0.86;
}

.video-about {
  padding: 0.24rem;
}

.video-about > .title {
  position: relative;
  margin-bottom: 0.2rem;
  padding-left: 0.16rem;
  color: #eacea1;
  font-size: 0.3rem;
  font-weight: 700;
}

.video-about > .title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.06rem;
  height: 0.32rem;
  border-radius: 99px;
  background: #eacea1;
  transform: translateY(-50%);
}

.video-about ul {
  gap: 0.18rem;
}

.video-about li a {
  grid-template-columns: 1.8rem 1fr;
  gap: 0.18rem;
  padding: 0.1rem;
  border-radius: 0.18rem;
  background: rgba(255, 255, 255, 0.025);
}

.video-about .thumb {
  height: 1.14rem;
  border-radius: 0.14rem;
}

.video-about .thumb img {
  height: 100%;
  object-fit: cover;
}

.video-about li a > .title {
  color: #fff0cd;
  font-size: 0.28rem;
  font-weight: 700;
  line-height: 1.32;
}

.video-about .desc {
  color: rgba(246, 241, 230, 0.58);
  font-size: 0.22rem;
}

#shikan {
  position: absolute;
  inset: 0.2rem;
  z-index: 4;
  display: none;
  border-radius: 0.18rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

#shikan .box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.28rem;
}

#shikan .tips {
  width: 86%;
  padding: 0.32rem 0.24rem;
  border: 1px solid rgba(234, 206, 161, 0.22);
  border-radius: 0.22rem;
  background: rgba(20, 20, 20, 0.92);
  text-align: center;
}

#shikan .text {
  color: #fff2d3;
  font-size: 0.26rem;
  line-height: 1.45;
}

#shikan .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0.72rem;
  margin-top: 0.22rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  background: #eacea1;
  color: #111;
  font-size: 0.26rem;
  font-weight: 700;
}

@media (min-width: 541px) {
  body {
    background:
      radial-gradient(circle at 50% 0, rgba(234, 206, 161, 0.14), transparent 34%),
      linear-gradient(90deg, #101418, #1d252c 50%, #101418);
  }

  .page {
    max-width: 430px;
    box-shadow: 0 0 0 1px rgba(234, 206, 161, 0.08), 0 0.26rem 0.8rem rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 360px) {
  .player-video #video-app,
  .player-video .prism-player,
  .player-video .native-video-wrap {
    height: 4.25rem !important;
  }

  .video-tools .title,
  .video-info .group,
  .video-info .like,
  .video-about .desc {
    font-size: 0.22rem;
  }
}

