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

:root {
  --bg: #eeeeee;
  --line: #d3d3d3;
  --text: #2e2e2e;
  --muted: #777777;
  --danger: #d60000;
  --dark: #111111;
  --yellow: #eff100;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #202020;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input {
  font: inherit;
}

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

.app {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.view {
  min-height: calc(100vh - 70px);
  background: var(--bg);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #eeeeee;
  color: #006d70;
  transition: opacity .28s ease, visibility .28s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash h1 {
  margin: 0;
  color: #c80000;
  font-size: 54px;
  line-height: 1;
  text-align: center;
  font-weight: 900;
}

.splash p {
  margin: 18px 0 0;
  font-size: 26px;
  text-align: center;
}

.ad-banner {
  height: 60px;
  background: #e8d34a;
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden;
}

.ad-banner.hidden {
  display: none;
}

.ad-banner img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: fill;
}

.ad-banner button {
  position: absolute;
  right: 6px;
  top: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, .64);
  font-size: 21px;
  line-height: 1;
}

.top-nav,
.page-bar {
  height: 52px;
  display: grid;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.top-nav {
  grid-template-columns: 58px 1fr 1fr 1fr 58px;
}

.top-nav .menu,
.top-nav .search,
.page-bar .back,
.page-bar .right {
  height: 62px;
  display: grid;
  place-items: center;
  color: #333333;
}

.top-nav .menu,
.top-nav .search,
.page-bar .back,
.page-bar .right {
  height: 52px;
}

.hamburger {
  width: 34px;
  height: 28px;
  display: grid;
  gap: 5px;
}

.hamburger i {
  display: block;
  height: 4px;
  background: #444444;
}

.search-mark {
  width: 30px;
  height: 30px;
  border: 5px solid #e40000;
  border-radius: 50%;
  position: relative;
}

.search-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 5px;
  right: -15px;
  bottom: -6px;
  background: #e40000;
  transform: rotate(45deg);
  border-radius: 9px;
}

.zone-tab {
  height: 52px;
  color: #666666;
  font-size: 16px;
  display: grid;
  place-items: center;
  position: relative;
}

.zone-tab small {
  display: block;
  margin-top: 2px;
  color: #dd2020;
  font-size: 12px;
}

.zone-tab.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 4px;
  background: #222222;
}

.category-row {
  height: 42px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  overflow-x: auto;
  background: var(--yellow);
  scrollbar-width: none;
}

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

.category-row button {
  min-width: 72px;
  color: #343434;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.category-row button span {
  color: #dd2020;
  font-size: 12px;
}

.category-row button.active {
  background: #fff600;
  color: #e30000;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  align-items: start;
}

.video-card {
  min-width: 0;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.video-cover {
  aspect-ratio: 1 / 1.18;
  background: #c8c8c8;
  background-image: var(--cover-bg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  contain: paint;
}

.video-cover.tall {
  aspect-ratio: 1 / 1.48;
}

.video-cover.short {
  aspect-ratio: 1 / .84;
}

.video-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 38%);
}

.play {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
}

.play::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  border-left: 16px solid #ffffff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.badge-row,
.duration {
  position: absolute;
  top: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, .42);
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 5px;
  font-size: 13px;
}

.badge-row {
  left: 0;
}

.duration {
  right: 0;
}

.star {
  color: #ffc400;
  font-size: 16px;
}

.lock {
  color: #ffce25;
}

.video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 6px 7px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-tile {
  min-height: 160px;
  background: #f40000;
  color: #161616;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 21px;
  line-height: 1.55;
  padding: 16px;
}

.empty-panel {
  min-height: calc(100vh - 195px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #333333;
  font-size: 18px;
}

.page-bar {
  grid-template-columns: 58px 1fr 58px;
}

.page-title {
  text-align: center;
  font-size: 18px;
  color: #444444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-bar .back {
  font-size: 38px;
  line-height: 1;
}

.page-bar .right {
  font-size: 16px;
}

.form-page {
  background: #ffffff;
  min-height: calc(100vh - 132px);
  padding: 20px 12px;
}

.warn {
  color: #c81717;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.input-box {
  height: 50px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: #eeeeee;
  color: #222222;
  padding: 0 16px;
  margin: 0 0 14px;
  font-size: 17px;
}

.input-box::placeholder {
  color: #ababab;
}

.primary,
.secondary,
.dark-btn,
.red-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 14px;
  font-size: 18px;
}

.primary,
.red-btn {
  color: #ffffff;
  background: #f50000;
}

.secondary {
  color: #ffffff;
  background: #cfcfcf;
}

.dark-btn {
  color: #ffffff;
  background: #171717;
}

.form-actions {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  color: #444444;
  font-size: 17px;
}

.list-section-title {
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #d9d9d9;
  color: #777777;
  font-size: 16px;
}

.plain-list {
  background: #ffffff;
}

.plain-list button,
.plain-row {
  min-height: 52px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 17px;
}

.plain-list .value {
  color: #444444;
}

.chev {
  font-size: 28px;
  color: #111111;
  line-height: 1;
}

.switch {
  width: 40px;
  height: 25px;
  border-radius: 99px;
  background: #cccccc;
  padding: 3px;
}

.switch i {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #f4f4f4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.settings-footer {
  padding: 18px 14px 28px;
}

.profile-top {
  padding: 18px 14px 12px;
  background: #ffffff;
}

.profile-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  min-height: 45px;
  align-items: center;
  font-size: 17px;
}

.profile-row input {
  width: 120px;
  height: 36px;
  border: 1px solid #888888;
  border-radius: 3px;
  padding: 0 6px;
}

.share-page,
.buy-page,
.guide-page {
  padding: 14px;
  background: #ffffff;
  min-height: calc(100vh - 132px);
}
.share-page {
  background: #f2f2f2;
}
.share-page .button-row {
  grid-template-columns: repeat(3, 1fr);
}
.share-page .button-row .dark-btn {
  font-size: 14px;
  padding: 0 4px;
}
.share-page .copy-row span {
  word-break: break-all;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.box {
  border: 1px solid #777777;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 16px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.button-row .dark-btn {
  min-height: 48px;
  font-size: 16px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: center;
}

.qr {
  width: 238px;
  height: 238px;
  margin: 18px auto;
  background: #fff;
  border: 1px solid #eee;
}
.share-qr-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.share-qr-img {
  width: 240px;
  height: 240px;
  display: block;
  margin: 8px auto 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  object-fit: contain;
}
.share-link-line {
  font-size: 12px;
  color: #666;
  word-break: break-all;
  padding: 0 8px 8px;
  text-align: left;
}
.share-code-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}
.dark-btn.mini {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.share-main-btn {
  max-width: 260px;
  margin: 0 auto 8px;
  display: block;
}
.share-rules {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}
.share-rules .red,
.share-pack .red {
  color: #d60000;
  font-weight: 700;
}
.share-rules .blue {
  color: #1a66c4;
  font-weight: 700;
}
.share-pack-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}
.share-pack-ok {
  background: #e8f8ef;
  color: #146c2e;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}
.share-pack-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}
.share-pack-pass {
  margin: 10px 0;
  font-size: 15px;
}
.share-pack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.share-pack-row .dark-btn {
  min-height: 46px;
  font-size: 13px;
  padding: 0 6px;
}
.share-pack-warn {
  color: #d60000;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}
.share-hello {
  font-size: 15px;
  line-height: 1.65;
}
.share-rules-title {
  font-size: 16px;
  font-weight: 800;
  margin: 4px 0 10px;
  color: #222;
}
.auto-load-tip {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 12px 0 18px;
  min-height: 20px;
}
.auto-load-tip:empty { display: none; }
.auto-load-tip:not(:empty) {
  color: #666;
  font-weight: 600;
}

.buy-option {
  margin: 46px auto 22px;
  max-width: 220px;
}

.pay-box {
  padding: 22px 14px;
  text-align: center;
}

.pay-count {
  background: #cccccc;
  color: #cf0000;
  font-size: 18px;
  padding: 8px 0;
}

.timer {
  display: inline-block;
  min-width: 70px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #cf0000;
  font-size: 25px;
}

.wallet {
  text-align: left;
  font-size: 19px;
  line-height: 1.5;
  word-break: break-all;
}

.chat-input {
  position: fixed;
  left: 50%;
  bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  width: min(100vw, 430px);
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  padding: 7px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.chat-input input {
  border: 1px solid #bbbbbb;
  border-radius: 7px;
  padding: 0 10px;
  background: #f4f4f4;
}

.image-btn {
  display: grid;
  place-items: center;
  border: 2px solid #777777;
  background: #ffffff;
  font-size: 26px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.drawer.open {
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(80vw, 320px);
  transform: translateX(calc(-50% - 430px));
  background: #eeeeee;
  box-shadow: 12px 0 20px rgba(0, 0, 0, .25);
  transition: transform .24s ease;
  overflow-y: auto;
}

.drawer.open .drawer-panel {
  transform: translateX(calc(-50% - 43px));
}

.drawer-mask {
  position: absolute;
  inset: 0;
  margin-left: min(80vw, 320px);
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .24s ease;
}

.drawer.open .drawer-mask {
  opacity: 1;
}

.drawer-head {
  min-height: 132px;
  padding: 14px 10px 12px;
  background: #151515;
  color: #ffffff;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: start;
}

.drawer-head img {
  width: 52px;
  height: 52px;
  cursor: pointer;
}

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

.drawer-head strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.drawer-points {
  margin-top: 8px;
  color: #ff2a2a;
  font-size: 14px;
}

.drawer-exp {
  margin-top: 8px;
  width: 100%;
  min-height: 28px;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-size: 12px;
  text-align: left;
  padding: 0 8px;
}

.drawer-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.drawer-head button {
  min-width: 96px;
  height: 34px;
  border-radius: 7px;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  cursor: pointer;
  padding: 0 8px;
}

.drawer-points-btn {
  min-height: 40px !important;
  font-weight: 700;
}
.drawer-logout-btn {
  background: #c62828 !important;
  color: #fff !important;
  border: none;
}

.points-page {
  padding: 10px;
  background: #ececec;
  min-height: calc(100vh - 48px);
}

.points-card {
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.points-balance {
  font-size: 18px;
  margin-bottom: 4px;
}

.points-delta {
  color: #666666;
  font-size: 14px;
  margin-bottom: 12px;
}

.points-actions,
.points-usdt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.points-usdt {
  grid-template-columns: 1fr 1fr;
}

.points-actions button,
.points-usdt button,
.points-row button,
.market-buy {
  min-height: 40px;
  border-radius: 6px;
  background: #3a3a3a;
  color: #ffffff;
  font-size: 15px;
}

.points-actions button.ghost,
.points-row button:disabled,
.market-buy:disabled {
  background: #d0d0d0;
  color: #777777;
}

.points-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 6px;
  font-size: 15px;
}

.points-row .red {
  color: #d60000;
}

.points-row small,
.points-help {
  color: #2b5cff;
  font-size: 13px;
}

.points-sub {
  color: #d60000;
  font-size: 13px;
  margin-top: 4px;
}

.perm-title {
  margin: 14px 4px 8px;
  font-size: 16px;
}

.market-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f2f2f2;
  border-bottom: 1px solid #ddd;
}

.market-tabs button {
  min-height: 44px;
  font-size: 14px;
  color: #444;
}

.market-tabs button.active {
  background: #d9d9d9;
  font-weight: 700;
}

.market-list {
  background: #fff;
}

.market-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #ececec;
}

.market-item .price {
  color: #d60000;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.market-item .meta {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.pay-icons {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.pay-icons i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  color: #fff;
}

.pay-icons .alipay { background: #1677ff; }
.pay-icons .wechat { background: #07c160; }

.guide-steps {
  padding: 12px;
  line-height: 1.7;
  font-size: 15px;
  background: #fff;
}

.guide-steps h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.guide-steps .demo-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  margin: 8px 0 12px;
}

.guide-btn-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.guide-btn-row button {
  min-height: 36px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}

.red-note { color: #d60000; font-size: 14px; line-height: 1.6; margin: 8px 0; }
.field-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}
.muted { color: #777; font-size: 14px; }
.black-banner {
  background: #111;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 14px;
}
.withdraw-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.withdraw-line .mini { width: 100px; min-height: 36px; }
.elite-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}
.elite-card .red { color: #d60000; margin-top: 6px; font-weight: 700; }
.sec-label {
  background: #d9d9d9;
  padding: 8px 10px;
  margin: 10px 0 6px;
  font-size: 15px;
}
.gray-box { background: #eee !important; border: 0 !important; }
.help-link {
  display: block;
  padding: 8px 0;
  color: #222;
  text-decoration: none;
}
.linkish {
  background: none;
  color: #222;
  text-decoration: underline;
  padding: 0;
  display: inline;
  min-height: auto;
}

.drawer-tabs,
.drawer-categories {
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 0 13px;
  padding: 10px 10px 8px;
  font-size: 15px;
}

.drawer-tabs button,
.drawer-categories button {
  min-height: 34px;
  color: #333333;
  white-space: nowrap;
}

.drawer-menu {
  margin-top: 10px;
}

.drawer-menu button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  text-align: left;
  color: #444444;
  font-size: 16px;
}

.drawer-menu span {
  text-align: center;
  font-size: 24px;
}

.drawer-menu .red {
  color: #e00000;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .58);
}

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

.dialog {
  width: min(100%, 370px);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .26);
}

.dialog-body {
  padding: 26px 16px;
  font-size: 20px;
  line-height: 1.45;
}

.dialog-body small {
  display: block;
  color: #777777;
  margin-top: 10px;
}

.dialog-red {
  color: #f00000;
  font-size: 17px;
}

.dialog-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--line);
}

.dialog-actions button {
  min-height: 56px;
  border-right: 1px solid var(--line);
  color: #333333;
  font-size: 20px;
}

.dialog-actions button:last-child {
  border-right: 0;
}

.captcha {
  padding: 12px 10px 0;
}

.captcha-code {
  font-size: 28px;
  color: #9b0000;
  font-weight: 900;
  transform: rotate(4deg);
}

.captcha-img {
  height: 280px;
  margin-top: 10px;
  background:
    radial-gradient(circle at 54% 30%, #f7b4cb 0 9%, transparent 10%),
    radial-gradient(circle at 72% 41%, #f6c15c 0 5%, transparent 6%),
    radial-gradient(circle at 29% 81%, #ff825a 0 6%, transparent 7%),
    linear-gradient(135deg, #d9ecff, #f7d2dc 50%, #b88d94);
  position: relative;
  overflow: hidden;
}

.captcha-img span {
  position: absolute;
  color: #222222;
  font-weight: 900;
  font-size: 24px;
  transform: rotate(var(--r));
}

.captcha-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 16px 10px 18px;
  align-items: center;
}

.refresh {
  font-size: 38px;
}

.captcha-bottom button:not(.refresh) {
  min-height: 50px;
  border-radius: 6px;
  background: #1c31e9;
  color: #ffffff;
  font-size: 19px;
}

.load-more {
  width: calc(100% - 20px);
  min-height: 46px;
  margin: 2px 10px 18px;
  border-radius: 5px;
  background: #171717;
  color: #ffffff;
  font-size: 17px;
}

.detail-page,
.chat-page,
.game-page {
  min-height: calc(100vh - 132px);
  background: #ffffff;
  padding: 12px;
}

.player,
.detail-cover {
  width: 100%;
  max-height: 42vh;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #111111;
  overflow: hidden;
}

.player {
  display: block;
  object-fit: contain;
  background: #000;
}

.detail-cover {
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.45));
}

.detail-page h2 {
  margin: 13px 0 9px;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 600;
  color: #242424;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  color: #555555;
  font-size: 13px;
}

.detail-meta span {
  min-width: 0;
  min-height: 28px;
  display: grid;
  place-items: center;
  background: #eeeeee;
  border-radius: 4px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-main-nav {
  grid-template-columns: 58px 1fr 58px;
}
.home-main-nav .home-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 36px;
  justify-self: center;
  width: 100%;
  max-width: 220px;
}
.home-main-nav .nav-spacer {
  width: 58px;
  height: 52px;
}
.home-main-nav .main-tab {
  flex: 0 0 auto;
  min-width: 56px;
  min-height: 44px;
  font-size: 17px;
  color: #444;
  background: transparent;
  padding: 0 4px;
}
.home-main-nav .main-tab.active {
  color: #111;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 #111;
}
.loading-block {
  grid-column: 1 / -1;
  width: 100%;
  min-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #777;
  font-size: 15px;
  text-align: center;
  padding: 24px 12px;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e5e5;
  border-top-color: #333;
  border-radius: 50%;
  animation: bb-spin .7s linear infinite;
}
@keyframes bb-spin {
  to { transform: rotate(360deg); }
}
.video-card.skeleton .video-cover {
  background: linear-gradient(90deg, #d8d8d8 25%, #ececec 37%, #d8d8d8 63%);
  background-size: 400% 100%;
  animation: bb-shimmer 1.2s ease infinite;
}
@keyframes bb-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.video-cover {
  transition: filter .2s ease;
}
.video-cover:not(.cover-ready) {
  background-color: #cfcfcf;
}
.box-detail-page .video-grid {
  min-height: 240px;
}
.drawer-section-label {
  width: 100%;
  flex: 0 0 100%;
  padding: 10px 4px 4px;
  color: #888;
  font-size: 12px;
}
.drawer-zone-row {
  width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.drawer-zone-btn {
  min-height: 40px !important;
  border-radius: 6px;
  background: #f3f4f6 !important;
  color: #111 !important;
  font-weight: 700;
  text-align: center !important;
}
.drawer-zone-btn.search {
  grid-column: 1 / -1;
  background: #111 !important;
  color: #fff !important;
}
.search-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #fff8e1;
  color: #7a5a00;
  font-size: 13px;
  border-bottom: 1px solid #f0e0a8;
}
.search-chip button {
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
}
.zone-nav {
  border-top: 1px solid #eee;
}
.box-rank-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-bottom: 1px solid #eee;
}
.box-rank-row button {
  min-height: 44px;
  font-size: 14px;
  color: #555;
  background: transparent;
}
.box-rank-row button.active {
  color: #d60000;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 #d60000;
}
.box-rank-row small {
  display: block;
  color: #d60000;
  font-size: 11px;
}
.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #f2f2f2;
}
.box-card-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  text-align: left;
  padding: 0 0 8px;
}
.box-cover {
  height: 150px;
  background: #ddd center/cover no-repeat;
  position: relative;
}
.box-cover.collage {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
}
.box-cover.collage i {
  display: block;
  background: #ccc center/cover no-repeat;
}
.box-followers {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}
.box-name {
  padding: 8px 8px 2px;
  font-size: 14px;
  font-weight: 700;
}
.box-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 12px;
  color: #666;
}
.box-meta .follow-mini {
  margin-left: auto;
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.box-edit-bar {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.box-edit-bar button {
  background: #d60000;
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  min-height: 28px;
}
.mybox-bar {
  grid-template-columns: 58px 1fr auto;
}
.mybox-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-right: 10px;
  min-height: 52px;
}
.mybox-bar .right {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
  font-size: 15px;
  color: #333;
}
.mybox-bar .add-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d60000;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
}
.box-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}
.box-detail-head .dark-btn {
  width: auto;
  min-width: 88px;
  padding: 0 12px;
}

.locked-preview {
  position: relative;
  background: #111;
  color: #fff;
  padding-bottom: 20px;
}
.locked-stage {
  position: relative;
  width: 100%;
  max-height: 42vh;
  overflow: hidden;
  background: #1a1a1a;
}
.locked-media {
  width: 100%;
  height: min(42vh, 260px);
  min-height: 180px;
  background: #222 center/contain no-repeat;
}
.locked-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}
.locked-cell {
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
}
.locked-title {
  padding: 12px 14px 0;
  font-size: 15px;
  line-height: 1.4;
  color: #eee;
}
.locked-footer {
  position: relative;
  margin-top: 12px;
  padding: 12px 16px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.detail-bar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.unlock-cta {
  background: #e10600;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 28px;
  width: min(86%, 360px);
}
.unlock-cta.inline {
  display: block;
  width: auto;
  margin: 10px auto 4px;
}
.page-dot {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-wrap { position: relative; }

.player-cover-floor {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background-color: #111;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.player-wrap > .player {
  position: relative;
  z-index: 1;
}
.fs-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 10px;
}
.fs-btn {
  min-height: 40px;
  border-radius: 6px;
  background: #2b2b2b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: #000;
  display: block;
}
.fs-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.fs-tap {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}
.fs-bar,
.fs-dock-wrap {
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: 5;
}
.fs-overlay.fs-controls-on .fs-bar,
.fs-overlay.fs-controls-on .fs-dock-wrap {
  opacity: 1;
}
.fs-overlay.fs-controls-on .fs-bar,
.fs-overlay.fs-controls-on .fs-dock {
  pointer-events: auto;
}
/* 顶栏始终竖屏位置，不随横屏旋转 */
.fs-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.2));
  color: #fff;
  z-index: 7;
}
.fs-bar button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.fs-bar-modes {
  display: flex;
  gap: 6px;
}
.fs-bar-modes .active {
  background: #d60000;
}
.fs-dock-wrap {
  position: absolute;
  inset: 0;
  z-index: 6;
}
.fs-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.15));
  color: #fff;
  box-sizing: border-box;
  pointer-events: none;
}
.fs-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
}
.fs-seek-track {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  touch-action: none;
  cursor: pointer;
}
.fs-seek-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.fs-seek-fill {
  position: absolute;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: #d60000;
  pointer-events: none;
}
.fs-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
  pointer-events: none;
}
.fs-seek-track[data-dragging="1"] .fs-seek-thumb {
  width: 20px;
  height: 20px;
  margin-left: -10px;
}
.fs-time {
  font-size: 12px;
  white-space: nowrap;
  opacity: .95;
  min-width: 84px;
  text-align: right;
}
.fs-seek-tip {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 8;
  min-width: 88px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.fs-seek-tip.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* 横屏时提示数字跟画面同向旋转 */
.fs-overlay.fs-landscape .fs-seek-tip {
  transform: translate(-50%, -50%) rotate(90deg) scale(0.92);
}
.fs-overlay.fs-landscape .fs-seek-tip.show {
  transform: translate(-50%, -50%) rotate(90deg) scale(1);
}
.fs-overlay .player,
.fs-overlay #detailPlayer {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
  border-radius: 0;
}
/* 横屏：画面与进度条同向旋转；退出/竖屏/横屏仍固定在屏幕顶部 */
.fs-overlay.fs-landscape .player,
.fs-overlay.fs-landscape #detailPlayer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
  object-fit: cover;
  z-index: 1;
}
.fs-overlay.fs-landscape .fs-dock-wrap {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}
.fs-overlay.fs-landscape .fs-dock {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
}
.fs-overlay.fs-landscape .fs-seek-track {
  width: 100%;
  min-width: 0;
  height: 32px;
}
.fs-overlay.fs-landscape .fs-bar {
  transform: none !important;
}
body.fs-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.player-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.lock-badge, .dur-badge {
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 13px;
}
.trial-btn { background: #f5c400 !important; }
.win-banner {
  background: #d60000;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.5;
}
.win-banner .linkish { color: #fff; text-decoration: underline; }
.invite-banner { font-size: 13px; }
.guess-head {
  margin: 16px 0 8px;
  padding: 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}
.guess-grid {
  padding: 0 0 4px;
}
.guess-more {
  text-align: center;
  color: #888;
  font-size: 13px;
  padding: 10px 0 4px;
}

.detail-bar { justify-content: space-between; }
.detail-bar .page-title { display: none; }
.detail-bar-actions { display: flex; gap: 8px; margin-left: auto; }
.report-btn {
  background: #d60000 !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  min-height: 34px;
}
.collect-btn {
  background: #fff !important;
  color: #d60000 !important;
  border: 1px solid #d60000 !important;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  min-height: 34px;
}
.detail-toolbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.dl-btn {
  background: #f5c400;
  color: #222;
  border-radius: 4px;
  min-height: 36px;
  font-weight: 700;
  font-size: 16px;
}
.invite-tip {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 4px solid #d60000;
  background: #f3f3f3;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}
.collector-line { font-size: 14px; margin: 8px 0; color: #444; }
.collector-line .red { color: #d60000; font-weight: 700; }
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.related-head button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
}
.related-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.box-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}
.box-card-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.box-card-meta { color: #777; font-size: 12px; margin-bottom: 8px; }
.follow-mini {
  background: #3a3a3a;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  min-height: 30px;
  width: 100%;
}
.report-page { padding: 14px; background: #fff; min-height: calc(100vh - 48px); }
.report-lead { font-size: 16px; margin-bottom: 12px; }
.report-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.45;
}
.report-option input { margin-top: 4px; }
.ghost-red { background: #d60000; margin-top: 10px; }
.box-pick {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 12px;
  font-size: 16px;
}
.box-pick .meta { display: block; color: #888; font-size: 12px; margin-top: 4px; }
.plus-btn { font-size: 22px; line-height: 1; }
.check-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }

.detail-page .dark-btn,
.detail-page .red-btn {
  margin-bottom: 10px;
}

.messages-nav {
  grid-template-columns: 58px repeat(4, 1fr);
}

.system-text {
  padding: 12px 14px;
  margin: 0;
  color: #777777;
  line-height: 1.5;
  background: #eeeeee;
}

.chat-page {
  padding-bottom: 76px;
}

.empty-panel.small {
  min-height: 220px;
  color: #777777;
  font-size: 16px;
}

.chat-input {
  z-index: 45;
}

.chat-input .image-btn {
  border-radius: 7px;
  background: #151515;
  color: #ffffff;
  border: 0;
  font-size: 15px;
}

.account-save {
  background: #eeeeee;
}

.account-save > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px 12px;
  max-width: 300px;
  margin: 22px auto 70px;
  font-size: 18px;
  word-break: break-all;
}

.modal-input {
  margin: 0;
  text-align: center;
}

.game-page {
  text-align: center;
}

.game-page .box {
  margin-top: 18px;
  font-size: 20px;
}

.dice {
  width: 118px;
  height: 118px;
  margin: 32px auto;
  border-radius: 18px;
  background: #171717;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 58px;
  font-weight: 900;
}

.video-cover[style=""],
.detail-cover[style="background-image:url()"] {
  background-image: linear-gradient(135deg, #cfd6df, #8b929b 52%, #2d2d2d) !important;
}

.drawer-categories button:nth-last-child(-n+6) {
  color: #d60000;
  font-weight: 700;
}

.profile-top .dark-btn {
  margin-top: 8px;
  min-height: 46px;
  font-size: 17px;
}

.plain-list button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 431px) {
  .drawer-panel {
    left: calc(50% - 215px);
    transform: translateX(-110%);
  }

  .drawer.open .drawer-panel {
    transform: translateX(0);
  }

  .drawer-mask {
    margin-left: calc(50% - 215px + min(82vw, 354px));
  }
}

@media (max-width: 370px) {
  .splash h1 {
    font-size: 45px;
  }

  .splash p {
    font-size: 22px;
  }

  .zone-tab {
    font-size: 16px;
  }

  .category-row {
    grid-auto-columns: minmax(72px, 1fr);
  }

  .category-row button {
    min-width: 72px;
    font-size: 16px;
  }

  .video-grid {
    gap: 9px;
    padding: 9px;
  }

  .video-title {
    font-size: 13px;
  }

  .page-title {
    font-size: 20px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }
  .share-page .button-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
