/* ============================================================
   Motion layer · 首頁 + 詳情頁 + 我的（Motion.Lab 精選，中等剋制）
   與 app.js 解耦，由 motion.js 掛載
   ============================================================ */
:root {
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  --m-ease-out: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- 與創作者中心一致的全屏黑金背景 ---------- */
body {
  isolation: isolate;
  background-color: #08070a;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(55% 65% at 12% 5%, rgba(232, 200, 119, .30), transparent 60%),
    radial-gradient(48% 58% at 88% 10%, rgba(246, 226, 138, .20), transparent 58%),
    radial-gradient(60% 65% at 50% 108%, rgba(212, 175, 55, .24), transparent 62%),
    radial-gradient(42% 48% at 95% 82%, rgba(246, 226, 138, .14), transparent 58%);
  background-repeat: no-repeat;
  background-size: 160% 160%, 150% 150%, 180% 180%, 140% 140%;
  background-position: 0% 0%, 100% 10%, 50% 100%, 100% 100%;
  animation: m-gold-aurora 26s ease-in-out infinite alternate;
  will-change: background-position;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
    115deg,
    transparent 24%,
    rgba(244, 229, 191, .05) 40%,
    rgba(255, 226, 168, .14) 48%,
    rgba(255, 246, 228, .22) 50%,
    rgba(255, 226, 168, .14) 52%,
    rgba(244, 229, 191, .05) 60%,
    transparent 76%
  );
  background-repeat: no-repeat;
  background-size: 220% 220%;
  background-position: 150% 0%;
  animation: m-gold-sheen 12s linear infinite;
  mix-blend-mode: screen;
}
.m-gold-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* 只移除全頁容器的不透明遮擋，保留原有氛圍光與內容背景 */
.stage {
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(201, 169, 106, .08), transparent 62%),
    radial-gradient(900px 700px at 92% 112%, rgba(120, 100, 60, .07), transparent 60%);
}
.page, .screen, #screen-feed, .page-search, .phone {
  background: transparent;
}
.app, .screen-light, .page-admin, #pageDetail {
  background:
    radial-gradient(90% 42% at 50% -6%, rgba(201, 169, 106, .09), transparent 60%),
    radial-gradient(70% 50% at 100% 45%, rgba(140, 118, 74, .05), transparent 65%),
    radial-gradient(80% 55% at 0% 105%, rgba(201, 169, 106, .05), transparent 60%);
}
.page-now-showing, .page-newly-released {
  background:
    radial-gradient(90% 42% at 50% -6%, rgba(201, 169, 106, .09), transparent 60%),
    radial-gradient(70% 50% at 100% 45%, rgba(140, 118, 74, .05), transparent 65%);
}

/* 全頁容器透明後，底層資訊流會透上來與頁面內容重疊：開啟頁面後隱藏底層內容 */
.app.page-open > .screen,
.app.page-open > .about-section,
.app.page-open > .site-footer {
  opacity: 0;
  pointer-events: none;
  /* 延遲到頁面滑入動畫（.32s）結束再隱藏，避免動畫期間露出空白背景 */
  transition: opacity 0s linear .32s;
}
.vip-page {
  background:
    radial-gradient(520px 280px at 50% -4%, rgba(255, 198, 112, .18), transparent 72%),
    radial-gradient(440px 320px at 104% 46%, rgba(255, 110, 60, .10), transparent 72%),
    linear-gradient(180deg, #17110b 0%, #0c0a09 58%, #08070a 100%);
}

@keyframes m-gold-aurora {
  0% { background-position: 0% 0%, 100% 10%, 50% 100%, 100% 100%; }
  50% { background-position: 35% 25%, 65% 40%, 40% 75%, 70% 60%; }
  100% { background-position: 70% 10%, 30% 60%, 60% 85%, 40% 30%; }
}
@keyframes m-gold-sheen {
  from { background-position: 150% 0%; }
  to { background-position: -50% 0%; }
}

@media (min-width: 820px) {
  .stage {
    background:
      radial-gradient(1200px 600px at 50% -8%, rgba(201, 169, 106, .10), transparent 62%),
      radial-gradient(900px 700px at 100% 30%, rgba(140, 118, 74, .06), transparent 60%),
      radial-gradient(1000px 800px at 0% 100%, rgba(201, 169, 106, .05), transparent 62%);
  }
}

@keyframes m-fade-up {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes m-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes m-hero-in {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: none; }
}
@keyframes m-mask-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: .4; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes m-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.055); }
}
@keyframes m-sheen {
  from { transform: translate3d(-70%, 0, 0) rotate(16deg); }
  to   { transform: translate3d(330%, 0, 0) rotate(16deg); }
}
@keyframes m-ripple {
  from { transform: scale(0); opacity: .34; }
  to   { transform: scale(2.4); opacity: 0; }
}

/* ---------- 點擊波紋 ---------- */
.m-ripple-host {
  overflow: hidden;
}
/* 僅對原本是 static 的元素補定位，避免覆蓋 absolute/fixed 按鈕導致按下位移 */
.m-ripple-rel {
  position: relative;
}
.m-ripple {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  animation: m-ripple .55s var(--m-ease-out) forwards;
  will-change: transform, opacity;
}

/* ---------- 按壓反饋 ---------- */
:where(.feed-tab, .rail-btn, .round-btn, .btn-follow, .dstat,
       .rec-item, .ep-btn, .hero-nav, .ad-cta, .search-cancel) {
  transition: transform .16s var(--m-ease);
}
:where(.feed-tab, .rail-btn, .round-btn, .btn-follow, .dstat,
       .rec-item, .ep-btn, .hero-nav, .ad-cta, .search-cancel):active {
  transform: scale(.95);
}
.tab svg {
  transition: transform .18s var(--m-ease);
}
.tab:active svg {
  transform: scale(.86);
}

/* ---------- 首頁資訊流：滑入視口時逐層入場 ---------- */
body.m-motion .feed-item .feed-title-row,
body.m-motion .feed-item .feed-desc,
body.m-motion .feed-item .feed-tags,
body.m-motion .feed-item .feed-more,
body.m-motion .feed-item .rail .rail-btn,
body.m-motion .feed-item .sound-pill,
body.m-motion .feed-ad .ad-chip,
body.m-motion .feed-ad .ad-close,
body.m-motion .feed-ad .ad-panel > * {
  opacity: 0;
}

body.m-motion .feed-item.m-in .feed-title-row,
body.m-motion .feed-item.m-in .feed-desc,
body.m-motion .feed-item.m-in .feed-tags,
body.m-motion .feed-item.m-in .feed-more,
body.m-motion .feed-item.m-in .rail .rail-btn,
body.m-motion .feed-ad.m-in .ad-panel > * {
  animation: m-fade-up .46s var(--m-ease) both;
}
body.m-motion .feed-item.m-in .sound-pill,
body.m-motion .feed-ad.m-in .ad-chip,
body.m-motion .feed-ad.m-in .ad-close {
  animation: m-fade-in .4s ease both;
}

/* 入場節奏 */
body.m-motion .feed-item.m-in .feed-title-row { animation-delay: .04s; }
body.m-motion .feed-item.m-in .feed-desc      { animation-delay: .09s; }
body.m-motion .feed-item.m-in .feed-tags      { animation-delay: .13s; }
body.m-motion .feed-item.m-in .feed-more      { animation-delay: .17s; }
body.m-motion .feed-item.m-in .sound-pill     { animation-delay: .22s; }
body.m-motion .feed-item.m-in .rail .rail-btn:nth-child(1) { animation-delay: .08s; }
body.m-motion .feed-item.m-in .rail .rail-btn:nth-child(2) { animation-delay: .12s; }
body.m-motion .feed-item.m-in .rail .rail-btn:nth-child(3) { animation-delay: .16s; }
body.m-motion .feed-item.m-in .rail .rail-btn:nth-child(4) { animation-delay: .20s; }
body.m-motion .feed-item.m-in .rail .rail-btn:nth-child(5) { animation-delay: .24s; }

body.m-motion .feed-ad.m-in .ad-panel > *:nth-child(1) { animation-delay: .06s; }
body.m-motion .feed-ad.m-in .ad-panel > *:nth-child(2) { animation-delay: .10s; }
body.m-motion .feed-ad.m-in .ad-panel > *:nth-child(3) { animation-delay: .14s; }
body.m-motion .feed-ad.m-in .ad-panel > *:nth-child(4) { animation-delay: .18s; }
body.m-motion .feed-ad.m-in .ad-chip  { animation-delay: .05s; }
body.m-motion .feed-ad.m-in .ad-close { animation-delay: .05s; }

/* ---------- 首頁 Tab：滑動指示器 ---------- */
.feed-tabs.m-tabs {
  position: relative;
}
.m-tab-ind {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff3b5c, #ff8a3d);
  pointer-events: none;
  transition: transform .34s var(--m-ease), width .34s var(--m-ease);
  will-change: transform;
}
.m-tabs .feed-tab.is-on::after {
  opacity: 0;
}

/* ---------- 桌面首頁：卡片逐張上滑入場 ---------- */
.m-stagger-item {
  animation: m-fade-up .5s var(--m-ease) backwards;
  animation-delay: calc(var(--m-i, 0) * 45ms);
}

/* 桌面首頁：海報懸停抬升 + 高光掃過 */
@media (hover: hover) and (pointer: fine) {
  .dhome .drama-card {
    transition: transform .28s var(--m-ease), box-shadow .28s var(--m-ease);
  }
  .dhome .drama-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(24, 24, 40, .14);
  }
  .dhome .drama-card:active {
    transform: translateY(-1px) scale(.992);
  }
  .dhome .drama-card .poster::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 42%;
    height: 180%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
  }
  .dhome .drama-card:hover .poster::after {
    opacity: 1;
    animation: m-sheen .9s var(--m-ease-out) both;
  }
}

/* 桌面首頁：輪播主圖緩慢推近 + 文案逐行入場 */
.dhome-carousel .hero-slide.is-on:not(.is-portrait) .dhome-hero-bg {
  animation: m-kenburns 12s ease-out both;
}
.dhome-carousel .hero-slide.is-on .dhome-hero-info > * {
  animation: m-fade-up .5s var(--m-ease) both;
}
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(1) { animation-delay: .06s; }
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(2) { animation-delay: .10s; }
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(3) { animation-delay: .14s; }
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(4) { animation-delay: .18s; }
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(5) { animation-delay: .22s; }
.dhome-carousel .hero-slide.is-on .dhome-hero-info > *:nth-child(6) { animation-delay: .26s; }

/* ---------- 桌面首頁：標籤、榜單、按鈕與廣告反饋 ---------- */
.dhome :where(.dhome-tag, .sec-more, .dc-stat, .dhome-actions .btn-main, .dhome-actions .btn-follow) {
  transition: color .2s ease, background .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .16s var(--m-ease);
}
.dhome :where(.dhome-tag, .sec-more, .dc-stat, .dhome-actions .btn-main, .dhome-actions .btn-follow):active {
  transform: scale(.96);
}
.dhome :where(.sec-more, .home-ad-cta, .home-image-ad-cta, .home-banner-ad-cta, .side-ad-cta) svg,
.dhome .dc-stat svg {
  transition: transform .2s var(--m-ease);
}
.dhome .dc-stat:active svg { transform: scale(.86); }
.dhome .side-rank {
  border-radius: 10px;
  transition: background .2s ease, transform .18s var(--m-ease);
}
.dhome .side-rank:active { transform: scale(.98); }
.dhome .side-rank img,
.dhome .side-ad-img { transition: transform .24s var(--m-ease); }
.dhome .aa-name { transition: color .2s ease, transform .2s var(--m-ease); }

@media (hover: hover) and (pointer: fine) {
  .dhome .dhome-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 106, .12);
  }
  .dhome .dc-stat:hover { color: var(--brand-2); transform: translateY(-1px); }
  .dhome .dhome-actions .btn-main:hover,
  .dhome .dhome-actions .btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 169, 106, .14);
  }
  .dhome .sec-more:hover svg,
  .dhome .home-ad:hover .home-ad-cta svg,
  .dhome .home-image-ad:hover .home-image-ad-cta svg,
  .dhome .home-banner-ad:hover .home-banner-ad-cta svg,
  .dhome .side-ad:hover .side-ad-cta svg { transform: translateX(3px); }
  .dhome .side-rank:hover {
    transform: translateX(3px);
    background: rgba(201, 169, 106, .06);
  }
  .dhome .side-rank:hover img { transform: scale(1.04); }
  .dhome .aa-item:hover .aa-name { color: var(--brand-2); transform: translateY(-1px); }
  .dhome :where(.home-ad, .home-image-ad, .home-banner-ad, .side-ad) {
    transition: transform .26s var(--m-ease), box-shadow .26s var(--m-ease), border-color .2s ease;
  }
  .dhome :where(.home-ad, .home-image-ad, .home-banner-ad, .side-ad):hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 106, .4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  }
  .dhome :where(.home-ad, .home-image-ad, .home-banner-ad, .side-ad):active {
    transform: translateY(-1px) scale(.99);
  }
  .dhome .side-ad:hover .side-ad-img { transform: scale(1.025); }
}

/* ---------- 劇場：分區錯落入場 + 內容交互反饋 ---------- */
#discoverBody :where(.continue, .chip, .tag-chip, .rank-row, .drama-card, .ad-banner, .dc-stat) {
  transition: color .2s ease, background .2s ease, border-color .2s ease,
              box-shadow .24s var(--m-ease), transform .18s var(--m-ease);
}
#discoverBody :where(.rank-row, .drama-card, .ad-banner, .continue) > img,
#discoverBody .drama-card .poster img,
#discoverBody .rank-go,
#discoverBody .continue-play,
#discoverBody .ad-banner-cta,
#discoverBody .ad-banner-cta svg,
#discoverBody .dc-stat svg {
  transition: transform .24s var(--m-ease), color .2s ease,
              background .2s ease, border-color .2s ease;
}
#discoverBody :where(.chip, .tag-chip, .rank-row, .drama-card, .dc-stat):focus-visible {
  outline: 2px solid rgba(201, 169, 106, .72);
  outline-offset: 3px;
}
#discoverBody :where(.rank-row, .chip, .tag-chip, .dc-stat) .m-ripple {
  color: #c9a96a !important;
}

@media (hover: hover) and (pointer: fine) {
  #discoverBody :where(.chip, .tag-chip):hover {
    transform: translateY(-2px);
    border-color: rgba(201, 169, 106, .46);
    box-shadow: 0 7px 18px rgba(201, 169, 106, .14);
  }
  #discoverBody .rank-row:hover {
    transform: translateX(3px);
    background: rgba(201, 169, 106, .07);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  }
  #discoverBody .rank-row:hover > img { transform: scale(1.045); }
  #discoverBody .rank-row:hover .rank-go { transform: translateX(2px); }
  #discoverBody :where(.drama-card, .ad-banner, .continue):hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 106, .34);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
  }
  #discoverBody .drama-card:hover .poster img { transform: scale(1.035); }
  #discoverBody :where(.ad-banner, .continue):hover > img { transform: scale(1.025); }
  #discoverBody .ad-banner:hover .ad-banner-cta svg { transform: translateX(3px); }
  #discoverBody .continue:hover .continue-play { transform: scale(1.06); }
  #discoverBody .dc-stat:hover { transform: translateY(-1px); }
  #discoverBody .drama-card .poster::after {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 42%;
    height: 180%;
    background: linear-gradient(100deg, transparent, rgba(255, 246, 218, .24), transparent);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
  }
  #discoverBody .drama-card:hover .poster::after {
    opacity: 1;
    animation: m-sheen .9s var(--m-ease-out) both;
  }
}

#discoverBody :where(.chip, .tag-chip, .dc-stat):active { transform: scale(.95); }
#discoverBody .dc-stat:active svg { transform: scale(.86); }
#discoverBody .rank-row:active { transform: scale(.985); }
#discoverBody :where(.drama-card, .ad-banner, .continue):active {
  transform: translateY(-1px) scale(.99);
}

/* ---------- 詳情頁：海報推近 + 標題遮罩揭示 + 資訊逐條浮現 ---------- */
.detail-hero {
  overflow: hidden;
}
.detail-hero > img {
  transform: scale(1.055);
  transform-origin: center top;
  will-change: transform;
}
#pageDetail.is-open .detail-hero {
  animation: m-hero-in .55s var(--m-ease) both;
}
#pageDetail.is-open .detail-card > * {
  animation: m-fade-up .46s var(--m-ease) both;
}
#pageDetail.is-open .detail-card > *:nth-child(1) { animation-delay: .06s; }
#pageDetail.is-open .detail-card > *:nth-child(2) { animation-delay: .10s; }
#pageDetail.is-open .detail-card > *:nth-child(3) { animation-delay: .14s; }
#pageDetail.is-open .detail-card > *:nth-child(4) { animation-delay: .18s; }
#pageDetail.is-open .detail-card > *:nth-child(5) { animation-delay: .22s; }
#pageDetail.is-open .detail-card > *:nth-child(6) { animation-delay: .26s; }
#pageDetail.is-open .detail-card > *:nth-child(7) { animation-delay: .30s; }
#pageDetail.is-open .detail-card h1 {
  animation: m-mask-reveal .6s var(--m-ease) .1s both;
}
#pageDetail.is-open .detail-sec .rec-item {
  animation: m-fade-up .46s var(--m-ease) both;
}
#pageDetail.is-open .detail-sec .rec-item:nth-child(1) { animation-delay: .10s; }
#pageDetail.is-open .detail-sec .rec-item:nth-child(2) { animation-delay: .14s; }
#pageDetail.is-open .detail-sec .rec-item:nth-child(3) { animation-delay: .18s; }
#pageDetail.is-open .detail-sec .rec-item:nth-child(4) { animation-delay: .22s; }
#pageDetail.is-open .detail-sec .rec-item:nth-child(5) { animation-delay: .26s; }

/* ---------- 頂部導航：滑動選中膠囊 + 按鈕平滑反饋 ---------- */
@media (min-width: 820px) {
  body.m-motion .dh-nav { position: relative; }
  body.m-motion .dh-nav button {
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: color .22s ease, background .22s ease, transform .16s var(--m-ease);
  }
  body.m-motion .dh-nav button.is-on,
  body.m-motion .dh-nav button.is-on:hover { background: transparent; }
  body.m-motion .dh-nav button:active { transform: scale(.96); }
  .m-dh-nav-ind {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 22px;
    background: rgba(201, 169, 106, .14);
    box-shadow: inset 0 0 0 1px rgba(201, 169, 106, .06);
    pointer-events: none;
    opacity: 0;
  }
  .m-dh-nav-ind.is-ready {
    transition: transform .28s var(--m-ease), width .28s var(--m-ease), opacity .18s ease;
    will-change: transform, width;
  }
  .dh-logo { cursor: pointer; }
  .dh-logo img { transition: transform .22s var(--m-ease), filter .22s ease; }
  .dh-logo:hover img { transform: scale(1.03); filter: brightness(1.08); }
  .dh-logo:active img { transform: scale(.97); }
  .dh-search {
    cursor: pointer;
    transition: transform .2s var(--m-ease), border-color .2s ease,
                background .2s ease, box-shadow .2s ease;
  }
  .dh-search svg { transition: transform .22s var(--m-ease); }
  .dh-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 169, 106, .09);
  }
  .dh-search:hover svg { transform: scale(1.08); }
  .dh-search:active { transform: translateY(0) scale(.99); }
  .dh-user { transition: transform .18s var(--m-ease), border-color .2s ease, box-shadow .2s ease; }
  .dh-user:hover { transform: scale(1.05); }
  .dh-user:active { transform: scale(.95); }
  .dh-user-menu {
    transition: opacity .2s ease, transform .22s var(--m-ease-out), visibility .2s;
  }
  .dh-menu-item { transition: background .16s ease, color .16s ease, transform .16s var(--m-ease); }
  .dh-menu-item:hover { transform: translateX(2px); }
  .dh-menu-item:active { transform: scale(.98); }
  .dh-menu-ico { transition: transform .18s var(--m-ease); }
  .dh-menu-item:hover .dh-menu-ico { transform: scale(1.08); }
}

/* ---------- 我的：分層入場 + Tab 滑動 + 輕量交互反饋 ---------- */
@keyframes m-mine-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes m-mine-panel-in {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes m-mine-number {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.045); }
}
.m-mine-enter .m-mine-reveal {
  animation: m-mine-in .42s var(--m-ease) backwards;
  animation-delay: calc(var(--m-mine-i, 0) * 60ms);
}
.m-mine-panel-in {
  animation: m-mine-panel-in .2s var(--m-ease-out) backwards;
}
.m-mine-list-in {
  animation: m-mine-in .32s var(--m-ease) backwards;
  animation-delay: calc(var(--m-i, 0) * 40ms);
}
.m-number-changing {
  display: inline-block;
  animation: m-mine-number .65s var(--m-ease-out);
  transform-origin: center;
}

body.m-motion .mine-tabs { position: relative; }
body.m-motion .mine-tabs .mine-tab {
  position: relative;
  z-index: 1;
  transition: color .18s ease, transform .16s var(--m-ease);
}
body.m-motion .mine-tabs .mine-tab.is-active {
  background: transparent;
  box-shadow: none;
}
.m-mine-tab-ind {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: var(--gold-grad);
  box-shadow: 0 6px 16px rgba(156, 124, 70, .26);
  pointer-events: none;
  transition: transform .22s var(--m-ease), width .22s var(--m-ease);
  will-change: transform, width;
}
.mine-stats > .mine-stat {
  transition: transform .16s var(--m-ease), opacity .16s ease,
              border-color .18s ease, background .18s ease;
}
.mine-stats > .mine-stat:active { transform: scale(.98); opacity: .85; }
.mine-tab:active { transform: scale(.97); }
.creator-card-btn,
.mine-login { transition: transform .16s var(--m-ease), filter .18s ease; }
.creator-card-btn:active,
.creator-approved .creator-card-btn:active,
.mine-login:active { transform: scale(.97); }
.mine-stat-wallet .m-ripple,
.creator-card-btn .m-ripple,
.mine-login .m-ripple { color: #f4e5bf !important; }

.creator-card { transition: transform .2s var(--m-ease), box-shadow .2s ease; }
.mine-ad {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mine-ad > img { transition: transform .3s var(--m-ease); }
.mine-ad::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -40%;
  left: 0;
  width: 36%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 218, .16), transparent);
  opacity: 0;
  pointer-events: none;
}
.menu-row { cursor: pointer; transition: background .18s ease, transform .16s var(--m-ease); }
.menu-row:active { transform: scale(.99); }
.menu-row .chev { transition: transform .18s var(--m-ease), color .18s ease; }
.mine-head::before {
  transform: translate3d(var(--m-mine-x, 0), var(--m-mine-y, 0), 0);
  transition: transform .18s ease-out;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .creator-card:hover { transform: translateY(-2px); }
  .mine-ad:hover > img { transform: scale(1.04); }
  .mine-ad:hover::after { opacity: 1; animation: m-sheen .8s var(--m-ease-out) both; }
  .menu-row:hover .chev { transform: translateX(3px); color: var(--brand-2); }
}

/* ---------- 降級：系統開啓「減少動態效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body.m-motion .feed-item .feed-title-row,
  body.m-motion .feed-item .feed-desc,
  body.m-motion .feed-item .feed-tags,
  body.m-motion .feed-item .feed-more,
  body.m-motion .feed-item .rail .rail-btn,
  body.m-motion .feed-item .sound-pill,
  body.m-motion .feed-ad .ad-chip,
  body.m-motion .feed-ad .ad-close,
  body.m-motion .feed-ad .ad-panel > * {
    opacity: 1;
  }
}
