/* ==========================================================================
   TeeMee H5 Luxury UI & Interactive Upgrade v3 (Refined .tm-vpro Aesthetic)
   1. Unified VIP & VIP Pro Center (/pages/vip/index)
   2. Luxury 3D Coin Recharge Page (/pages/coin/index)
   3. Dual-Chamber Luxury Profile Wallet Card (/pages/profile/index)
   4. Harmonious Matte-Satin Button System & Micro-Lift Hover Feedback
   5. Interactive Live Video Preview on Hover (PC) & Touch (Mobile) for Drama Covers
   6. Smart Customer Support Modal (在线客服)
   ========================================================================== */

/* ---------- 0. Suppress legacy disconnected top .tm-vpro injection ---------- */
uni-page-body > .tm-vpro {
  display: none !important;
}

/* ---------- 4. Harmonious Hover Micro-Lift & Cursor Feedback ---------- */
.coin-pay,
.vip-pay,
.tm-unified-pay button,
.tm-vpro-pay button,
.profile-wallet-cta,
.profile-wallet-item,
.coin-plan,
.vip-plan,
.tm-uplan,
.coin-detail,
.coin-mode-tab,
.coin-records,
.back-button,
[data-top-action="coin"],
[data-top-action="vip"],
.episode-paywall__actions button,
.episode-paywall__actions uni-button,
.tm-cs-quick-btn,
.tm-cs-submit-btn,
.watch,
.drama-watch,
.rank-watch,
.up-content-watch,
.tm-glass-btn,
.primary,
.profile-primary,
.wish-gold,
.up-follow,
.up-content-follow,
.profile-recruit-cta {
  cursor: pointer !important;
  transition:
    transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease !important;
}

.coin-pay:hover,
.vip-pay:hover,
.tm-unified-pay button:hover,
.tm-vpro-pay button:hover,
.profile-wallet-cta:hover,
[data-top-action="coin"]:hover,
[data-top-action="vip"]:hover,
.episode-paywall__actions button:hover,
.episode-paywall__actions uni-button:hover,
.tm-cs-submit-btn:hover,
.watch:hover,
.feature:hover .watch,
.drama-watch:hover,
.rank-watch:hover,
.up-content-watch:hover,
.tm-glass-btn:hover,
.primary:hover,
.profile-primary:hover,
.wish-gold:hover,
.up-follow:hover,
.up-content-follow:hover,
.profile-recruit-cta:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
  box-shadow: 0 6px 18px rgba(255, 77, 148, 0.32), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.tm-unified-pay .tm-btn-alipay:hover,
.profile-wallet-item[data-route="coin"] .profile-wallet-cta:hover,
.profile-wallet-item:first-child .profile-wallet-cta:hover,
.wish-gold:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
  box-shadow: 0 6px 18px rgba(245, 185, 66, 0.32), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

.coin-pay:active,
.vip-pay:active,
.tm-unified-pay button:active,
.tm-vpro-pay button:active,
.profile-wallet-cta:active,
[data-top-action="coin"]:active,
[data-top-action="vip"]:active,
.tm-uplan:active,
.coin-plan:active,
.profile-wallet-item:active,
.watch:active,
.drama-watch:active,
.rank-watch:active,
.up-content-watch:active,
.tm-glass-btn:active,
.primary:active,
.profile-primary:active {
  transform: translateY(0.5px) scale(0.99) !important;
  filter: brightness(0.98) !important;
}

.coin-plan:hover,
.tm-uplan:hover,
.profile-wallet-item:hover,
.tm-cs-quick-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 200, 60, 0.22) !important;
  filter: brightness(1.03) !important;
}

/* ---------- Shared Top Header (.coin-header) on Coin & VIP pages ---------- */
.coin-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: rgba(18, 14, 24, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 200, 90, 0.14) !important;
}

.coin-mode-tabs {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 200, 90, 0.2) !important;
  border-radius: 999px !important;
  padding: 3px 6px !important;
}

.coin-mode-tab.active {
  color: #FFE7A3 !important;
}

/* ==========================================================================
   1. UNIFIED VIP & VIP PRO PAGE (/pages/vip/index) — Exact .tm-vpro Aesthetic
   ========================================================================== */
.vip-page,
.vip-page .route-scroll {
  background: #110d16 !important;
}

.vip-body {
  padding: 10px 12px 36px !important;
}

/* VIP Hero Banner (.vip-wallet) — Protect Right 32% 3D Crown & Wings Artwork */
.vip-wallet {
  height: 142px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 200, 90, 0.45) !important;
  background:
    linear-gradient(90deg, rgba(16, 10, 20, 0.88) 0%, rgba(22, 13, 28, 0.58) 52%, rgba(22, 13, 28, 0.0) 74%),
    url("/static/assets/banners/teemee_vip_hero_banner.jpg?v=1027v") right center / cover no-repeat !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 180, 60, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
}

.vip-wallet::before,
.vip-wallet::after {
  display: none !important;
  content: none !important;
}

.vip-account {
  position: absolute !important;
  left: 16px !important;
  top: 14px !important;
  max-width: 63% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  z-index: 2 !important;
}

.vip-account > uni-image {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 200, 90, 0.75) !important;
}

.vip-account .source-strong {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #FFF3D1 !important;
}

.vip-account .source-small {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 3px !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: linear-gradient(90deg, #FFE7A3, #E8A200) !important;
  color: #231805 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.vip-status {
  position: absolute !important;
  left: 16px !important;
  top: 66px !important;
  right: auto !important;
  width: 63% !important;
  max-width: 63% !important;
  z-index: 2 !important;
  font-size: 17.5px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  background: linear-gradient(90deg, #FFF1B8, #FFC83D, #FF8FC0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.vip-status .source-p {
  margin: 5px 0 0 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #d9c6a0 !important;
  -webkit-text-fill-color: #d9c6a0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Unified VIP & VIP Pro Center Container (.tm-vip-unified) — Exact .tm-vpro match */
.tm-vip-unified {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0, rgba(255, 95, 162, 0.25), transparent 60%),
    linear-gradient(160deg, #2b1a10, #140c16 55%, #1a0f1f);
  border: 1px solid rgba(255, 200, 90, 0.55);
  box-shadow: 0 0 22px rgba(255, 180, 60, 0.18);
  color: #fff;
}

.tm-vip-unified .tm-vpro-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-vip-unified .tm-vpro-head svg {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.tm-vip-unified .tm-vpro-t {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, #FFF1B8, #FFC83D, #FF8FC0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-vip-unified .tm-vpro-s {
  font-size: 12px;
  color: #d9c6a0;
  margin-top: 2px;
}

.tm-vip-unified .tm-vpro-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #FFE7A3, #E8A200);
  color: #4a2600;
}

/* 3 Flagship Privilege Highlights Row — Exact .tm-vpro-privs match */
.tm-u-privs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.tm-u-priv-item {
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 200, 90, 0.2);
}

.tm-u-priv-item b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #FFC83D;
  line-height: 1.2;
}

.tm-u-priv-item span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #eee;
}

/* Row 1: 3 Flagship VIP Pro Cards */
.tm-u-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Row 2: 4 Standard VIP Cards */
.tm-u-grid-std {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

/* Plan Card — Exact .tm-vpro-plan match */
.tm-uplan {
  position: relative;
  padding: 14px 6px 26px;
  border-radius: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
  user-select: none;
}

.tm-uplan.active {
  border-color: #FFC83D !important;
  background: linear-gradient(180deg, rgba(255, 200, 60, 0.18), rgba(255, 95, 162, 0.12)) !important;
  box-shadow: 0 0 14px rgba(255, 200, 60, 0.35) !important;
}

.tm-uplan-ribbon {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  background: #e8577a;
  color: #fff;
  z-index: 2;
}

.tm-uplan.std-tier .tm-uplan-ribbon {
  font-size: 9.5px;
  padding: 1.5px 6px;
}

.tm-uplan-name {
  font-size: 12px;
  font-weight: 700;
  color: #f3e2bd;
  line-height: 1.25;
}

.tm-uplan.std-tier .tm-uplan-name {
  font-size: 11.5px;
}

.tm-uplan-price {
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 900;
  color: #FFC83D;
  line-height: 1.15;
}

.tm-uplan.std-tier .tm-uplan-price {
  font-size: 20px;
}

.tm-uplan-price small {
  font-size: 13px;
  font-weight: 700;
  margin-right: 1px;
}

.tm-uplan-old {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.tm-uplan-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  font-size: 10px;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 3px;
}

.tm-uplan.active .tm-uplan-foot {
  color: #f3e2bd;
}

/* Selected Plan Summary + Dual Matte-Satin Payment Buttons (.tm-vpro-pay exact match) */
.tm-u-summary {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 200, 90, 0.18);
  font-size: 12px;
  color: #d9c6a0;
}

.tm-u-summary b {
  color: #FFC83D;
  font-weight: 800;
}

.tm-unified-pay {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tm-unified-pay button {
  flex: 1;
  height: 42px;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tm-unified-pay .tm-btn-alipay {
  background: linear-gradient(90deg, #ffe08a 0%, #f5b942 100%) !important;
  color: #231805 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.tm-unified-pay .tm-btn-wechat {
  background: #e8577a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
}

.tm-vip-unified .tm-vpro-note {
  font-size: 11px;
  color: #a99;
  margin-top: 10px;
  line-height: 1.6;
}

/* Hide legacy duplicate horizontal .vip-plans, .vip-note, .vip-pay */
.vip-body .vip-plans,
.vip-body .vip-note,
.vip-page .vip-pay {
  display: none !important;
}

/* Upgrade .vip-privileges & .vip-expanded below unified plans */
.vip-privileges {
  margin-top: 14px !important;
  padding: 16px 12px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(34, 24, 38, 0.88) 0%, rgba(22, 16, 26, 0.94) 100%) !important;
  border: 1px solid rgba(232, 196, 130, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
}

.privilege-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(64, 42, 58, 0.72) 0%, rgba(36, 24, 38, 0.88) 100%) !important;
  border: 1px solid rgba(236, 198, 132, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 196, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
  color: #F6CB72 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.vip-privilege[role="button"]:hover .privilege-icon,
.vip-privilege[aria-expanded="true"] .privilege-icon {
  border-color: rgba(232, 87, 122, 0.68) !important;
  background: linear-gradient(145deg, rgba(88, 44, 68, 0.85) 0%, rgba(46, 24, 40, 0.94) 100%) !important;
}

.privilege-grid-icon {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.privilege-grid-icon .source-i {
  display: none !important;
}

.vip-privilege .source-strong {
  color: #f3e2bd !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
}

.vip-privilege .source-small {
  color: rgba(235, 220, 205, 0.68) !important;
}

.vip-expanded {
  margin-top: 14px !important;
  padding: 16px 12px !important;
  background: linear-gradient(180deg, rgba(42, 28, 44, 0.72) 0%, rgba(25, 18, 29, 0.86) 100%) !important;
  border: 1px solid rgba(232, 196, 130, 0.24) !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
}

.vip-expanded > .source-div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 78px !important;
  padding: 6px 4px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 220, 168, 0.1) !important;
}

.vip-expanded .material-icon {
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  background: linear-gradient(145deg, rgba(68, 42, 58, 0.78) 0%, rgba(36, 23, 36, 0.92) 100%) !important;
  border: 1px solid rgba(236, 198, 132, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 196, 0.14), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
  border-radius: 12px !important;
  color: #e8577a !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.vip-expanded .material-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

.vip-expanded .source-span:last-child {
  display: block !important;
  margin-top: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  color: #f3e2bd !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================================================================
   2. LUXURY 3D COIN RECHARGE PAGE (/pages/coin/index) — .tm-vpro Aesthetic
   ========================================================================== */
.coin-page,
.coin-page .route-scroll {
  background: #110d16 !important;
}

/* Coin Wallet Hero Banner (.coin-wallet) — Protect Right 32% 3D Chest & Gems */
.coin-wallet {
  height: 132px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 200, 90, 0.45) !important;
  background:
    linear-gradient(90deg, rgba(16, 10, 20, 0.88) 0%, rgba(22, 13, 28, 0.58) 52%, rgba(22, 13, 28, 0.0) 74%),
    url("/static/assets/banners/teemee_recharge_coins_banner.jpg?v=1027v") right center / cover no-repeat !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 180, 60, 0.12) !important;
  position: relative !important;
  overflow: hidden !important;
}

.coin-wallet::before,
.coin-wallet::after {
  display: none !important;
  content: none !important;
}

.coin-account {
  left: 16px !important;
  top: 14px !important;
  max-width: 62% !important;
  z-index: 2 !important;
}

.coin-account uni-image {
  border: 1.5px solid rgba(255, 200, 90, 0.75) !important;
}

.coin-account .source-strong {
  color: #FFF3D1 !important;
  font-weight: 800 !important;
}

.coin-balance {
  left: 16px !important;
  top: 60px !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  color: #FFC83D !important;
  z-index: 2 !important;
}

/* Move 查看明细 pill to left-center next to balance so right-side 3D chest is 100% uncovered */
.coin-detail {
  left: 142px !important;
  top: 58px !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  padding: 0 12px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 200, 90, 0.4) !important;
  color: #FFE7A3 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
}

.coin-description {
  left: 16px !important;
  top: 95px !important;
  max-width: 62% !important;
  color: #d9c6a0 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  z-index: 2 !important;
}

/* 8 Coin Package Cards (.coin-plans / .coin-plan) — Exact .tm-vpro-plan match */
.coin-plans {
  margin: 16px 4px 0 !important;
  gap: 10px !important;
}

.coin-plan {
  height: 144px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.coin-plan::before {
  display: none !important;
}

.coin-plan.active {
  border-color: #FFC83D !important;
  background: linear-gradient(180deg, rgba(255, 200, 60, 0.18), rgba(255, 95, 162, 0.12)) !important;
  box-shadow: 0 0 14px rgba(255, 200, 60, 0.35) !important;
}

.coin-plan .plan-coins {
  top: 22px !important;
  color: #f3e2bd !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.coin-plan .plan-price {
  top: 52px !important;
  color: #FFC83D !important;
  font-weight: 900 !important;
}

.coin-plan .plan-bonus {
  top: auto !important;
  bottom: 0 !important;
  height: 28px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-top: 1px solid rgba(255, 200, 90, 0.18) !important;
  color: #d9c6a0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.coin-plan.active .plan-bonus {
  background: linear-gradient(90deg, rgba(255, 200, 60, 0.25), rgba(255, 95, 162, 0.25)) !important;
  color: #FFE7A3 !important;
}

.tm-coin-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 7px;
  border-radius: 0 12px 0 8px;
  font-size: 9.5px;
  font-weight: 800;
  background: #e8577a;
  color: #fff;
  z-index: 2;
}

/* Coin Footer Payment Button (.coin-pay) — Matte-Satin Pill */
.coin-footer {
  background: rgba(17, 13, 22, 0.95) !important;
  border-top: 1px solid rgba(255, 200, 90, 0.16) !important;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)) !important;
}

.coin-pay {
  height: 46px !important;
  border-radius: 999px !important;
  background: #e8577a !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
}

/* ==========================================================================
   3. PROFILE PAGE DUAL-CHAMBER WALLET CARD (/pages/profile/index) — .tm-vpro Match
   ========================================================================== */
.profile-wallet {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 112px !important;
  margin: 14px 12px 6px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(120% 80% at 100% 0, rgba(255, 95, 162, 0.22), transparent 60%),
    linear-gradient(160deg, #2b1a10, #140c16 55%, #1a0f1f) !important;
  border: 1px solid rgba(255, 200, 90, 0.5) !important;
  box-shadow: 0 0 22px rgba(255, 180, 60, 0.15) !important;
}

.profile-wallet-divider {
  display: none !important;
}

.profile-wallet-item {
  position: relative !important;
  border-radius: 12px !important;
  padding: 12px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 200, 90, 0.22) !important;
}

.profile-wallet-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #f3e2bd !important;
  white-space: nowrap !important;
}

.profile-wallet-balance {
  margin-top: 4px !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  color: #FFC83D !important;
}

.profile-wallet-note {
  margin-top: 4px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #d9c6a0 !important;
  white-space: nowrap !important;
}

/* Profile CTA Buttons: Left = Gold (#FFE08A -> #FFB03D), Right = Pink (#FF8FC0 -> #FF4D94) */
.profile-wallet-cta {
  padding: 0 12px !important;
  height: 30px !important;
  line-height: 30px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  background: linear-gradient(90deg, #ffe08a 0%, #f5b942 100%) !important;
  color: #231805 !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0 !important;
}

.profile-wallet-item[data-route="vip"] .profile-wallet-cta,
.profile-wallet-item:last-child .profile-wallet-cta {
  background: #e8577a !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
}

/* ==========================================================================
   5. INTERACTIVE LIVE VIDEO PREVIEW ON DRAMA COVERS (HOME & BROWSE)
   ========================================================================== */
uni-button.card[data-detail],
.card[data-detail] {
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease !important;
}

uni-button.card[data-detail].tm-card-previewing,
.card[data-detail].tm-card-previewing {
  transform: translateY(-3px) scale(1.02) !important;
  z-index: 15 !important;
}

uni-button.card[data-detail].tm-card-previewing .poster,
.card[data-detail].tm-card-previewing .poster {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px #FF8FC0,
    0 0 14px rgba(255, 77, 148, 0.35) !important;
}

.tm-video-preview-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 4 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: rgba(12, 8, 20, 0.25);
  animation: tmPreviewFadeIn 0.2s ease-out;
}

.tm-preview-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.tm-preview-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: #e8577a !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
  pointer-events: none !important;
}

.tm-preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFE7A3;
  animation: tmPulseDot 1s infinite alternate;
}

@keyframes tmPreviewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tmPulseDot {
  from { opacity: 0.45; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); }
}

/* ==========================================================================
   6. SMART CUSTOMER SUPPORT MODAL (在线客服 · 智能工单与实时处理中心)
   ========================================================================== */
.tm-cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(8, 5, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: tmPreviewFadeIn 0.2s ease-out;
}

.tm-cs-modal {
  width: min(410px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(120% 80% at 100% 0, rgba(255, 95, 162, 0.25), transparent 60%),
    linear-gradient(160deg, #2b1a10, #140c16 55%, #1a0f1f);
  border: 1px solid rgba(255, 200, 90, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 180, 60, 0.18);
  color: #fff;
}

.tm-cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tm-cs-title {
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(90deg, #FFF1B8, #FFC83D, #FF8FC0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-cs-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.tm-cs-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.tm-cs-quick-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 90, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f3e2bd;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.tm-cs-chat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  min-height: 90px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.55;
  color: #eee;
  margin-bottom: 12px;
}

.tm-cs-input-row {
  display: flex;
  gap: 8px;
}

.tm-cs-input {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 90, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.tm-cs-submit-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0 !important;
  background: #e8577a !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
}

/* ==========================================================================
   7. REFINED MATTE-SATIN PLATFORM BUTTONS ([t1114u] & [t1115u])
      Matches exact .tm-vpro button feel — NO ::before glossy bar, NO loud neon!
   ========================================================================== */

/* Remove any ::before glossy specular lens across all buttons */
.watch::before,
.rank-watch::before,
.drama-watch::before,
.up-content-watch::before,
.tm-glass-cta-watch::before,
.tm-glass-btn::before,
.primary::before,
.profile-primary::before,
.wish-gold::before,
.up-follow::before,
.up-content-follow::before,
.profile-recruit-cta::before,
.coin-pay::before,
.vip-pay::before,
.tm-unified-pay button::before,
.profile-wallet-cta::before {
  display: none !important;
  content: none !important;
}

/* Home Featured Card (.feature) — Subtle warm dark card matching .tm-vpro */
uni-button.feature,
.feature {
  height: auto !important;
  min-height: 198px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 200, 90, 0.22) !important;
  background:
    radial-gradient(120% 80% at 100% 0, rgba(255, 95, 162, 0.14), transparent 60%),
    linear-gradient(160deg, #221619, #140f18 60%, #18111d) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.feature-copy .source-p {
  -webkit-line-clamp: 3 !important;
  margin: 6px 0 10px !important;
}

/* "立即看 ▶" (.watch) — Well-proportioned, matte-satin pink pill */
.watch,
.feature .watch,
.feature-copy .watch,
uni-button.feature .watch,
.rank-watch,
.browse-page .rank-watch,
.tm-glass-cta-watch {
  min-width: 126px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  margin-top: auto !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  line-height: 36px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #e8577a !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
  text-shadow: none !important;
}

.watch .feature-play-icon,
.watch svg.tm-play-svg {
  width: 15px !important;
  height: 15px !important;
}

/* Full-width watch & primary action buttons */
.drama-watch,
.up-content-watch,
.tm-glass-btn,
.primary,
.profile-primary,
.up-follow,
.up-content-follow,
.profile-recruit-cta,
.payment-submit,
.promotion-cta,
.promotion-main-action {
  border-radius: 999px !important;
  border: 0 !important;
  background: #e8577a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.25) !important;
  text-shadow: none !important;
}

.wish-gold,
.tm-glass-btn.gold-variant {
  border-radius: 999px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #ffe08a 0%, #f5b942 100%) !important;
  color: #231805 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* High-specificity overrides after .tm-glass-btn so gold & subtle pills stay exact */
.profile-wallet .profile-wallet-item:first-child .profile-wallet-cta,
.profile-wallet .profile-wallet-item[data-route="coin"] .profile-wallet-cta {
  background: linear-gradient(90deg, #ffe08a 0%, #f5b942 100%) !important;
  color: #231805 !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.coin-wallet .coin-detail,
.coin-detail.tm-glass-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 200, 90, 0.42) !important;
  color: #FFE7A3 !important;
  box-shadow: none !important;
}

/* Prevent any note truncation inside .profile-wallet-item */
.profile-wallet .profile-wallet-item {
  padding: 11px 9px !important;
  gap: 4px !important;
}
.profile-wallet .profile-wallet-note {
  font-size: 10.5px !important;
  letter-spacing: -0.2px !important;
}
.profile-wallet .profile-wallet-cta {
  padding: 0 9px !important;
  height: 27px !important;
  line-height: 27px !important;
  font-size: 11px !important;
}

/* ==========================================================================
   8. V4 UPGRADES: LARGER LOGO & PLAY ICON, BINGE HEART ICON, LIVE DANMAKU
      ([t1118u], [t1119u], [t1120u], [t1121u])
   ========================================================================== */

/* --- 8A. Enlarge Top-Left TeeMee Logo & White Play Triangle ([t1118u]) --- */
.header .topbar .logo.tm-logo-rect {
  padding: 2px 4px 2px 0 !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.header .topbar .logo.tm-logo-rect .tm-rect-logo {
  height: 32px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 8px rgba(255, 77, 148, 0.35)) brightness(1.06) !important;
}

@media (max-width: 460px) {
  .header .topbar {
    gap: 4px !important;
  }
  .header .topbar .logo.tm-logo-rect {
    padding: 2px 2px 2px 0 !important;
    height: 30px !important;
  }
  .header .topbar .logo.tm-logo-rect .tm-rect-logo {
    height: 25px !important;
  }
  .header .topbar .tm-pill,
  .header .topbar uni-button.tm-pill {
    padding: 0 7px !important;
    gap: 3.5px !important;
    font-size: 11px !important;
    height: 29px !important;
  }
  .header .topbar .tm-pill .coin-label,
  .header .topbar .tm-pill .tm-pill-label {
    font-size: 11px !important;
    gap: 3.5px !important;
  }
  .header .topbar .tm-pill .tm-ico,
  .header .topbar .tm-pill svg {
    width: 13.5px !important;
    height: 13.5px !important;
    flex: 0 0 13.5px !important;
  }
  .header .topbar .search,
  .header .topbar [class*="search"] {
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }
}

/* Larger bold white play triangle inside 立即看 ▶ */
.watch,
.feature .watch,
.feature-copy .watch,
uni-button.feature .watch {
  min-width: 134px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  gap: 7px !important;
}

.watch .feature-play-icon,
.feature-play-icon,
.watch svg.tm-play-svg,
.feature-play-icon .tm-play-svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --- 8B. Binge / Player Right-Side Like Button Heart Icon Fix ([t1121u]) --- */
[data-player-action="like"] uni-image,
[data-player-action="like"] img:not(.tm-keep-img) {
  display: none !important;
}

[data-player-action="like"] .tm-heart-svg-wrap {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 2px !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-player-action="like"]:hover .tm-heart-svg-wrap {
  transform: scale(1.12) !important;
}

[data-player-action="like"]:active .tm-heart-svg-wrap {
  transform: scale(0.92) !important;
}

[data-player-action="like"] .tm-heart-svg-wrap svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

[data-player-action="like"][aria-pressed="true"] .tm-heart-svg-wrap svg {
  filter: drop-shadow(0 2px 8px rgba(255, 77, 148, 0.55));
}

/* --- 8C. Live Floating Danmaku Stage & Human Usage Traces ([t1119u], [t1120u], [t1135u]) --- */
/* Hide choppy native timeupdate-driven danmaku layer so only 60FPS rAF layer renders */
.player-danmaku-layer,
.player-danmaku-line {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tm-dm-live-stage {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  height: 112px;
  overflow: hidden;
  pointer-events: none;
  z-index: 16;
  contain: layout paint;
}

body.tm-dm-off .tm-dm-live-stage {
  display: none !important;
}

.tm-dm-bullet {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 11px;
  border-radius: 999px;
  background: rgba(14, 11, 20, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(2000px, 0, 0);
  transition: none !important;
  animation: none !important;
}

.tm-dm-bullet:hover {
  border-color: #FFC83D;
  background: rgba(24, 15, 32, 0.78);
  z-index: 30;
}

.tm-dm-bullet.is-hot {
  border-color: rgba(255, 200, 90, 0.48);
  background: rgba(34, 21, 16, 0.62);
  color: #FFF1B8;
}

.tm-dm-bullet.is-mine {
  border: 1.5px solid #FFC83D;
  background: rgba(44, 22, 36, 0.76);
  color: #FFE7A3;
}

.tm-dm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 77, 148, 0.24);
  color: #ff9ec6;
}

.tm-dm-bullet.liked .tm-dm-like-btn {
  background: #e8577a;
  color: #ffffff;
}

/* Interactive Danmaku Control Bar & Human Traces Panel (.tm-dm-dock) */
.tm-dm-dock {
  margin: 10px 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 100% 0, rgba(255, 95, 162, 0.18), transparent 60%),
    linear-gradient(160deg, #24161b, #140c16 60%, #19101f);
  border: 1px solid rgba(255, 200, 90, 0.42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
  position: relative;
  z-index: 20;
}

/* === [t1175u-t1177u] Douyin/TikTok Full-Screen Immersive Clips Layout === */
.clips-page .player-stage,
.clips-page .clips-swiper,
.clips-page .clip-surface {
  width: 100% !important;
  height: 100% !important;
  background: #08050c !important;
}

.clips-page .player-video,
.clips-page .player-video video,
.clips-page .clips-cover,
.clips-page .clips-cover img,
.clips-page .clips-cover div {
  object-fit: cover !important;
  background-size: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* 1. Bottom Progress & Controls Bar (0px..34px) - Always visible & never covered */
.clips-page .player-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 34px !important;
  padding: 0 10px !important;
  background: linear-gradient(180deg, rgba(8, 5, 12, 0.15) 0%, rgba(8, 5, 12, 0.88) 100%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 22 !important;
  display: flex !important;
  align-items: center !important;
}

.clips-page .player-control-row {
  width: 100% !important;
  min-height: 32px !important;
  gap: 6px !important;
  align-items: center !important;
}

/* 2. Danmaku & Hot-Trace Dock (36px..94px) - Full width, compact glass */
.clips-page .tm-dm-dock {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 36px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 12px !important;
  background: rgba(16, 10, 22, 0.68) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 200, 90, 0.26) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
  z-index: 20 !important;
}

.clips-page .tm-dm-dock-top {
  gap: 6px !important;
}

.clips-page .tm-dm-toggle,
.clips-page .tm-dm-input,
.clips-page .tm-dm-send {
  height: 26px !important;
  font-size: 11.5px !important;
}

.clips-page .tm-dm-traces {
  margin-top: 5px !important;
  padding-bottom: 0 !important;
  gap: 5px !important;
}

/* 3. Drama Title + "观看完整短剧" Bar (100px, snugly 6px above Danmaku Dock, NO harsh black box) */
.clips-page .player-description {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 108px !important;
  margin-bottom: 0 !important;
  padding: 18px 10px 0 12px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 5, 12, 0.32) 45%, rgba(8, 5, 12, 0.68) 100%) !important;
  pointer-events: none !important;
  z-index: 19 !important;
}

.clips-page .player-description .source-h1 {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
  padding-right: 62px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.clips-page .player-description .player-summary-row {
  margin-top: 3px !important;
  padding-right: 62px !important;
}

.clips-page .player-description .source-p {
  font-size: 12.5px !important;
  color: rgba(255, 236, 208, 0.88) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75) !important;
}

.clips-page .player-all-episodes {
  margin-top: 7px !important;
  width: 100% !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: linear-gradient(90deg, rgba(232, 87, 122, 0.26) 0%, rgba(26, 16, 30, 0.82) 55%, rgba(236, 198, 132, 0.18) 100%) !important;
  border: 1px solid rgba(232, 87, 122, 0.48) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  color: #ffeef3 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  pointer-events: auto !important;
}

.clips-page .player-all-episodes .player-material:first-child {
  color: #e8577a !important;
  font-size: 17px !important;
}

.clips-page .player-all-episodes .player-material:last-child {
  margin-left: auto !important;
  color: #f3e2bd !important;
}

/* 4. Right Side Interaction Column (144px from bottom so it never overlaps "观看完整短剧") */
.clips-page .player-side {
  position: absolute !important;
  right: 10px !important;
  bottom: 152px !important;
  gap: 12px !important;
  z-index: 21 !important;
}

/* Subtle non-intrusive loading pill instead of full-screen dark block */
.clips-page .player-loading {
  background: transparent !important;
  pointer-events: none !important;
}

.tm-dm-dock-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tm-dm-toggle {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 90, 0.45);
  background: rgba(255, 200, 60, 0.16);
  color: #FFE7A3;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

body.tm-dm-off .tm-dm-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #999;
}

.tm-dm-input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
}

.tm-dm-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tm-dm-send {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0 !important;
  background: #e8577a !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(255, 77, 148, 0.25) !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tm-dm-traces {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tm-dm-traces::-webkit-scrollbar {
  display: none;
}

.tm-dm-trace-label {
  font-size: 11px;
  font-weight: 800;
  color: #FFC83D;
  white-space: nowrap;
  flex-shrink: 0;
}

.tm-dm-trace-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 200, 90, 0.22);
  color: #f3e2bd;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tm-dm-trace-pill:hover {
  transform: translateY(-1px);
  border-color: #FFC83D;
}

.tm-dm-trace-pill.liked {
  border-color: #ff7eb3;
  background: rgba(255, 77, 148, 0.18);
  color: #fff;
}

.tm-dm-trace-pill b {
  color: #FFE7A3;
  font-weight: 800;
}

.tm-dm-trace-pill i {
  font-style: normal;
  color: #ff8fc0;
  font-weight: 800;
}

/* ==========================================================================
   9. V6 UPGRADES: PERFECT '更多 >' CAPSULE BUTTON, AUTO-PLAY CAROUSEL DOTS,
      TIKTOK/DOUYIN LONG-PRESS 2.0X SPEED HUD & 3D DOUBLE-TAP HEART BURST
      ([t1136u], [t1137u], [t1138u])
   ========================================================================== */

/* --- 9A. Homepage & Section Header '更多 >' Capsule Alignment ([t1137u]) --- */
.section-head .more,
uni-button.more,
.more.source-button,
.more[data-tm-glass="cta"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 4px 12px !important;
  min-width: 64px !important;
  width: auto !important;
  max-width: none !important;
  height: 26px !important;
  min-height: 26px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  text-indent: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  color: #ffffff !important;
  background: #e8577a !important;
  box-shadow: 0 3px 10px rgba(255, 77, 148, 0.25) !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.section-head .more uni-image,
uni-button.more uni-image,
.more.source-button uni-image,
.section-head .more .source-svg,
uni-button.more .source-svg {
  width: 11px !important;
  height: 11px !important;
  flex: 0 0 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: brightness(0) invert(1) !important;
}

/* --- 9B. Banner & Hero Carousel Dots Interactive Polish ([t1136u]) --- */
[data-ad-carousel] .dots,
.up-featured-dots {
  pointer-events: auto !important;
  z-index: 8 !important;
}

[data-ad-carousel] .dot,
.up-featured-dots .source-i {
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: width 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.28s ease, opacity 0.28s ease !important;
}

[data-ad-carousel] .dot.active,
.up-featured-dots .source-i.active {
  background: #e8577a !important;
  box-shadow: 0 0 8px rgba(255, 77, 148, 0.55) !important;
}

/* Cap visual overflow if UP featured has > 6 items so dots stay compact & neat */
.up-featured-dots .source-i:nth-child(n+7) {
  display: none !important;
}

/* --- 9C. TikTok / Douyin Long-Press 2.0x Speed Floating HUD ([t1138u]) --- */
.tm-speed-hold-hud {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translate3d(-50%, -8px, 0) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(18, 12, 24, 0.82);
  border: 1px solid rgba(255, 200, 90, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 77, 148, 0.28);
  color: #FFE7A3;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-speed-hold-hud.is-active {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.tm-speed-chevrons {
  display: inline-flex;
  align-items: center;
  color: #ff6aa9;
  font-size: 13px;
  animation: tmSpeedPulse 0.65s infinite alternate ease-in-out;
}

@keyframes tmSpeedPulse {
  0% { transform: translateX(-1px); opacity: 0.7; }
  100% { transform: translateX(2.5px); opacity: 1; }
}

/* --- 9D. TikTok / Douyin Double-Tap 3D Pink-Gold Heart Burst ([t1138u]) --- */
.tm-dbltap-heart {
  position: fixed;
  width: 78px;
  height: 78px;
  margin-left: -39px;
  margin-top: -39px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  animation: tmHeartBurst 0.76s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tm-dbltap-heart svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(255, 42, 117, 0.55));
}

@keyframes tmHeartBurst {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(var(--tm-tilt, 0deg));
  }
  22% {
    opacity: 1;
    transform: scale(1.18) rotate(var(--tm-tilt, 0deg));
  }
  42% {
    opacity: 1;
    transform: scale(0.98) translateY(-6px) rotate(var(--tm-tilt, 0deg));
  }
  100% {
    opacity: 0;
    transform: scale(1.38) translateY(-54px) rotate(var(--tm-tilt, 0deg));
  }
}

/* --- 9E. USDT Payment Button & Pearl-White Satin Feather Icons ([t1140u], [t1141u]) --- */
.tm-unified-pay .tm-btn-usdt {
  background: linear-gradient(90deg, #5ff2c9 0%, #1ea885 100%) !important;
  color: #07221b !important;
  box-shadow: 0 4px 12px rgba(30, 168, 133, 0.3) !important;
}

.tm-unified-pay button {
  font-size: 13.5px !important;
  padding: 0 6px !important;
  white-space: nowrap !important;
}

.vip-privileges > .source-h2,
.vip-privileges h2.source-h2 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.vip-privileges > .source-h2 > .material-icon,
.vip-privileges > .source-h2 > .tm-feather-wrap {
  font-family: system-ui, -apple-system, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 1 !important;
  transform: none !important;
  background: none !important;
}

.tm-feather-svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  overflow: visible !important;
  filter: drop-shadow(0 2px 6px rgba(255, 118, 178, 0.42)) !important;
}

.tm-feather-svg.tm-feather-right {
  transform: scaleX(-1) !important;
}


/* --- 9F. Favorite/Collect Star Icon Lock ([t1142u]) & Pure-White Top-Left Back Arrow ([t1144u]) --- */
[data-drama-save] uni-image,
[data-drama-save] img:not(.tm-keep-img),
[data-player-action="favorite"] uni-image,
[data-player-action="favorite"] img:not(.tm-keep-img),
[data-player-action="collect"] uni-image,
[data-player-action="collect"] img:not(.tm-keep-img) {
  display: none !important;
}

[data-drama-save] .tm-star-svg-wrap,
[data-player-action="favorite"] .tm-star-svg-wrap,
[data-player-action="collect"] .tm-star-svg-wrap {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 2px !important;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.drama-save[data-drama-save] .tm-star-svg-wrap {
  width: 22px !important;
  height: 22px !important;
  margin: 0 auto !important;
}

[data-drama-save]:hover .tm-star-svg-wrap,
[data-player-action="favorite"]:hover .tm-star-svg-wrap,
[data-player-action="collect"]:hover .tm-star-svg-wrap {
  transform: scale(1.12) !important;
}

[data-drama-save]:active .tm-star-svg-wrap,
[data-player-action="favorite"]:active .tm-star-svg-wrap,
[data-player-action="collect"]:active .tm-star-svg-wrap {
  transform: scale(0.92) !important;
}

[data-drama-save] .tm-star-svg-wrap svg,
[data-player-action="favorite"] .tm-star-svg-wrap svg,
[data-player-action="collect"] .tm-star-svg-wrap svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.drama-save[data-drama-save] .tm-star-svg-wrap svg {
  width: 22px !important;
  height: 22px !important;
}

[data-drama-save][aria-pressed="true"] .tm-star-svg-wrap svg,
[data-player-action="favorite"][aria-pressed="true"] .tm-star-svg-wrap svg,
[data-player-action="collect"][aria-pressed="true"] .tm-star-svg-wrap svg {
  filter: drop-shadow(0 2px 8px rgba(255, 197, 49, 0.65));
}

/* Pure White Top-Left Back Button Arrow Across All Pages ([t1144u]) */
.back-button,
.back-button *,
.back-button .material-icon,
.back-button .material-icon span,
.back-button .player-material,
.back-button .player-material span,
.back-btn,
.back-btn *,
[data-back],
[data-back] *,
[data-back] .material-icon,
[data-back] .material-icon span,
[data-back] .player-material,
[data-back] .player-material span,
[aria-label="返回"],
[aria-label="返回"] *,
.drama-back,
.drama-back *,
.up-back,
.up-back *,
.promotion-back,
.promotion-back *,
.profile-festival-back,
.profile-festival-back *,
.profile-festival-reference-back,
.profile-festival-reference-back *,
.profile-free-back,
.profile-free-back *,
.profile-login-back,
.profile-login-back *,
.profile-recruit-back,
.profile-recruit-back *,
.profile-wheel-back,
.profile-wheel-back *,
.player-top [data-player-action="back"],
.player-top [data-player-action="back"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.back-button img,
.back-btn img,
[data-back] img,
[aria-label="返回"] img,
.drama-back img,
.detail-back-icon,
.detail-back-icon img, .drama-back svg, .drama-back path, .back-button svg, .back-button path,
.up-back img {
  filter: brightness(0) invert(1) !important;
}

/* 9G. In-App Payment Cashier Sheet & Auto-Return Dialog */
.tm-cashier-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(8, 6, 14, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-cashier-sheet {
  width: 100%;
  max-width: 480px;
  height: 92vh;
  margin-top: 8vh;
  background: #14101d;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 214, 133, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);
}
.tm-cashier-bar,
.tm-cashier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #26172e 0%, #171020 100%);
  border-bottom: 1px solid rgba(255, 214, 150, 0.24);
}
.tm-cashier-bar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.tm-cashier-dot,
.tm-cashier-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36e891;
  box-shadow: 0 0 8px rgba(54, 232, 145, 0.8);
  flex-shrink: 0;
}
.tm-cashier-title {
  color: #fff4dc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-cashier-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tm-cashier-ext-btn,
.tm-cashier-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(235, 190, 120, 0.18) 0%, rgba(224, 122, 160, 0.16) 100%);
  border: 1px solid rgba(242, 200, 135, 0.45);
  color: #ffeaad !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tm-cashier-ext-btn:hover {
  background: linear-gradient(135deg, rgba(235, 190, 120, 0.28) 0%, rgba(224, 122, 160, 0.26) 100%);
  border-color: rgba(255, 220, 160, 0.7);
}
.tm-cashier-close-btn,
.tm-cashier-back {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
   line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tm-cashier-close-btn:hover {
  background: rgba(255, 77, 136, 0.32);
  border-color: rgba(255, 140, 180, 0.65);
}
.tm-cashier-subbar {
  background: rgba(255, 42, 117, 0.14);
  color: #ffdce9;
  font-size: 11px;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
}
.tm-cashier-body {
  flex: 1;
  background: #fff;
  position: relative;
}
.tm-cashier-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tm-cashier-footer {
  padding: 10px 16px 16px;
  background: #14101d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tm-cashier-paid-btn {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #e8577a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 42, 117, 0.4);
}
.tm-cashier-dialog {
  width: 88%;
  max-width: 340px;
  background: linear-gradient(160deg, #1f162d 0%, #140f1e 100%);
  border: 1px solid rgba(255, 214, 133, 0.35);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
}
.tm-cashier-dialog-icon {
  font-size: 38px;
  margin-bottom: 10px;
}
.tm-cashier-dialog-title {
  color: #ffe49e;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.tm-cashier-dialog-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.tm-cashier-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-cashier-reopen-btn {
  display: block;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 133, 0.4);
  color: #ffe49e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.tm-cashier-cancel-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  padding: 6px;
  cursor: pointer;
}


/* === [t1151u] Fix .profile-wallet-item column layout & .tm-ico SVG sizing === */
svg.tm-ico,
.profile-wallet-label svg.tm-ico {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  overflow: hidden !important;
}
.profile-wallet .profile-wallet-item > uni-view:first-child,
.profile-wallet .profile-wallet-item > .source-div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.profile-wallet .profile-wallet-label {
  font-size: 11.5px !important;
  line-height: 1.25 !important;
  gap: 3px !important;
  letter-spacing: -0.3px !important;
}
.profile-wallet .profile-wallet-item {
  padding: 10px 8px !important;
  gap: 4px !important;
}
.profile-wallet .profile-wallet-cta {
  padding: 0 8px !important;
  height: 26px !important;
  line-height: 26px !important;
  font-size: 10.5px !important;
  flex-shrink: 0 !important;
}
.profile-wallet .profile-wallet-balance {
  margin-top: 2px !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  color: #FFC83D !important;
}
.profile-wallet .profile-wallet-note {
  margin-top: 2px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: #FFE7A3 !important;
  white-space: nowrap !important;
}
.profile-wallet .profile-wallet-note .profile-wallet-expiry-date {
  color: #FFC83D !important;
  font-weight: 700 !important;
}


/* === [t1158u] Unified Muted Rose-Pink (#e8577a) Buttons & Pure White Back Buttons Across All Pages === */
.drama-back,
.drama-back *,
.detail-back-icon,
.detail-back-icon *,
.back-button,
.back-button *,
.back-btn,
.back-btn *,
[data-back],
[data-back] *,
[aria-label="返回"],
[aria-label="返回"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.drama-back img,
.drama-back .detail-back-icon,
.detail-back-icon,
.detail-back-icon img,
.detail-back-icon div,
.back-button img,
.back-btn img,
[data-back] img,
[aria-label="返回"] img,
.up-back img {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
}

.drama-watch,
.watch,
.up-content-watch,
.unlock-empty uni-button,
.drama-episode.active,
.tm-dm-send,
.tm-cashier-paid-btn,
.tm-vpro-pay button + button,
.vip-pay-wechat,
.coin-pay-wechat,
.profile-creator-episode-actions uni-button.primary,
button.tm-pink-btn,
uni-button.tm-pink-btn {
  background: #e8577a !important;
  background-image: none !important;
  border-color: #e8577a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(232, 87, 122, 0.28) !important;
}


/* ==========================================================================
   Credential Card Dialog Luxury Fix ([t1173u])
   ========================================================================== */
#dialog:has(.profile-credential) {
  width: min(92vw, 380px) !important;
  max-width: 380px !important;
  margin: auto !important;
}
.profile-credential-card {
  max-width: 380px !important;
  margin: 0 auto !important;
  background: linear-gradient(180deg, #1d1524 0%, #120d18 100%) !important;
  border: 1px solid rgba(236, 198, 132, 0.32) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65) !important;
  border-radius: 22px !important;
  padding: 24px 20px 20px !important;
}
.profile-credential-card > uni-button,
.profile-credential-card .credential-save {
  background: #e8577a !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 214, 153, 0.28) !important;
}
.profile-credential-card .credential-key {
  display: inline-block !important;
  margin-top: 8px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(236, 198, 132, 0.22) !important;
  color: #f3e2bd !important;
  font-family: monospace !important;
  font-size: 12px !important;
  word-break: break-all !important;
}
